ETH Price: $3,435.05 (-1.41%)

Token

 

Overview

Max Total Supply

1,494

Holders

917

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x313E816b6C73912c3Ec026105dB2750c3f851C70
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
PortalNft

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 20 : PortalNft.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/*
* @title ERC1155 token for The Nifty Portal
* @author NFTNick.eth
*/

////////////////////////////////////////////////////////////////////////////
//                                                                        //
//    ________   ___  ________ _________    ___    ___                    //
//   |\   ___  \|\  \|\  _____\\___   ___\ |\  \  /  /|                   //
//   \ \  \\ \  \ \  \ \  \__/\|___ \  \_| \ \  \/  / /                   //   
//    \ \  \\ \  \ \  \ \   __\    \ \  \   \ \    / /                    //   
//     \ \  \\ \  \ \  \ \  \_|     \ \  \   \/  /  /                     //  
//      \ \__\\ \__\ \__\ \__\       \ \__\__/  / /                       //  
//       \|__| \|__|\|__|\|__|        \|__|\___/ /                        //     
//                                        \|___|/                         //
//    ________  ________  ________  _________  ________  ___              //
//    |\   __  \|\   __  \|\   __  \|\___   ___\\   __  \|\  \            //
//    \ \  \|\  \ \  \|\  \ \  \|\  \|___ \  \_\ \  \|\  \ \  \           //
//     \ \   ____\ \  \\\  \ \   _  _\   \ \  \ \ \   __  \ \  \          //
//      \ \  \___|\ \  \\\  \ \  \\  \|   \ \  \ \ \  \ \  \ \  \____     //
//       \ \__\    \ \_______\ \__\\ _\    \ \__\ \ \__\ \__\ \_______\   //
//        \|__|     \|_______|\|__|\|__|    \|__|  \|__|\|__|\|_______|   //
//                                                                        //
////////////////////////////////////////////////////////////////////////////

import './utils/ERC1155Bouncer.sol'; // Set up a bouncer at the Portal door for those VIPs!

contract PortalNft is ERC1155Bouncer {
  uint public activelyMintingNft = 0;
  uint256 public maxSupply = 7777;
  uint256 public mintPrice = 0.069 ether; // 420
  uint public publicMintLimit = 3;

  uint256 public publicMintTime = 1642431600;

  // Bouncer that only let's in pre-approved members
  string private constant SIGNING_DOMAIN = "TheNifty";
  string private constant SIGNATURE_VERSION = "1";

  // Caps on mints
  mapping(uint256 => mapping(address => uint256)) public premintTxs;
  mapping(uint256 => mapping(address => uint256)) public publicTxs;

  event Printed(uint256 indexed index, address indexed account, uint256 amount);

  constructor(
    string memory _name,
    string memory _symbol,
    string memory _uri
  ) ERC1155(_uri) EIP712(SIGNING_DOMAIN, SIGNATURE_VERSION) {
    name_ = _name;
    symbol_ = _symbol;

    // Send community & team NFTs to The Nifty NFT wallet
    _mint(0xb75D95FB8bC0FC8e156a8fd1d9669be94160c11F, 0, 100, "");
  }

  /**
  * @notice withdraw balance
  *
  * @param _addr the address we are sending the CAYYYYYYUSH to
  */
  function withdraw(address _addr) external onlyOwner {
    uint256 balance = address(this).balance;
    payable(_addr).transfer(balance);
  }


  /**
  * @notice edit the mint price
  *
  * @param _mintPrice the new price in wei
  */
  function setPrice(uint256 _mintPrice) external onlyOwner {
    mintPrice = _mintPrice;
  }

  /**
  * @notice edit windows
  *
  * @param _publicMintTime UNIX timestamp for burn window opening time
  * @param _publicMintLimit The max number of NFTs public minters can mint per txn
  * @param _maxSupply The total number of NFTs that can be minted
  */
  function editMintSettings(
      uint256 _publicMintTime,
      uint256 _publicMintLimit,
      uint256 _maxSupply
  ) external onlyOwner {
      publicMintTime = _publicMintTime;
      publicMintLimit = _publicMintLimit;
      maxSupply = _maxSupply;
  }

  /**
  * @notice change the mint phase
  *
  * @param _tokenId the new token that we're minting
  */
  function setMintingToken(uint _tokenId) external onlyOwner {
    activelyMintingNft = _tokenId;
  }

  /**
  * @notice early minting
  *
  * @param voucher the voucher used to claim
  * @param numberOfTokens how many they'd like to mint
  */
  function voucherMint(NFTVoucher calldata voucher, uint numberOfTokens) external payable whenNotPaused {
    require(premintTxs[activelyMintingNft][msg.sender] < 1 , "wallet mint limit");
    address signer = _verify(voucher);
    require(hasRole(BOUNCER_ROLE, signer), "signature invalid");
    require(numberOfTokens <= voucher.mintLimit, "invalid mint count");
    require(msg.sender == voucher.minter, "invalid voucher");
    require(totalSupply(activelyMintingNft) + numberOfTokens <= maxSupply, "supply exceeded");
    require(block.timestamp >= voucher.start, "invalid mint time");
    
    premintTxs[activelyMintingNft][msg.sender] += 1;
    _issuePortalPasses(numberOfTokens);
  }

  /**
  * @notice special minting method only for contract owner
  *
  * @param addr the address these should be minted to
  * @param numberOfTokens how many to mint
  */
  function ownerMint(address addr, uint numberOfTokens) external onlyOwner {
    require(totalSupply(0) + numberOfTokens <= maxSupply, "Max supply reached");
    _mint(addr, 0, numberOfTokens, "");
    emit Printed(0, addr, numberOfTokens);
  }

  /**
  * @notice public mint phase
  *
  * @param numberOfTokens how many to mint
  */
  function publicMint(uint numberOfTokens) external payable whenNotPaused {
    require(block.timestamp >= publicMintTime, "public mint closed");
    require(publicTxs[activelyMintingNft][msg.sender] < 1 , "wallet mint limit");
    require(numberOfTokens > 0 && numberOfTokens <= publicMintLimit, "exceeds max nfts per txn");

    // Limited transactions per wallet on public mint
    publicTxs[activelyMintingNft][msg.sender] += 1;
    _issuePortalPasses(numberOfTokens);
  }

  /**
  * @notice global function for issuing the portal passes (the core minting function)
  *
  * @param amount the amount of tokens to mint
  */
  function _issuePortalPasses(uint256 amount) private {
    require(totalSupply(0) + amount <= maxSupply, "Purchase: Max supply reached");
    require(msg.value == amount * mintPrice, "Purchase: Incorrect payment");

    _mint(msg.sender, 0, amount, "");
    emit Printed(0, msg.sender, amount);
  }
}

File 2 of 20 : ERC1155Bouncer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import './OffchainBouncer.sol';

contract OwnableDelegateProxy { }

contract OSProxy {
  mapping(address => OwnableDelegateProxy) public proxies;
}

abstract contract ERC1155Bouncer is OffchainBouncer, ERC1155, ERC1155Supply, ERC1155Burnable, Pausable {
  string name_;
  string symbol_; 

  address proxyRegistryAddress;

  function pause() external onlyOwner {
    _pause();
  }

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

  /**
  * @notice change the base URI for the NFT
  *
  * @param baseURI the new NFT uri base
  */
  function setURI(string memory baseURI) external onlyOwner {
    _setURI(baseURI);
  }

  /**
  * @notice returns the metadata uri for a given id
  *
  * @param _id the NFT to return metadata for
  */
  function uri(uint256 _id) public view override returns (string memory) {
    require(exists(_id), "URI: nonexistent token");

    return string(abi.encodePacked(super.uri(_id), Strings.toString(_id), ".json"));
  }

  // Required overrides
  function supportsInterface(bytes4 interfaceId) public view virtual override (AccessControl, ERC1155) returns (bool) {
    return ERC1155.supportsInterface(interfaceId) || AccessControl.supportsInterface(interfaceId);
  } 

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

  /**
   * OpenSea gas-free listings.
   */
  function isApprovedForAll(address _owner, address _operator) public view override returns (bool isOperator) {
    OSProxy proxyRegistry = OSProxy(proxyRegistryAddress);
    if (address(proxyRegistry.proxies(_owner)) == _operator) {
      return true;
    }

    return ERC1155.isApprovedForAll(_owner, _operator);
  }
}

File 3 of 20 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 7 of 20 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

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

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

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

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

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

File 8 of 20 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

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 9 of 20 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 10 of 20 : OffchainBouncer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/*
* @title Offchain whitelist module using vouchers
* @author NFTNick.eth
*/

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import '@openzeppelin/contracts/access/Ownable.sol';

