ETH Price: $3,408.64 (-0.71%)
Gas: 6.41 Gwei

Token

TMC Membership Card (TMCMC)
 

Overview

Max Total Supply

400 TMCMC

Holders

203

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
cikei.eth
0xe4d29d690e2d154f876f92c1b8cffc2c7b4c109c
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:
TMCMembershipCard

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : TMCMembershipCard.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import './AbstractERC1155Factory.sol';

/**
 * @title ERC1155 tokens for The Meta Charity Membership Card
 *
 * @dev struct allows gas optimization for different configs for each Card
 * This contract allows user to mint different membership card for TMC
 * Each card has its own config which sets max number of tokens, max per tx, state of each card
 * Defined 2 methods for each card which makes OG and Public minting
 * @author heet_v
 */
contract TMCMembershipCard is AbstractERC1155Factory {

    struct StandardConfig { 
        uint64 tokenPrice;
        uint32 maxTokens;
        bool isPreSaleActive;
        bool isPublicSaleActive;
        uint32 maxPerWallet;
    }

    struct EpicConfig { 
        uint64 tokenPrice;
        uint32 maxTokens;
        bool isPreSaleActive;
        bool isPublicSaleActive;
        uint32 maxPerWallet;
    }

    struct LegendaryConfig { 
        uint64 tokenPrice;
        uint32 maxTokens;
        bool isPreSaleActive;
        bool isPublicSaleActive;
        uint32 maxPerWallet;
    }

    // initialize structs with default values
    StandardConfig public standardConfig;
    EpicConfig public epicConfig;
    LegendaryConfig public legendaryConfig;

    // Token id's for each card
    // Provides easy readability for various operations
    uint256 public constant TOKEN_ID_STANDARD = 1;
    uint256 public constant TOKEN_ID_EPIC = 2;
    uint256 public constant TOKEN_ID_LEGENDARY = 3;

    // Merkle root
    bytes32 public merkleRoot;

    // map of metadata URI for each token 
    mapping (uint256 => string) public tokenURI;

    // Used to ensure each token id can only be minted as set by maxPerWallet for each card.
    mapping(address => uint256) public purchaseTxsStandard;
    mapping(address => uint256) public purchaseTxsEpic;
    mapping (address => uint256) public purchaseTxsLegendary;
    
    constructor(
        string memory uriBase,
        string memory uriStandard,
        string memory uriEpic,
        string memory uriLegendary,
        string memory _name,
        string memory _symbol
    ) ERC1155(uriBase) {
        name_ = _name;
        symbol_ = _symbol;

        tokenURI[TOKEN_ID_STANDARD] = uriStandard;
        tokenURI[TOKEN_ID_EPIC] = uriEpic;
        tokenURI[TOKEN_ID_LEGENDARY] = uriLegendary;
    }

    // Modifiers
    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    /**
      * @notice Set the config for Standard Card
      *
      * @param _tokenPrice - price of each token
      * @param _maxTokens - max number of tokens in given card
      * @param _maxPerWallet - max allowed per wallet
      */
    function setStandardConfig(
        uint64 _tokenPrice,
        uint32 _maxTokens,
        uint32 _maxPerWallet
    ) external onlyOwner {
        standardConfig = StandardConfig(
            _tokenPrice,
            _maxTokens,
            standardConfig.isPreSaleActive,
            standardConfig.isPublicSaleActive,
            _maxPerWallet
        );
    }

    /**
      * @notice Set the config for Epic Card
      *
      * @param _tokenPrice - price of each token
      * @param _maxTokens - max number of tokens in given card
      * @param _maxPerWallet - max allowed per wallet
      */
    function setEpicConfig(
        uint64 _tokenPrice,
        uint32 _maxTokens,
        uint32 _maxPerWallet
    ) external onlyOwner {
        epicConfig = EpicConfig(
            _tokenPrice,
            _maxTokens,
            epicConfig.isPublicSaleActive,
            epicConfig.isPreSaleActive,
            _maxPerWallet
        );
    }

    /**
      * @notice Set the config for Legendary Card
      *
      * @param _tokenPrice - price of each token
      * @param _maxTokens - max number of tokens in given card
      * @param _maxPerWallet - max allowed per wallet
      */
    function setLegendaryConfig(
        uint64 _tokenPrice,
        uint32 _maxTokens,
        uint32 _maxPerWallet
    ) external onlyOwner {
        legendaryConfig = LegendaryConfig(
            _tokenPrice,
            _maxTokens,
            legendaryConfig.isPublicSaleActive,
            legendaryConfig.isPreSaleActive,
            _maxPerWallet
        );
    }

    /**
      * @notice edit the merkle root for early access sale
      *
      * @param _merkleRoot the new merkle root
      */
    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    /**
      * @notice returns the metadata uri for a given id
      *
      * @param _tokenId tokenid of the card to get URI
      * @return tokenURI custom URI for given token id, if not set returns the base URI
      */
    function uri(uint256 _tokenId) public view override returns (string memory) {
        // If no URI exists for the specific id requested, fallback to the default ERC-1155 URI.
        if (bytes(tokenURI[_tokenId]).length == 0) {
            return super.uri(_tokenId);
        }
        return tokenURI[_tokenId];
    }

    /**
      * @notice Set/Update URI for given token id
      *
      * @param newTokenURI new uri of the token to be updated
      * @param _tokenId token id of the card to update URI
      */
    function setURI(string memory newTokenURI, uint256 _tokenId) external onlyOwner {
        tokenURI[_tokenId] = newTokenURI;
    }

    /**
      * @notice Set the global default ERC-1155 base URI to be used for any tokens without unique URIs
      *
      * @param newTokenURI the new base URI
      */
    function setGlobalURI(string memory newTokenURI) external onlyOwner {
        _setURI(newTokenURI);
    }

    /**
      * @notice Set Standard Public Sale state to true or false to make sale as active or inactive
      *
      * @param _isPublicSaleActive new sale state for Standard Card
      */
    function setStandardPublicSaleState(bool _isPublicSaleActive) external onlyOwner {
        require(standardConfig.isPublicSaleActive != _isPublicSaleActive, "New state is identical to current state");
        standardConfig.isPublicSaleActive = _isPublicSaleActive;
    }

    /**
      * @notice Set Standard Pre-Sale state to true or false to make sale as active or inactive
      *
      * @param _isPreSaleActive new pre-sale state for Standard Card
      */
    function setStandardPreSaleState(bool _isPreSaleActive) external onlyOwner {
        require(standardConfig.isPreSaleActive != _isPreSaleActive, "New state is identical to current state");
        standardConfig.isPreSaleActive = _isPreSaleActive;
    }

    /**
      * @notice Set Epic Public Sale state to true or false to make sale as active or inactive
      *
      * @param _isPublicSaleActive new sale state for Epic Card
      */
    function setEpicPublicSaleState(bool _isPublicSaleActive) external onlyOwner {
        require(epicConfig.isPublicSaleActive != _isPublicSaleActive, "New state is identical to current state");
        epicConfig.isPublicSaleActive = _isPublicSaleActive;
    }

    /**
      * @notice Set Epic Pre-Sale state to true or false to make sale as active or inactive
      *
      * @param _isPreSaleActive new pre-sale state for Epic Card
      */
    function setEpicPreSaleState(bool _isPreSaleActive) external onlyOwner {
        require(epicConfig.isPreSaleActive != _isPreSaleActive, "New state is identical to current state");
        epicConfig.isPreSaleActive = _isPreSaleActive;
    }

    /**
      * @notice Set Legendary Public Sale state to true or false to make sale as active or inactive
      *
      * @param _isPublicSaleActive new sale state for Legendary Card
      */
    function setLegendaryPublicSaleState(bool _isPublicSaleActive) external onlyOwner {
        require(legendaryConfig.isPublicSaleActive != _isPublicSaleActive, "New state is identical to current state");
        legendaryConfig.isPublicSaleActive = _isPublicSaleActive;
    }

    /**
      * @notice Set Legendary Pre-Sale state to true or false to make sale as active or inactive
      *
      * @param _isPreSaleActive new pre-sale state for Legendary Card
      */
    function setLegendaryPreSaleState(bool _isPreSaleActive) external onlyOwner {
        require(legendaryConfig.isPreSaleActive != _isPreSaleActive, "New state is identical to current state");
        legendaryConfig.isPreSaleActive = _isPreSaleActive;
    }

    /**
      * @notice allows users to purchase Standard membership card during early access sale
      *
      * @param numberOfTokens the amount of cards to purchase
      * @param merkleProof the valid merkle proof of sender to check early access eligibility
      */
    function ogStandardMint(
        uint256 numberOfTokens,
        bytes32[] calldata merkleProof
    ) external payable callerIsUser whenNotPaused {
        // Check if sale/pre-sale is active
        require(standardConfig.isPreSaleActive, "Pre Sale is not active");

        // check max per wallet is not exceeded
        uint256 maxPerWallet = uint256(standardConfig.maxPerWallet);
        require(numberOfTokens > 0 && numberOfTokens <= maxPerWallet, "Purchase amount prohibited");
        require(purchaseTxsStandard[msg.sender] + numberOfTokens <= maxPerWallet , "Minting amount exceeds max allowed per wallet");

        // Check if max supply reached
        require(totalSupply(TOKEN_ID_STANDARD) + numberOfTokens <= uint256(standardConfig.maxTokens), "Supply reached max tokens");

        // Check sent proof is part of the merkle tree
        bytes32 leafNode = keccak256(abi.encodePacked(msg.sender));
        require(
            MerkleProof.verify(merkleProof, merkleRoot, leafNode),
            "Invalid Proof"
        );

        _mint(msg.sender, TOKEN_ID_STANDARD, numberOfTokens, "");

        // update mapping to set wallet address has minted given number of tokens
        purchaseTxsStandard[msg.sender] += numberOfTokens;
    }

    /**
      * @notice allows users to purchase Standard membership card during public sale
      *
      * @param numberOfTokens the amount of cards to purchase
      */
    function publicStandardMint(uint256 numberOfTokens) external payable callerIsUser whenNotPaused {
        // Check if sale/pre-sale is active
        require(standardConfig.isPublicSaleActive, "Public Sale is not active");

        // check max per wallet is not exceeded
        uint256 maxPerWallet = uint256(standardConfig.maxPerWallet);
        require(numberOfTokens > 0 && numberOfTokens <= maxPerWallet, "Number of tokens prohibited");
        require(purchaseTxsStandard[msg.sender] + numberOfTokens <= maxPerWallet , "Number of tokens exceeds max allowed per wallet");

        // Check if max supply reached
        require(totalSupply(TOKEN_ID_STANDARD) + numberOfTokens <= uint256(standardConfig.maxTokens), "Supply reached max tokens");

        _mint(msg.sender, TOKEN_ID_STANDARD, numberOfTokens, "");

        // update mapping to set wallet address has minted given number of tokens
        purchaseTxsStandard[msg.sender] += numberOfTokens;
    }

    /**
      * @notice allows users to purchase Epic membership card during early access sale
      *
      * @param numberOfTokens the amount of cards to purchase
      * @param merkleProof the valid merkle proof of sender to check early access eligibility
      */
    function ogEpicMint(
        uint256 numberOfTokens,
        bytes32[] calldata merkleProof
    ) external payable callerIsUser whenNotPaused {
        // Check if sale/pre-sale is active
        require(epicConfig.isPreSaleActive, "Pre Sale is not active");

        // Check correct price is sent
        require(msg.value == numberOfTokens * uint256(epicConfig.tokenPrice), "Sent price is not correct");
        
        // check max per wallet is not exceeded
        uint256 maxPerWallet = uint256(epicConfig.maxPerWallet);
        require(numberOfTokens > 0 && numberOfTokens <= maxPerWallet, "Purchase amount prohibited");
        require(purchaseTxsEpic[msg.sender] + numberOfTokens <= maxPerWallet , "Minting amount exceeds max allowed per wallet");

        // Check if max supply reached
        require(totalSupply(TOKEN_ID_EPIC) + numberOfTokens <= uint256(epicConfig.maxTokens), "Supply reached max tokens");

        // Check sent proof is part of the merkle tree
        bytes32 leafNode = keccak256(abi.encodePacked(msg.sender));
        require(
            MerkleProof.verify(merkleProof, merkleRoot, leafNode),
            "Invalid Pro"
        );

        _mint(msg.sender, TOKEN_ID_EPIC, numberOfTokens, "");

        // update mapping to set wallet address has minted given number of tokens
        purchaseTxsEpic[msg.sender] += numberOfTokens;
    }

    /**
      * @notice allows users to purchase Epic membership card during public sale
      *
      * @param numberOfTokens the amount of cards to purchase
      */
    function publicEpicMint(uint256 numberOfTokens) external payable callerIsUser whenNotPaused {
        // Check if sale/pre-sale is active
        require(epicConfig.isPublicSaleActive, "Public Sale is not active");

        // Check correct price is sent
        require(msg.value == numberOfTokens * uint256(epicConfig.tokenPrice), "Sent price is not correct");

        // check max per wallet is not exceeded
        uint256 maxPerWallet = uint256(epicConfig.maxPerWallet);
        require(numberOfTokens > 0 && numberOfTokens <= maxPerWallet, "Number of tokens prohibited");
        require(purchaseTxsEpic[msg.sender] + numberOfTokens <= maxPerWallet , "Number of tokens exceeds max allowed per wallet");

        // Check if max supply reached
        require(totalSupply(TOKEN_ID_EPIC) + numberOfTokens <= uint256(epicConfig.maxTokens), "Supply reached max tokens");

        _mint(msg.sender, TOKEN_ID_EPIC, numberOfTokens, "");

        // update mapping to set wallet address has minted given number of tokens
        purchaseTxsEpic[msg.sender] += numberOfTokens;
    }

    /**
      * @notice purchase cards during early access sale
      *
      * @param numberOfTokens the amount of cards to purchase
      * @param merkleProof the valid merkle proof of sender
      */
    function ogLegendaryMint(
        uint256 numberOfTokens,
        bytes32[] calldata merkleProof
    ) external payable callerIsUser whenNotPaused {
        // Check if sale/pre-sale is active
        require(legendaryConfig.isPreSaleActive, "Pre Sale is not active");

        // Check correct price is sent
        require(msg.value == numberOfTokens * uint256(legendaryConfig.tokenPrice), "Sent price is not correct");
        
        // check max per wallet is not exceeded
        uint256 maxPerWallet = uint256(legendaryConfig.maxPerWallet);
        require(numberOfTokens > 0 && numberOfTokens <= maxPerWallet, "Purchase amount prohibited");
        require(purchaseTxsLegendary[msg.sender] + numberOfTokens <= maxPerWallet , "Minting amount exceeds max allowed per wallet");

        // Check if max supply reached
        require(totalSupply(TOKEN_ID_LEGENDARY) + numberOfTokens <= uint256(legendaryConfig.maxTokens), "Supply reached max tokens");

        // Check sent proof is part of the merkle tree
        bytes32 leafNode = keccak256(abi.encodePacked(msg.sender));
        require(
            MerkleProof.verify(merkleProof, merkleRoot, leafNode),
            "Invalid Pro"
        );

        _mint(msg.sender, TOKEN_ID_LEGENDARY, numberOfTokens, "");

        // update mapping to set wallet address has minted given number of tokens
        purchaseTxsLegendary[msg.sender] += numberOfTokens;
    }

    /**
      * @notice allows users to purchase Legendary membership card during public sale
      *
      * @param numberOfTokens the amount of cards to purchase
      */
    function publicLegendaryMint(uint256 numberOfTokens) external payable callerIsUser whenNotPaused {
       // Check if sale/pre-sale is active
        require(legendaryConfig.isPublicSaleActive, "Public Sale is not active");

        // Check correct price is sent
        require(msg.value == numberOfTokens * uint256(legendaryConfig.tokenPrice), "Sent price is not correct");

        // check max per wallet is not exceeded
        uint256 maxPerWallet = uint256(legendaryConfig.maxPerWallet);
        require(numberOfTokens > 0 && numberOfTokens <= maxPerWallet, "Number of tokens prohibited");
        require(purchaseTxsLegendary[msg.sender] + numberOfTokens <= maxPerWallet , "Number of tokens exceeds max allowed per wallet");

        // Check if max supply reached
        require(totalSupply(TOKEN_ID_LEGENDARY) + numberOfTokens <= uint256(legendaryConfig.maxTokens), "Supply reached max tokens");

        _mint(msg.sender, TOKEN_ID_LEGENDARY, numberOfTokens, "");

        // update mapping to set wallet address has minted given number of tokens
        purchaseTxsLegendary[msg.sender] += numberOfTokens;
    }

    /**
      * @notice Allow minting of any new future tokens if needed as part of the same collection,
      * which can then be transferred to another contract for distribution purposes
      *
      * @param account which address to mint to
      * @param _tokenId new token id to create
      * @param numberOfTokens number of tokens to mint
      */
    function futureMint(address account, uint256 _tokenId, uint256 numberOfTokens) external onlyOwner
    {
        require(_tokenId != TOKEN_ID_STANDARD && _tokenId != TOKEN_ID_EPIC && _tokenId != TOKEN_ID_LEGENDARY, "Existing token ID prohibited");
        _mint(account, _tokenId, numberOfTokens, "");
    }

    /**
      * @notice Allow minting of tokens for the giveaways by owner
      * This function doesnt have any checks applied as it is only called by the owner saves gas
      *
      * @param account which address to mint to
      * @param _tokenId new token id to create
      * @param numberOfTokens number of tokens to mint
      */
    function giveawayMint(address account, uint256 _tokenId, uint256 numberOfTokens) external onlyOwner {
        _mint(account, _tokenId, numberOfTokens, "");
    }

    /**
      * @notice Override ERC1155 such that zero amount token transfers are disallowed to prevent arbitrary creation of new tokens in the collection.
      * @dev overrided _beforeTokenTransfer(added in abstract contract file) to prevent transfer of token when contract is paused, in emergency cases
      *
      * @param from address of sender
      * @param to address of receiver
      * @param _tokenID token id
      * @param numberOfTokens number of tokens to transfer
      * @param data data
      */
    function safeTransferFrom(
        address from,
        address to,
        uint256 _tokenID,
        uint256 numberOfTokens,
        bytes memory data
    ) public override {
        require(numberOfTokens > 0, "Number of tokens must be greater than 0");
        return super.safeTransferFrom(from, to, _tokenID, numberOfTokens, data);
    }

    /**
      * @notice withdraw funds from the contract to owner
      */
    function withdraw() external onlyOwner {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    /**
      * @notice withdraw funds from the contract to given wallet address
      * Allows owner to distribute fund to different charity wallets
      *
      * @param to_ withdraw amount to
      */
    function withdrawTo(address payable to_) external onlyOwner {
        (bool success, ) = payable(to_).call{value: address(this).balance}("");
        require(success, "Transfer failed");
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 3 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 16 : 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 5 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 6 of 16 : AbstractERC1155Factory.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';

abstract contract AbstractERC1155Factory is Pausable, ERC1155Supply, Ownable {

    string name_;
    string symbol_;   

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

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

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

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

    /**
     * @notice When the contract is paused, all token transfers are prevented in case of emergency.
     */
    function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data)
        internal
        whenNotPaused
        override
    {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

}

File 7 of 16 : 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 8 of 16 : 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);
    }
}