abstract contract OffchainBouncer is AccessControl, Ownable, EIP712 {
  bytes32 public constant BOUNCER_ROLE = keccak256("BOUNCER_ROLE");

  struct NFTVoucher {
    address minter;
    uint mintLimit;
    uint256 start;
    bytes signature;
  }

  /// @notice Used to define who's capable of generating the whitelist. 
  function addBouncer(address bouncer_) external onlyOwner {
    _setupRole(BOUNCER_ROLE, payable(bouncer_));
  }

  /// @notice Returns a hash of the given NFTVoucher, prepared using EIP712 typed data hashing rules.
  /// @param voucher An NFTVoucher to hash.
  function _hash(NFTVoucher calldata voucher) internal view returns (bytes32) {
    return _hashTypedDataV4(keccak256(abi.encode(
      keccak256("NFTVoucher(address minter,uint mintLimit,uint256 start)"),
        voucher.minter,
        voucher.mintLimit,
        voucher.start
      )
    ));
  }

  /// @notice Verifies the signature for a given NFTVoucher, returning the address of the signer.
  /// @dev Will revert if the signature is invalid. Does not verify that the signer is authorized to mint NFTs.
  /// @param voucher An NFTVoucher describing an unminted NFT.
  function _verify(NFTVoucher calldata voucher) internal view returns (address) {
    bytes32 digest = _hash(voucher);
    return ECDSA.recover(digest, voucher.signature);
  }

  /// @notice Used for signing the voucher being generated
  function getChainID() external view returns (uint256) {
    uint256 id;
    assembly {
      id := chainid()
    }
    return id;
  }
}

File 11 of 20 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 12 of 20 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

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

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

File 13 of 20 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","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":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":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Printed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BOUNCER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activelyMintingNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"bouncer_","type":"address"}],"name":"addBouncer","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":"uint256","name":"_publicMintTime","type":"uint256"},{"internalType":"uint256","name":"_publicMintLimit","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"editMintSettings","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":[],"name":"getChainID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"premintTxs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"publicTxs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"setMintingToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setPrice","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":[{"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":[{"components":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"mintLimit","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct OffchainBouncer.NFTVoucher","name":"voucher","type":"tuple"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"voucherMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040526000600a55611e61600b5566f5232269808000600c556003600d556361e58470600e553480156200003557600080fd5b5060405162004e3338038062004e338339810160408190526200005891620007e0565b80604051806040016040528060088152602001675468654e6966747960c01b815250604051806040016040528060018152602001603160f81b815250620000ae620000a86200019760201b60201c565b6200019c565b815160208084019190912082519183019190912060e08290526101008190524660a0527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000ff818484620001ee565b6080523060601b60c05261012052506200011e9250839150506200022a565b506006805460ff1916905582516200013e90600790602086019062000680565b5081516200015490600890602085019062000680565b506200018e73b75d95fb8bc0fc8e156a8fd1d9669be94160c11f60006064604051806020016040528060008152506200024360201b60201c565b50505062000bbc565b335b90565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600083838346306040516020016200020b959493929190620008e2565b6040516020818303038152906040528051906020012090509392505050565b80516200023f90600490602084019062000680565b5050565b6001600160a01b038416620002755760405162461bcd60e51b81526004016200026c90620009c8565b60405180910390fd5b60006200028162000197565b9050620002a881600087620002968862000355565b620002a18862000355565b87620003af565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290620002dc90849062000a17565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516200033592919062000a09565b60405180910390a46200034e81600087878787620003d2565b5050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106200039e57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b620003ca8686868686866200050960201b6200143b1760201c565b505050505050565b620003f1846001600160a01b03166200067a60201b620015971760201c565b15620003ca5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906200042d90899089908890889088906004016200089b565b602060405180830381600087803b1580156200044857600080fd5b505af19250505080156200047b575060408051601f3d908101601f191682019092526200047891810190620007af565b60015b620004cd576200048a62000b0c565b80620004975750620004b3565b8060405162461bcd60e51b81526004016200026c91906200090e565b60405162461bcd60e51b81526004016200026c9062000923565b6001600160e01b0319811663f23a6e6160e01b14620005005760405162461bcd60e51b81526004016200026c9062000980565b50505050505050565b62000524868686868686620003ca60201b6200158f1760201c565b6001600160a01b038516620005d05760005b8351811015620005ce578281815181106200056157634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106200058e57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254620005b5919062000a17565b90915550620005c690508162000abc565b905062000536565b505b6001600160a01b038416620003ca5760005b835181101562000500578281815181106200060d57634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106200063a57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825462000661919062000a32565b909155506200067290508162000abc565b9050620005e2565b3b151590565b8280546200068e9062000a7f565b90600052602060002090601f016020900481019282620006b25760008555620006fd565b82601f10620006cd57805160ff1916838001178555620006fd565b82800160010185558215620006fd579182015b82811115620006fd578251825591602001919060010190620006e0565b506200070b9291506200070f565b5090565b5b808211156200070b576000815560010162000710565b600082601f83011262000737578081fd5b81516001600160401b038082111562000754576200075462000af0565b604051601f8301601f1916810160200182811182821017156200077b576200077b62000af0565b60405282815284830160200186101562000793578384fd5b620007a683602083016020880162000a4c565b95945050505050565b600060208284031215620007c1578081fd5b81516001600160e01b031981168114620007d9578182fd5b9392505050565b600080600060608486031215620007f5578182fd5b83516001600160401b03808211156200080c578384fd5b6200081a8783880162000726565b9450602086015191508082111562000830578384fd5b6200083e8783880162000726565b9350604086015191508082111562000854578283fd5b50620008638682870162000726565b9150509250925092565b600081518084526200088781602086016020860162000a4c565b601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090620008d7908301846200086d565b979650505050505050565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b600060208252620007d960208301846200086d565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b918252602082015260400190565b6000821982111562000a2d5762000a2d62000ada565b500190565b60008282101562000a475762000a4762000ada565b500390565b60005b8381101562000a6957818101518382015260200162000a4f565b8381111562000a79576000848401525b50505050565b60028104600182168062000a9457607f821691505b6020821081141562000ab657634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000ad35762000ad362000ada565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60e01c90565b600060443d101562000b1e5762000199565b600481823e6308c379a062000b34825162000b06565b1462000b405762000199565b6040513d600319016004823e80513d6001600160401b03808311602484018310171562000b71575050505062000199565b8284019250825191508082111562000b8d575050505062000199565b503d8301602082840101111562000ba75750505062000199565b601f01601f1916810160200160405291505090565b60805160a05160c05160601c60e051610100516101205161422462000c0f6000396000612a7201526000612ab401526000612a93015260006129f501526000612a1f01526000612a4901526142246000f3fe6080604052600436106102d05760003560e01c80636ddb533611610179578063a22cb465116100d6578063d547741f1161008a578063f242432a11610064578063f242432a14610758578063f2fde38b14610778578063f5298aca14610798576102d0565b8063d547741f14610703578063d5abeb0114610723578063e985e9c514610738576102d0565b8063bb485b88116100bb578063bb485b88146106ae578063bd85b039146106c3578063c2868de2146106e3576102d0565b8063a22cb4651461067b578063a9fdc4c91461069b576102d0565b806391b7f5ed1161012d5780639323f562116101125780639323f562146106265780639615c30f14610646578063a217fddf14610666576102d0565b806391b7f5ed146105e657806391d1485414610606576102d0565b80638456cb591161015e5780638456cb591461058f578063888764c8146105a45780638da5cb5b146105c4576102d0565b80636ddb533614610565578063715018a61461057a576102d0565b80633f4ba83a1161023257806351cff8d9116101e65780635e403472116101c05780635e4034721461051b5780636817c76c146105305780636b20c45414610545576102d0565b806351cff8d9146104d1578063564b81ef146104f15780635c975abb14610506576102d0565b80634e1273f4116102175780634e1273f41461046f5780634f558e791461049c5780634fba122e146104bc576102d0565b80633f4ba83a1461043a578063484b973c1461044f576102d0565b80632db11544116102895780632f2ff15d1161026e5780632f2ff15d146103da578063319f98ba146103fa57806336568abe1461041a576102d0565b80632db11544146103a75780632eb2c2d6146103ba576102d0565b806302fe5305116102ba57806302fe5305146103385780630e89341c1461035a578063248a9ca314610387576102d0565b8062fdd58e146102d557806301ffc9a71461030b575b600080fd5b3480156102e157600080fd5b506102f56102f0366004612ff9565b6107b8565b60405161030291906134c7565b60405180910390f35b34801561031757600080fd5b5061032b610326366004613154565b610814565b60405161030291906134bc565b34801561034457600080fd5b506103586103533660046131a8565b610836565b005b34801561036657600080fd5b5061037a610375366004613118565b610881565b604051610302919061353e565b34801561039357600080fd5b506102f56103a2366004613118565b6108e1565b6103586103b5366004613118565b6108f6565b3480156103c657600080fd5b506103586103d5366004612e44565b6109e3565b3480156103e657600080fd5b506103586103f5366004613130565b610a41565b34801561040657600080fd5b50610358610415366004613118565b610a6a565b34801561042657600080fd5b50610358610435366004613130565b610aae565b34801561044657600080fd5b50610358610af4565b34801561045b57600080fd5b5061035861046a366004612ff9565b610b3d565b34801561047b57600080fd5b5061048f61048a366004613058565b610c15565b604051610302919061347b565b3480156104a857600080fd5b5061032b6104b7366004613118565b610d35565b3480156104c857600080fd5b506102f5610d48565b3480156104dd57600080fd5b506103586104ec366004612df0565b610d6c565b3480156104fd57600080fd5b506102f5610de3565b34801561051257600080fd5b5061032b610de8565b34801561052757600080fd5b506102f5610df1565b34801561053c57600080fd5b506102f5610df7565b34801561055157600080fd5b50610358610560366004612f55565b610dfd565b34801561057157600080fd5b506102f5610e52565b34801561058657600080fd5b50610358610e58565b34801561059b57600080fd5b50610358610ea1565b3480156105b057600080fd5b506103586105bf366004612df0565b610ee8565b3480156105d057600080fd5b506105d9610f51565b60405161030291906133c6565b3480156105f257600080fd5b50610358610601366004613118565b610f60565b34801561061257600080fd5b5061032b610621366004613130565b610fa4565b34801561063257600080fd5b506102f5610641366004613130565b610fcd565b34801561065257600080fd5b506102f5610661366004613130565b610fea565b34801561067257600080fd5b506102f5611007565b34801561068757600080fd5b50610358610696366004612fc8565b61100c565b6103586106a93660046131ee565b61101e565b3480156106ba57600080fd5b506102f56111ca565b3480156106cf57600080fd5b506102f56106de366004613118565b6111d0565b3480156106ef57600080fd5b506103586106fe366004613227565b6111e2565b34801561070f57600080fd5b5061035861071e366004613130565b61122f565b34801561072f57600080fd5b506102f561124e565b34801561074457600080fd5b5061032b610753366004612e0c565b611254565b34801561076457600080fd5b50610358610773366004612eee565b611321565b34801561078457600080fd5b50610358610793366004612df0565b611378565b3480156107a457600080fd5b506103586107b3366004613024565b6113e6565b60006001600160a01b0383166107e95760405162461bcd60e51b81526004016107e090613753565b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b600061081f8261159d565b8061082e575061082e8261160a565b90505b919050565b61083e611648565b6001600160a01b031661084f610f51565b6001600160a01b0316146108755760405162461bcd60e51b81526004016107e090613bd2565b61087e8161164c565b50565b606061088c82610d35565b6108a85760405162461bcd60e51b81526004016107e090613c3e565b6108b18261165f565b6108ba836116f3565b6040516020016108cb9291906132b8565b6040516020818303038152906040529050919050565b60009081526020819052604090206001015490565b6108fe610de8565b1561091b5760405162461bcd60e51b81526004016107e0906139ae565b600e5442101561093d5760405162461bcd60e51b81526004016107e090613a9f565b600a5460009081526010602090815260408083203384529091529020546001116109795760405162461bcd60e51b81526004016107e090613eeb565b60008111801561098b5750600d548111155b6109a75760405162461bcd60e51b81526004016107e0906138fe565b600a54600090815260106020908152604080832033845290915281208054600192906109d4908490613fc3565b9091555061087e90508161180e565b6109eb611648565b6001600160a01b0316856001600160a01b03161480610a115750610a1185610753611648565b610a2d5760405162461bcd60e51b81526004016107e090613a42565b610a3a85858585856118d1565b5050505050565b610a4a826108e1565b610a5b81610a56611648565b611a9d565b610a658383611b01565b505050565b610a72611648565b6001600160a01b0316610a83610f51565b6001600160a01b031614610aa95760405162461bcd60e51b81526004016107e090613bd2565b600a55565b610ab6611648565b6001600160a01b0316816001600160a01b031614610ae65760405162461bcd60e51b81526004016107e090613e8e565b610af08282611b86565b5050565b610afc611648565b6001600160a01b0316610b0d610f51565b6001600160a01b031614610b335760405162461bcd60e51b81526004016107e090613bd2565b610b3b611c09565b565b610b45611648565b6001600160a01b0316610b56610f51565b6001600160a01b031614610b7c5760405162461bcd60e51b81526004016107e090613bd2565b600b5481610b8a60006111d0565b610b949190613fc3565b1115610bb25760405162461bcd60e51b81526004016107e090613c75565b610bce8260008360405180602001604052806000815250611c77565b816001600160a01b031660007f7cfb504ca17ed613872a7f410dc34702087995bca0445a0418c4d1be951abc3f83604051610c0991906134c7565b60405180910390a35050565b60608151835114610c385760405162461bcd60e51b81526004016107e090613d09565b6000835167ffffffffffffffff811115610c6257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c8b578160200160208202803683370190505b50905060005b8451811015610d2d57610cf2858281518110610cbd57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610ce557634e487b7160e01b600052603260045260246000fd5b60200260200101516107b8565b828281518110610d1257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610d26816140a7565b9050610c91565b509392505050565b600080610d41836111d0565b1192915050565b7fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a581565b610d74611648565b6001600160a01b0316610d85610f51565b6001600160a01b031614610dab5760405162461bcd60e51b81526004016107e090613bd2565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610a65573d6000803e3d6000fd5b465b90565b60065460ff1690565b600e5481565b600c5481565b610e05611648565b6001600160a01b0316836001600160a01b03161480610e2b5750610e2b83610753611648565b610e475760405162461bcd60e51b81526004016107e09061386a565b610a65838383611d68565b600a5481565b610e60611648565b6001600160a01b0316610e71610f51565b6001600160a01b031614610e975760405162461bcd60e51b81526004016107e090613bd2565b610b3b6000611f1c565b610ea9611648565b6001600160a01b0316610eba610f51565b6001600160a01b031614610ee05760405162461bcd60e51b81526004016107e090613bd2565b610b3b611f86565b610ef0611648565b6001600160a01b0316610f01610f51565b6001600160a01b031614610f275760405162461bcd60e51b81526004016107e090613bd2565b61087e7fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a582611fe1565b6001546001600160a01b031690565b610f68611648565b6001600160a01b0316610f79610f51565b6001600160a01b031614610f9f5760405162461bcd60e51b81526004016107e090613bd2565b600c55565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600f60209081526000928352604080842090915290825290205481565b601060209081526000928352604080842090915290825290205481565b600081565b610af0611017611648565b8383611feb565b611026610de8565b156110435760405162461bcd60e51b81526004016107e0906139ae565b600a546000908152600f6020908152604080832033845290915290205460011161107f5760405162461bcd60e51b81526004016107e090613eeb565b600061108a8361208e565b90506110b67fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a582610fa4565b6110d25760405162461bcd60e51b81526004016107e09061371c565b82602001358211156110f65760405162461bcd60e51b81526004016107e090613e20565b6111036020840184612df0565b6001600160a01b0316336001600160a01b0316146111335760405162461bcd60e51b81526004016107e090613977565b600b5482611142600a546111d0565b61114c9190613fc3565b111561116a5760405162461bcd60e51b81526004016107e090613c07565b826040013542101561118e5760405162461bcd60e51b81526004016107e090613677565b600a546000908152600f6020908152604080832033845290915281208054600192906111bb908490613fc3565b90915550610a6590508261180e565b600d5481565b60009081526005602052604090205490565b6111ea611648565b6001600160a01b03166111fb610f51565b6001600160a01b0316146112215760405162461bcd60e51b81526004016107e090613bd2565b600e92909255600d55600b55565b611238826108e1565b61124481610a56611648565b610a658383611b86565b600b5481565b6009546040517fc45527910000000000000000000000000000000000000000000000000000000081526000916001600160a01b039081169190841690829063c4552791906112a69088906004016133c6565b60206040518083038186803b1580156112be57600080fd5b505afa1580156112d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f6919061318c565b6001600160a01b0316141561130f57600191505061080e565b61131984846120ee565b949350505050565b611329611648565b6001600160a01b0316856001600160a01b0316148061134f575061134f85610753611648565b61136b5760405162461bcd60e51b81526004016107e09061386a565b610a3a858585858561211c565b611380611648565b6001600160a01b0316611391610f51565b6001600160a01b0316146113b75760405162461bcd60e51b81526004016107e090613bd2565b6001600160a01b0381166113dd5760405162461bcd60e51b81526004016107e0906137b0565b61087e81611f1c565b6113ee611648565b6001600160a01b0316836001600160a01b03161480611414575061141483610753611648565b6114305760405162461bcd60e51b81526004016107e09061386a565b610a6583838361224b565b61144986868686868661158f565b6001600160a01b0385166114ec5760005b83518110156114ea5782818151811061148357634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106114af57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546114d49190613fc3565b909155506114e39050816140a7565b905061145a565b505b6001600160a01b03841661158f5760005b835181101561158d5782818151811061152657634e487b7160e01b600052603260045260246000fd5b60200260200101516005600086848151811061155257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254611577919061400e565b909155506115869050816140a7565b90506114fd565b505b505050505050565b3b151590565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061081f57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000148061082e575061082e825b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061082e575061082e8261235e565b3390565b8051610af0906004906020840190612c74565b60606004805461166e9061406c565b80601f016020809104026020016040519081016040528092919081815260200182805461169a9061406c565b80156116e75780601f106116bc576101008083540402835291602001916116e7565b820191906000526020600020905b8154815290600101906020018083116116ca57829003601f168201915b50505050509050919050565b60608161171857506040805180820190915260018152600360fc1b6020820152610831565b8160005b8115611742578061172c816140a7565b915061173b9050600a83613fdb565b915061171c565b60008167ffffffffffffffff81111561176b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611795576020820181803683370190505b5090505b8415611319576117aa60018361400e565b91506117b7600a866140c2565b6117c2906030613fc3565b60f81b8183815181106117e557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611807600a86613fdb565b9450611799565b600b548161181c60006111d0565b6118269190613fc3565b11156118445760405162461bcd60e51b81526004016107e0906138c7565b600c546118519082613fef565b341461186f5760405162461bcd60e51b81526004016107e090613e57565b61188b3360008360405180602001604052806000815250611c77565b336001600160a01b031660007f7cfb504ca17ed613872a7f410dc34702087995bca0445a0418c4d1be951abc3f836040516118c691906134c7565b60405180910390a350565b81518351146118f25760405162461bcd60e51b81526004016107e090613d66565b6001600160a01b0384166119185760405162461bcd60e51b81526004016107e0906139e5565b6000611922611648565b9050611932818787878787612390565b60005b8451811015611a3757600085828151811061196057634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061198c57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526002835260408082206001600160a01b038e1683529093529190912054909150818110156119dd5760405162461bcd60e51b81526004016107e090613b75565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611a1c908490613fc3565b9250508190555050505080611a30906140a7565b9050611935565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611a8792919061348e565b60405180910390a461158f81878787878761239e565b611aa78282610fa4565b610af057611abf816001600160a01b031660146124ac565b611aca8360206124ac565b604051602001611adb929190613345565b60408051601f198184030181529082905262461bcd60e51b82526107e09160040161353e565b611b0b8282610fa4565b610af0576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611b42611648565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611b908282610fa4565b15610af0576000828152602081815260408083206001600160a01b03851684529091529020805460ff19169055611bc5611648565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b611c11610de8565b611c2d5760405162461bcd60e51b81526004016107e0906136ae565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611c60611648565b604051611c6d91906133c6565b60405180910390a1565b6001600160a01b038416611c9d5760405162461bcd60e51b81526004016107e090613dc3565b6000611ca7611648565b9050611cc881600087611cb988612687565b611cc288612687565b87612390565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290611cfa908490613fc3565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611d51929190613f22565b60405180910390a4610a3a816000878787876126e0565b6001600160a01b038316611d8e5760405162461bcd60e51b81526004016107e090613b18565b8051825114611daf5760405162461bcd60e51b81526004016107e090613d66565b6000611db9611648565b9050611dd981856000868660405180602001604052806000815250612390565b60005b8351811015611ebd576000848281518110611e0757634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110611e3357634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526002835260408082206001600160a01b038c168352909352919091205490915081811015611e845760405162461bcd60e51b81526004016107e09061380d565b60009283526002602090815260408085206001600160a01b038b1686529091529092209103905580611eb5816140a7565b915050611ddc565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f0e92919061348e565b60405180910390a450505050565b600180546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611f8e610de8565b15611fab5760405162461bcd60e51b81526004016107e0906139ae565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c60611648565b610af08282611b01565b816001600160a01b0316836001600160a01b0316141561201d5760405162461bcd60e51b81526004016107e090613cac565b6001600160a01b0383811660008181526003602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906120819085906134bc565b60405180910390a3505050565b60008061209a836127b1565b90506120e7816120ad6060860186613f30565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061281c92505050565b9392505050565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166121425760405162461bcd60e51b81526004016107e0906139e5565b600061214c611648565b905061215d818787611cb988612687565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156121a05760405162461bcd60e51b81526004016107e090613b75565b60008581526002602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906121df908490613fc3565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612235929190613f22565b60405180910390a461158d8288888888886126e0565b6001600160a01b0383166122715760405162461bcd60e51b81526004016107e090613b18565b600061227b611648565b90506122ab8185600061228d87612687565b61229687612687565b60405180602001604052806000815250612390565b60008381526002602090815260408083206001600160a01b0388168452909152902054828110156122ee5760405162461bcd60e51b81526004016107e09061380d565b60008481526002602090815260408083206001600160a01b03808a16808652919093528184208786039055905190918516907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629061234f9089908990613f22565b60405180910390a45050505050565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b61158f86868686868661143b565b6123b0846001600160a01b0316611597565b1561158f5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906123e990899089908890889088906004016133da565b602060405180830381600087803b15801561240357600080fd5b505af1925050508015612433575060408051601f3d908101601f1916820190925261243091810190613170565b60015b61247c5761243f61411e565b8061244a5750612464565b8060405162461bcd60e51b81526004016107e0919061353e565b60405162461bcd60e51b81526004016107e090613588565b6001600160e01b0319811663bc197c8160e01b1461158d5760405162461bcd60e51b81526004016107e09061361a565b606060006124bb836002613fef565b6124c6906002613fc3565b67ffffffffffffffff8111156124ec57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612516576020820181803683370190505b509050600360fc1b8160008151811061253f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061259857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006125bc846002613fef565b6125c7906001613fc3565b90505b6001811115612668577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061261657634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061263a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361266181614055565b90506125ca565b5083156120e75760405162461bcd60e51b81526004016107e0906135e5565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106126cf57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6126f2846001600160a01b0316611597565b1561158f5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061272b9089908990889088908890600401613438565b602060405180830381600087803b15801561274557600080fd5b505af1925050508015612775575060408051601f3d908101601f1916820190925261277291810190613170565b60015b6127815761243f61411e565b6001600160e01b0319811663f23a6e6160e01b1461158d5760405162461bcd60e51b81526004016107e09061361a565b600061082e7f3f275fccc8eae6c2a0844811e23a340ef4154c2e02c42659e2d5076e72dcff516127e46020850185612df0565b8460200135856040013560405160200161280194939291906134d0565b60405160208183030381529060405280519060200120612838565b600080600061282b858561284b565b91509150610d2d816128bb565b600061082e6128456129e8565b83612adf565b6000808251604114156128825760208301516040840151606085015160001a61287687828585612b12565b945094505050506128b4565b8251604014156128ac57602083015160408401516128a1868383612bf2565b9350935050506128b4565b506000905060025b9250929050565b60008160048111156128dd57634e487b7160e01b600052602160045260246000fd5b14156128e85761087e565b600181600481111561290a57634e487b7160e01b600052602160045260246000fd5b14156129285760405162461bcd60e51b81526004016107e090613551565b600281600481111561294a57634e487b7160e01b600052602160045260246000fd5b14156129685760405162461bcd60e51b81526004016107e0906136e5565b600381600481111561298a57634e487b7160e01b600052602160045260246000fd5b14156129a85760405162461bcd60e51b81526004016107e090613935565b60048160048111156129ca57634e487b7160e01b600052602160045260246000fd5b141561087e5760405162461bcd60e51b81526004016107e090613ad6565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015612a4157507f000000000000000000000000000000000000000000000000000000000000000046145b15612a6d57507f0000000000000000000000000000000000000000000000000000000000000000610de5565b612ad87f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612c3a565b9050610de5565b60008282604051602001612af492919061330f565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b495750600090506003612be9565b8460ff16601b14158015612b6157508460ff16601c14155b15612b725750600090506004612be9565b600060018787878760405160008152602001604052604051612b979493929190613520565b6020604051602081039080840390855afa158015612bb9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612be257600060019250925050612be9565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01612c2c87828885612b12565b935093505050935093915050565b60008383834630604051602001612c559594939291906134f4565b6040516020818303038152906040528051906020012090509392505050565b828054612c809061406c565b90600052602060002090601f016020900481019282612ca25760008555612ce8565b82601f10612cbb57805160ff1916838001178555612ce8565b82800160010185558215612ce8579182015b82811115612ce8578251825591602001919060010190612ccd565b50612cf4929150612cf8565b5090565b5b80821115612cf45760008155600101612cf9565b600067ffffffffffffffff831115612d2757612d27614102565b612d3a601f8401601f1916602001613f75565b9050828152838383011115612d4e57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612d75578081fd5b81356020612d8a612d8583613f9f565b613f75565b8281528181019085830183850287018401881015612da6578586fd5b855b85811015612dc457813584529284019290840190600101612da8565b5090979650505050505050565b600082601f830112612de1578081fd5b6120e783833560208501612d0d565b600060208284031215612e01578081fd5b81356120e7816141c3565b60008060408385031215612e1e578081fd5b8235612e29816141c3565b91506020830135612e39816141c3565b809150509250929050565b600080600080600060a08688031215612e5b578081fd5b8535612e66816141c3565b94506020860135612e76816141c3565b9350604086013567ffffffffffffffff80821115612e92578283fd5b612e9e89838a01612d65565b94506060880135915080821115612eb3578283fd5b612ebf89838a01612d65565b93506080880135915080821115612ed4578283fd5b50612ee188828901612dd1565b9150509295509295909350565b600080600080600060a08688031215612f05578081fd5b8535612f10816141c3565b94506020860135612f20816141c3565b93506040860135925060608601359150608086013567ffffffffffffffff811115612f49578182fd5b612ee188828901612dd1565b600080600060608486031215612f69578283fd5b8335612f74816141c3565b9250602084013567ffffffffffffffff80821115612f90578384fd5b612f9c87838801612d65565b93506040860135915080821115612fb1578283fd5b50612fbe86828701612d65565b9150509250925092565b60008060408385031215612fda578182fd5b8235612fe5816141c3565b915060208301358015158114612e39578182fd5b6000806040838503121561300b578182fd5b8235613016816141c3565b946020939093013593505050565b600080600060608486031215613038578081fd5b8335613043816141c3565b95602085013595506040909401359392505050565b6000806040838503121561306a578182fd5b823567ffffffffffffffff80821115613081578384fd5b818501915085601f830112613094578384fd5b813560206130a4612d8583613f9f565b82815281810190858301838502870184018b10156130c0578889fd5b8896505b848710156130eb5780356130d7816141c3565b8352600196909601959183019183016130c4565b5096505086013592505080821115613101578283fd5b5061310e85828601612d65565b9150509250929050565b600060208284031215613129578081fd5b5035919050565b60008060408385031215613142578182fd5b823591506020830135612e39816141c3565b600060208284031215613165578081fd5b81356120e7816141d8565b600060208284031215613181578081fd5b81516120e7816141d8565b60006020828403121561319d578081fd5b81516120e7816141c3565b6000602082840312156131b9578081fd5b813567ffffffffffffffff8111156131cf578182fd5b8201601f810184136131df578182fd5b61131984823560208401612d0d565b60008060408385031215613200578182fd5b823567ffffffffffffffff811115613216578283fd5b830160808186031215613016578283fd5b60008060006060848603121561323b578081fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b8381101561328157815187529582019590820190600101613265565b509495945050505050565b600081518084526132a4816020860160208601614025565b601f01601f19169290920160200192915050565b600083516132ca818460208801614025565b8351908301906132de818360208801614025565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60007f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008252835161337d816017850160208801614025565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516133ba816028840160208801614025565b01602801949350505050565b6001600160a01b0391909116815260200190565b60006001600160a01b03808816835280871660208401525060a0604083015261340660a0830186613252565b82810360608401526134188186613252565b9050828103608084015261342c818561328c565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261347060a083018461328c565b979650505050505050565b6000602082526120e76020830184613252565b6000604082526134a16040830185613252565b82810360208401526134b38185613252565b95945050505050565b901515815260200190565b90815260200190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526120e7602083018461328c565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f696e76616c6964206d696e742074696d65000000000000000000000000000000604082015260600190565b60208082526014908201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526011908201527f7369676e617475726520696e76616c6964000000000000000000000000000000604082015260600190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f50757263686173653a204d617820737570706c79207265616368656400000000604082015260600190565b60208082526018908201527f65786365656473206d6178206e667473207065722074786e0000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252600f908201527f696e76616c696420766f75636865720000000000000000000000000000000000604082015260600190565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b60208082526012908201527f7075626c6963206d696e7420636c6f7365640000000000000000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600f908201527f737570706c792065786365656465640000000000000000000000000000000000604082015260600190565b60208082526016908201527f5552493a206e6f6e6578697374656e7420746f6b656e00000000000000000000604082015260600190565b60208082526012908201527f4d617820737570706c7920726561636865640000000000000000000000000000604082015260600190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526012908201527f696e76616c6964206d696e7420636f756e740000000000000000000000000000604082015260600190565b6020808252601b908201527f50757263686173653a20496e636f7272656374207061796d656e740000000000604082015260600190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201527f20726f6c657320666f722073656c660000000000000000000000000000000000606082015260800190565b60208082526011908201527f77616c6c6574206d696e74206c696d6974000000000000000000000000000000604082015260600190565b918252602082015260400190565b6000808335601e19843603018112613f46578283fd5b83018035915067ffffffffffffffff821115613f60578283fd5b6020019150368190038213156128b457600080fd5b60405181810167ffffffffffffffff81118282101715613f9757613f97614102565b604052919050565b600067ffffffffffffffff821115613fb957613fb9614102565b5060209081020190565b60008219821115613fd657613fd66140d6565b500190565b600082613fea57613fea6140ec565b500490565b6000816000190483118215151615614009576140096140d6565b500290565b600082821015614020576140206140d6565b500390565b60005b83811015614040578181015183820152602001614028565b8381111561404f576000848401525b50505050565b600081614064576140646140d6565b506000190190565b60028104600182168061408057607f821691505b602082108114156140a157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140bb576140bb6140d6565b5060010190565b6000826140d1576140d16140ec565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60e01c90565b600060443d101561412e57610de5565b600481823e6308c379a06141428251614118565b1461414c57610de5565b6040513d600319016004823e80513d67ffffffffffffffff816024840111818411171561417c5750505050610de5565b828401925082519150808211156141965750505050610de5565b503d830160208284010111156141ae57505050610de5565b601f01601f1916810160200160405291505090565b6001600160a01b038116811461087e57600080fd5b6001600160e01b03198116811461087e57600080fdfea2646970667358221220f0900498af890cad8ac702ee9d5002be2ebee9cb63d79fc9b8217a611b1feaea64736f6c63430008000033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000006506f7274616c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045052544c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d544c626f4833686568477441754d4377704846655a435a6e7975776e7841364a6b51514c5a42534e476a35702f00000000000000000000

Deployed Bytecode

0x6080604052600436106102d05760003560e01c80636ddb533611610179578063a22cb465116100d6578063d547741f1161008a578063f242432a11610064578063f242432a14610758578063f2fde38b14610778578063f5298aca14610798576102d0565b8063d547741f14610703578063d5abeb0114610723578063e985e9c514610738576102d0565b8063bb485b88116100bb578063bb485b88146106ae578063bd85b039146106c3578063c2868de2146106e3576102d0565b8063a22cb4651461067b578063a9fdc4c91461069b576102d0565b806391b7f5ed1161012d5780639323f562116101125780639323f562146106265780639615c30f14610646578063a217fddf14610666576102d0565b806391b7f5ed146105e657806391d1485414610606576102d0565b80638456cb591161015e5780638456cb591461058f578063888764c8146105a45780638da5cb5b146105c4576102d0565b80636ddb533614610565578063715018a61461057a576102d0565b80633f4ba83a1161023257806351cff8d9116101e65780635e403472116101c05780635e4034721461051b5780636817c76c146105305780636b20c45414610545576102d0565b806351cff8d9146104d1578063564b81ef146104f15780635c975abb14610506576102d0565b80634e1273f4116102175780634e1273f41461046f5780634f558e791461049c5780634fba122e146104bc576102d0565b80633f4ba83a1461043a578063484b973c1461044f576102d0565b80632db11544116102895780632f2ff15d1161026e5780632f2ff15d146103da578063319f98ba146103fa57806336568abe1461041a576102d0565b80632db11544146103a75780632eb2c2d6146103ba576102d0565b806302fe5305116102ba57806302fe5305146103385780630e89341c1461035a578063248a9ca314610387576102d0565b8062fdd58e146102d557806301ffc9a71461030b575b600080fd5b3480156102e157600080fd5b506102f56102f0366004612ff9565b6107b8565b60405161030291906134c7565b60405180910390f35b34801561031757600080fd5b5061032b610326366004613154565b610814565b60405161030291906134bc565b34801561034457600080fd5b506103586103533660046131a8565b610836565b005b34801561036657600080fd5b5061037a610375366004613118565b610881565b604051610302919061353e565b34801561039357600080fd5b506102f56103a2366004613118565b6108e1565b6103586103b5366004613118565b6108f6565b3480156103c657600080fd5b506103586103d5366004612e44565b6109e3565b3480156103e657600080fd5b506103586103f5366004613130565b610a41565b34801561040657600080fd5b50610358610415366004613118565b610a6a565b34801561042657600080fd5b50610358610435366004613130565b610aae565b34801561044657600080fd5b50610358610af4565b34801561045b57600080fd5b5061035861046a366004612ff9565b610b3d565b34801561047b57600080fd5b5061048f61048a366004613058565b610c15565b604051610302919061347b565b3480156104a857600080fd5b5061032b6104b7366004613118565b610d35565b3480156104c857600080fd5b506102f5610d48565b3480156104dd57600080fd5b506103586104ec366004612df0565b610d6c565b3480156104fd57600080fd5b506102f5610de3565b34801561051257600080fd5b5061032b610de8565b34801561052757600080fd5b506102f5610df1565b34801561053c57600080fd5b506102f5610df7565b34801561055157600080fd5b50610358610560366004612f55565b610dfd565b34801561057157600080fd5b506102f5610e52565b34801561058657600080fd5b50610358610e58565b34801561059b57600080fd5b50610358610ea1565b3480156105b057600080fd5b506103586105bf366004612df0565b610ee8565b3480156105d057600080fd5b506105d9610f51565b60405161030291906133c6565b3480156105f257600080fd5b50610358610601366004613118565b610f60565b34801561061257600080fd5b5061032b610621366004613130565b610fa4565b34801561063257600080fd5b506102f5610641366004613130565b610fcd565b34801561065257600080fd5b506102f5610661366004613130565b610fea565b34801561067257600080fd5b506102f5611007565b34801561068757600080fd5b50610358610696366004612fc8565b61100c565b6103586106a93660046131ee565b61101e565b3480156106ba57600080fd5b506102f56111ca565b3480156106cf57600080fd5b506102f56106de366004613118565b6111d0565b3480156106ef57600080fd5b506103586106fe366004613227565b6111e2565b34801561070f57600080fd5b5061035861071e366004613130565b61122f565b34801561072f57600080fd5b506102f561124e565b34801561074457600080fd5b5061032b610753366004612e0c565b611254565b34801561076457600080fd5b50610358610773366004612eee565b611321565b34801561078457600080fd5b50610358610793366004612df0565b611378565b3480156107a457600080fd5b506103586107b3366004613024565b6113e6565b60006001600160a01b0383166107e95760405162461bcd60e51b81526004016107e090613753565b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b600061081f8261159d565b8061082e575061082e8261160a565b90505b919050565b61083e611648565b6001600160a01b031661084f610f51565b6001600160a01b0316146108755760405162461bcd60e51b81526004016107e090613bd2565b61087e8161164c565b50565b606061088c82610d35565b6108a85760405162461bcd60e51b81526004016107e090613c3e565b6108b18261165f565b6108ba836116f3565b6040516020016108cb9291906132b8565b6040516020818303038152906040529050919050565b60009081526020819052604090206001015490565b6108fe610de8565b1561091b5760405162461bcd60e51b81526004016107e0906139ae565b600e5442101561093d5760405162461bcd60e51b81526004016107e090613a9f565b600a5460009081526010602090815260408083203384529091529020546001116109795760405162461bcd60e51b81526004016107e090613eeb565b60008111801561098b5750600d548111155b6109a75760405162461bcd60e51b81526004016107e0906138fe565b600a54600090815260106020908152604080832033845290915281208054600192906109d4908490613fc3565b9091555061087e90508161180e565b6109eb611648565b6001600160a01b0316856001600160a01b03161480610a115750610a1185610753611648565b610a2d5760405162461bcd60e51b81526004016107e090613a42565b610a3a85858585856118d1565b5050505050565b610a4a826108e1565b610a5b81610a56611648565b611a9d565b610a658383611b01565b505050565b610a72611648565b6001600160a01b0316610a83610f51565b6001600160a01b031614610aa95760405162461bcd60e51b81526004016107e090613bd2565b600a55565b610ab6611648565b6001600160a01b0316816001600160a01b031614610ae65760405162461bcd60e51b81526004016107e090613e8e565b610af08282611b86565b5050565b610afc611648565b6001600160a01b0316610b0d610f51565b6001600160a01b031614610b335760405162461bcd60e51b81526004016107e090613bd2565b610b3b611c09565b565b610b45611648565b6001600160a01b0316610b56610f51565b6001600160a01b031614610b7c5760405162461bcd60e51b81526004016107e090613bd2565b600b5481610b8a60006111d0565b610b949190613fc3565b1115610bb25760405162461bcd60e51b81526004016107e090613c75565b610bce8260008360405180602001604052806000815250611c77565b816001600160a01b031660007f7cfb504ca17ed613872a7f410dc34702087995bca0445a0418c4d1be951abc3f83604051610c0991906134c7565b60405180910390a35050565b60608151835114610c385760405162461bcd60e51b81526004016107e090613d09565b6000835167ffffffffffffffff811115610c6257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c8b578160200160208202803683370190505b50905060005b8451811015610d2d57610cf2858281518110610cbd57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610ce557634e487b7160e01b600052603260045260246000fd5b60200260200101516107b8565b828281518110610d1257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610d26816140a7565b9050610c91565b509392505050565b600080610d41836111d0565b1192915050565b7fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a581565b610d74611648565b6001600160a01b0316610d85610f51565b6001600160a01b031614610dab5760405162461bcd60e51b81526004016107e090613bd2565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610a65573d6000803e3d6000fd5b465b90565b60065460ff1690565b600e5481565b600c5481565b610e05611648565b6001600160a01b0316836001600160a01b03161480610e2b5750610e2b83610753611648565b610e475760405162461bcd60e51b81526004016107e09061386a565b610a65838383611d68565b600a5481565b610e60611648565b6001600160a01b0316610e71610f51565b6001600160a01b031614610e975760405162461bcd60e51b81526004016107e090613bd2565b610b3b6000611f1c565b610ea9611648565b6001600160a01b0316610eba610f51565b6001600160a01b031614610ee05760405162461bcd60e51b81526004016107e090613bd2565b610b3b611f86565b610ef0611648565b6001600160a01b0316610f01610f51565b6001600160a01b031614610f275760405162461bcd60e51b81526004016107e090613bd2565b61087e7fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a582611fe1565b6001546001600160a01b031690565b610f68611648565b6001600160a01b0316610f79610f51565b6001600160a01b031614610f9f5760405162461bcd60e51b81526004016107e090613bd2565b600c55565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600f60209081526000928352604080842090915290825290205481565b601060209081526000928352604080842090915290825290205481565b600081565b610af0611017611648565b8383611feb565b611026610de8565b156110435760405162461bcd60e51b81526004016107e0906139ae565b600a546000908152600f6020908152604080832033845290915290205460011161107f5760405162461bcd60e51b81526004016107e090613eeb565b600061108a8361208e565b90506110b67fe4115595bf7ae7cb05bc1951822961d8747bf58987ea2e3c7e4c3ff109c676a582610fa4565b6110d25760405162461bcd60e51b81526004016107e09061371c565b82602001358211156110f65760405162461bcd60e51b81526004016107e090613e20565b6111036020840184612df0565b6001600160a01b0316336001600160a01b0316146111335760405162461bcd60e51b81526004016107e090613977565b600b5482611142600a546111d0565b61114c9190613fc3565b111561116a5760405162461bcd60e51b81526004016107e090613c07565b826040013542101561118e5760405162461bcd60e51b81526004016107e090613677565b600a546000908152600f6020908152604080832033845290915281208054600192906111bb908490613fc3565b90915550610a6590508261180e565b600d5481565b60009081526005602052604090205490565b6111ea611648565b6001600160a01b03166111fb610f51565b6001600160a01b0316146112215760405162461bcd60e51b81526004016107e090613bd2565b600e92909255600d55600b55565b611238826108e1565b61124481610a56611648565b610a658383611b86565b600b5481565b6009546040517fc45527910000000000000000000000000000000000000000000000000000000081526000916001600160a01b039081169190841690829063c4552791906112a69088906004016133c6565b60206040518083038186803b1580156112be57600080fd5b505afa1580156112d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f6919061318c565b6001600160a01b0316141561130f57600191505061080e565b61131984846120ee565b949350505050565b611329611648565b6001600160a01b0316856001600160a01b0316148061134f575061134f85610753611648565b61136b5760405162461bcd60e51b81526004016107e09061386a565b610a3a858585858561211c565b611380611648565b6001600160a01b0316611391610f51565b6001600160a01b0316146113b75760405162461bcd60e51b81526004016107e090613bd2565b6001600160a01b0381166113dd5760405162461bcd60e51b81526004016107e0906137b0565b61087e81611f1c565b6113ee611648565b6001600160a01b0316836001600160a01b03161480611414575061141483610753611648565b6114305760405162461bcd60e51b81526004016107e09061386a565b610a6583838361224b565b61144986868686868661158f565b6001600160a01b0385166114ec5760005b83518110156114ea5782818151811061148357634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106114af57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546114d49190613fc3565b909155506114e39050816140a7565b905061145a565b505b6001600160a01b03841661158f5760005b835181101561158d5782818151811061152657634e487b7160e01b600052603260045260246000fd5b60200260200101516005600086848151811061155257634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254611577919061400e565b909155506115869050816140a7565b90506114fd565b505b505050505050565b3b151590565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061081f57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000148061082e575061082e825b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061082e575061082e8261235e565b3390565b8051610af0906004906020840190612c74565b60606004805461166e9061406c565b80601f016020809104026020016040519081016040528092919081815260200182805461169a9061406c565b80156116e75780601f106116bc576101008083540402835291602001916116e7565b820191906000526020600020905b8154815290600101906020018083116116ca57829003601f168201915b50505050509050919050565b60608161171857506040805180820190915260018152600360fc1b6020820152610831565b8160005b8115611742578061172c816140a7565b915061173b9050600a83613fdb565b915061171c565b60008167ffffffffffffffff81111561176b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611795576020820181803683370190505b5090505b8415611319576117aa60018361400e565b91506117b7600a866140c2565b6117c2906030613fc3565b60f81b8183815181106117e557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611807600a86613fdb565b9450611799565b600b548161181c60006111d0565b6118269190613fc3565b11156118445760405162461bcd60e51b81526004016107e0906138c7565b600c546118519082613fef565b341461186f5760405162461bcd60e51b81526004016107e090613e57565b61188b3360008360405180602001604052806000815250611c77565b336001600160a01b031660007f7cfb504ca17ed613872a7f410dc34702087995bca0445a0418c4d1be951abc3f836040516118c691906134c7565b60405180910390a350565b81518351146118f25760405162461bcd60e51b81526004016107e090613d66565b6001600160a01b0384166119185760405162461bcd60e51b81526004016107e0906139e5565b6000611922611648565b9050611932818787878787612390565b60005b8451811015611a3757600085828151811061196057634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061198c57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526002835260408082206001600160a01b038e1683529093529190912054909150818110156119dd5760405162461bcd60e51b81526004016107e090613b75565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611a1c908490613fc3565b9250508190555050505080611a30906140a7565b9050611935565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611a8792919061348e565b60405180910390a461158f81878787878761239e565b611aa78282610fa4565b610af057611abf816001600160a01b031660146124ac565b611aca8360206124ac565b604051602001611adb929190613345565b60408051601f198184030181529082905262461bcd60e51b82526107e09160040161353e565b611b0b8282610fa4565b610af0576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611b42611648565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611b908282610fa4565b15610af0576000828152602081815260408083206001600160a01b03851684529091529020805460ff19169055611bc5611648565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b611c11610de8565b611c2d5760405162461bcd60e51b81526004016107e0906136ae565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611c60611648565b604051611c6d91906133c6565b60405180910390a1565b6001600160a01b038416611c9d5760405162461bcd60e51b81526004016107e090613dc3565b6000611ca7611648565b9050611cc881600087611cb988612687565b611cc288612687565b87612390565b60008481526002602090815260408083206001600160a01b038916845290915281208054859290611cfa908490613fc3565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611d51929190613f22565b60405180910390a4610a3a816000878787876126e0565b6001600160a01b038316611d8e5760405162461bcd60e51b81526004016107e090613b18565b8051825114611daf5760405162461bcd60e51b81526004016107e090613d66565b6000611db9611648565b9050611dd981856000868660405180602001604052806000815250612390565b60005b8351811015611ebd576000848281518110611e0757634e487b7160e01b600052603260045260246000fd5b602002602001015190506000848381518110611e3357634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526002835260408082206001600160a01b038c168352909352919091205490915081811015611e845760405162461bcd60e51b81526004016107e09061380d565b60009283526002602090815260408085206001600160a01b038b1686529091529092209103905580611eb5816140a7565b915050611ddc565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f0e92919061348e565b60405180910390a450505050565b600180546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611f8e610de8565b15611fab5760405162461bcd60e51b81526004016107e0906139ae565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c60611648565b610af08282611b01565b816001600160a01b0316836001600160a01b0316141561201d5760405162461bcd60e51b81526004016107e090613cac565b6001600160a01b0383811660008181526003602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906120819085906134bc565b60405180910390a3505050565b60008061209a836127b1565b90506120e7816120ad6060860186613f30565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061281c92505050565b9392505050565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166121425760405162461bcd60e51b81526004016107e0906139e5565b600061214c611648565b905061215d818787611cb988612687565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156121a05760405162461bcd60e51b81526004016107e090613b75565b60008581526002602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906121df908490613fc3565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612235929190613f22565b60405180910390a461158d8288888888886126e0565b6001600160a01b0383166122715760405162461bcd60e51b81526004016107e090613b18565b600061227b611648565b90506122ab8185600061228d87612687565b61229687612687565b60405180602001604052806000815250612390565b60008381526002602090815260408083206001600160a01b0388168452909152902054828110156122ee5760405162461bcd60e51b81526004016107e09061380d565b60008481526002602090815260408083206001600160a01b03808a16808652919093528184208786039055905190918516907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f629061234f9089908990613f22565b60405180910390a45050505050565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b61158f86868686868661143b565b6123b0846001600160a01b0316611597565b1561158f5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906123e990899089908890889088906004016133da565b602060405180830381600087803b15801561240357600080fd5b505af1925050508015612433575060408051601f3d908101601f1916820190925261243091810190613170565b60015b61247c5761243f61411e565b8061244a5750612464565b8060405162461bcd60e51b81526004016107e0919061353e565b60405162461bcd60e51b81526004016107e090613588565b6001600160e01b0319811663bc197c8160e01b1461158d5760405162461bcd60e51b81526004016107e09061361a565b606060006124bb836002613fef565b6124c6906002613fc3565b67ffffffffffffffff8111156124ec57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612516576020820181803683370190505b509050600360fc1b8160008151811061253f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061259857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006125bc846002613fef565b6125c7906001613fc3565b90505b6001811115612668577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061261657634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061263a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361266181614055565b90506125ca565b5083156120e75760405162461bcd60e51b81526004016107e0906135e5565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106126cf57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6126f2846001600160a01b0316611597565b1561158f5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061272b9089908990889088908890600401613438565b602060405180830381600087803b15801561274557600080fd5b505af1925050508015612775575060408051601f3d908101601f1916820190925261277291810190613170565b60015b6127815761243f61411e565b6001600160e01b0319811663f23a6e6160e01b1461158d5760405162461bcd60e51b81526004016107e09061361a565b600061082e7f3f275fccc8eae6c2a0844811e23a340ef4154c2e02c42659e2d5076e72dcff516127e46020850185612df0565b8460200135856040013560405160200161280194939291906134d0565b60405160208183030381529060405280519060200120612838565b600080600061282b858561284b565b91509150610d2d816128bb565b600061082e6128456129e8565b83612adf565b6000808251604114156128825760208301516040840151606085015160001a61287687828585612b12565b945094505050506128b4565b8251604014156128ac57602083015160408401516128a1868383612bf2565b9350935050506128b4565b506000905060025b9250929050565b60008160048111156128dd57634e487b7160e01b600052602160045260246000fd5b14156128e85761087e565b600181600481111561290a57634e487b7160e01b600052602160045260246000fd5b14156129285760405162461bcd60e51b81526004016107e090613551565b600281600481111561294a57634e487b7160e01b600052602160045260246000fd5b14156129685760405162461bcd60e51b81526004016107e0906136e5565b600381600481111561298a57634e487b7160e01b600052602160045260246000fd5b14156129a85760405162461bcd60e51b81526004016107e090613935565b60048160048111156129ca57634e487b7160e01b600052602160045260246000fd5b141561087e5760405162461bcd60e51b81526004016107e090613ad6565b6000306001600160a01b037f000000000000000000000000d50867235f581571aff942bb3433abcac6618d5416148015612a4157507f000000000000000000000000000000000000000000000000000000000000000146145b15612a6d57507f1b1730cf4da206979d483550541db303ccab09e4f757d4fa03d088dd76ae05b1610de5565b612ad87f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fe2c71ec89b6f3fcc4a5d3255095944c4525b57bbacc1bdb07e23423c528e067e7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6612c3a565b9050610de5565b60008282604051602001612af492919061330f565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b495750600090506003612be9565b8460ff16601b14158015612b6157508460ff16601c14155b15612b725750600090506004612be9565b600060018787878760405160008152602001604052604051612b979493929190613520565b6020604051602081039080840390855afa158015612bb9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612be257600060019250925050612be9565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01612c2c87828885612b12565b935093505050935093915050565b60008383834630604051602001612c559594939291906134f4565b6040516020818303038152906040528051906020012090509392505050565b828054612c809061406c565b90600052602060002090601f016020900481019282612ca25760008555612ce8565b82601f10612cbb57805160ff1916838001178555612ce8565b82800160010185558215612ce8579182015b82811115612ce8578251825591602001919060010190612ccd565b50612cf4929150612cf8565b5090565b5b80821115612cf45760008155600101612cf9565b600067ffffffffffffffff831115612d2757612d27614102565b612d3a601f8401601f1916602001613f75565b9050828152838383011115612d4e57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612d75578081fd5b81356020612d8a612d8583613f9f565b613f75565b8281528181019085830183850287018401881015612da6578586fd5b855b85811015612dc457813584529284019290840190600101612da8565b5090979650505050505050565b600082601f830112612de1578081fd5b6120e783833560208501612d0d565b600060208284031215612e01578081fd5b81356120e7816141c3565b60008060408385031215612e1e578081fd5b8235612e29816141c3565b91506020830135612e39816141c3565b809150509250929050565b600080600080600060a08688031215612e5b578081fd5b8535612e66816141c3565b94506020860135612e76816141c3565b9350604086013567ffffffffffffffff80821115612e92578283fd5b612e9e89838a01612d65565b94506060880135915080821115612eb3578283fd5b612ebf89838a01612d65565b93506080880135915080821115612ed4578283fd5b50612ee188828901612dd1565b9150509295509295909350565b600080600080600060a08688031215612f05578081fd5b8535612f10816141c3565b94506020860135612f20816141c3565b93506040860135925060608601359150608086013567ffffffffffffffff811115612f49578182fd5b612ee188828901612dd1565b600080600060608486031215612f69578283fd5b8335612f74816141c3565b9250602084013567ffffffffffffffff80821115612f90578384fd5b612f9c87838801612d65565b93506040860135915080821115612fb1578283fd5b50612fbe86828701612d65565b9150509250925092565b60008060408385031215612fda578182fd5b8235612fe5816141c3565b915060208301358015158114612e39578182fd5b6000806040838503121561300b578182fd5b8235613016816141c3565b946020939093013593505050565b600080600060608486031215613038578081fd5b8335613043816141c3565b95602085013595506040909401359392505050565b6000806040838503121561306a578182fd5b823567ffffffffffffffff80821115613081578384fd5b818501915085601f830112613094578384fd5b813560206130a4612d8583613f9f565b82815281810190858301838502870184018b10156130c0578889fd5b8896505b848710156130eb5780356130d7816141c3565b8352600196909601959183019183016130c4565b5096505086013592505080821115613101578283fd5b5061310e85828601612d65565b9150509250929050565b600060208284031215613129578081fd5b5035919050565b60008060408385031215613142578182fd5b823591506020830135612e39816141c3565b600060208284031215613165578081fd5b81356120e7816141d8565b600060208284031215613181578081fd5b81516120e7816141d8565b60006020828403121561319d578081fd5b81516120e7816141c3565b6000602082840312156131b9578081fd5b813567ffffffffffffffff8111156131cf578182fd5b8201601f810184136131df578182fd5b61131984823560208401612d0d565b60008060408385031215613200578182fd5b823567ffffffffffffffff811115613216578283fd5b830160808186031215613016578283fd5b60008060006060848603121561323b578081fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b8381101561328157815187529582019590820190600101613265565b509495945050505050565b600081518084526132a4816020860160208601614025565b601f01601f19169290920160200192915050565b600083516132ca818460208801614025565b8351908301906132de818360208801614025565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60007f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008252835161337d816017850160208801614025565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516133ba816028840160208801614025565b01602801949350505050565b6001600160a01b0391909116815260200190565b60006001600160a01b03808816835280871660208401525060a0604083015261340660a0830186613252565b82810360608401526134188186613252565b9050828103608084015261342c818561328c565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261347060a083018461328c565b979650505050505050565b6000602082526120e76020830184613252565b6000604082526134a16040830185613252565b82810360208401526134b38185613252565b95945050505050565b901515815260200190565b90815260200190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526120e7602083018461328c565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f696e76616c6964206d696e742074696d65000000000000000000000000000000604082015260600190565b60208082526014908201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526011908201527f7369676e617475726520696e76616c6964000000000000000000000000000000604082015260600190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f50757263686173653a204d617820737570706c79207265616368656400000000604082015260600190565b60208082526018908201527f65786365656473206d6178206e667473207065722074786e0000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252600f908201527f696e76616c696420766f75636865720000000000000000000000000000000000604082015260600190565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b60208082526012908201527f7075626c6963206d696e7420636c6f7365640000000000000000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600f908201527f737570706c792065786365656465640000000000000000000000000000000000604082015260600190565b60208082526016908201527f5552493a206e6f6e6578697374656e7420746f6b656e00000000000000000000604082015260600190565b60208082526012908201527f4d617820737570706c7920726561636865640000000000000000000000000000604082015260600190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526012908201527f696e76616c6964206d696e7420636f756e740000000000000000000000000000604082015260600190565b6020808252601b908201527f50757263686173653a20496e636f7272656374207061796d656e740000000000604082015260600190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201527f20726f6c657320666f722073656c660000000000000000000000000000000000606082015260800190565b60208082526011908201527f77616c6c6574206d696e74206c696d6974000000000000000000000000000000604082015260600190565b918252602082015260400190565b6000808335601e19843603018112613f46578283fd5b83018035915067ffffffffffffffff821115613f60578283fd5b6020019150368190038213156128b457600080fd5b60405181810167ffffffffffffffff81118282101715613f9757613f97614102565b604052919050565b600067ffffffffffffffff821115613fb957613fb9614102565b5060209081020190565b60008219821115613fd657613fd66140d6565b500190565b600082613fea57613fea6140ec565b500490565b6000816000190483118215151615614009576140096140d6565b500290565b600082821015614020576140206140d6565b500390565b60005b83811015614040578181015183820152602001614028565b8381111561404f576000848401525b50505050565b600081614064576140646140d6565b506000190190565b60028104600182168061408057607f821691505b602082108114156140a157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140bb576140bb6140d6565b5060010190565b6000826140d1576140d16140ec565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60e01c90565b600060443d101561412e57610de5565b600481823e6308c379a06141428251614118565b1461414c57610de5565b6040513d600319016004823e80513d67ffffffffffffffff816024840111818411171561417c5750505050610de5565b828401925082519150808211156141965750505050610de5565b503d830160208284010111156141ae57505050610de5565b601f01601f1916810160200160405291505090565b6001600160a01b038116811461087e57600080fd5b6001600160e01b03198116811461087e57600080fdfea2646970667358221220f0900498af890cad8ac702ee9d5002be2ebee9cb63d79fc9b8217a611b1feaea64736f6c63430008000033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000006506f7274616c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045052544c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d544c626f4833686568477441754d4377704846655a435a6e7975776e7841364a6b51514c5a42534e476a35702f00000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Portal
Arg [1] : _symbol (string): PRTL
Arg [2] : _uri (string): ipfs://QmTLboH3hehGtAuMCwpHFeZCZnyuwnxA6JkQQLZBSNGj5p/

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [4] : 506f7274616c0000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 5052544c00000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [8] : 697066733a2f2f516d544c626f4833686568477441754d4377704846655a435a
Arg [9] : 6e7975776e7841364a6b51514c5a42534e476a35702f00000000000000000000


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.