File 9 of 16 : 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 16 : 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 11 of 16 : 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 12 of 16 : 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 13 of 16 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: 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.
     *
     * NOTE: 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 14 of 16 : 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 15 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 16 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"uriBase","type":"string"},{"internalType":"string","name":"uriStandard","type":"string"},{"internalType":"string","name":"uriEpic","type":"string"},{"internalType":"string","name":"uriLegendary","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"TOKEN_ID_EPIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_ID_LEGENDARY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_ID_STANDARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epicConfig","outputs":[{"internalType":"uint64","name":"tokenPrice","type":"uint64"},{"internalType":"uint32","name":"maxTokens","type":"uint32"},{"internalType":"bool","name":"isPreSaleActive","type":"bool"},{"internalType":"bool","name":"isPublicSaleActive","type":"bool"},{"internalType":"uint32","name":"maxPerWallet","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"futureMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"giveawayMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"legendaryConfig","outputs":[{"internalType":"uint64","name":"tokenPrice","type":"uint64"},{"internalType":"uint32","name":"maxTokens","type":"uint32"},{"internalType":"bool","name":"isPreSaleActive","type":"bool"},{"internalType":"bool","name":"isPublicSaleActive","type":"bool"},{"internalType":"uint32","name":"maxPerWallet","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"ogEpicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"ogLegendaryMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"ogStandardMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"publicEpicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"publicLegendaryMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"publicStandardMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchaseTxsEpic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchaseTxsLegendary","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchaseTxsStandard","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"uint256","name":"numberOfTokens","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":"uint64","name":"_tokenPrice","type":"uint64"},{"internalType":"uint32","name":"_maxTokens","type":"uint32"},{"internalType":"uint32","name":"_maxPerWallet","type":"uint32"}],"name":"setEpicConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPreSaleActive","type":"bool"}],"name":"setEpicPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicSaleActive","type":"bool"}],"name":"setEpicPublicSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTokenURI","type":"string"}],"name":"setGlobalURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenPrice","type":"uint64"},{"internalType":"uint32","name":"_maxTokens","type":"uint32"},{"internalType":"uint32","name":"_maxPerWallet","type":"uint32"}],"name":"setLegendaryConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPreSaleActive","type":"bool"}],"name":"setLegendaryPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicSaleActive","type":"bool"}],"name":"setLegendaryPublicSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenPrice","type":"uint64"},{"internalType":"uint32","name":"_maxTokens","type":"uint32"},{"internalType":"uint32","name":"_maxPerWallet","type":"uint32"}],"name":"setStandardConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPreSaleActive","type":"bool"}],"name":"setStandardPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicSaleActive","type":"bool"}],"name":"setStandardPublicSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newTokenURI","type":"string"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"standardConfig","outputs":[{"internalType":"uint64","name":"tokenPrice","type":"uint64"},{"internalType":"uint32","name":"maxTokens","type":"uint32"},{"internalType":"bool","name":"isPreSaleActive","type":"bool"},{"internalType":"bool","name":"isPublicSaleActive","type":"bool"},{"internalType":"uint32","name":"maxPerWallet","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to_","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620041fd380380620041fd83398101604081905262000034916200032c565b6000805460ff19169055856200004a816200014e565b50620000563362000167565b81516200006b906006906020850190620001b9565b50805162000081906007906020840190620001b9565b506001600052600c60209081528551620000c1917fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c9190880190620001b9565b506002600052600c6020908152845162000101917f5d6016397a73f5e079297ac5a36fef17b4d9c3831618e63ab105738020ddd7209190870190620001b9565b506003600052600c6020908152835162000141917fc0da782485e77ae272268ae0a3ff44c1552ecb60b3743924de17a815e0a3cfd79190860190620001b9565b5050505050505062000470565b805162000163906003906020840190620001b9565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001c79062000433565b90600052602060002090601f016020900481019282620001eb576000855562000236565b82601f106200020657805160ff191683800117855562000236565b8280016001018555821562000236579182015b828111156200023657825182559160200191906001019062000219565b506200024492915062000248565b5090565b5b8082111562000244576000815560010162000249565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200028757600080fd5b81516001600160401b0380821115620002a457620002a46200025f565b604051601f8301601f19908116603f01168101908282118183101715620002cf57620002cf6200025f565b81604052838152602092508683858801011115620002ec57600080fd5b600091505b83821015620003105785820183015181830184015290820190620002f1565b83821115620003225760008385830101525b9695505050505050565b60008060008060008060c087890312156200034657600080fd5b86516001600160401b03808211156200035e57600080fd5b6200036c8a838b0162000275565b975060208901519150808211156200038357600080fd5b620003918a838b0162000275565b96506040890151915080821115620003a857600080fd5b620003b68a838b0162000275565b95506060890151915080821115620003cd57600080fd5b620003db8a838b0162000275565b94506080890151915080821115620003f257600080fd5b620004008a838b0162000275565b935060a08901519150808211156200041757600080fd5b506200042689828a0162000275565b9150509295509295509295565b600181811c908216806200044857607f821691505b602082108114156200046a57634e487b7160e01b600052602260045260246000fd5b50919050565b613d7d80620004806000396000f3fe6080604052600436106102e35760003560e01c806377bef46511610190578063bd85b039116100dc578063c9baf06011610095578063e985e9c51161006f578063e985e9c51461095c578063e9a41526146109a5578063f242432a146109c5578063f2fde38b146109e557600080fd5b8063c9baf06014610914578063ca4d086814610927578063e93f1f541461094757600080fd5b8063bd85b03914610854578063be268c2514610881578063c15d0e21146108a1578063c488b449146108c1578063c80f4723146108d4578063c87b56dd146108f457600080fd5b8063a30b66ca11610149578063a97addd411610123578063a97addd41461078a578063b51cd27c146107da578063b53452f6146107fa578063b809a6c41461082757600080fd5b8063a30b66ca14610742578063a700326c14610755578063a7c5ef4a1461076a57600080fd5b806377bef465146106905780637cb64759146106b05780638456cb59146106d05780638da5cb5b146106e557806395d89b411461070d578063a22cb4651461072257600080fd5b80633ccfd60b1161024f5780634f854cc1116102085780635c975abb116101e25780635c975abb1461062357806367db3b8f1461063b578063715018a61461065b57806372b0d90c1461067057600080fd5b80634f854cc1146105d057806353abfa9b146105f057806359c19bc21461061057600080fd5b80633ccfd60b146104da5780633f4ba83a146104ef57806341800f24146105045780634ae1d294146105545780634e1273f4146105745780634f558e79146105a157600080fd5b80630e89341c116102a15780630e89341c146103cf5780631045ce16146103ef57806320f95c111461047c5780632a6b3d271461048f5780632eb2c2d6146104a45780632eb4a7ab146104c457600080fd5b8062fdd58e146102e857806301ffc9a71461031b57806306fdde031461034b578063073743481461036d57806307ffeb841461039a57806309ed3cd4146103bc575b600080fd5b3480156102f457600080fd5b506103086103033660046130a7565b610a05565b6040519081526020015b60405180910390f35b34801561032757600080fd5b5061033b6103363660046130e9565b610a9e565b6040519015158152602001610312565b34801561035757600080fd5b50610360610af0565b604051610312919061315a565b34801561037957600080fd5b5061030861038836600461316d565b600d6020526000908152604090205481565b3480156103a657600080fd5b506103ba6103b53660046131a3565b610b82565b005b6103ba6103ca3660046131f4565b610c59565b3480156103db57600080fd5b506103606103ea3660046131f4565b610de6565b3480156103fb57600080fd5b50600a5461043f906001600160401b0381169063ffffffff600160401b820481169160ff600160601b8204811692600160681b830490911691600160701b90041685565b604080516001600160401b03909616865263ffffffff9485166020870152921515928501929092521515606084015216608082015260a001610312565b6103ba61048a36600461320d565b610eb2565b34801561049b57600080fd5b50610308600381565b3480156104b057600080fd5b506103ba6104bf3660046133d4565b6110f3565b3480156104d057600080fd5b50610308600b5481565b3480156104e657600080fd5b506103ba61118a565b3480156104fb57600080fd5b506103ba611242565b34801561051057600080fd5b5060095461043f906001600160401b0381169063ffffffff600160401b820481169160ff600160601b8204811692600160681b830490911691600160701b90041685565b34801561056057600080fd5b506103ba61056f366004613491565b611276565b34801561058057600080fd5b5061059461058f3660046134ac565b6112ef565b60405161031291906135b3565b3480156105ad57600080fd5b5061033b6105bc3660046131f4565b600090815260046020526040902054151590565b3480156105dc57600080fd5b506103ba6105eb3660046135c6565b611418565b3480156105fc57600080fd5b506103ba61060b366004613491565b611462565b6103ba61061e36600461320d565b6114db565b34801561062f57600080fd5b5060005460ff1661033b565b34801561064757600080fd5b506103ba6106563660046135fb565b611742565b34801561066757600080fd5b506103ba61178b565b34801561067c57600080fd5b506103ba61068b36600461316d565b6117bf565b34801561069c57600080fd5b506103ba6106ab366004613491565b611882565b3480156106bc57600080fd5b506103ba6106cb3660046131f4565b6118fb565b3480156106dc57600080fd5b506103ba61192a565b3480156106f157600080fd5b506005546040516001600160a01b039091168152602001610312565b34801561071957600080fd5b5061036061195c565b34801561072e57600080fd5b506103ba61073d36600461363f565b61196b565b6103ba6107503660046131f4565b611976565b34801561076157600080fd5b50610308600181565b34801561077657600080fd5b506103ba6107853660046131a3565b611b2e565b34801561079657600080fd5b5060085461043f906001600160401b0381169063ffffffff600160401b820481169160ff600160601b8204811692600160681b830490911691600160701b90041685565b3480156107e657600080fd5b506103ba6107f53660046135c6565b611c0a565b34801561080657600080fd5b5061030861081536600461316d565b600e6020526000908152604090205481565b34801561083357600080fd5b5061030861084236600461316d565b600f6020526000908152604090205481565b34801561086057600080fd5b5061030861086f3660046131f4565b60009081526004602052604090205490565b34801561088d57600080fd5b506103ba61089c366004613491565b611c9f565b3480156108ad57600080fd5b506103ba6108bc366004613674565b611d18565b6103ba6108cf3660046131f4565b611d4b565b3480156108e057600080fd5b506103ba6108ef366004613491565b611f03565b34801561090057600080fd5b5061036061090f3660046131f4565b611f7c565b6103ba61092236600461320d565b612016565b34801561093357600080fd5b506103ba610942366004613491565b61227d565b34801561095357600080fd5b50610308600281565b34801561096857600080fd5b5061033b6109773660046136b0565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b3480156109b157600080fd5b506103ba6109c03660046131a3565b6122f6565b3480156109d157600080fd5b506103ba6109e03660046136e9565b6123cd565b3480156109f157600080fd5b506103ba610a0036600461316d565b61243a565b60006001600160a01b038316610a765760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610acf57506001600160e01b031982166303a24d0760e21b145b80610aea57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060068054610aff90613751565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2b90613751565b8015610b785780601f10610b4d57610100808354040283529160200191610b78565b820191906000526020600020905b815481529060010190602001808311610b5b57829003601f168201915b5050505050905090565b6005546001600160a01b03163314610bac5760405162461bcd60e51b8152600401610a6d9061378c565b6040805160a0810182526001600160401b0390941680855263ffffffff938416602086018190526009805460ff600160681b80830482161515968a01879052600160601b808404909216151560608b01819052979098166080909901899052600160701b90980263ffffffff60701b199690970260ff60681b19989095029790971661ffff60601b19600160401b9093026001600160601b03199098169093179690961716171716179055565b323314610c785760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff1615610c9b5760405162461bcd60e51b8152600401610a6d906137f8565b600854600160681b900460ff16610cc45760405162461bcd60e51b8152600401610a6d90613822565b600854600160701b900463ffffffff168115801590610ce35750808211155b610cff5760405162461bcd60e51b8152600401610a6d90613859565b336000908152600d60205260409020548190610d1c9084906138a6565b1115610d3a5760405162461bcd60e51b8152600401610a6d906138be565b600854600160005260046020527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0554600160401b90910463ffffffff16908390610d8491906138a6565b1115610da25760405162461bcd60e51b8152600401610a6d9061390d565b610dbe33600184604051806020016040528060008152506124d2565b336000908152600d602052604081208054849290610ddd9084906138a6565b90915550505050565b6000818152600c60205260409020805460609190610e0390613751565b15159050610e1457610aea826125e4565b6000828152600c602052604090208054610e2d90613751565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5990613751565b8015610ea65780601f10610e7b57610100808354040283529160200191610ea6565b820191906000526020600020905b815481529060010190602001808311610e8957829003601f168201915b50505050509050919050565b323314610ed15760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff1615610ef45760405162461bcd60e51b8152600401610a6d906137f8565b600854600160601b900460ff16610f1d5760405162461bcd60e51b8152600401610a6d90613944565b600854600160701b900463ffffffff168315801590610f3c5750808411155b610f585760405162461bcd60e51b8152600401610a6d90613974565b336000908152600d60205260409020548190610f759086906138a6565b1115610f935760405162461bcd60e51b8152600401610a6d906139ab565b600854600160005260046020527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0554600160401b90910463ffffffff16908590610fdd91906138a6565b1115610ffb5760405162461bcd60e51b8152600401610a6d9061390d565b6040516001600160601b03193360601b16602082015260009060340160405160208183030381529060405280519060200120905061107084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b5491508490506125f3565b6110ac5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210283937b7b360991b6044820152606401610a6d565b6110c833600187604051806020016040528060008152506124d2565b336000908152600d6020526040812080548792906110e79084906138a6565b90915550505050505050565b6001600160a01b03851633148061110f575061110f8533610977565b6111765760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a6d565b6111838585858585612609565b5050505050565b6005546001600160a01b031633146111b45760405162461bcd60e51b8152600401610a6d9061378c565b604051600090339047908381818185875af1925050503d80600081146111f6576040519150601f19603f3d011682016040523d82523d6000602084013e6111fb565b606091505b505090508061123f5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610a6d565b50565b6005546001600160a01b0316331461126c5760405162461bcd60e51b8152600401610a6d9061378c565b6112746127f7565b565b6005546001600160a01b031633146112a05760405162461bcd60e51b8152600401610a6d9061378c565b60095460ff600160681b90910416151581151514156112d15760405162461bcd60e51b8152600401610a6d906139f8565b60098054911515600160681b0260ff60681b19909216919091179055565b606081518351146113545760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610a6d565b600083516001600160401b0381111561136f5761136f61328b565b604051908082528060200260200182016040528015611398578160200160208202803683370190505b50905060005b8451811015611410576113e38582815181106113bc576113bc613a3f565b60200260200101518583815181106113d6576113d6613a3f565b6020026020010151610a05565b8282815181106113f5576113f5613a3f565b602090810291909101015261140981613a55565b905061139e565b509392505050565b6005546001600160a01b031633146114425760405162461bcd60e51b8152600401610a6d9061378c565b61145d838383604051806020016040528060008152506124d2565b505050565b6005546001600160a01b0316331461148c5760405162461bcd60e51b8152600401610a6d9061378c565b60095460ff600160601b90910416151581151514156114bd5760405162461bcd60e51b8152600401610a6d906139f8565b60098054911515600160601b0260ff60601b19909216919091179055565b3233146114fa5760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff161561151d5760405162461bcd60e51b8152600401610a6d906137f8565b600954600160601b900460ff166115465760405162461bcd60e51b8152600401610a6d90613944565b60095461155c906001600160401b031684613a70565b341461157a5760405162461bcd60e51b8152600401610a6d90613a8f565b600954600160701b900463ffffffff1683158015906115995750808411155b6115b55760405162461bcd60e51b8152600401610a6d90613974565b336000908152600e602052604090205481906115d29086906138a6565b11156115f05760405162461bcd60e51b8152600401610a6d906139ab565b600954600260005260046020527f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a754600160401b90910463ffffffff1690859061163a91906138a6565b11156116585760405162461bcd60e51b8152600401610a6d9061390d565b6040516001600160601b03193360601b1660208201526000906034016040516020818303038152906040528051906020012090506116cd84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b5491508490506125f3565b6117075760405162461bcd60e51b815260206004820152600b60248201526a496e76616c69642050726f60a81b6044820152606401610a6d565b61172333600287604051806020016040528060008152506124d2565b336000908152600e6020526040812080548792906110e79084906138a6565b6005546001600160a01b0316331461176c5760405162461bcd60e51b8152600401610a6d9061378c565b6000818152600c60209081526040909120835161145d92850190612ff9565b6005546001600160a01b031633146117b55760405162461bcd60e51b8152600401610a6d9061378c565b611274600061288a565b6005546001600160a01b031633146117e95760405162461bcd60e51b8152600401610a6d9061378c565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114611836576040519150601f19603f3d011682016040523d82523d6000602084013e61183b565b606091505b505090508061187e5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610a6d565b5050565b6005546001600160a01b031633146118ac5760405162461bcd60e51b8152600401610a6d9061378c565b60085460ff600160681b90910416151581151514156118dd5760405162461bcd60e51b8152600401610a6d906139f8565b60088054911515600160681b0260ff60681b19909216919091179055565b6005546001600160a01b031633146119255760405162461bcd60e51b8152600401610a6d9061378c565b600b55565b6005546001600160a01b031633146119545760405162461bcd60e51b8152600401610a6d9061378c565b6112746128dc565b606060078054610aff90613751565b61187e338383612934565b3233146119955760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff16156119b85760405162461bcd60e51b8152600401610a6d906137f8565b600a54600160681b900460ff166119e15760405162461bcd60e51b8152600401610a6d90613822565b600a546119f7906001600160401b031682613a70565b3414611a155760405162461bcd60e51b8152600401610a6d90613a8f565b600a54600160701b900463ffffffff168115801590611a345750808211155b611a505760405162461bcd60e51b8152600401610a6d90613859565b336000908152600f60205260409020548190611a6d9084906138a6565b1115611a8b5760405162461bcd60e51b8152600401610a6d906138be565b600a54600360005260046020527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa054600160401b90910463ffffffff16908390611ad591906138a6565b1115611af35760405162461bcd60e51b8152600401610a6d9061390d565b611b0f33600384604051806020016040528060008152506124d2565b336000908152600f602052604081208054849290610ddd9084906138a6565b6005546001600160a01b03163314611b585760405162461bcd60e51b8152600401610a6d9061378c565b6040805160a0810182526001600160401b039490941680855263ffffffff9384166020860181905260088054600160601b80820460ff9081161515968a01879052600160681b808404909116151560608b018190529790981660809099018990526001600160601b0319909116909317600160401b9092029190911761ffff60601b19169290910260ff60681b191691909117919092021763ffffffff60701b1916600160701b909202919091179055565b6005546001600160a01b03163314611c345760405162461bcd60e51b8152600401610a6d9061378c565b60018214158015611c46575060028214155b8015611c53575060038214155b6114425760405162461bcd60e51b815260206004820152601c60248201527f4578697374696e6720746f6b656e2049442070726f68696269746564000000006044820152606401610a6d565b6005546001600160a01b03163314611cc95760405162461bcd60e51b8152600401610a6d9061378c565b60085460ff600160601b9091041615158115151415611cfa5760405162461bcd60e51b8152600401610a6d906139f8565b60088054911515600160601b0260ff60601b19909216919091179055565b6005546001600160a01b03163314611d425760405162461bcd60e51b8152600401610a6d9061378c565b61123f81612a15565b323314611d6a5760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff1615611d8d5760405162461bcd60e51b8152600401610a6d906137f8565b600954600160681b900460ff16611db65760405162461bcd60e51b8152600401610a6d90613822565b600954611dcc906001600160401b031682613a70565b3414611dea5760405162461bcd60e51b8152600401610a6d90613a8f565b600954600160701b900463ffffffff168115801590611e095750808211155b611e255760405162461bcd60e51b8152600401610a6d90613859565b336000908152600e60205260409020548190611e429084906138a6565b1115611e605760405162461bcd60e51b8152600401610a6d906138be565b600954600260005260046020527f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a754600160401b90910463ffffffff16908390611eaa91906138a6565b1115611ec85760405162461bcd60e51b8152600401610a6d9061390d565b611ee433600284604051806020016040528060008152506124d2565b336000908152600e602052604081208054849290610ddd9084906138a6565b6005546001600160a01b03163314611f2d5760405162461bcd60e51b8152600401610a6d9061378c565b600a5460ff600160601b9091041615158115151415611f5e5760405162461bcd60e51b8152600401610a6d906139f8565b600a8054911515600160601b0260ff60601b19909216919091179055565b600c6020526000908152604090208054611f9590613751565b80601f0160208091040260200160405190810160405280929190818152602001828054611fc190613751565b801561200e5780601f10611fe35761010080835404028352916020019161200e565b820191906000526020600020905b815481529060010190602001808311611ff157829003601f168201915b505050505081565b3233146120355760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff16156120585760405162461bcd60e51b8152600401610a6d906137f8565b600a54600160601b900460ff166120815760405162461bcd60e51b8152600401610a6d90613944565b600a54612097906001600160401b031684613a70565b34146120b55760405162461bcd60e51b8152600401610a6d90613a8f565b600a54600160701b900463ffffffff1683158015906120d45750808411155b6120f05760405162461bcd60e51b8152600401610a6d90613974565b336000908152600f6020526040902054819061210d9086906138a6565b111561212b5760405162461bcd60e51b8152600401610a6d906139ab565b600a54600360005260046020527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa054600160401b90910463ffffffff1690859061217591906138a6565b11156121935760405162461bcd60e51b8152600401610a6d9061390d565b6040516001600160601b03193360601b16602082015260009060340160405160208183030381529060405280519060200120905061220884848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b5491508490506125f3565b6122425760405162461bcd60e51b815260206004820152600b60248201526a496e76616c69642050726f60a81b6044820152606401610a6d565b61225e33600387604051806020016040528060008152506124d2565b336000908152600f6020526040812080548792906110e79084906138a6565b6005546001600160a01b031633146122a75760405162461bcd60e51b8152600401610a6d9061378c565b600a5460ff600160681b90910416151581151514156122d85760405162461bcd60e51b8152600401610a6d906139f8565b600a8054911515600160681b0260ff60681b19909216919091179055565b6005546001600160a01b031633146123205760405162461bcd60e51b8152600401610a6d9061378c565b6040805160a0810182526001600160401b0390941680855263ffffffff93841660208601819052600a805460ff600160681b80830482161515968a01879052600160601b808404909216151560608b01819052979098166080909901899052600160701b90980263ffffffff60701b199690970260ff60681b19989095029790971661ffff60601b19600160401b9093026001600160601b03199098169093179690961716171716179055565b6000821161242d5760405162461bcd60e51b815260206004820152602760248201527f4e756d626572206f6620746f6b656e73206d75737420626520677265617465726044820152660207468616e20360cc1b6064820152608401610a6d565b6111838585858585612a28565b6005546001600160a01b031633146124645760405162461bcd60e51b8152600401610a6d9061378c565b6001600160a01b0381166124c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a6d565b61123f8161288a565b6001600160a01b0384166125325760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a6d565b336125528160008761254388612aaf565b61254c88612aaf565b87612afa565b60008481526001602090815260408083206001600160a01b0389168452909152812080548592906125849084906138a6565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461118381600087878787612b2b565b606060038054610e2d90613751565b6000826126008584612c9f565b14949350505050565b815183511461266b5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610a6d565b6001600160a01b0384166126915760405162461bcd60e51b8152600401610a6d90613ac6565b336126a0818787878787612afa565b60005b84518110156127895760008582815181106126c0576126c0613a3f565b6020026020010151905060008583815181106126de576126de613a3f565b60209081029190910181015160008481526001835260408082206001600160a01b038e16835290935291909120549091508181101561272f5760405162461bcd60e51b8152600401610a6d90613b0b565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061276e9084906138a6565b925050819055505050508061278290613a55565b90506126a3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516127d9929190613b55565b60405180910390a46127ef818787878787612d0b565b505050505050565b60005460ff166128405760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a6d565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005460ff16156128ff5760405162461bcd60e51b8152600401610a6d906137f8565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861286d3390565b816001600160a01b0316836001600160a01b031614156129a85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a6d565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b805161187e906003906020840190612ff9565b6001600160a01b038516331480612a445750612a448533610977565b612aa25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610a6d565b6111838585858585612dd5565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612ae957612ae9613a3f565b602090810291909101015292915050565b60005460ff1615612b1d5760405162461bcd60e51b8152600401610a6d906137f8565b6127ef868686868686612eed565b6001600160a01b0384163b156127ef5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612b6f9089908990889088908890600401613b83565b602060405180830381600087803b158015612b8957600080fd5b505af1925050508015612bb9575060408051601f3d908101601f19168201909252612bb691810190613bc8565b60015b612c6657612bc5613be5565b806308c379a01415612bff5750612bda613c01565b80612be55750612c01565b8060405162461bcd60e51b8152600401610a6d919061315a565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610a6d565b6001600160e01b0319811663f23a6e6160e01b14612c965760405162461bcd60e51b8152600401610a6d90613c8a565b50505050505050565b600081815b8451811015611410576000858281518110612cc157612cc1613a3f565b60200260200101519050808311612ce75760008381526020829052604090209250612cf8565b600081815260208490526040902092505b5080612d0381613a55565b915050612ca4565b6001600160a01b0384163b156127ef5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d4f9089908990889088908890600401613cd2565b602060405180830381600087803b158015612d6957600080fd5b505af1925050508015612d99575060408051601f3d908101601f19168201909252612d9691810190613bc8565b60015b612da557612bc5613be5565b6001600160e01b0319811663bc197c8160e01b14612c965760405162461bcd60e51b8152600401610a6d90613c8a565b6001600160a01b038416612dfb5760405162461bcd60e51b8152600401610a6d90613ac6565b33612e0b81878761254388612aaf565b60008481526001602090815260408083206001600160a01b038a16845290915290205483811015612e4e5760405162461bcd60e51b8152600401610a6d90613b0b565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612e8d9084906138a6565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612c96828888888888612b2b565b6001600160a01b038516612f745760005b8351811015612f7257828181518110612f1957612f19613a3f565b602002602001015160046000868481518110612f3757612f37613a3f565b602002602001015181526020019081526020016000206000828254612f5c91906138a6565b90915550612f6b905081613a55565b9050612efe565b505b6001600160a01b0384166127ef5760005b8351811015612c9657828181518110612fa057612fa0613a3f565b602002602001015160046000868481518110612fbe57612fbe613a3f565b602002602001015181526020019081526020016000206000828254612fe39190613d30565b90915550612ff2905081613a55565b9050612f85565b82805461300590613751565b90600052602060002090601f016020900481019282613027576000855561306d565b82601f1061304057805160ff191683800117855561306d565b8280016001018555821561306d579182015b8281111561306d578251825591602001919060010190613052565b5061307992915061307d565b5090565b5b80821115613079576000815560010161307e565b6001600160a01b038116811461123f57600080fd5b600080604083850312156130ba57600080fd5b82356130c581613092565b946020939093013593505050565b6001600160e01b03198116811461123f57600080fd5b6000602082840312156130fb57600080fd5b8135613106816130d3565b9392505050565b6000815180845260005b8181101561313357602081850181015186830182015201613117565b81811115613145576000602083870101525b50601f01601f19169290920160200192915050565b602081526000613106602083018461310d565b60006020828403121561317f57600080fd5b813561310681613092565b803563ffffffff8116811461319e57600080fd5b919050565b6000806000606084860312156131b857600080fd5b83356001600160401b03811681146131cf57600080fd5b92506131dd6020850161318a565b91506131eb6040850161318a565b90509250925092565b60006020828403121561320657600080fd5b5035919050565b60008060006040848603121561322257600080fd5b8335925060208401356001600160401b038082111561324057600080fd5b818601915086601f83011261325457600080fd5b81358181111561326357600080fd5b8760208260051b850101111561327857600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156132c6576132c661328b565b6040525050565b60006001600160401b038211156132e6576132e661328b565b5060051b60200190565b600082601f83011261330157600080fd5b8135602061330e826132cd565b60405161331b82826132a1565b83815260059390931b850182019282810191508684111561333b57600080fd5b8286015b84811015613356578035835291830191830161333f565b509695505050505050565b600082601f83011261337257600080fd5b81356001600160401b0381111561338b5761338b61328b565b6040516133a2601f8301601f1916602001826132a1565b8181528460208386010111156133b757600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156133ec57600080fd5b85356133f781613092565b9450602086013561340781613092565b935060408601356001600160401b038082111561342357600080fd5b61342f89838a016132f0565b9450606088013591508082111561344557600080fd5b61345189838a016132f0565b9350608088013591508082111561346757600080fd5b5061347488828901613361565b9150509295509295909350565b8035801515811461319e57600080fd5b6000602082840312156134a357600080fd5b61310682613481565b600080604083850312156134bf57600080fd5b82356001600160401b03808211156134d657600080fd5b818501915085601f8301126134ea57600080fd5b813560206134f7826132cd565b60405161350482826132a1565b83815260059390931b850182019282810191508984111561352457600080fd5b948201945b8386101561354b57853561353c81613092565b82529482019490820190613529565b9650508601359250508082111561356157600080fd5b5061356e858286016132f0565b9150509250929050565b600081518084526020808501945080840160005b838110156135a85781518752958201959082019060010161358c565b509495945050505050565b6020815260006131066020830184613578565b6000806000606084860312156135db57600080fd5b83356135e681613092565b95602085013595506040909401359392505050565b6000806040838503121561360e57600080fd5b82356001600160401b0381111561362457600080fd5b61363085828601613361565b95602094909401359450505050565b6000806040838503121561365257600080fd5b823561365d81613092565b915061366b60208401613481565b90509250929050565b60006020828403121561368657600080fd5b81356001600160401b0381111561369c57600080fd5b6136a884828501613361565b949350505050565b600080604083850312156136c357600080fd5b82356136ce81613092565b915060208301356136de81613092565b809150509250929050565b600080600080600060a0868803121561370157600080fd5b853561370c81613092565b9450602086013561371c81613092565b9350604086013592506060860135915060808601356001600160401b0381111561374557600080fd5b61347488828901613361565b600181811c9082168061376557607f821691505b6020821081141561378657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526019908201527f5075626c69632053616c65206973206e6f742061637469766500000000000000604082015260600190565b6020808252601b908201527f4e756d626572206f6620746f6b656e732070726f686962697465640000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156138b9576138b9613890565b500190565b6020808252602f908201527f4e756d626572206f6620746f6b656e732065786365656473206d617820616c6c60408201526e1bddd959081c195c881dd85b1b195d608a1b606082015260800190565b60208082526019908201527f537570706c792072656163686564206d617820746f6b656e7300000000000000604082015260600190565b6020808252601690820152755072652053616c65206973206e6f742061637469766560501b604082015260600190565b6020808252601a908201527f507572636861736520616d6f756e742070726f68696269746564000000000000604082015260600190565b6020808252602d908201527f4d696e74696e6720616d6f756e742065786365656473206d617820616c6c6f7760408201526c1959081c195c881dd85b1b195d609a1b606082015260800190565b60208082526027908201527f4e6577207374617465206973206964656e746963616c20746f2063757272656e6040820152667420737461746560c81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613a6957613a69613890565b5060010190565b6000816000190483118215151615613a8a57613a8a613890565b500290565b60208082526019908201527f53656e74207072696365206973206e6f7420636f727265637400000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000613b686040830185613578565b8281036020840152613b7a8185613578565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613bbd9083018461310d565b979650505050505050565b600060208284031215613bda57600080fd5b8151613106816130d3565b600060033d1115613bfe5760046000803e5060005160e01c5b90565b600060443d1015613c0f5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613c3e57505050505090565b8285019150815181811115613c565750505050505090565b843d8701016020828501011115613c705750505050505090565b613c7f602082860101876132a1565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090613cfe90830186613578565b8281036060840152613d108186613578565b90508281036080840152613d24818561310d565b98975050505050505050565b600082821015613d4257613d42613890565b50039056fea264697066735822122008fe4939a528e9f8fc4217c1c259de77e07d9a3b762fa4f276256903c39e6b6964736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c00000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d57566f5238706e7054767a6368676a724646646b6368366e4a7a366e46757357715433793643797a3648744700000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f516d57566f5238706e7054767a6368676a724646646b6368366e4a7a366e46757357715433793643797a364874472f7374616e646172642e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f697066733a2f2f516d57566f5238706e7054767a6368676a724646646b6368366e4a7a366e46757357715433793643797a364874472f657069632e6a736f6e000000000000000000000000000000000000000000000000000000000000000044697066733a2f2f516d57566f5238706e7054767a6368676a724646646b6368366e4a7a366e46757357715433793643797a364874472f6c6567656e646172792e6a736f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013544d43204d656d626572736869702043617264000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005544d434d43000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102e35760003560e01c806377bef46511610190578063bd85b039116100dc578063c9baf06011610095578063e985e9c51161006f578063e985e9c51461095c578063e9a41526146109a5578063f242432a146109c5578063f2fde38b146109e557600080fd5b8063c9baf06014610914578063ca4d086814610927578063e93f1f541461094757600080fd5b8063bd85b03914610854578063be268c2514610881578063c15d0e21146108a1578063c488b449146108c1578063c80f4723146108d4578063c87b56dd146108f457600080fd5b8063a30b66ca11610149578063a97addd411610123578063a97addd41461078a578063b51cd27c146107da578063b53452f6146107fa578063b809a6c41461082757600080fd5b8063a30b66ca14610742578063a700326c14610755578063a7c5ef4a1461076a57600080fd5b806377bef465146106905780637cb64759146106b05780638456cb59146106d05780638da5cb5b146106e557806395d89b411461070d578063a22cb4651461072257600080fd5b80633ccfd60b1161024f5780634f854cc1116102085780635c975abb116101e25780635c975abb1461062357806367db3b8f1461063b578063715018a61461065b57806372b0d90c1461067057600080fd5b80634f854cc1146105d057806353abfa9b146105f057806359c19bc21461061057600080fd5b80633ccfd60b146104da5780633f4ba83a146104ef57806341800f24146105045780634ae1d294146105545780634e1273f4146105745780634f558e79146105a157600080fd5b80630e89341c116102a15780630e89341c146103cf5780631045ce16146103ef57806320f95c111461047c5780632a6b3d271461048f5780632eb2c2d6146104a45780632eb4a7ab146104c457600080fd5b8062fdd58e146102e857806301ffc9a71461031b57806306fdde031461034b578063073743481461036d57806307ffeb841461039a57806309ed3cd4146103bc575b600080fd5b3480156102f457600080fd5b506103086103033660046130a7565b610a05565b6040519081526020015b60405180910390f35b34801561032757600080fd5b5061033b6103363660046130e9565b610a9e565b6040519015158152602001610312565b34801561035757600080fd5b50610360610af0565b604051610312919061315a565b34801561037957600080fd5b5061030861038836600461316d565b600d6020526000908152604090205481565b3480156103a657600080fd5b506103ba6103b53660046131a3565b610b82565b005b6103ba6103ca3660046131f4565b610c59565b3480156103db57600080fd5b506103606103ea3660046131f4565b610de6565b3480156103fb57600080fd5b50600a5461043f906001600160401b0381169063ffffffff600160401b820481169160ff600160601b8204811692600160681b830490911691600160701b90041685565b604080516001600160401b03909616865263ffffffff9485166020870152921515928501929092521515606084015216608082015260a001610312565b6103ba61048a36600461320d565b610eb2565b34801561049b57600080fd5b50610308600381565b3480156104b057600080fd5b506103ba6104bf3660046133d4565b6110f3565b3480156104d057600080fd5b50610308600b5481565b3480156104e657600080fd5b506103ba61118a565b3480156104fb57600080fd5b506103ba611242565b34801561051057600080fd5b5060095461043f906001600160401b0381169063ffffffff600160401b820481169160ff600160601b8204811692600160681b830490911691600160701b90041685565b34801561056057600080fd5b506103ba61056f366004613491565b611276565b34801561058057600080fd5b5061059461058f3660046134ac565b6112ef565b60405161031291906135b3565b3480156105ad57600080fd5b5061033b6105bc3660046131f4565b600090815260046020526040902054151590565b3480156105dc57600080fd5b506103ba6105eb3660046135c6565b611418565b3480156105fc57600080fd5b506103ba61060b366004613491565b611462565b6103ba61061e36600461320d565b6114db565b34801561062f57600080fd5b5060005460ff1661033b565b34801561064757600080fd5b506103ba6106563660046135fb565b611742565b34801561066757600080fd5b506103ba61178b565b34801561067c57600080fd5b506103ba61068b36600461316d565b6117bf565b34801561069c57600080fd5b506103ba6106ab366004613491565b611882565b3480156106bc57600080fd5b506103ba6106cb3660046131f4565b6118fb565b3480156106dc57600080fd5b506103ba61192a565b3480156106f157600080fd5b506005546040516001600160a01b039091168152602001610312565b34801561071957600080fd5b5061036061195c565b34801561072e57600080fd5b506103ba61073d36600461363f565b61196b565b6103ba6107503660046131f4565b611976565b34801561076157600080fd5b50610308600181565b34801561077657600080fd5b506103ba6107853660046131a3565b611b2e565b34801561079657600080fd5b5060085461043f906001600160401b0381169063ffffffff600160401b820481169160ff600160601b8204811692600160681b830490911691600160701b90041685565b3480156107e657600080fd5b506103ba6107f53660046135c6565b611c0a565b34801561080657600080fd5b5061030861081536600461316d565b600e6020526000908152604090205481565b34801561083357600080fd5b5061030861084236600461316d565b600f6020526000908152604090205481565b34801561086057600080fd5b5061030861086f3660046131f4565b60009081526004602052604090205490565b34801561088d57600080fd5b506103ba61089c366004613491565b611c9f565b3480156108ad57600080fd5b506103ba6108bc366004613674565b611d18565b6103ba6108cf3660046131f4565b611d4b565b3480156108e057600080fd5b506103ba6108ef366004613491565b611f03565b34801561090057600080fd5b5061036061090f3660046131f4565b611f7c565b6103ba61092236600461320d565b612016565b34801561093357600080fd5b506103ba610942366004613491565b61227d565b34801561095357600080fd5b50610308600281565b34801561096857600080fd5b5061033b6109773660046136b0565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b3480156109b157600080fd5b506103ba6109c03660046131a3565b6122f6565b3480156109d157600080fd5b506103ba6109e03660046136e9565b6123cd565b3480156109f157600080fd5b506103ba610a0036600461316d565b61243a565b60006001600160a01b038316610a765760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610acf57506001600160e01b031982166303a24d0760e21b145b80610aea57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060068054610aff90613751565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2b90613751565b8015610b785780601f10610b4d57610100808354040283529160200191610b78565b820191906000526020600020905b815481529060010190602001808311610b5b57829003601f168201915b5050505050905090565b6005546001600160a01b03163314610bac5760405162461bcd60e51b8152600401610a6d9061378c565b6040805160a0810182526001600160401b0390941680855263ffffffff938416602086018190526009805460ff600160681b80830482161515968a01879052600160601b808404909216151560608b01819052979098166080909901899052600160701b90980263ffffffff60701b199690970260ff60681b19989095029790971661ffff60601b19600160401b9093026001600160601b03199098169093179690961716171716179055565b323314610c785760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff1615610c9b5760405162461bcd60e51b8152600401610a6d906137f8565b600854600160681b900460ff16610cc45760405162461bcd60e51b8152600401610a6d90613822565b600854600160701b900463ffffffff168115801590610ce35750808211155b610cff5760405162461bcd60e51b8152600401610a6d90613859565b336000908152600d60205260409020548190610d1c9084906138a6565b1115610d3a5760405162461bcd60e51b8152600401610a6d906138be565b600854600160005260046020527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0554600160401b90910463ffffffff16908390610d8491906138a6565b1115610da25760405162461bcd60e51b8152600401610a6d9061390d565b610dbe33600184604051806020016040528060008152506124d2565b336000908152600d602052604081208054849290610ddd9084906138a6565b90915550505050565b6000818152600c60205260409020805460609190610e0390613751565b15159050610e1457610aea826125e4565b6000828152600c602052604090208054610e2d90613751565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5990613751565b8015610ea65780601f10610e7b57610100808354040283529160200191610ea6565b820191906000526020600020905b815481529060010190602001808311610e8957829003601f168201915b50505050509050919050565b323314610ed15760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff1615610ef45760405162461bcd60e51b8152600401610a6d906137f8565b600854600160601b900460ff16610f1d5760405162461bcd60e51b8152600401610a6d90613944565b600854600160701b900463ffffffff168315801590610f3c5750808411155b610f585760405162461bcd60e51b8152600401610a6d90613974565b336000908152600d60205260409020548190610f759086906138a6565b1115610f935760405162461bcd60e51b8152600401610a6d906139ab565b600854600160005260046020527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0554600160401b90910463ffffffff16908590610fdd91906138a6565b1115610ffb5760405162461bcd60e51b8152600401610a6d9061390d565b6040516001600160601b03193360601b16602082015260009060340160405160208183030381529060405280519060200120905061107084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b5491508490506125f3565b6110ac5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210283937b7b360991b6044820152606401610a6d565b6110c833600187604051806020016040528060008152506124d2565b336000908152600d6020526040812080548792906110e79084906138a6565b90915550505050505050565b6001600160a01b03851633148061110f575061110f8533610977565b6111765760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a6d565b6111838585858585612609565b5050505050565b6005546001600160a01b031633146111b45760405162461bcd60e51b8152600401610a6d9061378c565b604051600090339047908381818185875af1925050503d80600081146111f6576040519150601f19603f3d011682016040523d82523d6000602084013e6111fb565b606091505b505090508061123f5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610a6d565b50565b6005546001600160a01b0316331461126c5760405162461bcd60e51b8152600401610a6d9061378c565b6112746127f7565b565b6005546001600160a01b031633146112a05760405162461bcd60e51b8152600401610a6d9061378c565b60095460ff600160681b90910416151581151514156112d15760405162461bcd60e51b8152600401610a6d906139f8565b60098054911515600160681b0260ff60681b19909216919091179055565b606081518351146113545760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610a6d565b600083516001600160401b0381111561136f5761136f61328b565b604051908082528060200260200182016040528015611398578160200160208202803683370190505b50905060005b8451811015611410576113e38582815181106113bc576113bc613a3f565b60200260200101518583815181106113d6576113d6613a3f565b6020026020010151610a05565b8282815181106113f5576113f5613a3f565b602090810291909101015261140981613a55565b905061139e565b509392505050565b6005546001600160a01b031633146114425760405162461bcd60e51b8152600401610a6d9061378c565b61145d838383604051806020016040528060008152506124d2565b505050565b6005546001600160a01b0316331461148c5760405162461bcd60e51b8152600401610a6d9061378c565b60095460ff600160601b90910416151581151514156114bd5760405162461bcd60e51b8152600401610a6d906139f8565b60098054911515600160601b0260ff60601b19909216919091179055565b3233146114fa5760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff161561151d5760405162461bcd60e51b8152600401610a6d906137f8565b600954600160601b900460ff166115465760405162461bcd60e51b8152600401610a6d90613944565b60095461155c906001600160401b031684613a70565b341461157a5760405162461bcd60e51b8152600401610a6d90613a8f565b600954600160701b900463ffffffff1683158015906115995750808411155b6115b55760405162461bcd60e51b8152600401610a6d90613974565b336000908152600e602052604090205481906115d29086906138a6565b11156115f05760405162461bcd60e51b8152600401610a6d906139ab565b600954600260005260046020527f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a754600160401b90910463ffffffff1690859061163a91906138a6565b11156116585760405162461bcd60e51b8152600401610a6d9061390d565b6040516001600160601b03193360601b1660208201526000906034016040516020818303038152906040528051906020012090506116cd84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b5491508490506125f3565b6117075760405162461bcd60e51b815260206004820152600b60248201526a496e76616c69642050726f60a81b6044820152606401610a6d565b61172333600287604051806020016040528060008152506124d2565b336000908152600e6020526040812080548792906110e79084906138a6565b6005546001600160a01b0316331461176c5760405162461bcd60e51b8152600401610a6d9061378c565b6000818152600c60209081526040909120835161145d92850190612ff9565b6005546001600160a01b031633146117b55760405162461bcd60e51b8152600401610a6d9061378c565b611274600061288a565b6005546001600160a01b031633146117e95760405162461bcd60e51b8152600401610a6d9061378c565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114611836576040519150601f19603f3d011682016040523d82523d6000602084013e61183b565b606091505b505090508061187e5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610a6d565b5050565b6005546001600160a01b031633146118ac5760405162461bcd60e51b8152600401610a6d9061378c565b60085460ff600160681b90910416151581151514156118dd5760405162461bcd60e51b8152600401610a6d906139f8565b60088054911515600160681b0260ff60681b19909216919091179055565b6005546001600160a01b031633146119255760405162461bcd60e51b8152600401610a6d9061378c565b600b55565b6005546001600160a01b031633146119545760405162461bcd60e51b8152600401610a6d9061378c565b6112746128dc565b606060078054610aff90613751565b61187e338383612934565b3233146119955760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff16156119b85760405162461bcd60e51b8152600401610a6d906137f8565b600a54600160681b900460ff166119e15760405162461bcd60e51b8152600401610a6d90613822565b600a546119f7906001600160401b031682613a70565b3414611a155760405162461bcd60e51b8152600401610a6d90613a8f565b600a54600160701b900463ffffffff168115801590611a345750808211155b611a505760405162461bcd60e51b8152600401610a6d90613859565b336000908152600f60205260409020548190611a6d9084906138a6565b1115611a8b5760405162461bcd60e51b8152600401610a6d906138be565b600a54600360005260046020527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa054600160401b90910463ffffffff16908390611ad591906138a6565b1115611af35760405162461bcd60e51b8152600401610a6d9061390d565b611b0f33600384604051806020016040528060008152506124d2565b336000908152600f602052604081208054849290610ddd9084906138a6565b6005546001600160a01b03163314611b585760405162461bcd60e51b8152600401610a6d9061378c565b6040805160a0810182526001600160401b039490941680855263ffffffff9384166020860181905260088054600160601b80820460ff9081161515968a01879052600160681b808404909116151560608b018190529790981660809099018990526001600160601b0319909116909317600160401b9092029190911761ffff60601b19169290910260ff60681b191691909117919092021763ffffffff60701b1916600160701b909202919091179055565b6005546001600160a01b03163314611c345760405162461bcd60e51b8152600401610a6d9061378c565b60018214158015611c46575060028214155b8015611c53575060038214155b6114425760405162461bcd60e51b815260206004820152601c60248201527f4578697374696e6720746f6b656e2049442070726f68696269746564000000006044820152606401610a6d565b6005546001600160a01b03163314611cc95760405162461bcd60e51b8152600401610a6d9061378c565b60085460ff600160601b9091041615158115151415611cfa5760405162461bcd60e51b8152600401610a6d906139f8565b60088054911515600160601b0260ff60601b19909216919091179055565b6005546001600160a01b03163314611d425760405162461bcd60e51b8152600401610a6d9061378c565b61123f81612a15565b323314611d6a5760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff1615611d8d5760405162461bcd60e51b8152600401610a6d906137f8565b600954600160681b900460ff16611db65760405162461bcd60e51b8152600401610a6d90613822565b600954611dcc906001600160401b031682613a70565b3414611dea5760405162461bcd60e51b8152600401610a6d90613a8f565b600954600160701b900463ffffffff168115801590611e095750808211155b611e255760405162461bcd60e51b8152600401610a6d90613859565b336000908152600e60205260409020548190611e429084906138a6565b1115611e605760405162461bcd60e51b8152600401610a6d906138be565b600954600260005260046020527f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a754600160401b90910463ffffffff16908390611eaa91906138a6565b1115611ec85760405162461bcd60e51b8152600401610a6d9061390d565b611ee433600284604051806020016040528060008152506124d2565b336000908152600e602052604081208054849290610ddd9084906138a6565b6005546001600160a01b03163314611f2d5760405162461bcd60e51b8152600401610a6d9061378c565b600a5460ff600160601b9091041615158115151415611f5e5760405162461bcd60e51b8152600401610a6d906139f8565b600a8054911515600160601b0260ff60601b19909216919091179055565b600c6020526000908152604090208054611f9590613751565b80601f0160208091040260200160405190810160405280929190818152602001828054611fc190613751565b801561200e5780601f10611fe35761010080835404028352916020019161200e565b820191906000526020600020905b815481529060010190602001808311611ff157829003601f168201915b505050505081565b3233146120355760405162461bcd60e51b8152600401610a6d906137c1565b60005460ff16156120585760405162461bcd60e51b8152600401610a6d906137f8565b600a54600160601b900460ff166120815760405162461bcd60e51b8152600401610a6d90613944565b600a54612097906001600160401b031684613a70565b34146120b55760405162461bcd60e51b8152600401610a6d90613a8f565b600a54600160701b900463ffffffff1683158015906120d45750808411155b6120f05760405162461bcd60e51b8152600401610a6d90613974565b336000908152600f6020526040902054819061210d9086906138a6565b111561212b5760405162461bcd60e51b8152600401610a6d906139ab565b600a54600360005260046020527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa054600160401b90910463ffffffff1690859061217591906138a6565b11156121935760405162461bcd60e51b8152600401610a6d9061390d565b6040516001600160601b03193360601b16602082015260009060340160405160208183030381529060405280519060200120905061220884848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b5491508490506125f3565b6122425760405162461bcd60e51b815260206004820152600b60248201526a496e76616c69642050726f60a81b6044820152606401610a6d565b61225e33600387604051806020016040528060008152506124d2565b336000908152600f6020526040812080548792906110e79084906138a6565b6005546001600160a01b031633146122a75760405162461bcd60e51b8152600401610a6d9061378c565b600a5460ff600160681b90910416151581151514156122d85760405162461bcd60e51b8152600401610a6d906139f8565b600a8054911515600160681b0260ff60681b19909216919091179055565b6005546001600160a01b031633146123205760405162461bcd60e51b8152600401610a6d9061378c565b6040805160a0810182526001600160401b0390941680855263ffffffff93841660208601819052600a805460ff600160681b80830482161515968a01879052600160601b808404909216151560608b01819052979098166080909901899052600160701b90980263ffffffff60701b199690970260ff60681b19989095029790971661ffff60601b19600160401b9093026001600160601b03199098169093179690961716171716179055565b6000821161242d5760405162461bcd60e51b815260206004820152602760248201527f4e756d626572206f6620746f6b656e73206d75737420626520677265617465726044820152660207468616e20360cc1b6064820152608401610a6d565b6111838585858585612a28565b6005546001600160a01b031633146124645760405162461bcd60e51b8152600401610a6d9061378c565b6001600160a01b0381166124c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a6d565b61123f8161288a565b6001600160a01b0384166125325760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a6d565b336125528160008761254388612aaf565b61254c88612aaf565b87612afa565b60008481526001602090815260408083206001600160a01b0389168452909152812080548592906125849084906138a6565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461118381600087878787612b2b565b606060038054610e2d90613751565b6000826126008584612c9f565b14949350505050565b815183511461266b5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610a6d565b6001600160a01b0384166126915760405162461bcd60e51b8152600401610a6d90613ac6565b336126a0818787878787612afa565b60005b84518110156127895760008582815181106126c0576126c0613a3f565b6020026020010151905060008583815181106126de576126de613a3f565b60209081029190910181015160008481526001835260408082206001600160a01b038e16835290935291909120549091508181101561272f5760405162461bcd60e51b8152600401610a6d90613b0b565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061276e9084906138a6565b925050819055505050508061278290613a55565b90506126a3565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516127d9929190613b55565b60405180910390a46127ef818787878787612d0b565b505050505050565b60005460ff166128405760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a6d565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005460ff16156128ff5760405162461bcd60e51b8152600401610a6d906137f8565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861286d3390565b816001600160a01b0316836001600160a01b031614156129a85760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a6d565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b805161187e906003906020840190612ff9565b6001600160a01b038516331480612a445750612a448533610977565b612aa25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610a6d565b6111838585858585612dd5565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612ae957612ae9613a3f565b602090810291909101015292915050565b60005460ff1615612b1d5760405162461bcd60e51b8152600401610a6d906137f8565b6127ef868686868686612eed565b6001600160a01b0384163b156127ef5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612b6f9089908990889088908890600401613b83565b602060405180830381600087803b158015612b8957600080fd5b505af1925050508015612bb9575060408051601f3d908101601f19168201909252612bb691810190613bc8565b60015b612c6657612bc5613be5565b806308c379a01415612bff5750612bda613c01565b80612be55750612c01565b8060405162461bcd60e51b8152600401610a6d919061315a565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610a6d565b6001600160e01b0319811663f23a6e6160e01b14612c965760405162461bcd60e51b8152600401610a6d90613c8a565b50505050505050565b600081815b8451811015611410576000858281518110612cc157612cc1613a3f565b60200260200101519050808311612ce75760008381526020829052604090209250612cf8565b600081815260208490526040902092505b5080612d0381613a55565b915050612ca4565b6001600160a01b0384163b156127ef5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d4f9089908990889088908890600401613cd2565b602060405180830381600087803b158015612d6957600080fd5b505af1925050508015612d99575060408051601f3d908101601f19168201909252612d9691810190613bc8565b60015b612da557612bc5613be5565b6001600160e01b0319811663bc197c8160e01b14612c965760405162461bcd60e51b8152600401610a6d90613c8a565b6001600160a01b038416612dfb5760405162461bcd60e51b8152600401610a6d90613ac6565b33612e0b81878761254388612aaf565b60008481526001602090815260408083206001600160a01b038a16845290915290205483811015612e4e5760405162461bcd60e51b8152600401610a6d90613b0b565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612e8d9084906138a6565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612c96828888888888612b2b565b6001600160a01b038516612f745760005b8351811015612f7257828181518110612f1957612f19613a3f565b602002602001015160046000868481518110612f3757612f37613a3f565b602002602001015181526020019081526020016000206000828254612f5c91906138a6565b90915550612f6b905081613a55565b9050612efe565b505b6001600160a01b0384166127ef5760005b8351811015612c9657828181518110612fa057612fa0613a3f565b602002602001015160046000868481518110612fbe57612fbe613a3f565b602002602001015181526020019081526020016000206000828254612fe39190613d30565b90915550612ff2905081613a55565b9050612f85565b82805461300590613751565b90600052602060002090601f016020900481019282613027576000855561306d565b82601f1061304057805160ff191683800117855561306d565b8280016001018555821561306d579182015b8281111561306d578251825591602001919060010190613052565b5061307992915061307d565b5090565b5b80821115613079576000815560010161307e565b6001600160a01b038116811461123f57600080fd5b600080604083850312156130ba57600080fd5b82356130c581613092565b946020939093013593505050565b6001600160e01b03198116811461123f57600080fd5b6000602082840312156130fb57600080fd5b8135613106816130d3565b9392505050565b6000815180845260005b8181101561313357602081850181015186830182015201613117565b81811115613145576000602083870101525b50601f01601f19169290920160200192915050565b602081526000613106602083018461310d565b60006020828403121561317f57600080fd5b813561310681613092565b803563ffffffff8116811461319e57600080fd5b919050565b6000806000606084860312156131b857600080fd5b83356001600160401b03811681146131cf57600080fd5b92506131dd6020850161318a565b91506131eb6040850161318a565b90509250925092565b60006020828403121561320657600080fd5b5035919050565b60008060006040848603121561322257600080fd5b8335925060208401356001600160401b038082111561324057600080fd5b818601915086601f83011261325457600080fd5b81358181111561326357600080fd5b8760208260051b850101111561327857600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156132c6576132c661328b565b6040525050565b60006001600160401b038211156132e6576132e661328b565b5060051b60200190565b600082601f83011261330157600080fd5b8135602061330e826132cd565b60405161331b82826132a1565b83815260059390931b850182019282810191508684111561333b57600080fd5b8286015b84811015613356578035835291830191830161333f565b509695505050505050565b600082601f83011261337257600080fd5b81356001600160401b0381111561338b5761338b61328b565b6040516133a2601f8301601f1916602001826132a1565b8181528460208386010111156133b757600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156133ec57600080fd5b85356133f781613092565b9450602086013561340781613092565b935060408601356001600160401b038082111561342357600080fd5b61342f89838a016132f0565b9450606088013591508082111561344557600080fd5b61345189838a016132f0565b9350608088013591508082111561346757600080fd5b5061347488828901613361565b9150509295509295909350565b8035801515811461319e57600080fd5b6000602082840312156134a357600080fd5b61310682613481565b600080604083850312156134bf57600080fd5b82356001600160401b03808211156134d657600080fd5b818501915085601f8301126134ea57600080fd5b813560206134f7826132cd565b60405161350482826132a1565b83815260059390931b850182019282810191508984111561352457600080fd5b948201945b8386101561354b57853561353c81613092565b82529482019490820190613529565b9650508601359250508082111561356157600080fd5b5061356e858286016132f0565b9150509250929050565b600081518084526020808501945080840160005b838110156135a85781518752958201959082019060010161358c565b509495945050505050565b6020815260006131066020830184613578565b6000806000606084860312156135db57600080fd5b83356135e681613092565b95602085013595506040909401359392505050565b6000806040838503121561360e57600080fd5b82356001600160401b0381111561362457600080fd5b61363085828601613361565b95602094909401359450505050565b6000806040838503121561365257600080fd5b823561365d81613092565b915061366b60208401613481565b90509250929050565b60006020828403121561368657600080fd5b81356001600160401b0381111561369c57600080fd5b6136a884828501613361565b949350505050565b600080604083850312156136c357600080fd5b82356136ce81613092565b915060208301356136de81613092565b809150509250929050565b600080600080600060a0868803121561370157600080fd5b853561370c81613092565b9450602086013561371c81613092565b9350604086013592506060860135915060808601356001600160401b0381111561374557600080fd5b61347488828901613361565b600181811c9082168061376557607f821691505b6020821081141561378657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526019908201527f5075626c69632053616c65206973206e6f742061637469766500000000000000604082015260600190565b6020808252601b908201527f4e756d626572206f6620746f6b656e732070726f686962697465640000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156138b9576138b9613890565b500190565b6020808252602f908201527f4e756d626572206f6620746f6b656e732065786365656473206d617820616c6c60408201526e1bddd959081c195c881dd85b1b195d608a1b606082015260800190565b60208082526019908201527f537570706c792072656163686564206d617820746f6b656e7300000000000000604082015260600190565b6020808252601690820152755072652053616c65206973206e6f742061637469766560501b604082015260600190565b6020808252601a908201527f507572636861736520616d6f756e742070726f68696269746564000000000000604082015260600190565b6020808252602d908201527f4d696e74696e6720616d6f756e742065786365656473206d617820616c6c6f7760408201526c1959081c195c881dd85b1b195d609a1b606082015260800190565b60208082526027908201527f4e6577207374617465206973206964656e746963616c20746f2063757272656e6040820152667420737461746560c81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613a6957613a69613890565b5060010190565b6000816000190483118215151615613a8a57613a8a613890565b500290565b60208082526019908201527f53656e74207072696365206973206e6f7420636f727265637400000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000613b686040830185613578565b8281036020840152613b7a8185613578565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613bbd9083018461310d565b979650505050505050565b600060208284031215613bda57600080fd5b8151613106816130d3565b600060033d1115613bfe5760046000803e5060005160e01c5b90565b600060443d1015613c0f5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613c3e57505050505090565b8285019150815181811115613c565750505050505090565b843d8701016020828501011115613c705750505050505090565b613c7f602082860101876132a1565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090613cfe90830186613578565b8281036060840152613d108186613578565b90508281036080840152613d24818561310d565b98975050505050505050565b600082821015613d4257613d42613890565b50039056fea264697066735822122008fe4939a528e9f8fc4217c1c259de77e07d9a3b762fa4f276256903c39e6b6964736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c00000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d57566f5238706e7054767a6368676a724646646b6368366e4a7a366e46757357715433793643797a3648744700000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f516d57566f5238706e7054767a6368676a724646646b6368366e4a7a366e46757357715433793643797a364874472f7374616e646172642e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f697066733a2f2f516d57566f5238706e7054767a6368676a724646646b6368366e4a7a366e46757357715433793643797a364874472f657069632e6a736f6e000000000000000000000000000000000000000000000000000000000000000044697066733a2f2f516d57566f5238706e7054767a6368676a724646646b6368366e4a7a366e46757357715433793643797a364874472f6c6567656e646172792e6a736f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013544d43204d656d626572736869702043617264000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005544d434d43000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : uriBase (string): ipfs://QmWVoR8pnpTvzchgjrFFdkch6nJz6nFusWqT3y6Cyz6HtG
Arg [1] : uriStandard (string): ipfs://QmWVoR8pnpTvzchgjrFFdkch6nJz6nFusWqT3y6Cyz6HtG/standard.json
Arg [2] : uriEpic (string): ipfs://QmWVoR8pnpTvzchgjrFFdkch6nJz6nFusWqT3y6Cyz6HtG/epic.json
Arg [3] : uriLegendary (string): ipfs://QmWVoR8pnpTvzchgjrFFdkch6nJz6nFusWqT3y6Cyz6HtG/legendary.json
Arg [4] : _name (string): TMC Membership Card
Arg [5] : _symbol (string): TMCMC

-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [5] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [7] : 697066733a2f2f516d57566f5238706e7054767a6368676a724646646b636836
Arg [8] : 6e4a7a366e46757357715433793643797a364874470000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [10] : 697066733a2f2f516d57566f5238706e7054767a6368676a724646646b636836
Arg [11] : 6e4a7a366e46757357715433793643797a364874472f7374616e646172642e6a
Arg [12] : 736f6e0000000000000000000000000000000000000000000000000000000000
Arg [13] : 000000000000000000000000000000000000000000000000000000000000003f
Arg [14] : 697066733a2f2f516d57566f5238706e7054767a6368676a724646646b636836
Arg [15] : 6e4a7a366e46757357715433793643797a364874472f657069632e6a736f6e00
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [17] : 697066733a2f2f516d57566f5238706e7054767a6368676a724646646b636836
Arg [18] : 6e4a7a366e46757357715433793643797a364874472f6c6567656e646172792e
Arg [19] : 6a736f6e00000000000000000000000000000000000000000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [21] : 544d43204d656d62657273686970204361726400000000000000000000000000
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [23] : 544d434d43000000000000000000000000000000000000000000000000000000


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.