ETH Price: $3,284.55 (+1.18%)
Gas: 6 Gwei

Token

INUS Genesis Pass Collection (INUSPASS)
 

Overview

Max Total Supply

627 INUSPASS

Holders

338

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
888576.eth
0x226b7Ed8e2DaC7f7C529147833A8EfF769FdF232
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:
InusGenesisPassCollectionContract

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-07-11
*/

//*********************************************************************//
//*********************************************************************//
//
//  ███▄ ▄███▓ █    ██  ██▓  ▄▄▄█████▓ ██▓ ██▓███   ██▓    ▄▄▄       ███▄    █ ▓█████▄▄▄█████▓ ▄▄▄       ██▀███ ▓██   ██▓    ██▓ ███▄    █  █    ██   ██████ 
// ▓██▒▀█▀ ██▒ ██  ▓██▒▓██▒  ▓  ██▒ ▓▒▓██▒▓██░  ██▒▓██▒   ▒████▄     ██ ▀█   █ ▓█   ▀▓  ██▒ ▓▒▒████▄    ▓██ ▒ ██▒▒██  ██▒   ▓██▒ ██ ▀█   █  ██  ▓██▒▒██    ▒ 
// ▓██    ▓██░▓██  ▒██░▒██░  ▒ ▓██░ ▒░▒██▒▓██░ ██▓▒▒██░   ▒██  ▀█▄  ▓██  ▀█ ██▒▒███  ▒ ▓██░ ▒░▒██  ▀█▄  ▓██ ░▄█ ▒ ▒██ ██░   ▒██▒▓██  ▀█ ██▒▓██  ▒██░░ ▓██▄   
// ▒██    ▒██ ▓▓█  ░██░▒██░  ░ ▓██▓ ░ ░██░▒██▄█▓▒ ▒▒██░   ░██▄▄▄▄██ ▓██▒  ▐▌██▒▒▓█  ▄░ ▓██▓ ░ ░██▄▄▄▄██ ▒██▀▀█▄   ░ ▐██▓░   ░██░▓██▒  ▐▌██▒▓▓█  ░██░  ▒   ██▒
// ▒██▒   ░██▒▒▒█████▓ ░██████▒▒██▒ ░ ░██░▒██▒ ░  ░░██████▒▓█   ▓██▒▒██░   ▓██░░▒████▒ ▒██▒ ░  ▓█   ▓██▒░██▓ ▒██▒ ░ ██▒▓░   ░██░▒██░   ▓██░▒▒█████▓ ▒██████▒▒
// ░ ▒░   ░  ░░▒▓▒ ▒ ▒ ░ ▒░▓  ░▒ ░░   ░▓  ▒▓▒░ ░  ░░ ▒░▓  ░▒▒   ▓▒█░░ ▒░   ▒ ▒ ░░ ▒░ ░ ▒ ░░    ▒▒   ▓▒█░░ ▒▓ ░▒▓░  ██▒▒▒    ░▓  ░ ▒░   ▒ ▒ ░▒▓▒ ▒ ▒ ▒ ▒▓▒ ▒ ░
// ░  ░      ░░░▒░ ░ ░ ░ ░ ▒  ░  ░     ▒ ░░▒ ░     ░ ░ ▒  ░ ▒   ▒▒ ░░ ░░   ░ ▒░ ░ ░  ░   ░      ▒   ▒▒ ░  ░▒ ░ ▒░▓██ ░▒░     ▒ ░░ ░░   ░ ▒░░░▒░ ░ ░ ░ ░▒  ░ ░
// ░      ░    ░░░ ░ ░   ░ ░   ░       ▒ ░░░         ░ ░    ░   ▒      ░   ░ ░    ░    ░        ░   ▒     ░░   ░ ▒ ▒ ░░      ▒ ░   ░   ░ ░  ░░░ ░ ░ ░  ░  ░  
//        ░      ░         ░  ░        ░               ░  ░     ░  ░         ░    ░  ░              ░  ░   ░     ░ ░         ░           ░    ░           ░  
//                                                                                                               ░ ░                                         
//
//*********************************************************************//
//*********************************************************************//
  
//-------------DEPENDENCIES--------------------------//
// File: @openzeppelin/contracts/utils/Context.sol


// 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: @openzeppelin/contracts/security/Pausable.sol


// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @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.
     */
    function _onlyOwner() private view {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    modifier onlyOwner() {
        _onlyOwner();
        _;
    }

    /**
     * @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: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// 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: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


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

// File: @openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;


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

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

// File: @openzeppelin/contracts/token/ERC1155/IERC1155.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;


/**
 * @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 contracts/OperatorFilter/IOperatorFilterRegistry.sol
pragma solidity ^0.8.9;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

// File contracts/OperatorFilter/OperatorFilterer.sol
pragma solidity ^0.8.9;

abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry constant operatorFilterRegistry =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(operatorFilterRegistry).code.length > 0) {
            if (subscribe) {
                operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    operatorFilterRegistry.register(address(this));
                }
            }
        }
    }

    function _onlyAllowedOperator(address from) private view {
      if (
          !(
              operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)
              && operatorFilterRegistry.isOperatorAllowed(address(this), from)
          )
      ) {
          revert OperatorNotAllowed(msg.sender);
      }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(operatorFilterRegistry).code.length > 0) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from == msg.sender) {
                _;
                return;
            }
            _onlyAllowedOperator(from);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(operatorFilterRegistry).code.length > 0) {
            if (!operatorFilterRegistry.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}


// File: @openzeppelin/contracts/token/ERC1155/ERC1155.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

/**
 * @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._
 */
abstract contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI , OperatorFilterer {
    using Address for address;
    
    // Mapping for token ID that are not able to traded
    // For reasons mapping to uint8 instead of boolean
    // so 1 = false and 255 = true
    mapping (uint256 => uint8) tokenTradingStatus;

    // 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 onlyAllowedOperatorApproval(operator) {
        _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 onlyAllowedOperator(from) {
        require(tokenTradingStatus[id] == 255, "Token is not tradeable!");
        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 onlyAllowedOperator(from) {
        for (uint256 i = 0; i < ids.length; ++i) {
            require(tokenTradingStatus[ids[i]] == 255, "Token is not tradeable!");
        }

        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;
    }
}
//-------------END DEPENDENCIES------------------------//


  
error TokenDoesNotExist();
error CannotModifyOpenEditonSupply();
error NewSupplyMustExceedPrevious();
error MintZeroQuantity();
error CapExceeded();
error InvalidPayment();
error ExceededTransactionMints();
error ExceededMints();
error CannotBeZero();
error NoStateChange();

error PublicMintClosed();
error AllowlistMintClosed();
error NotInAllowlist();

error CannotBeNullAddress();
error ClaimModeDisabled();
error IneligibleRedemptionContract();
error TokenRedemptionBalanceExhausted();
error InsufficentTokenBalance();
error InvalidApprovalForRedemption();
error CannotEnableBothRedeemModes();
error NotMaintainer();

  
// Rampp Contracts v2.1 (Teams.sol)

error InvalidTeamAddress();
error DuplicateTeamAddress();
pragma solidity ^0.8.0;

/**
* Teams is a contract implementation to extend upon Ownable that allows multiple controllers
* of a single contract to modify specific mint settings but not have overall ownership of the contract.
* This will easily allow cross-collaboration via Mintplex.xyz.
**/
abstract contract Teams is Ownable{
  mapping (address => bool) internal team;

  /**
  * @dev Adds an address to the team. Allows them to execute protected functions
  * @param _address the ETH address to add, cannot be 0x and cannot be in team already
  **/
  function addToTeam(address _address) public onlyOwner {
    if(_address == address(0)) revert InvalidTeamAddress();
    if(inTeam(_address)) revert DuplicateTeamAddress();
  
    team[_address] = true;
  }

  /**
  * @dev Removes an address to the team.
  * @param _address the ETH address to remove, cannot be 0x and must be in team
  **/
  function removeFromTeam(address _address) public onlyOwner {
    if(_address == address(0)) revert InvalidTeamAddress();
    if(!inTeam(_address)) revert InvalidTeamAddress();
  
    team[_address] = false;
  }

  /**
  * @dev Check if an address is valid and active in the team
  * @param _address ETH address to check for truthiness
  **/
  function inTeam(address _address)
    public
    view
    returns (bool)
  {
    if(_address == address(0)) revert InvalidTeamAddress();
    return team[_address] == true;
  }

  /**
  * @dev Throws if called by any account other than the owner or team member.
  */
  function _onlyTeamOrOwner() private view {
    bool _isOwner = owner() == _msgSender();
    bool _isTeam = inTeam(_msgSender());
    require(_isOwner || _isTeam, "Team: caller is not the owner or in Team.");
  }

  modifier onlyTeamOrOwner() {
    _onlyTeamOrOwner();
    _;
  }
}


  
  // File: OpenEditionSupport.sol
  abstract contract OpenEditionSupport is Teams {
    mapping (uint256 => bool) private openEditionEnabled;

    /**
    * @dev Check if a token ID is in open edition mode. meaning that the current minted count == total supply
    * @param _tokenId the token ID to check against
    */
    function isOpenEdition(uint256 _tokenId) public view returns (bool) {
      return openEditionEnabled[_tokenId] == true;
    }

    /**
    * @dev Update if a token is in Open Edition mode or not.
    * @param _tokenId the token ID to check against
    * @param _isOpenEdition true|false for new setting for token.
    */
    function setOpenEditionMode(uint256 _tokenId, bool _isOpenEdition) public onlyTeamOrOwner {
      openEditionEnabled[_tokenId] = _isOpenEdition;
    }
  }
  

  
  // File: @openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol
  // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)
  
  pragma solidity ^0.8.0;
  
  
  /**
   * @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, Teams, OpenEditionSupport {
      mapping (uint256 => uint256) private _totalSupply;
      mapping (uint256 => uint256) private tokenSupplyCap;
  
      /**
       * @dev Total amount of tokens in with a given id.
       */
      function totalSupply(uint256 _id) public view virtual returns (uint256) {
          return _totalSupply[_id];
      }

      /**
      * @dev Helper function to check if tokenId and qty is within supply cap for token. 
      * If OpenEdition enabled - short circuit to true since cap == minted amt
      * @param _id the token ID to check against
      * @param _qtyToMint the amount of tokens to be minted
      */
      function withinSupplyCap(uint256 _id, uint256 _qtyToMint) internal view returns(bool) {
        return isOpenEdition(_id) ? true : ((totalSupply(_id) + _qtyToMint) <= getTokenSupplyCap(_id));
      }
  
      function getTokenSupplyCap(uint256 _id) public view virtual returns (uint256) {
          if(!exists(_id)) revert TokenDoesNotExist();
          return isOpenEdition(_id) ? _totalSupply[_id] : tokenSupplyCap[_id];
      }
  
      function setTokenSupplyCap(uint256 _id, uint256 _newSupplyCap) public onlyTeamOrOwner {
          if(!exists(_id)) revert TokenDoesNotExist();
          if(isOpenEdition(_id)) revert CannotModifyOpenEditonSupply();  
          if(_newSupplyCap <= tokenSupplyCap[_id]) revert NewSupplyMustExceedPrevious(); 
          tokenSupplyCap[_id] = _newSupplyCap;
      }
  
      /**
       * @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: MerkleProof.sol - OpenZeppelin Standard
  
  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.
  *
  *
  * WARNING: You should avoid using leaf values that are 64 bytes long prior to
  * hashing, or use a hash function other than keccak256 for hashing leaves.
  * This is because the concatenation of a sorted pair of internal nodes in
  * the merkle tree could be reinterpreted as a leaf value.
  */
  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 Merkle 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: Allowlist.sol
  pragma solidity ^0.8.0;
  
  abstract contract Allowlist is Teams {
      mapping(uint256 => bytes32) private merkleRoot;
      mapping(uint256 => bool) private allowlistMode;
      bool public onlyAllowlistMode = false;

      /**
      * @dev Get merkle root for specific token in collection
      * @param _id token id from collection
      */
      function merkleRootForToken(uint256 _id) public view returns(bytes32) {
          return merkleRoot[_id];
      }

      /**
      * @dev Update merkle root to reflect changes in Allowlist
      * @param _id token if for merkle root
      * @param _newMerkleRoot new merkle root to reflect most recent Allowlist
      */
      function updateMerkleRoot(uint256 _id, bytes32 _newMerkleRoot) public onlyTeamOrOwner {
          require(_newMerkleRoot != merkleRoot[_id], "Merkle root will be unchanged!");
          merkleRoot[_id] = _newMerkleRoot;
      }

      /**
      * @dev Check the proof of an address if valid for merkle root
      * @param _address address to check for proof
      * @param _tokenId token id to check root of
      * @param _merkleProof Proof of the address to validate against root and leaf
      */
      function isAllowlisted(address _address, uint256 _tokenId, bytes32[] calldata _merkleProof) public view returns(bool) {
          require(merkleRootForToken(_tokenId) != 0, "Merkle root is not set!");
          bytes32 leaf = keccak256(abi.encodePacked(_address));

          return MerkleProof.verify(_merkleProof, merkleRoot[_tokenId], leaf);
      }

      function inAllowlistMode(uint256 _id) public view returns (bool) {
          return allowlistMode[_id] == true;
      }

      function enableAllowlistOnlyMode(uint256 _id) public onlyTeamOrOwner {
          allowlistMode[_id] = true;
      }

      function disableAllowlistOnlyMode(uint256 _id) public onlyTeamOrOwner {
          allowlistMode[_id] = false;
      }
  }
  
  
interface IERC20 {
  function allowance(address owner, address spender) external view returns (uint256);
  function transfer(address _to, uint256 _amount) external returns (bool);
  function balanceOf(address account) external view returns (uint256);
  function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

abstract contract Withdrawable is Teams {
  address[] public payableAddresses = [0x07BF13B3fcfd66414b63b51d5A422Cf1ec85F765];
  uint256[] public payableFees = [100];
  uint256 public payableAddressCount = 1;

  function withdrawAll() public onlyTeamOrOwner {
      require(address(this).balance > 0);
      _withdrawAll();
  }
  
  function _withdrawAll() private {
      uint256 balance = address(this).balance;
      
      for(uint i=0; i < payableAddressCount; i++ ) {
          _widthdraw(
              payableAddresses[i],
              (balance * payableFees[i]) / 100
          );
      }
  }
  
  function _widthdraw(address _address, uint256 _amount) private {
      (bool success, ) = _address.call{value: _amount}("");
      require(success, "Transfer failed.");
  }

  /**
    * @dev Allow contract owner to withdraw ERC-20 balance from contract
    * while still splitting royalty payments to all other team members.
    * in the event ERC-20 tokens are paid to the contract.
    * @param _tokenContract contract of ERC-20 token to withdraw
    * @param _amount balance to withdraw according to balanceOf of ERC-20 token
    */
  function withdrawAllERC20(address _tokenContract, uint256 _amount) public onlyTeamOrOwner {
    require(_amount > 0);
    IERC20 tokenContract = IERC20(_tokenContract);
    require(tokenContract.balanceOf(address(this)) >= _amount, 'Contract does not own enough tokens');

    for(uint i=0; i < payableAddressCount; i++ ) {
        tokenContract.transfer(payableAddresses[i], (_amount * payableFees[i]) / 100);
    }
  }
}


  
// File: isFeeable.sol
abstract contract isPriceable is Teams {
    mapping (uint256 => uint256) tokenPrice;
    uint256 public PROVIDER_FEE = 0.000777 ether;  
    address private constant PROVIDER = 0xa9dAC8f3aEDC55D0FE707B86B8A45d246858d2E1;

    function getPriceForToken(uint256 _id) public view returns(uint256) {
        return tokenPrice[_id];
    }

    function setPriceForToken(uint256 _id, uint256 _feeInWei) public onlyTeamOrOwner {
        tokenPrice[_id] = _feeInWei;
    }

    function sendProviderFee() internal {
      payable(PROVIDER).transfer(PROVIDER_FEE);
    }

    function setProviderFee(uint256 _fee) public {
        if(_msgSender() != PROVIDER) revert NotMaintainer();
        PROVIDER_FEE = _fee;
    }
}


  
// File: hasTransactionCap.sol
abstract contract hasTransactionCap is Teams {
    mapping (uint256 => uint256) transactionCap;

    function getTransactionCapForToken(uint256 _id) public view returns(uint256) {
        return transactionCap[_id];
    }

    function setTransactionCapForToken(uint256 _id, uint256 _transactionCap) public onlyTeamOrOwner {
        if(_transactionCap == 0) revert CannotBeZero();
        transactionCap[_id] = _transactionCap;
    }

    function canMintQtyForTransaction(uint256 _id, uint256 _qty) internal view returns(bool) {
        return _qty <= transactionCap[_id];
    }
}


  
// File: hasWalletCap.sol
abstract contract hasWalletCap is Teams {
    mapping (uint256 => bool) private walletCapEnabled;
    mapping (uint256 => uint256) private walletMaxes;
    mapping (address => mapping(uint256 => uint256)) private walletMints;

    /**
    * @dev establish the inital settings of the wallet cap upon creation
    * @param _id token id
    * @param _initWalletCapStatus initial state of wallet cap
    * @param _initWalletMax initial state of wallet cap limit
    */
    function setWalletCap(uint256 _id, bool _initWalletCapStatus, uint256 _initWalletMax) internal {
      walletCapEnabled[_id] = _initWalletCapStatus;
      walletMaxes[_id] = _initWalletMax;
    }

    function enableWalletCap(uint256 _id) public onlyTeamOrOwner {
      walletCapEnabled[_id] = true;
    }

    function disableWalletCap(uint256 _id) public onlyTeamOrOwner {
      walletCapEnabled[_id] = false;
    }

    function addTokenMints(uint256 _id, address _address, uint256 _amount) internal {
      walletMints[_address][_id] = (walletMints[_address][_id] +  _amount);
    }

    /**
    * @dev Allow contract owner to reset the amount of tokens claimed to be minted per address
    * @param _id token id
    * @param _address address to reset counter of
    */
    function resetMints(uint256 _id, address _address) public onlyTeamOrOwner {
      walletMints[_address][_id] = 0;
    }

    /**
    * @dev update the wallet max per wallet per token
    * @param _id token id
    * @param _newMax the new wallet max per wallet
    */
    function setTokenWalletMax(uint256 _id, uint256 _newMax) public onlyTeamOrOwner {
      if(_newMax == 0) revert CannotBeZero();
      walletMaxes[_id] = _newMax;
    }

    /**
    * @dev Check if wallet over maximum mint
    * @param _id token id to query against
    * @param _address address in question to check if minted count exceeds max
    */
    function canMintAmount(uint256 _id, address _address, uint256 _amount) public view returns(bool) {
        if(isWalletCapEnabled(_id) == false) {
          return true;
        }
  
        if(_amount == 0) revert CannotBeZero();
        return (currentMintCount(_id, _address) + _amount) <= tokenWalletCap(_id);
    }

    /**
    * @dev Get current wallet cap for token
    * @param _id token id to query against
    */
    function tokenWalletCap(uint256 _id) public view returns(uint256) {
      return walletMaxes[_id];
    }

    /**
    * @dev Check if token is enforcing wallet caps
    * @param _id token id to query against
    */
    function isWalletCapEnabled(uint256 _id) public view returns(bool) {
      return walletCapEnabled[_id] == true;
    }

    /**
    * @dev Check current mint count for token and address
    * @param _id token id to query against
    * @param _address address to check mint count of
    */
    function currentMintCount(uint256 _id, address _address) public view returns(uint256) {
      return walletMints[_address][_id];
    }
}


  
// File: Closeable.sol
abstract contract Closeable is Teams {
    mapping (uint256 => bool) mintingOpen;

    function openMinting(uint256 _id) public onlyTeamOrOwner {
        mintingOpen[_id] = true;
    }

    function closeMinting(uint256 _id) public onlyTeamOrOwner {
        mintingOpen[_id] = false;
    }

    function isMintingOpen(uint256 _id) public view returns(bool) {
        return mintingOpen[_id] == true;
    }

    function setInitialMintingStatus(uint256 _id, bool _initStatus) internal {
        mintingOpen[_id] = _initStatus;
    }
}
  

  
  // @title An implementation of ERC-1155 with additonal context for 1:1 redemption with another ERC-1155
  // @author Mintplex.xyz (Mintplex Labs Inc) (Twitter: @MintplexNFT)
  // @notice -- See Medium article --
  // @custom:experimental This is an experimental contract interface. Mintplex assumes no responsibility for functionality or security.
  abstract contract ERC1155Redemption is ERC1155, Teams {
      // @dev Emitted when someone exchanges an NFT for this contracts NFT via token redemption swap or verified Claim
      event Redemption(string indexed redemptionMethod, address indexed from, uint256 indexed tokenIdMinted, address redemptionContractUsed, uint256 foreignTokenId);

      struct RedemptionDetail {
          mapping(address => uint256) redemptionSurcharge;
          bool redemptionModeEnabled;
          bool verifiedClaimModeEnabled;
          address redemptionAddress;
          mapping(address => mapping(uint256 => bool)) redemptionContracts; // contractAddress: {ftokenId: boolean}
          mapping(address => mapping(uint256 => mapping(address => uint256))) tokenRedemptions;
          // tokenRedemptions are only enforced during verifiedClaim calls to prevent double-dips on the same token balance.
          // [foreignContractAddress] {
          //   [foreignTokenId]: {
          //      [userAddress]: [redeemedBalance] // Check this balance is never greater than foreign balanceOf(useraddress, fTokenId)
          //   }
          // }
      }

      mapping(uint256 => RedemptionDetail) internal redemptionDetail;

      function bulkSetRedemptionDetails(
          uint256 tokenId, 
          uint256 fTokenId, 
          uint256 _surchargeInWei,
          bool _redemptionModeEnabled,
          bool _verifiedClaimModeEnabled,
          address _redemptionAddress,
          address _redemptionContract
      ) public onlyTeamOrOwner {
          if(_redemptionAddress == address(0)) revert CannotBeNullAddress();
          if(_redemptionModeEnabled && _verifiedClaimModeEnabled) revert CannotEnableBothRedeemModes();

          RedemptionDetail storage details = redemptionDetail[tokenId];
          details.redemptionSurcharge[_redemptionContract] = _surchargeInWei;
          details.redemptionModeEnabled = _redemptionModeEnabled;
          details.verifiedClaimModeEnabled = _verifiedClaimModeEnabled;
          details.redemptionAddress = _redemptionAddress;
          details.redemptionContracts[_redemptionContract][fTokenId] = true;
        }

      function redemptionStatsForContract(uint256 tokenId, address _contractAddress, uint256 ftokenId) public view returns (uint256, bool, bool, bool, address) {
          RedemptionDetail storage details = redemptionDetail[tokenId];
          return (
              details.redemptionSurcharge[_contractAddress],
              details.redemptionModeEnabled,
              details.verifiedClaimModeEnabled,
              details.redemptionContracts[_contractAddress][ftokenId],
              details.redemptionAddress
          );
      }

      function redemptionBalanceForToken(uint256 tokenId, address _contractAddress, address _userAddress, uint256 ftokenId) public view returns (uint256) {
        return redemptionDetail[tokenId].tokenRedemptions[_contractAddress][ftokenId][_userAddress];
      }

      // @dev Allow owner/team to set the contract:token as eligable for redemption for this contract
      function setRedeemableContract(uint256 tokenId, address _contractAddress, bool _status, uint256 fTokenId) public onlyTeamOrOwner {
        redemptionDetail[tokenId].redemptionContracts[_contractAddress][fTokenId] = _status;
      }
  }
  
// File: contracts/InusGenesisPassCollectionContract.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;

contract InusGenesisPassCollectionContract is 
    ERC1155,
    Ownable,
    Teams,
    Pausable, 
    ERC1155Supply, 
    ERC1155Redemption,
    Withdrawable,
    Closeable,
    isPriceable,
    hasTransactionCap,
    hasWalletCap,
    Allowlist
{
    constructor() ERC1155('') OperatorFilterer(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6, true) {}

    uint8 constant public CONTRACT_VERSION = 4;
    bytes private emptyBytes;
    uint256 public currentTokenID = 0;
    string public name = "INUS Genesis Pass Collection";
    string public symbol = "INUSPASS";

    mapping (uint256 => string) baseTokenURI;

    /**
    * @dev returns the URI for a specific token to show metadata on marketplaces
    * @param _id the maximum supply of tokens for this token
    */
    function uri(uint256 _id) public override view returns (string memory) {
        if(!exists(_id)) revert TokenDoesNotExist();
        return baseTokenURI[_id];
    }

    
  /////////////// Admin Mint Functions
  function mintToAdmin(address _address, uint256 _id, uint256 _qty) public onlyTeamOrOwner {
      if(!exists(_id)) revert TokenDoesNotExist();
      if(_qty == 0) revert MintZeroQuantity();
      if(!withinSupplyCap(_id, _qty)) revert CapExceeded();
      
      _mint(_address, _id, _qty, emptyBytes);
  }

  function mintManyAdmin(address[] memory addresses, uint256 _id, uint256 _qtyToEach) public onlyTeamOrOwner {
      for(uint256 i=0; i < addresses.length; i++) {
          _mint(addresses[i], _id, _qtyToEach, emptyBytes);
      }
  }

    
  /////////////// Public Mint Functions
  /**
  * @dev Mints a number of tokens to a single address.
  * fee may or may not be required*
  * @param _to recipient address
  * @param _id token id of collection
  * @param _qty amount to mint
  */
  function mintToMultiple(address _to, uint256 _id, uint256 _qty) public payable whenNotPaused {
      if(!exists(_id)) revert TokenDoesNotExist();
      if(_qty == 0) revert MintZeroQuantity();
      if(!canMintQtyForTransaction(_id, _qty)) revert ExceededTransactionMints();
      if(!withinSupplyCap(_id, _qty)) revert CapExceeded();
      if(msg.value != getPrice(_id, _qty)) revert InvalidPayment();

      if(inAllowlistMode(_id)) revert PublicMintClosed();
      if(!isMintingOpen(_id)) revert PublicMintClosed();
      if(!canMintAmount(_id, _to, _qty)) revert ExceededMints();

      sendProviderFee();
      addTokenMints(_id, _to, _qty);
      _mint(_to, _id, _qty, emptyBytes);
  }

    
    ///////////// ALLOWLIST MINTING FUNCTIONS
    /**
    * @dev Mints a number of tokens to a single address.
    * fee may or may not be required*
    * @param _to recipient address
    * @param _id token id of collection
    * @param _qty amount to mint
    * @param _merkleProof merkle proof tree for sender
    */
    function mintToMultipleAL(address _to, uint256 _id, uint256 _qty, bytes32[] calldata _merkleProof) public payable whenNotPaused {
        if(!exists(_id)) revert TokenDoesNotExist();
        if(_qty == 0) revert MintZeroQuantity();
        if(!canMintQtyForTransaction(_id, _qty)) revert ExceededTransactionMints();
        if(!withinSupplyCap(_id, _qty)) revert CapExceeded();
        if(msg.value != getPrice(_id, _qty)) revert InvalidPayment();

        if(!inAllowlistMode(_id) || !isMintingOpen(_id)) revert AllowlistMintClosed();
        if(!isAllowlisted(_to, _id, _merkleProof)) revert NotInAllowlist();
        if(!canMintAmount(_id, _to, _qty)) revert ExceededMints();

        sendProviderFee();
        addTokenMints(_id, _to, _qty);
        _mint(_to, _id, _qty, emptyBytes);
    }


    
    /////////////// Redemption Mint Functions
    /**
    * @dev allows redemption or "burning" of a single tokenID. Must be owned by the owner
    * @notice this does not impact the total supply of the burned token and the transfer destination address may be set by
    * the contract owner or Team => redemptionAddress.
    * @param tokenId the token to be minted.
    * @param redemptionContract foreignContractAddress to be checked against
    * @param ftokenId the foreign token to be redeemed.
    * Emits a {Redemption} event.
    **/
    function redeem(uint256 tokenId, address redemptionContract, uint256 ftokenId) public payable {
        if (!exists(tokenId)) revert TokenDoesNotExist();
        if (!withinSupplyCap(tokenId, 1)) revert CapExceeded();
        if (redemptionContract == address(0)) revert CannotBeNullAddress();
        if (!canMintAmount(tokenId, _msgSender(), 1)) revert ExceededMints();

        RedemptionDetail storage details = redemptionDetail[tokenId];
        if(!details.redemptionModeEnabled) revert ClaimModeDisabled();
        if(msg.value != (details.redemptionSurcharge[redemptionContract] + PROVIDER_FEE)) revert InvalidPayment();
        if(!details.redemptionContracts[redemptionContract][ftokenId]) revert IneligibleRedemptionContract();

        // When doing a burn mint there is no reason to do a redemption balance check
        // because if they own the tokens, they can mint and it will be removed from their wallet unless
        // they are also the burn recipient (user config issue).
        IERC1155 _targetContract = IERC1155(redemptionContract);
        uint256 currentBalance = _targetContract.balanceOf(_msgSender(), ftokenId);
        if(currentBalance == 0) revert InsufficentTokenBalance();
        if(!_targetContract.isApprovedForAll(_msgSender(), address(this))) revert InvalidApprovalForRedemption();

        // Warning: Since there is no standarized return value for transfers of ERC-1155
        // It is possible this function silently fails and a mint still occurs. The owner of the contract is
        // responsible for ensuring that the redemption contract does not lock or have staked controls preventing
        // movement of the token. As an added measure we keep a mapping of tokens redemption balances to help prevent multiple single-token redemptions,
        // but the NFT may not have been sent to the redemptionAddress.
        _targetContract.safeTransferFrom(_msgSender(), details.redemptionAddress, ftokenId, 1, emptyBytes);

        emit Redemption("redeem", _msgSender(), tokenId, redemptionContract, ftokenId);
        sendProviderFee();
        addTokenMints(tokenId, _msgSender(), 1);
        _mint(_msgSender(), tokenId, 1, emptyBytes);
    }

    /**
    * @dev allows for verified claim mint against a tokenID. Must be owned by the owner
    * @notice this mint action allows the original NFT to remain in the holders wallet, but its claim is logged.
    * @param tokenId the token to be redeemed.
    * @param redemptionContract foreignContractAddress to be checked against
    * @param ftokenId the foreign token to be redeemed.
    * Emits a {Redemption} event.
    **/
    function verifedClaim(uint256 tokenId, address redemptionContract, uint256 ftokenId) public payable {
        if (!exists(tokenId)) revert TokenDoesNotExist();
        if (!withinSupplyCap(tokenId, 1)) revert CapExceeded();
        if (redemptionContract == address(0)) revert CannotBeNullAddress();
        if (!canMintAmount(tokenId, _msgSender(), 1)) revert ExceededMints();

        RedemptionDetail storage details = redemptionDetail[tokenId];
        if(!details.verifiedClaimModeEnabled) revert ClaimModeDisabled();
        if(msg.value != (details.redemptionSurcharge[redemptionContract] + PROVIDER_FEE)) revert InvalidPayment();
        if(!details.redemptionContracts[redemptionContract][ftokenId]) revert IneligibleRedemptionContract();

        // When doing a verified mint we need to keep a tab of how many redemptions the buyer
        // has executed since the token never leaves their wallet and therefore balance remains unchanged.
        // To prevent double-claims we keep a log of what they have claimed already against each token verified.
        IERC1155 _targetContract = IERC1155(redemptionContract);
        uint256 currentBalance = _targetContract.balanceOf(_msgSender(), ftokenId);
        uint256 redeemedBalance = details.tokenRedemptions[redemptionContract][ftokenId][_msgSender()];
        if(currentBalance == 0) revert InsufficentTokenBalance();
        if(redeemedBalance >= currentBalance) revert TokenRedemptionBalanceExhausted();
        
        redemptionDetail[tokenId].tokenRedemptions[redemptionContract][ftokenId][_msgSender()] = redeemedBalance + 1;
        
        emit Redemption("verifedClaim", _msgSender(), tokenId, redemptionContract, ftokenId);
        sendProviderFee();
        addTokenMints(tokenId, _msgSender(), 1);
        _mint(_msgSender(), tokenId, 1, emptyBytes);
    }

    /**
    * @dev Creates a new primary token for contract and gives creator first token
    * @param _tokenSupplyCap the maximum supply of tokens for this token
    * @param _tokenTransactionCap maximum amount of tokens one can buy per tx
    * @param _tokenFeeInWei payable fee per token
    * @param _isOpenDefaultStatus can token be publically minted once created
    * @param _allowTradingDefaultStatus is the token intially able to be transferred
    * @param _enableWalletCap is the token going to enforce wallet caps on creation
    * @param _walletCap wallet cap limit inital setting
    * @param _tokenURI the token URI to the metadata for this token
    */
    function createToken(
            uint256 _tokenSupplyCap, 
            uint256 _tokenTransactionCap,
            uint256 _tokenFeeInWei, 
            bool _isOpenDefaultStatus,
            bool _allowTradingDefaultStatus,
            bool _enableWalletCap,
            uint256 _walletCap,
            bool _isOpenEdition,
            string memory _tokenURI
        ) public onlyTeamOrOwner {
        if(_tokenSupplyCap == 0) revert CannotBeZero();
        if(_tokenTransactionCap == 0) revert CannotBeZero();
        if(bytes(_tokenURI).length == 0) revert CannotBeZero();

        uint256 tokenId = _getNextTokenID();

        _mint(msg.sender, tokenId, 1, emptyBytes);
        baseTokenURI[tokenId] = _tokenURI;

        setTokenSupplyCap(tokenId, _tokenSupplyCap);
        setPriceForToken(tokenId, _tokenFeeInWei);
        setTransactionCapForToken(tokenId, _tokenTransactionCap);
        setInitialMintingStatus(tokenId, _isOpenDefaultStatus);
        setWalletCap(tokenId, _enableWalletCap, _walletCap);
        tokenTradingStatus[tokenId] = _allowTradingDefaultStatus ? 255 : 1;
        setOpenEditionMode(tokenId, _isOpenEdition);

        _incrementTokenTypeId();
    }

    /**
    * @dev pauses minting for all tokens in the contract
    */
    function pause() public onlyTeamOrOwner {
        _pause();
    }

    /**
    * @dev unpauses minting for all tokens in the contract
    */
    function unpause() public onlyTeamOrOwner {
        _unpause();
    }

    /**
    * @dev set the URI for a specific token on the contract
    * @param _id token id
    * @param _newTokenURI string for new metadata url (ex: ipfs://something)
    */
    function setTokenURI(uint256 _id, string memory _newTokenURI) public onlyTeamOrOwner {
        if(!exists(_id)) revert TokenDoesNotExist();
        baseTokenURI[_id] = _newTokenURI;
    }

    /**
    * @dev calculates price for a token based on qty
    * @param _id token id
    * @param _qty desired amount to mint
    */
    function getPrice(uint256 _id, uint256 _qty) public view returns (uint256) {
        if(_qty == 0) revert CannotBeZero();
        return (getPriceForToken(_id) * _qty) + PROVIDER_FEE;
    }

    /**
    * @dev prevent token from being transferred (aka soulbound)
    * @param tokenId token id
    */
    function setTokenUntradeable(uint256 tokenId) public onlyTeamOrOwner {
        if(!exists(tokenId)) revert TokenDoesNotExist();
        if(tokenTradingStatus[tokenId] == 1) revert NoStateChange();
        tokenTradingStatus[tokenId] = 1;
    }

    /**
    * @dev allow token from being transferred - the default mode
    * @param tokenId token id
    */
    function setTokenTradeable(uint256 tokenId) public onlyTeamOrOwner {
        if(!exists(tokenId)) revert TokenDoesNotExist();
        if(tokenTradingStatus[tokenId] == 255) revert NoStateChange();
        tokenTradingStatus[tokenId] = 255;
    }

    /**
    * @dev check if token id is tradeable
    * @param tokenId token id
    */
    function isTokenTradeable(uint256 tokenId) public view returns (bool) {
        if(!exists(tokenId)) revert TokenDoesNotExist();
        return tokenTradingStatus[tokenId] == 255;
    }

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

    function _getNextTokenID() private view returns (uint256) {
        return currentTokenID + 1;
    }

    /**
    * @dev increments the value of currentTokenID
    */
    function _incrementTokenTypeId() private  {
        currentTokenID++;
    }

    
  function contractURI() public pure returns (string memory) {
    return "https://metadata.mintplex.xyz/jzHgmceMNkJIAsZQGBLQ/contract-metadata";
  }
  
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowlistMintClosed","type":"error"},{"inputs":[],"name":"CannotBeNullAddress","type":"error"},{"inputs":[],"name":"CannotBeZero","type":"error"},{"inputs":[],"name":"CannotEnableBothRedeemModes","type":"error"},{"inputs":[],"name":"CannotModifyOpenEditonSupply","type":"error"},{"inputs":[],"name":"CapExceeded","type":"error"},{"inputs":[],"name":"ClaimModeDisabled","type":"error"},{"inputs":[],"name":"DuplicateTeamAddress","type":"error"},{"inputs":[],"name":"ExceededMints","type":"error"},{"inputs":[],"name":"ExceededTransactionMints","type":"error"},{"inputs":[],"name":"IneligibleRedemptionContract","type":"error"},{"inputs":[],"name":"InsufficentTokenBalance","type":"error"},{"inputs":[],"name":"InvalidApprovalForRedemption","type":"error"},{"inputs":[],"name":"InvalidPayment","type":"error"},{"inputs":[],"name":"InvalidTeamAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NewSupplyMustExceedPrevious","type":"error"},{"inputs":[],"name":"NoStateChange","type":"error"},{"inputs":[],"name":"NotInAllowlist","type":"error"},{"inputs":[],"name":"NotMaintainer","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"PublicMintClosed","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"inputs":[],"name":"TokenRedemptionBalanceExhausted","type":"error"},{"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":"string","name":"redemptionMethod","type":"string"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenIdMinted","type":"uint256"},{"indexed":false,"internalType":"address","name":"redemptionContractUsed","type":"address"},{"indexed":false,"internalType":"uint256","name":"foreignTokenId","type":"uint256"}],"name":"Redemption","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":"CONTRACT_VERSION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVIDER_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addToTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"fTokenId","type":"uint256"},{"internalType":"uint256","name":"_surchargeInWei","type":"uint256"},{"internalType":"bool","name":"_redemptionModeEnabled","type":"bool"},{"internalType":"bool","name":"_verifiedClaimModeEnabled","type":"bool"},{"internalType":"address","name":"_redemptionAddress","type":"address"},{"internalType":"address","name":"_redemptionContract","type":"address"}],"name":"bulkSetRedemptionDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"canMintAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"closeMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenSupplyCap","type":"uint256"},{"internalType":"uint256","name":"_tokenTransactionCap","type":"uint256"},{"internalType":"uint256","name":"_tokenFeeInWei","type":"uint256"},{"internalType":"bool","name":"_isOpenDefaultStatus","type":"bool"},{"internalType":"bool","name":"_allowTradingDefaultStatus","type":"bool"},{"internalType":"bool","name":"_enableWalletCap","type":"bool"},{"internalType":"uint256","name":"_walletCap","type":"uint256"},{"internalType":"bool","name":"_isOpenEdition","type":"bool"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"createToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"currentMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"disableAllowlistOnlyMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"disableWalletCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"enableAllowlistOnlyMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"enableWalletCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getPriceForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getTokenSupplyCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getTransactionCapForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"inAllowlistMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"inTeam","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isAllowlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isMintingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isOpenEdition","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isTokenTradeable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isWalletCapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"merkleRootForToken","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_qtyToEach","type":"uint256"}],"name":"mintManyAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"mintToAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"mintToMultiple","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_qty","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintToMultipleAL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyAllowlistMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"openMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payableAddressCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payableAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payableFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"redemptionContract","type":"address"},{"internalType":"uint256","name":"ftokenId","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"uint256","name":"ftokenId","type":"uint256"}],"name":"redemptionBalanceForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"ftokenId","type":"uint256"}],"name":"redemptionStatsForContract","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeFromTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"resetMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_isOpenEdition","type":"bool"}],"name":"setOpenEditionMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_feeInWei","type":"uint256"}],"name":"setPriceForToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setProviderFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"bool","name":"_status","type":"bool"},{"internalType":"uint256","name":"fTokenId","type":"uint256"}],"name":"setRedeemableContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_newSupplyCap","type":"uint256"}],"name":"setTokenSupplyCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setTokenTradeable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_newTokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setTokenUntradeable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_newMax","type":"uint256"}],"name":"setTokenWalletMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_transactionCap","type":"uint256"}],"name":"setTransactionCapForToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenWalletCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"redemptionContract","type":"address"},{"internalType":"uint256","name":"ftokenId","type":"uint256"}],"name":"verifedClaim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawAllERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040527307bf13b3fcfd66414b63b51d5a422cf1ec85f76560809081526200002e90600b906001620002f5565b506040805160208101909152606481526200004e90600c9060016200035f565b506001600d556602c2ad68fd90006010556017805460ff19169055600060195560408051808201909152601c8082527f494e55532047656e65736973205061737320436f6c6c656374696f6e000000006020909201918252620000b491601a91620003a2565b5060408051808201909152600880825267494e55535041535360c01b6020909201918252620000e691601b91620003a2565b50348015620000f457600080fd5b50604080516020810190915260008152733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b1562000260578015620001ae57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200018f57600080fd5b505af1158015620001a4573d6000803e3d6000fd5b5050505062000260565b6001600160a01b03821615620001ff5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000174565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200024657600080fd5b505af11580156200025b573d6000803e3d6000fd5b505050505b506200026e9050816200028a565b506200027a33620002a3565b6006805460ff1916905562000473565b80516200029f906003906020840190620003a2565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200034d579160200282015b828111156200034d57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000316565b506200035b9291506200041f565b5090565b8280548282559060005260206000209081019282156200034d579160200282015b828111156200034d578251829060ff1690559160200191906001019062000380565b828054620003b09062000436565b90600052602060002090601f016020900481019282620003d457600085556200034d565b82601f10620003ef57805160ff19168380011785556200034d565b828001600101855582156200034d579182015b828111156200034d57825182559160200191906001019062000402565b5b808211156200035b576000815560010162000420565b600181811c908216806200044b57607f821691505b602082108114156200046d57634e487b7160e01b600052602260045260246000fd5b50919050565b614d9680620004836000396000f3fe6080604052600436106104255760003560e01c8063869e9a0011610229578063bec0904b1161012e578063eb238e81116100b6578063f623bb8b1161007a578063f623bb8b14610e25578063f7436e3714610e3b578063fc2f383214610e5b578063fca9a9fd14610e7b578063fe6d3cc814610e8e57600080fd5b8063eb238e8114610d70578063eec8e90814610da5578063f1e3311514610dc5578063f242432a14610de5578063f2fde38b14610e0557600080fd5b8063dfdedf69116100fd578063dfdedf6914610cb8578063e6c6990a14610cd8578063e82da69114610cf2578063e8a3d48514610d12578063e985e9c514610d2757600080fd5b8063bec0904b14610c30578063d2de022f14610c65578063d878016114610c85578063d8800f9414610c9857600080fd5b8063a22cb465116101b1578063b40ebceb11610180578063b40ebceb14610b9a578063bb6074e014610bba578063bb62115e14610bcd578063bc1f0ab514610be3578063bd85b03914610c0357600080fd5b8063a22cb46514610ae2578063a7593fb714610b02578063ac80746a14610b22578063acc92e1314610b4257600080fd5b80638da5cb5b116101f85780638da5cb5b14610a4257806395d89b4114610a605780639b19264714610a755780639e490e2414610a95578063a1af10ca14610ac257600080fd5b8063869e9a001461099d578063891bbe73146109bd5780638b19a0ce146109f55780638c04b8e914610a1557600080fd5b80634bf4e0871161032f5780636586375b116102b7578063736e04fa11610286578063736e04fa146108e95780637aa9c33f1461091e57806383e083c31461093e5780638456cb5914610973578063853828b61461098857600080fd5b80636586375b146108815780636af3ef58146108a15780636c6acd4d146108b4578063715018a6146108d457600080fd5b80634f558e79116102fe5780634f558e79146107da578063501b4463146108095780635c975abb146108295780635cf4ee9114610841578063628d35c91461086157600080fd5b80634bf4e087146107135780634d09ae6d146107405780634e1273f41461076d5780634e5298a01461079a57600080fd5b80633832e870116103b25780633e511168116103815780633e511168146105ee5780633e6768c71461060e5780633f4ba83a146106be57806343696f18146106d35780634790c925146106f357600080fd5b80633832e8701461057157806338b903331461059157806338df41ac146105b85780633e07311c146105d857600080fd5b8063134902fd116103f9578063134902fd146104cf578063143727c9146104ef578063162094c41461050f578063286c8137146105315780632eb2c2d61461055157600080fd5b8062fdd58e1461042a57806301ffc9a71461045d57806306fdde031461048d5780630e89341c146104af575b600080fd5b34801561043657600080fd5b5061044a610445366004613ed9565b610eae565b6040519081526020015b60405180910390f35b34801561046957600080fd5b5061047d610478366004613f19565b610f47565b6040519015158152602001610454565b34801561049957600080fd5b506104a2610f99565b6040516104549190613f83565b3480156104bb57600080fd5b506104a26104ca366004613f96565b611027565b3480156104db57600080fd5b5061047d6104ea366004613f96565b6110f4565b3480156104fb57600080fd5b5061044a61050a366004613f96565b611139565b34801561051b57600080fd5b5061052f61052a366004614064565b6111ae565b005b34801561053d57600080fd5b5061044a61054c366004613f96565b611206565b34801561055d57600080fd5b5061052f61056c36600461413e565b611227565b34801561057d57600080fd5b5061052f61058c3660046141e7565b6113cc565b34801561059d57600080fd5b506105a6600481565b60405160ff9091168152602001610454565b3480156105c457600080fd5b5061052f6105d3366004614209565b61147c565b3480156105e457600080fd5b5061044a600d5481565b3480156105fa57600080fd5b5061052f6106093660046141e7565b61158b565b34801561061a57600080fd5b5061068761062936600461423c565b6000928352600a602090815260408085206001600160a01b039485168652808352818620546001820154600290920184528287209487529390925290932054909360ff80851694610100810482169491909316926201000090041690565b6040805195865293151560208601529115159284019290925290151560608301526001600160a01b0316608082015260a001610454565b3480156106ca57600080fd5b5061052f6115c3565b3480156106df57600080fd5b5061052f6106ee366004614271565b6115d5565b3480156106ff57600080fd5b5061052f61070e366004613f96565b61164e565b34801561071f57600080fd5b5061044a61072e366004613f96565b60009081526013602052604090205490565b34801561074c57600080fd5b5061044a61075b366004613f96565b6000908152600f602052604090205490565b34801561077957600080fd5b5061078d6107883660046142f9565b6116d0565b604051610454919061438d565b3480156107a657600080fd5b5061044a6107b53660046143a0565b6001600160a01b03166000908152601460209081526040808320938352929052205490565b3480156107e657600080fd5b5061047d6107f5366004613f96565b600090815260086020526040902054151590565b34801561081557600080fd5b5061052f6108243660046143da565b6117f9565b34801561083557600080fd5b5060065460ff1661047d565b34801561084d57600080fd5b5061044a61085c3660046141e7565b611841565b34801561086d57600080fd5b5061052f61087c366004613f96565b61188f565b34801561088d57600080fd5b5061052f61089c366004613f96565b6118af565b61052f6108af366004614209565b6118cf565b3480156108c057600080fd5b5061052f6108cf366004614420565b611a6d565b3480156108e057600080fd5b5061052f611ac5565b3480156108f557600080fd5b5061047d610904366004613f96565b60009081526012602052604090205460ff16151560011490565b34801561092a57600080fd5b5061052f6109393660046141e7565b611ad7565b34801561094a57600080fd5b5061047d610959366004613f96565b6000908152600e602052604090205460ff16151560011490565b34801561097f57600080fd5b5061052f611af1565b34801561099457600080fd5b5061052f611b01565b3480156109a957600080fd5b5061052f6109b836600461446d565b611b1e565b3480156109c957600080fd5b506109dd6109d8366004613f96565b611b46565b6040516001600160a01b039091168152602001610454565b348015610a0157600080fd5b5061052f610a1036600461449d565b611b70565b348015610a2157600080fd5b5061044a610a30366004613f96565b60009081526015602052604090205490565b348015610a4e57600080fd5b506004546001600160a01b03166109dd565b348015610a6c57600080fd5b506104a2611c54565b348015610a8157600080fd5b5061052f610a90366004613f96565b611c61565b348015610aa157600080fd5b5061044a610ab0366004613f96565b60009081526011602052604090205490565b348015610ace57600080fd5b5061047d610add366004614271565b611c84565b348015610aee57600080fd5b5061052f610afd366004614512565b611cd0565b348015610b0e57600080fd5b5061052f610b1d366004613f96565b611ce5565b348015610b2e57600080fd5b5061052f610b3d3660046143a0565b611d1e565b348015610b4e57600080fd5b5061044a610b5d36600461453e565b6000938452600a602090815260408086206001600160a01b0395861687526003018252808620928652918152818520929093168452915290205490565b348015610ba657600080fd5b5061052f610bb5366004613ed9565b611d4c565b61052f610bc83660046145bd565b611f49565b348015610bd957600080fd5b5061044a60195481565b348015610bef57600080fd5b5061052f610bfe366004613f96565b612116565b348015610c0f57600080fd5b5061044a610c1e366004613f96565b60009081526008602052604090205490565b348015610c3c57600080fd5b5061047d610c4b366004613f96565b60009081526007602052604090205460ff16151560011490565b348015610c7157600080fd5b5061047d610c80366004614624565b612139565b61052f610c9336600461423c565b612223565b348015610ca457600080fd5b5061052f610cb33660046141e7565b6125f1565b348015610cc457600080fd5b5061052f610cd3366004614271565b612629565b348015610ce457600080fd5b5060175461047d9060ff1681565b348015610cfe57600080fd5b5061052f610d0d366004613f96565b61269d565b348015610d1e57600080fd5b506104a26126bd565b348015610d3357600080fd5b5061047d610d4236600461467d565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b348015610d7c57600080fd5b5061047d610d8b366004613f96565b60009081526016602052604090205460ff16151560011490565b348015610db157600080fd5b5061052f610dc0366004613f96565b6126dd565b348015610dd157600080fd5b5061052f610de03660046141e7565b61275f565b348015610df157600080fd5b5061052f610e003660046146a7565b6127d7565b348015610e1157600080fd5b5061052f610e20366004614271565b6128f3565b348015610e3157600080fd5b5061044a60105481565b348015610e4757600080fd5b5061052f610e5636600461470b565b61296c565b348015610e6757600080fd5b5061047d610e7636600461423c565b612abb565b61052f610e8936600461423c565b612b40565b348015610e9a57600080fd5b5061052f610ea9366004613f96565b612e7b565b60006001600160a01b038316610f1f5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610f7857506001600160e01b031982166303a24d0760e21b145b80610f9357506301ffc9a760e01b6001600160e01b03198316145b92915050565b601a8054610fa6906147b9565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd2906147b9565b801561101f5780601f10610ff45761010080835404028352916020019161101f565b820191906000526020600020905b81548152906001019060200180831161100257829003601f168201915b505050505081565b6000818152600860205260409020546060906110565760405163677510db60e11b815260040160405180910390fd5b6000828152601c60205260409020805461106f906147b9565b80601f016020809104026020016040519081016040528092919081815260200182805461109b906147b9565b80156110e85780601f106110bd576101008083540402835291602001916110e8565b820191906000526020600020905b8154815290600101906020018083116110cb57829003601f168201915b50505050509050919050565b6000818152600860205260408120546111205760405163677510db60e11b815260040160405180910390fd5b5060009081526020819052604090205460ff9081161490565b6000818152600860205260408120546111655760405163677510db60e11b815260040160405180910390fd5b6111838260009081526007602052604090205460ff16151560011490565b61119b57600082815260096020526040902054610f93565b5060009081526008602052604090205490565b6111b6612e9e565b6000828152600860205260409020546111e25760405163677510db60e11b815260040160405180910390fd5b6000828152601c60209081526040909120825161120192840190613e24565b505050565b600c818154811061121657600080fd5b600091825260209091200154905081565b846daaeb6d7670e522a718067333cd4e3b15611310576001600160a01b0381163314156113075760005b84518110156112bc5760008086838151811061126f5761126f6147f4565b60209081029190910181015182528101919091526040016000205460ff908116146112ac5760405162461bcd60e51b8152600401610f169061480a565b6112b581614857565b9050611251565b506001600160a01b0386163314806112d957506112d98633610d42565b6112f55760405162461bcd60e51b8152600401610f1690614872565b6113028686868686612f28565b6113c4565b6113108161310e565b60005b845181101561137e57600080868381518110611331576113316147f4565b60209081029190910181015182528101919091526040016000205460ff9081161461136e5760405162461bcd60e51b8152600401610f169061480a565b61137781614857565b9050611313565b506001600160a01b03861633148061139b575061139b8633610d42565b6113b75760405162461bcd60e51b8152600401610f1690614872565b6113c48686868686612f28565b505050505050565b6113d4612e9e565b6000828152600860205260409020546114005760405163677510db60e11b815260040160405180910390fd5b61141e8260009081526007602052604090205460ff16151560011490565b1561143c5760405163222f7ae360e21b815260040160405180910390fd5b600082815260096020526040902054811161146a576040516325ede60b60e11b815260040160405180910390fd5b60009182526009602052604090912055565b611484612e9e565b6000828152600860205260409020546114b05760405163677510db60e11b815260040160405180910390fd5b806114ce5760405163b562e8dd60e01b815260040160405180910390fd5b6114d88282613241565b6114f55760405163a4875a4960e01b815260040160405180910390fd5b61120183838360188054611508906147b9565b80601f0160208091040260200160405190810160405280929190818152602001828054611534906147b9565b80156115815780601f1061155657610100808354040283529160200191611581565b820191906000526020600020905b81548152906001019060200180831161156457829003601f168201915b505050505061328f565b611593612e9e565b806115b157604051631e1d0ab560e01b815260040160405180910390fd5b60009182526011602052604090912055565b6115cb612e9e565b6115d36133a1565b565b6115dd613434565b6001600160a01b0381166116035760405162afb37360e31b815260040160405180910390fd5b61160c81611c84565b1561162a57604051631002377360e01b815260040160405180910390fd5b6001600160a01b03166000908152600560205260409020805460ff19166001179055565b611656612e9e565b6000818152600860205260409020546116825760405163677510db60e11b815260040160405180910390fd5b60008181526020819052604090205460ff90811614156116b55760405163a28a88c160e01b815260040160405180910390fd5b6000908152602081905260409020805460ff191660ff179055565b606081518351146117355760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610f16565b600083516001600160401b0381111561175057611750613faf565b604051908082528060200260200182016040528015611779578160200160208202803683370190505b50905060005b84518110156117f1576117c485828151811061179d5761179d6147f4565b60200260200101518583815181106117b7576117b76147f4565b6020026020010151610eae565b8282815181106117d6576117d66147f4565b60209081029190910101526117ea81614857565b905061177f565b509392505050565b611801612e9e565b6000938452600a602090815260408086206001600160a01b0395909516865260029094018152838520918552529120805460ff1916911515919091179055565b60008161186157604051631e1d0ab560e01b815260040160405180910390fd5b6010546000848152600f602052604090205461187e9084906148c4565b61188891906148e3565b9392505050565b611897612e9e565b6000908152600e60205260409020805460ff19169055565b6118b7612e9e565b6000908152601660205260409020805460ff19169055565b60065460ff16156118f25760405162461bcd60e51b8152600401610f16906148fb565b60008281526008602052604090205461191e5760405163677510db60e11b815260040160405180910390fd5b8061193c5760405163b562e8dd60e01b815260040160405180910390fd5b60008281526011602052604090205481111561196b576040516344e9090d60e11b815260040160405180910390fd5b6119758282613241565b6119925760405163a4875a4960e01b815260040160405180910390fd5b61199c8282611841565b34146119bb5760405163078d696560e31b815260040160405180910390fd5b6119d98260009081526016602052604090205460ff16151560011490565b156119f7576040516316851fc760e11b815260040160405180910390fd5b611a15826000908152600e602052604090205460ff16151560011490565b611a32576040516316851fc760e11b815260040160405180910390fd5b611a3d828483612abb565b611a5a5760405163034fc3d760e21b815260040160405180910390fd5b611a6261348e565b6114f58284836134d0565b611a75612e9e565b60005b8351811015611abf57611aad848281518110611a9657611a966147f4565b6020026020010151848460188054611508906147b9565b80611ab781614857565b915050611a78565b50505050565b611acd613434565b6115d36000613529565b611adf612e9e565b6000918252600f602052604090912055565b611af9612e9e565b6115d361357b565b611b09612e9e565b60004711611b1657600080fd5b6115d36135d3565b611b26612e9e565b600091825260076020526040909120805460ff1916911515919091179055565b600b8181548110611b5657600080fd5b6000918252602090912001546001600160a01b0316905081565b611b78612e9e565b6001600160a01b038216611b9f576040516322646a9760e21b815260040160405180910390fd5b838015611ba95750825b15611bc757604051635228d1bf60e01b815260040160405180910390fd5b6000968752600a602090815260408089206001600160a01b039384168a52808352818a20979097556001808801805461ffff191697151561ff00191697909717610100961515969096029590951762010000600160b01b0319166201000094909316939093029190911790935560029093018252828520938552929052909120805460ff19169091179055565b601b8054610fa6906147b9565b611c69612e9e565b6000908152600e60205260409020805460ff19166001179055565b60006001600160a01b038216611cac5760405162afb37360e31b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205460ff16151560011490565b81611cda81613661565b611201338484613729565b3373a9dac8f3aedc55d0fe707b86b8a45d246858d2e114611d1957604051639b96b05160e01b815260040160405180910390fd5b601055565b611d26612e9e565b6001600160a01b0316600090815260146020908152604080832093835292905290812055565b611d54612e9e565b60008111611d6157600080fd5b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a082319060240160206040518083038186803b158015611da457600080fd5b505afa158015611db8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddc9190614925565b1015611e365760405162461bcd60e51b815260206004820152602360248201527f436f6e747261637420646f6573206e6f74206f776e20656e6f75676820746f6b604482015262656e7360e81b6064820152608401610f16565b60005b600d54811015611abf57816001600160a01b031663a9059cbb600b8381548110611e6557611e656147f4565b9060005260206000200160009054906101000a90046001600160a01b03166064600c8581548110611e9857611e986147f4565b906000526020600020015487611eae91906148c4565b611eb8919061493e565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611efe57600080fd5b505af1158015611f12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f369190614960565b5080611f4181614857565b915050611e39565b60065460ff1615611f6c5760405162461bcd60e51b8152600401610f16906148fb565b600084815260086020526040902054611f985760405163677510db60e11b815260040160405180910390fd5b82611fb65760405163b562e8dd60e01b815260040160405180910390fd5b600084815260116020526040902054831115611fe5576040516344e9090d60e11b815260040160405180910390fd5b611fef8484613241565b61200c5760405163a4875a4960e01b815260040160405180910390fd5b6120168484611841565b34146120355760405163078d696560e31b815260040160405180910390fd5b6120538460009081526016602052604090205460ff16151560011490565b158061207a5750612078846000908152600e602052604090205460ff16151560011490565b155b15612098576040516309c7220160e31b815260040160405180910390fd5b6120a485858484612139565b6120c1576040516315ebf2b560e21b815260040160405180910390fd5b6120cc848685612abb565b6120e95760405163034fc3d760e21b815260040160405180910390fd5b6120f161348e565b6120fc8486856134d0565b61210f85858560188054611508906147b9565b5050505050565b61211e612e9e565b6000908152601660205260409020805460ff19166001179055565b6000838152601560205260408120546121945760405162461bcd60e51b815260206004820152601760248201527f4d65726b6c6520726f6f74206973206e6f7420736574210000000000000000006044820152606401610f16565b6040516bffffffffffffffffffffffff19606087901b16602082015260009060340160405160208183030381529060405280519060200120905061221984848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a815260156020526040902054925085915061380a9050565b9695505050505050565b60008381526008602052604090205461224f5760405163677510db60e11b815260040160405180910390fd5b61225a836001613241565b6122775760405163a4875a4960e01b815260040160405180910390fd5b6001600160a01b03821661229e576040516322646a9760e21b815260040160405180910390fd5b6122ab83335b6001612abb565b6122c85760405163034fc3d760e21b815260040160405180910390fd5b6000838152600a60205260409020600181015460ff166122fb57604051635654a43f60e11b815260040160405180910390fd5b6010546001600160a01b03841660009081526020839052604090205461232191906148e3565b34146123405760405163078d696560e31b815260040160405180910390fd5b6001600160a01b0383166000908152600282016020908152604080832085845290915290205460ff1661238657604051638c9f128f60e01b815260040160405180910390fd5b8260006001600160a01b03821662fdd58e336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810187905260440160206040518083038186803b1580156123de57600080fd5b505afa1580156123f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124169190614925565b9050806124365760405163538464c160e11b815260040160405180910390fd5b6001600160a01b03821663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561248b57600080fd5b505afa15801561249f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124c39190614960565b6124e0576040516392395ac160e01b815260040160405180910390fd5b600180840154604051637921219560e11b81526001600160a01b038581169363f242432a9361252393339362010000909204909116918a9160189060040161497d565b600060405180830381600087803b15801561253d57600080fd5b505af1158015612551573d6000803e3d6000fd5b505050508561255d3390565b6001600160a01b031660405161257f906572656465656d60d01b815260060190565b604080519182900382206001600160a01b038a16835260208301899052917f9be2d78305341ac65446be0f07637e5c4bfbc94d485129c57b26476d188b0330910160405180910390a46125d061348e565b6125dd86335b60016134d0565b6113c43387600160188054611508906147b9565b6125f9612e9e565b8061261757604051631e1d0ab560e01b815260040160405180910390fd5b60009182526013602052604090912055565b612631613434565b6001600160a01b0381166126575760405162afb37360e31b815260040160405180910390fd5b61266081611c84565b61267c5760405162afb37360e31b815260040160405180910390fd5b6001600160a01b03166000908152600560205260409020805460ff19169055565b6126a5612e9e565b6000908152601260205260409020805460ff19169055565b6060604051806080016040528060448152602001614d1d60449139905090565b6126e5612e9e565b6000818152600860205260409020546127115760405163677510db60e11b815260040160405180910390fd5b60008181526020819052604090205460ff16600114156127445760405163a28a88c160e01b815260040160405180910390fd5b6000908152602081905260409020805460ff19166001179055565b612767612e9e565b6000828152601560205260409020548114156127c55760405162461bcd60e51b815260206004820152601e60248201527f4d65726b6c6520726f6f742077696c6c20626520756e6368616e6765642100006044820152606401610f16565b60009182526015602052604090912055565b846daaeb6d7670e522a718067333cd4e3b1561287d576001600160a01b0381163314156128745760008481526020819052604090205460ff9081161461282f5760405162461bcd60e51b8152600401610f169061480a565b6001600160a01b03861633148061284b575061284b8633610d42565b6128675760405162461bcd60e51b8152600401610f1690614a52565b6113028686868686613820565b61287d8161310e565b60008481526020819052604090205460ff908116146128ae5760405162461bcd60e51b8152600401610f169061480a565b6001600160a01b0386163314806128ca57506128ca8633610d42565b6128e65760405162461bcd60e51b8152600401610f1690614a52565b6113c48686868686613820565b6128fb613434565b6001600160a01b0381166129605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f16565b61296981613529565b50565b612974612e9e565b8861299257604051631e1d0ab560e01b815260040160405180910390fd5b876129b057604051631e1d0ab560e01b815260040160405180910390fd5b80516129cf57604051631e1d0ab560e01b815260040160405180910390fd5b60006129d9613938565b90506129ef3382600160188054611508906147b9565b6000818152601c602090815260409091208351612a0e92850190613e24565b50612a19818b6113cc565b612a238189611ad7565b612a2d818a61158b565b6000818152600e60205260409020805460ff19168815151790556000818152601260209081526040808320805460ff19168915151790556013909152902084905585612a7a576001612a7d565b60ff5b6000828152602081905260409020805460ff191660ff92909216919091179055612aa78184611b1e565b612aaf61394e565b50505050505050505050565b60008381526012602052604081205460ff161515600114612ade57506001611888565b81612afc57604051631e1d0ab560e01b815260040160405180910390fd5b6000848152601360209081526040808320546001600160a01b03871684526014835281842088855290925290912054612b369084906148e3565b1115949350505050565b600083815260086020526040902054612b6c5760405163677510db60e11b815260040160405180910390fd5b612b77836001613241565b612b945760405163a4875a4960e01b815260040160405180910390fd5b6001600160a01b038216612bbb576040516322646a9760e21b815260040160405180910390fd5b612bc583336122a4565b612be25760405163034fc3d760e21b815260040160405180910390fd5b6000838152600a602052604090206001810154610100900460ff16612c1a57604051635654a43f60e11b815260040160405180910390fd5b6010546001600160a01b038416600090815260208390526040902054612c4091906148e3565b3414612c5f5760405163078d696560e31b815260040160405180910390fd5b6001600160a01b0383166000908152600282016020908152604080832085845290915290205460ff16612ca557604051638c9f128f60e01b815260040160405180910390fd5b8260006001600160a01b03821662fdd58e336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810187905260440160206040518083038186803b158015612cfd57600080fd5b505afa158015612d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d359190614925565b6001600160a01b03861660009081526003850160209081526040808320888452825280832033845290915290205490915081612d845760405163538464c160e11b815260040160405180910390fd5b818110612da4576040516314da3dab60e21b815260040160405180910390fd5b612daf8160016148e3565b6000888152600a602090815260408083206001600160a01b038b168452600301825280832089845282528083203380855292529182902092909255516b76657269666564436c61696d60a01b8152889190600c01604080519182900382206001600160a01b038b168352602083018a9052917f9be2d78305341ac65446be0f07637e5c4bfbc94d485129c57b26476d188b0330910160405180910390a4612e5461348e565b612e5e87336125d6565b612e723388600160188054611508906147b9565b50505050505050565b612e83612e9e565b6000908152601260205260409020805460ff19166001179055565b6004546001600160a01b03163390811490600090612ebb90611c84565b90508180612ec65750805b612f245760405162461bcd60e51b815260206004820152602960248201527f5465616d3a2063616c6c6572206973206e6f7420746865206f776e6572206f726044820152681034b7102a32b0b69760b91b6064820152608401610f16565b5050565b8151835114612f8a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610f16565b6001600160a01b038416612fb05760405162461bcd60e51b8152600401610f1690614a9b565b33612fbf818787878787613965565b60005b84518110156130a8576000858281518110612fdf57612fdf6147f4565b602002602001015190506000858381518110612ffd57612ffd6147f4565b60209081029190910181015160008481526001835260408082206001600160a01b038e16835290935291909120549091508181101561304e5760405162461bcd60e51b8152600401610f1690614ae0565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061308d9084906148e3565b92505081905550505050806130a190614857565b9050612fc2565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516130f8929190614b2a565b60405180910390a46113c4818787878787613996565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561315857600080fd5b505afa15801561316c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131909190614960565b80156132225750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b1580156131ea57600080fd5b505afa1580156131fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132229190614960565b61296957604051633b79c77360e21b8152336004820152602401610f16565b60008281526007602052604081205460ff1615156001146132865761326583611139565b60008481526008602052604090205461327f9084906148e3565b1115611888565b50600192915050565b6001600160a01b0384166132ef5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610f16565b3361330f8160008761330088613b01565b61330988613b01565b87613965565b60008481526001602090815260408083206001600160a01b0389168452909152812080548592906133419084906148e3565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461210f81600087878787613b4c565b60065460ff166133ea5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610f16565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6004546001600160a01b031633146115d35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f16565b60105460405173a9dac8f3aedc55d0fe707b86b8a45d246858d2e19180156108fc02916000818181858888f19350505050158015612969573d6000803e3d6000fd5b6001600160a01b03821660009081526014602090815260408083208684529091529020546134ff9082906148e3565b6001600160a01b039092166000908152601460209081526040808320958352949052929092205550565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff161561359e5760405162461bcd60e51b8152600401610f16906148fb565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586134173390565b4760005b600d54811015612f245761364f600b82815481106135f7576135f76147f4565b9060005260206000200160009054906101000a90046001600160a01b03166064600c848154811061362a5761362a6147f4565b90600052602060002001548561364091906148c4565b61364a919061493e565b613c16565b8061365981614857565b9150506135d7565b6daaeb6d7670e522a718067333cd4e3b1561296957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b1580156136c957600080fd5b505afa1580156136dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137019190614960565b61296957604051633b79c77360e21b81526001600160a01b0382166004820152602401610f16565b816001600160a01b0316836001600160a01b0316141561379d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610f16565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000826138178584613cac565b14949350505050565b6001600160a01b0384166138465760405162461bcd60e51b8152600401610f1690614a9b565b3361385681878761330088613b01565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156138995760405162461bcd60e51b8152600401610f1690614ae0565b60008581526001602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906138d89084906148e3565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612e72828888888888613b4c565b6000601954600161394991906148e3565b905090565b6019805490600061395e83614857565b9190505550565b60065460ff16156139885760405162461bcd60e51b8152600401610f16906148fb565b6113c4868686868686613d18565b6001600160a01b0384163b156113c45760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906139da9089908990889088908890600401614b58565b602060405180830381600087803b1580156139f457600080fd5b505af1925050508015613a24575060408051601f3d908101601f19168201909252613a2191810190614bb6565b60015b613ad157613a30614bd3565b806308c379a01415613a6a5750613a45614bef565b80613a505750613a6c565b8060405162461bcd60e51b8152600401610f169190613f83565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610f16565b6001600160e01b0319811663bc197c8160e01b14612e725760405162461bcd60e51b8152600401610f1690614c78565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110613b3b57613b3b6147f4565b602090810291909101015292915050565b6001600160a01b0384163b156113c45760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190613b909089908990889088908890600401614cc0565b602060405180830381600087803b158015613baa57600080fd5b505af1925050508015613bda575060408051601f3d908101601f19168201909252613bd791810190614bb6565b60015b613be657613a30614bd3565b6001600160e01b0319811663f23a6e6160e01b14612e725760405162461bcd60e51b8152600401610f1690614c78565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613c63576040519150601f19603f3d011682016040523d82523d6000602084013e613c68565b606091505b50509050806112015760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610f16565b600081815b84518110156117f1576000858281518110613cce57613cce6147f4565b60200260200101519050808311613cf45760008381526020829052604090209250613d05565b600081815260208490526040902092505b5080613d1081614857565b915050613cb1565b6001600160a01b038516613d9f5760005b8351811015613d9d57828181518110613d4457613d446147f4565b602002602001015160086000868481518110613d6257613d626147f4565b602002602001015181526020019081526020016000206000828254613d8791906148e3565b90915550613d96905081614857565b9050613d29565b505b6001600160a01b0384166113c45760005b8351811015612e7257828181518110613dcb57613dcb6147f4565b602002602001015160086000868481518110613de957613de96147f4565b602002602001015181526020019081526020016000206000828254613e0e9190614d05565b90915550613e1d905081614857565b9050613db0565b828054613e30906147b9565b90600052602060002090601f016020900481019282613e525760008555613e98565b82601f10613e6b57805160ff1916838001178555613e98565b82800160010185558215613e98579182015b82811115613e98578251825591602001919060010190613e7d565b50613ea4929150613ea8565b5090565b5b80821115613ea45760008155600101613ea9565b80356001600160a01b0381168114613ed457600080fd5b919050565b60008060408385031215613eec57600080fd5b613ef583613ebd565b946020939093013593505050565b6001600160e01b03198116811461296957600080fd5b600060208284031215613f2b57600080fd5b813561188881613f03565b6000815180845260005b81811015613f5c57602081850181015186830182015201613f40565b81811115613f6e576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006118886020830184613f36565b600060208284031215613fa857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715613fea57613fea613faf565b6040525050565b600082601f83011261400257600080fd5b81356001600160401b0381111561401b5761401b613faf565b604051614032601f8301601f191660200182613fc5565b81815284602083860101111561404757600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561407757600080fd5b8235915060208301356001600160401b0381111561409457600080fd5b6140a085828601613ff1565b9150509250929050565b60006001600160401b038211156140c3576140c3613faf565b5060051b60200190565b600082601f8301126140de57600080fd5b813560206140eb826140aa565b6040516140f88282613fc5565b83815260059390931b850182019282810191508684111561411857600080fd5b8286015b84811015614133578035835291830191830161411c565b509695505050505050565b600080600080600060a0868803121561415657600080fd5b61415f86613ebd565b945061416d60208701613ebd565b935060408601356001600160401b038082111561418957600080fd5b61419589838a016140cd565b945060608801359150808211156141ab57600080fd5b6141b789838a016140cd565b935060808801359150808211156141cd57600080fd5b506141da88828901613ff1565b9150509295509295909350565b600080604083850312156141fa57600080fd5b50508035926020909101359150565b60008060006060848603121561421e57600080fd5b61422784613ebd565b95602085013595506040909401359392505050565b60008060006060848603121561425157600080fd5b8335925061426160208501613ebd565b9150604084013590509250925092565b60006020828403121561428357600080fd5b61188882613ebd565b600082601f83011261429d57600080fd5b813560206142aa826140aa565b6040516142b78282613fc5565b83815260059390931b85018201928281019150868411156142d757600080fd5b8286015b84811015614133576142ec81613ebd565b83529183019183016142db565b6000806040838503121561430c57600080fd5b82356001600160401b038082111561432357600080fd5b61432f8683870161428c565b9350602085013591508082111561434557600080fd5b506140a0858286016140cd565b600081518084526020808501945080840160005b8381101561438257815187529582019590820190600101614366565b509495945050505050565b6020815260006118886020830184614352565b600080604083850312156143b357600080fd5b823591506143c360208401613ebd565b90509250929050565b801515811461296957600080fd5b600080600080608085870312156143f057600080fd5b8435935061440060208601613ebd565b92506040850135614410816143cc565b9396929550929360600135925050565b60008060006060848603121561443557600080fd5b83356001600160401b0381111561444b57600080fd5b6144578682870161428c565b9660208601359650604090950135949350505050565b6000806040838503121561448057600080fd5b823591506020830135614492816143cc565b809150509250929050565b600080600080600080600060e0888a0312156144b857600080fd5b87359650602088013595506040880135945060608801356144d8816143cc565b935060808801356144e8816143cc565b92506144f660a08901613ebd565b915061450460c08901613ebd565b905092959891949750929550565b6000806040838503121561452557600080fd5b61452e83613ebd565b91506020830135614492816143cc565b6000806000806080858703121561455457600080fd5b8435935061456460208601613ebd565b925061441060408601613ebd565b60008083601f84011261458457600080fd5b5081356001600160401b0381111561459b57600080fd5b6020830191508360208260051b85010111156145b657600080fd5b9250929050565b6000806000806000608086880312156145d557600080fd5b6145de86613ebd565b9450602086013593506040860135925060608601356001600160401b0381111561460757600080fd5b61461388828901614572565b969995985093965092949392505050565b6000806000806060858703121561463a57600080fd5b61464385613ebd565b93506020850135925060408501356001600160401b0381111561466557600080fd5b61467187828801614572565b95989497509550505050565b6000806040838503121561469057600080fd5b61469983613ebd565b91506143c360208401613ebd565b600080600080600060a086880312156146bf57600080fd5b6146c886613ebd565b94506146d660208701613ebd565b9350604086013592506060860135915060808601356001600160401b038111156146ff57600080fd5b6141da88828901613ff1565b60008060008060008060008060006101208a8c03121561472a57600080fd5b8935985060208a0135975060408a0135965060608a013561474a816143cc565b955060808a013561475a816143cc565b945060a08a013561476a816143cc565b935060c08a0135925060e08a0135614781816143cc565b91506101008a01356001600160401b0381111561479d57600080fd5b6147a98c828d01613ff1565b9150509295985092959850929598565b600181811c908216806147cd57607f821691505b602082108114156147ee57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60208082526017908201527f546f6b656e206973206e6f7420747261646561626c6521000000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561486b5761486b614841565b5060010190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206040820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606082015260800190565b60008160001904831182151516156148de576148de614841565b500290565b600082198211156148f6576148f6614841565b500190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60006020828403121561493757600080fd5b5051919050565b60008261495b57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561497257600080fd5b8151611888816143cc565b6001600160a01b0386811682528516602080830191909152604082018590526060820184905260a0608083015282546000918291600181811c90828116806149c657607f831692505b8483108114156149e457634e487b7160e01b86526022600452602486fd5b60a0880183905260c08801818015614a035760018114614a1457614a3f565b60ff19861682528682019750614a3f565b60008b81526020902060005b86811015614a3957815484820152908501908801614a20565b83019850505b50959d9c50505050505050505050505050565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000614b3d6040830185614352565b8281036020840152614b4f8185614352565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090614b8490830186614352565b8281036060840152614b968186614352565b90508281036080840152614baa8185613f36565b98975050505050505050565b600060208284031215614bc857600080fd5b815161188881613f03565b600060033d1115614bec5760046000803e5060005160e01c5b90565b600060443d1015614bfd5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614c2c57505050505090565b8285019150815181811115614c445750505050505090565b843d8701016020828501011115614c5e5750505050505090565b614c6d60208286010187613fc5565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090614cfa90830184613f36565b979650505050505050565b600082821015614d1757614d17614841565b50039056fe68747470733a2f2f6d657461646174612e6d696e74706c65782e78797a2f6a7a48676d63654d4e6b4a4941735a5147424c512f636f6e74726163742d6d65746164617461a264697066735822122039316380bfab0f22593aaae60d0d6cc4c3a4143fa4df8145f36b62d688dcb38664736f6c63430008090033

Deployed Bytecode

0x6080604052600436106104255760003560e01c8063869e9a0011610229578063bec0904b1161012e578063eb238e81116100b6578063f623bb8b1161007a578063f623bb8b14610e25578063f7436e3714610e3b578063fc2f383214610e5b578063fca9a9fd14610e7b578063fe6d3cc814610e8e57600080fd5b8063eb238e8114610d70578063eec8e90814610da5578063f1e3311514610dc5578063f242432a14610de5578063f2fde38b14610e0557600080fd5b8063dfdedf69116100fd578063dfdedf6914610cb8578063e6c6990a14610cd8578063e82da69114610cf2578063e8a3d48514610d12578063e985e9c514610d2757600080fd5b8063bec0904b14610c30578063d2de022f14610c65578063d878016114610c85578063d8800f9414610c9857600080fd5b8063a22cb465116101b1578063b40ebceb11610180578063b40ebceb14610b9a578063bb6074e014610bba578063bb62115e14610bcd578063bc1f0ab514610be3578063bd85b03914610c0357600080fd5b8063a22cb46514610ae2578063a7593fb714610b02578063ac80746a14610b22578063acc92e1314610b4257600080fd5b80638da5cb5b116101f85780638da5cb5b14610a4257806395d89b4114610a605780639b19264714610a755780639e490e2414610a95578063a1af10ca14610ac257600080fd5b8063869e9a001461099d578063891bbe73146109bd5780638b19a0ce146109f55780638c04b8e914610a1557600080fd5b80634bf4e0871161032f5780636586375b116102b7578063736e04fa11610286578063736e04fa146108e95780637aa9c33f1461091e57806383e083c31461093e5780638456cb5914610973578063853828b61461098857600080fd5b80636586375b146108815780636af3ef58146108a15780636c6acd4d146108b4578063715018a6146108d457600080fd5b80634f558e79116102fe5780634f558e79146107da578063501b4463146108095780635c975abb146108295780635cf4ee9114610841578063628d35c91461086157600080fd5b80634bf4e087146107135780634d09ae6d146107405780634e1273f41461076d5780634e5298a01461079a57600080fd5b80633832e870116103b25780633e511168116103815780633e511168146105ee5780633e6768c71461060e5780633f4ba83a146106be57806343696f18146106d35780634790c925146106f357600080fd5b80633832e8701461057157806338b903331461059157806338df41ac146105b85780633e07311c146105d857600080fd5b8063134902fd116103f9578063134902fd146104cf578063143727c9146104ef578063162094c41461050f578063286c8137146105315780632eb2c2d61461055157600080fd5b8062fdd58e1461042a57806301ffc9a71461045d57806306fdde031461048d5780630e89341c146104af575b600080fd5b34801561043657600080fd5b5061044a610445366004613ed9565b610eae565b6040519081526020015b60405180910390f35b34801561046957600080fd5b5061047d610478366004613f19565b610f47565b6040519015158152602001610454565b34801561049957600080fd5b506104a2610f99565b6040516104549190613f83565b3480156104bb57600080fd5b506104a26104ca366004613f96565b611027565b3480156104db57600080fd5b5061047d6104ea366004613f96565b6110f4565b3480156104fb57600080fd5b5061044a61050a366004613f96565b611139565b34801561051b57600080fd5b5061052f61052a366004614064565b6111ae565b005b34801561053d57600080fd5b5061044a61054c366004613f96565b611206565b34801561055d57600080fd5b5061052f61056c36600461413e565b611227565b34801561057d57600080fd5b5061052f61058c3660046141e7565b6113cc565b34801561059d57600080fd5b506105a6600481565b60405160ff9091168152602001610454565b3480156105c457600080fd5b5061052f6105d3366004614209565b61147c565b3480156105e457600080fd5b5061044a600d5481565b3480156105fa57600080fd5b5061052f6106093660046141e7565b61158b565b34801561061a57600080fd5b5061068761062936600461423c565b6000928352600a602090815260408085206001600160a01b039485168652808352818620546001820154600290920184528287209487529390925290932054909360ff80851694610100810482169491909316926201000090041690565b6040805195865293151560208601529115159284019290925290151560608301526001600160a01b0316608082015260a001610454565b3480156106ca57600080fd5b5061052f6115c3565b3480156106df57600080fd5b5061052f6106ee366004614271565b6115d5565b3480156106ff57600080fd5b5061052f61070e366004613f96565b61164e565b34801561071f57600080fd5b5061044a61072e366004613f96565b60009081526013602052604090205490565b34801561074c57600080fd5b5061044a61075b366004613f96565b6000908152600f602052604090205490565b34801561077957600080fd5b5061078d6107883660046142f9565b6116d0565b604051610454919061438d565b3480156107a657600080fd5b5061044a6107b53660046143a0565b6001600160a01b03166000908152601460209081526040808320938352929052205490565b3480156107e657600080fd5b5061047d6107f5366004613f96565b600090815260086020526040902054151590565b34801561081557600080fd5b5061052f6108243660046143da565b6117f9565b34801561083557600080fd5b5060065460ff1661047d565b34801561084d57600080fd5b5061044a61085c3660046141e7565b611841565b34801561086d57600080fd5b5061052f61087c366004613f96565b61188f565b34801561088d57600080fd5b5061052f61089c366004613f96565b6118af565b61052f6108af366004614209565b6118cf565b3480156108c057600080fd5b5061052f6108cf366004614420565b611a6d565b3480156108e057600080fd5b5061052f611ac5565b3480156108f557600080fd5b5061047d610904366004613f96565b60009081526012602052604090205460ff16151560011490565b34801561092a57600080fd5b5061052f6109393660046141e7565b611ad7565b34801561094a57600080fd5b5061047d610959366004613f96565b6000908152600e602052604090205460ff16151560011490565b34801561097f57600080fd5b5061052f611af1565b34801561099457600080fd5b5061052f611b01565b3480156109a957600080fd5b5061052f6109b836600461446d565b611b1e565b3480156109c957600080fd5b506109dd6109d8366004613f96565b611b46565b6040516001600160a01b039091168152602001610454565b348015610a0157600080fd5b5061052f610a1036600461449d565b611b70565b348015610a2157600080fd5b5061044a610a30366004613f96565b60009081526015602052604090205490565b348015610a4e57600080fd5b506004546001600160a01b03166109dd565b348015610a6c57600080fd5b506104a2611c54565b348015610a8157600080fd5b5061052f610a90366004613f96565b611c61565b348015610aa157600080fd5b5061044a610ab0366004613f96565b60009081526011602052604090205490565b348015610ace57600080fd5b5061047d610add366004614271565b611c84565b348015610aee57600080fd5b5061052f610afd366004614512565b611cd0565b348015610b0e57600080fd5b5061052f610b1d366004613f96565b611ce5565b348015610b2e57600080fd5b5061052f610b3d3660046143a0565b611d1e565b348015610b4e57600080fd5b5061044a610b5d36600461453e565b6000938452600a602090815260408086206001600160a01b0395861687526003018252808620928652918152818520929093168452915290205490565b348015610ba657600080fd5b5061052f610bb5366004613ed9565b611d4c565b61052f610bc83660046145bd565b611f49565b348015610bd957600080fd5b5061044a60195481565b348015610bef57600080fd5b5061052f610bfe366004613f96565b612116565b348015610c0f57600080fd5b5061044a610c1e366004613f96565b60009081526008602052604090205490565b348015610c3c57600080fd5b5061047d610c4b366004613f96565b60009081526007602052604090205460ff16151560011490565b348015610c7157600080fd5b5061047d610c80366004614624565b612139565b61052f610c9336600461423c565b612223565b348015610ca457600080fd5b5061052f610cb33660046141e7565b6125f1565b348015610cc457600080fd5b5061052f610cd3366004614271565b612629565b348015610ce457600080fd5b5060175461047d9060ff1681565b348015610cfe57600080fd5b5061052f610d0d366004613f96565b61269d565b348015610d1e57600080fd5b506104a26126bd565b348015610d3357600080fd5b5061047d610d4236600461467d565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b348015610d7c57600080fd5b5061047d610d8b366004613f96565b60009081526016602052604090205460ff16151560011490565b348015610db157600080fd5b5061052f610dc0366004613f96565b6126dd565b348015610dd157600080fd5b5061052f610de03660046141e7565b61275f565b348015610df157600080fd5b5061052f610e003660046146a7565b6127d7565b348015610e1157600080fd5b5061052f610e20366004614271565b6128f3565b348015610e3157600080fd5b5061044a60105481565b348015610e4757600080fd5b5061052f610e5636600461470b565b61296c565b348015610e6757600080fd5b5061047d610e7636600461423c565b612abb565b61052f610e8936600461423c565b612b40565b348015610e9a57600080fd5b5061052f610ea9366004613f96565b612e7b565b60006001600160a01b038316610f1f5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610f7857506001600160e01b031982166303a24d0760e21b145b80610f9357506301ffc9a760e01b6001600160e01b03198316145b92915050565b601a8054610fa6906147b9565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd2906147b9565b801561101f5780601f10610ff45761010080835404028352916020019161101f565b820191906000526020600020905b81548152906001019060200180831161100257829003601f168201915b505050505081565b6000818152600860205260409020546060906110565760405163677510db60e11b815260040160405180910390fd5b6000828152601c60205260409020805461106f906147b9565b80601f016020809104026020016040519081016040528092919081815260200182805461109b906147b9565b80156110e85780601f106110bd576101008083540402835291602001916110e8565b820191906000526020600020905b8154815290600101906020018083116110cb57829003601f168201915b50505050509050919050565b6000818152600860205260408120546111205760405163677510db60e11b815260040160405180910390fd5b5060009081526020819052604090205460ff9081161490565b6000818152600860205260408120546111655760405163677510db60e11b815260040160405180910390fd5b6111838260009081526007602052604090205460ff16151560011490565b61119b57600082815260096020526040902054610f93565b5060009081526008602052604090205490565b6111b6612e9e565b6000828152600860205260409020546111e25760405163677510db60e11b815260040160405180910390fd5b6000828152601c60209081526040909120825161120192840190613e24565b505050565b600c818154811061121657600080fd5b600091825260209091200154905081565b846daaeb6d7670e522a718067333cd4e3b15611310576001600160a01b0381163314156113075760005b84518110156112bc5760008086838151811061126f5761126f6147f4565b60209081029190910181015182528101919091526040016000205460ff908116146112ac5760405162461bcd60e51b8152600401610f169061480a565b6112b581614857565b9050611251565b506001600160a01b0386163314806112d957506112d98633610d42565b6112f55760405162461bcd60e51b8152600401610f1690614872565b6113028686868686612f28565b6113c4565b6113108161310e565b60005b845181101561137e57600080868381518110611331576113316147f4565b60209081029190910181015182528101919091526040016000205460ff9081161461136e5760405162461bcd60e51b8152600401610f169061480a565b61137781614857565b9050611313565b506001600160a01b03861633148061139b575061139b8633610d42565b6113b75760405162461bcd60e51b8152600401610f1690614872565b6113c48686868686612f28565b505050505050565b6113d4612e9e565b6000828152600860205260409020546114005760405163677510db60e11b815260040160405180910390fd5b61141e8260009081526007602052604090205460ff16151560011490565b1561143c5760405163222f7ae360e21b815260040160405180910390fd5b600082815260096020526040902054811161146a576040516325ede60b60e11b815260040160405180910390fd5b60009182526009602052604090912055565b611484612e9e565b6000828152600860205260409020546114b05760405163677510db60e11b815260040160405180910390fd5b806114ce5760405163b562e8dd60e01b815260040160405180910390fd5b6114d88282613241565b6114f55760405163a4875a4960e01b815260040160405180910390fd5b61120183838360188054611508906147b9565b80601f0160208091040260200160405190810160405280929190818152602001828054611534906147b9565b80156115815780601f1061155657610100808354040283529160200191611581565b820191906000526020600020905b81548152906001019060200180831161156457829003601f168201915b505050505061328f565b611593612e9e565b806115b157604051631e1d0ab560e01b815260040160405180910390fd5b60009182526011602052604090912055565b6115cb612e9e565b6115d36133a1565b565b6115dd613434565b6001600160a01b0381166116035760405162afb37360e31b815260040160405180910390fd5b61160c81611c84565b1561162a57604051631002377360e01b815260040160405180910390fd5b6001600160a01b03166000908152600560205260409020805460ff19166001179055565b611656612e9e565b6000818152600860205260409020546116825760405163677510db60e11b815260040160405180910390fd5b60008181526020819052604090205460ff90811614156116b55760405163a28a88c160e01b815260040160405180910390fd5b6000908152602081905260409020805460ff191660ff179055565b606081518351146117355760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610f16565b600083516001600160401b0381111561175057611750613faf565b604051908082528060200260200182016040528015611779578160200160208202803683370190505b50905060005b84518110156117f1576117c485828151811061179d5761179d6147f4565b60200260200101518583815181106117b7576117b76147f4565b6020026020010151610eae565b8282815181106117d6576117d66147f4565b60209081029190910101526117ea81614857565b905061177f565b509392505050565b611801612e9e565b6000938452600a602090815260408086206001600160a01b0395909516865260029094018152838520918552529120805460ff1916911515919091179055565b60008161186157604051631e1d0ab560e01b815260040160405180910390fd5b6010546000848152600f602052604090205461187e9084906148c4565b61188891906148e3565b9392505050565b611897612e9e565b6000908152600e60205260409020805460ff19169055565b6118b7612e9e565b6000908152601660205260409020805460ff19169055565b60065460ff16156118f25760405162461bcd60e51b8152600401610f16906148fb565b60008281526008602052604090205461191e5760405163677510db60e11b815260040160405180910390fd5b8061193c5760405163b562e8dd60e01b815260040160405180910390fd5b60008281526011602052604090205481111561196b576040516344e9090d60e11b815260040160405180910390fd5b6119758282613241565b6119925760405163a4875a4960e01b815260040160405180910390fd5b61199c8282611841565b34146119bb5760405163078d696560e31b815260040160405180910390fd5b6119d98260009081526016602052604090205460ff16151560011490565b156119f7576040516316851fc760e11b815260040160405180910390fd5b611a15826000908152600e602052604090205460ff16151560011490565b611a32576040516316851fc760e11b815260040160405180910390fd5b611a3d828483612abb565b611a5a5760405163034fc3d760e21b815260040160405180910390fd5b611a6261348e565b6114f58284836134d0565b611a75612e9e565b60005b8351811015611abf57611aad848281518110611a9657611a966147f4565b6020026020010151848460188054611508906147b9565b80611ab781614857565b915050611a78565b50505050565b611acd613434565b6115d36000613529565b611adf612e9e565b6000918252600f602052604090912055565b611af9612e9e565b6115d361357b565b611b09612e9e565b60004711611b1657600080fd5b6115d36135d3565b611b26612e9e565b600091825260076020526040909120805460ff1916911515919091179055565b600b8181548110611b5657600080fd5b6000918252602090912001546001600160a01b0316905081565b611b78612e9e565b6001600160a01b038216611b9f576040516322646a9760e21b815260040160405180910390fd5b838015611ba95750825b15611bc757604051635228d1bf60e01b815260040160405180910390fd5b6000968752600a602090815260408089206001600160a01b039384168a52808352818a20979097556001808801805461ffff191697151561ff00191697909717610100961515969096029590951762010000600160b01b0319166201000094909316939093029190911790935560029093018252828520938552929052909120805460ff19169091179055565b601b8054610fa6906147b9565b611c69612e9e565b6000908152600e60205260409020805460ff19166001179055565b60006001600160a01b038216611cac5760405162afb37360e31b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205460ff16151560011490565b81611cda81613661565b611201338484613729565b3373a9dac8f3aedc55d0fe707b86b8a45d246858d2e114611d1957604051639b96b05160e01b815260040160405180910390fd5b601055565b611d26612e9e565b6001600160a01b0316600090815260146020908152604080832093835292905290812055565b611d54612e9e565b60008111611d6157600080fd5b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a082319060240160206040518083038186803b158015611da457600080fd5b505afa158015611db8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddc9190614925565b1015611e365760405162461bcd60e51b815260206004820152602360248201527f436f6e747261637420646f6573206e6f74206f776e20656e6f75676820746f6b604482015262656e7360e81b6064820152608401610f16565b60005b600d54811015611abf57816001600160a01b031663a9059cbb600b8381548110611e6557611e656147f4565b9060005260206000200160009054906101000a90046001600160a01b03166064600c8581548110611e9857611e986147f4565b906000526020600020015487611eae91906148c4565b611eb8919061493e565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611efe57600080fd5b505af1158015611f12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f369190614960565b5080611f4181614857565b915050611e39565b60065460ff1615611f6c5760405162461bcd60e51b8152600401610f16906148fb565b600084815260086020526040902054611f985760405163677510db60e11b815260040160405180910390fd5b82611fb65760405163b562e8dd60e01b815260040160405180910390fd5b600084815260116020526040902054831115611fe5576040516344e9090d60e11b815260040160405180910390fd5b611fef8484613241565b61200c5760405163a4875a4960e01b815260040160405180910390fd5b6120168484611841565b34146120355760405163078d696560e31b815260040160405180910390fd5b6120538460009081526016602052604090205460ff16151560011490565b158061207a5750612078846000908152600e602052604090205460ff16151560011490565b155b15612098576040516309c7220160e31b815260040160405180910390fd5b6120a485858484612139565b6120c1576040516315ebf2b560e21b815260040160405180910390fd5b6120cc848685612abb565b6120e95760405163034fc3d760e21b815260040160405180910390fd5b6120f161348e565b6120fc8486856134d0565b61210f85858560188054611508906147b9565b5050505050565b61211e612e9e565b6000908152601660205260409020805460ff19166001179055565b6000838152601560205260408120546121945760405162461bcd60e51b815260206004820152601760248201527f4d65726b6c6520726f6f74206973206e6f7420736574210000000000000000006044820152606401610f16565b6040516bffffffffffffffffffffffff19606087901b16602082015260009060340160405160208183030381529060405280519060200120905061221984848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a815260156020526040902054925085915061380a9050565b9695505050505050565b60008381526008602052604090205461224f5760405163677510db60e11b815260040160405180910390fd5b61225a836001613241565b6122775760405163a4875a4960e01b815260040160405180910390fd5b6001600160a01b03821661229e576040516322646a9760e21b815260040160405180910390fd5b6122ab83335b6001612abb565b6122c85760405163034fc3d760e21b815260040160405180910390fd5b6000838152600a60205260409020600181015460ff166122fb57604051635654a43f60e11b815260040160405180910390fd5b6010546001600160a01b03841660009081526020839052604090205461232191906148e3565b34146123405760405163078d696560e31b815260040160405180910390fd5b6001600160a01b0383166000908152600282016020908152604080832085845290915290205460ff1661238657604051638c9f128f60e01b815260040160405180910390fd5b8260006001600160a01b03821662fdd58e336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810187905260440160206040518083038186803b1580156123de57600080fd5b505afa1580156123f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124169190614925565b9050806124365760405163538464c160e11b815260040160405180910390fd5b6001600160a01b03821663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561248b57600080fd5b505afa15801561249f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124c39190614960565b6124e0576040516392395ac160e01b815260040160405180910390fd5b600180840154604051637921219560e11b81526001600160a01b038581169363f242432a9361252393339362010000909204909116918a9160189060040161497d565b600060405180830381600087803b15801561253d57600080fd5b505af1158015612551573d6000803e3d6000fd5b505050508561255d3390565b6001600160a01b031660405161257f906572656465656d60d01b815260060190565b604080519182900382206001600160a01b038a16835260208301899052917f9be2d78305341ac65446be0f07637e5c4bfbc94d485129c57b26476d188b0330910160405180910390a46125d061348e565b6125dd86335b60016134d0565b6113c43387600160188054611508906147b9565b6125f9612e9e565b8061261757604051631e1d0ab560e01b815260040160405180910390fd5b60009182526013602052604090912055565b612631613434565b6001600160a01b0381166126575760405162afb37360e31b815260040160405180910390fd5b61266081611c84565b61267c5760405162afb37360e31b815260040160405180910390fd5b6001600160a01b03166000908152600560205260409020805460ff19169055565b6126a5612e9e565b6000908152601260205260409020805460ff19169055565b6060604051806080016040528060448152602001614d1d60449139905090565b6126e5612e9e565b6000818152600860205260409020546127115760405163677510db60e11b815260040160405180910390fd5b60008181526020819052604090205460ff16600114156127445760405163a28a88c160e01b815260040160405180910390fd5b6000908152602081905260409020805460ff19166001179055565b612767612e9e565b6000828152601560205260409020548114156127c55760405162461bcd60e51b815260206004820152601e60248201527f4d65726b6c6520726f6f742077696c6c20626520756e6368616e6765642100006044820152606401610f16565b60009182526015602052604090912055565b846daaeb6d7670e522a718067333cd4e3b1561287d576001600160a01b0381163314156128745760008481526020819052604090205460ff9081161461282f5760405162461bcd60e51b8152600401610f169061480a565b6001600160a01b03861633148061284b575061284b8633610d42565b6128675760405162461bcd60e51b8152600401610f1690614a52565b6113028686868686613820565b61287d8161310e565b60008481526020819052604090205460ff908116146128ae5760405162461bcd60e51b8152600401610f169061480a565b6001600160a01b0386163314806128ca57506128ca8633610d42565b6128e65760405162461bcd60e51b8152600401610f1690614a52565b6113c48686868686613820565b6128fb613434565b6001600160a01b0381166129605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f16565b61296981613529565b50565b612974612e9e565b8861299257604051631e1d0ab560e01b815260040160405180910390fd5b876129b057604051631e1d0ab560e01b815260040160405180910390fd5b80516129cf57604051631e1d0ab560e01b815260040160405180910390fd5b60006129d9613938565b90506129ef3382600160188054611508906147b9565b6000818152601c602090815260409091208351612a0e92850190613e24565b50612a19818b6113cc565b612a238189611ad7565b612a2d818a61158b565b6000818152600e60205260409020805460ff19168815151790556000818152601260209081526040808320805460ff19168915151790556013909152902084905585612a7a576001612a7d565b60ff5b6000828152602081905260409020805460ff191660ff92909216919091179055612aa78184611b1e565b612aaf61394e565b50505050505050505050565b60008381526012602052604081205460ff161515600114612ade57506001611888565b81612afc57604051631e1d0ab560e01b815260040160405180910390fd5b6000848152601360209081526040808320546001600160a01b03871684526014835281842088855290925290912054612b369084906148e3565b1115949350505050565b600083815260086020526040902054612b6c5760405163677510db60e11b815260040160405180910390fd5b612b77836001613241565b612b945760405163a4875a4960e01b815260040160405180910390fd5b6001600160a01b038216612bbb576040516322646a9760e21b815260040160405180910390fd5b612bc583336122a4565b612be25760405163034fc3d760e21b815260040160405180910390fd5b6000838152600a602052604090206001810154610100900460ff16612c1a57604051635654a43f60e11b815260040160405180910390fd5b6010546001600160a01b038416600090815260208390526040902054612c4091906148e3565b3414612c5f5760405163078d696560e31b815260040160405180910390fd5b6001600160a01b0383166000908152600282016020908152604080832085845290915290205460ff16612ca557604051638c9f128f60e01b815260040160405180910390fd5b8260006001600160a01b03821662fdd58e336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810187905260440160206040518083038186803b158015612cfd57600080fd5b505afa158015612d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d359190614925565b6001600160a01b03861660009081526003850160209081526040808320888452825280832033845290915290205490915081612d845760405163538464c160e11b815260040160405180910390fd5b818110612da4576040516314da3dab60e21b815260040160405180910390fd5b612daf8160016148e3565b6000888152600a602090815260408083206001600160a01b038b168452600301825280832089845282528083203380855292529182902092909255516b76657269666564436c61696d60a01b8152889190600c01604080519182900382206001600160a01b038b168352602083018a9052917f9be2d78305341ac65446be0f07637e5c4bfbc94d485129c57b26476d188b0330910160405180910390a4612e5461348e565b612e5e87336125d6565b612e723388600160188054611508906147b9565b50505050505050565b612e83612e9e565b6000908152601260205260409020805460ff19166001179055565b6004546001600160a01b03163390811490600090612ebb90611c84565b90508180612ec65750805b612f245760405162461bcd60e51b815260206004820152602960248201527f5465616d3a2063616c6c6572206973206e6f7420746865206f776e6572206f726044820152681034b7102a32b0b69760b91b6064820152608401610f16565b5050565b8151835114612f8a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610f16565b6001600160a01b038416612fb05760405162461bcd60e51b8152600401610f1690614a9b565b33612fbf818787878787613965565b60005b84518110156130a8576000858281518110612fdf57612fdf6147f4565b602002602001015190506000858381518110612ffd57612ffd6147f4565b60209081029190910181015160008481526001835260408082206001600160a01b038e16835290935291909120549091508181101561304e5760405162461bcd60e51b8152600401610f1690614ae0565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061308d9084906148e3565b92505081905550505050806130a190614857565b9050612fc2565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516130f8929190614b2a565b60405180910390a46113c4818787878787613996565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561315857600080fd5b505afa15801561316c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131909190614960565b80156132225750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b1580156131ea57600080fd5b505afa1580156131fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132229190614960565b61296957604051633b79c77360e21b8152336004820152602401610f16565b60008281526007602052604081205460ff1615156001146132865761326583611139565b60008481526008602052604090205461327f9084906148e3565b1115611888565b50600192915050565b6001600160a01b0384166132ef5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610f16565b3361330f8160008761330088613b01565b61330988613b01565b87613965565b60008481526001602090815260408083206001600160a01b0389168452909152812080548592906133419084906148e3565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461210f81600087878787613b4c565b60065460ff166133ea5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610f16565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6004546001600160a01b031633146115d35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f16565b60105460405173a9dac8f3aedc55d0fe707b86b8a45d246858d2e19180156108fc02916000818181858888f19350505050158015612969573d6000803e3d6000fd5b6001600160a01b03821660009081526014602090815260408083208684529091529020546134ff9082906148e3565b6001600160a01b039092166000908152601460209081526040808320958352949052929092205550565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff161561359e5760405162461bcd60e51b8152600401610f16906148fb565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586134173390565b4760005b600d54811015612f245761364f600b82815481106135f7576135f76147f4565b9060005260206000200160009054906101000a90046001600160a01b03166064600c848154811061362a5761362a6147f4565b90600052602060002001548561364091906148c4565b61364a919061493e565b613c16565b8061365981614857565b9150506135d7565b6daaeb6d7670e522a718067333cd4e3b1561296957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b1580156136c957600080fd5b505afa1580156136dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137019190614960565b61296957604051633b79c77360e21b81526001600160a01b0382166004820152602401610f16565b816001600160a01b0316836001600160a01b0316141561379d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610f16565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000826138178584613cac565b14949350505050565b6001600160a01b0384166138465760405162461bcd60e51b8152600401610f1690614a9b565b3361385681878761330088613b01565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156138995760405162461bcd60e51b8152600401610f1690614ae0565b60008581526001602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906138d89084906148e3565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612e72828888888888613b4c565b6000601954600161394991906148e3565b905090565b6019805490600061395e83614857565b9190505550565b60065460ff16156139885760405162461bcd60e51b8152600401610f16906148fb565b6113c4868686868686613d18565b6001600160a01b0384163b156113c45760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906139da9089908990889088908890600401614b58565b602060405180830381600087803b1580156139f457600080fd5b505af1925050508015613a24575060408051601f3d908101601f19168201909252613a2191810190614bb6565b60015b613ad157613a30614bd3565b806308c379a01415613a6a5750613a45614bef565b80613a505750613a6c565b8060405162461bcd60e51b8152600401610f169190613f83565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610f16565b6001600160e01b0319811663bc197c8160e01b14612e725760405162461bcd60e51b8152600401610f1690614c78565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110613b3b57613b3b6147f4565b602090810291909101015292915050565b6001600160a01b0384163b156113c45760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190613b909089908990889088908890600401614cc0565b602060405180830381600087803b158015613baa57600080fd5b505af1925050508015613bda575060408051601f3d908101601f19168201909252613bd791810190614bb6565b60015b613be657613a30614bd3565b6001600160e01b0319811663f23a6e6160e01b14612e725760405162461bcd60e51b8152600401610f1690614c78565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613c63576040519150601f19603f3d011682016040523d82523d6000602084013e613c68565b606091505b50509050806112015760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610f16565b600081815b84518110156117f1576000858281518110613cce57613cce6147f4565b60200260200101519050808311613cf45760008381526020829052604090209250613d05565b600081815260208490526040902092505b5080613d1081614857565b915050613cb1565b6001600160a01b038516613d9f5760005b8351811015613d9d57828181518110613d4457613d446147f4565b602002602001015160086000868481518110613d6257613d626147f4565b602002602001015181526020019081526020016000206000828254613d8791906148e3565b90915550613d96905081614857565b9050613d29565b505b6001600160a01b0384166113c45760005b8351811015612e7257828181518110613dcb57613dcb6147f4565b602002602001015160086000868481518110613de957613de96147f4565b602002602001015181526020019081526020016000206000828254613e0e9190614d05565b90915550613e1d905081614857565b9050613db0565b828054613e30906147b9565b90600052602060002090601f016020900481019282613e525760008555613e98565b82601f10613e6b57805160ff1916838001178555613e98565b82800160010185558215613e98579182015b82811115613e98578251825591602001919060010190613e7d565b50613ea4929150613ea8565b5090565b5b80821115613ea45760008155600101613ea9565b80356001600160a01b0381168114613ed457600080fd5b919050565b60008060408385031215613eec57600080fd5b613ef583613ebd565b946020939093013593505050565b6001600160e01b03198116811461296957600080fd5b600060208284031215613f2b57600080fd5b813561188881613f03565b6000815180845260005b81811015613f5c57602081850181015186830182015201613f40565b81811115613f6e576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006118886020830184613f36565b600060208284031215613fa857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715613fea57613fea613faf565b6040525050565b600082601f83011261400257600080fd5b81356001600160401b0381111561401b5761401b613faf565b604051614032601f8301601f191660200182613fc5565b81815284602083860101111561404757600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561407757600080fd5b8235915060208301356001600160401b0381111561409457600080fd5b6140a085828601613ff1565b9150509250929050565b60006001600160401b038211156140c3576140c3613faf565b5060051b60200190565b600082601f8301126140de57600080fd5b813560206140eb826140aa565b6040516140f88282613fc5565b83815260059390931b850182019282810191508684111561411857600080fd5b8286015b84811015614133578035835291830191830161411c565b509695505050505050565b600080600080600060a0868803121561415657600080fd5b61415f86613ebd565b945061416d60208701613ebd565b935060408601356001600160401b038082111561418957600080fd5b61419589838a016140cd565b945060608801359150808211156141ab57600080fd5b6141b789838a016140cd565b935060808801359150808211156141cd57600080fd5b506141da88828901613ff1565b9150509295509295909350565b600080604083850312156141fa57600080fd5b50508035926020909101359150565b60008060006060848603121561421e57600080fd5b61422784613ebd565b95602085013595506040909401359392505050565b60008060006060848603121561425157600080fd5b8335925061426160208501613ebd565b9150604084013590509250925092565b60006020828403121561428357600080fd5b61188882613ebd565b600082601f83011261429d57600080fd5b813560206142aa826140aa565b6040516142b78282613fc5565b83815260059390931b85018201928281019150868411156142d757600080fd5b8286015b84811015614133576142ec81613ebd565b83529183019183016142db565b6000806040838503121561430c57600080fd5b82356001600160401b038082111561432357600080fd5b61432f8683870161428c565b9350602085013591508082111561434557600080fd5b506140a0858286016140cd565b600081518084526020808501945080840160005b8381101561438257815187529582019590820190600101614366565b509495945050505050565b6020815260006118886020830184614352565b600080604083850312156143b357600080fd5b823591506143c360208401613ebd565b90509250929050565b801515811461296957600080fd5b600080600080608085870312156143f057600080fd5b8435935061440060208601613ebd565b92506040850135614410816143cc565b9396929550929360600135925050565b60008060006060848603121561443557600080fd5b83356001600160401b0381111561444b57600080fd5b6144578682870161428c565b9660208601359650604090950135949350505050565b6000806040838503121561448057600080fd5b823591506020830135614492816143cc565b809150509250929050565b600080600080600080600060e0888a0312156144b857600080fd5b87359650602088013595506040880135945060608801356144d8816143cc565b935060808801356144e8816143cc565b92506144f660a08901613ebd565b915061450460c08901613ebd565b905092959891949750929550565b6000806040838503121561452557600080fd5b61452e83613ebd565b91506020830135614492816143cc565b6000806000806080858703121561455457600080fd5b8435935061456460208601613ebd565b925061441060408601613ebd565b60008083601f84011261458457600080fd5b5081356001600160401b0381111561459b57600080fd5b6020830191508360208260051b85010111156145b657600080fd5b9250929050565b6000806000806000608086880312156145d557600080fd5b6145de86613ebd565b9450602086013593506040860135925060608601356001600160401b0381111561460757600080fd5b61461388828901614572565b969995985093965092949392505050565b6000806000806060858703121561463a57600080fd5b61464385613ebd565b93506020850135925060408501356001600160401b0381111561466557600080fd5b61467187828801614572565b95989497509550505050565b6000806040838503121561469057600080fd5b61469983613ebd565b91506143c360208401613ebd565b600080600080600060a086880312156146bf57600080fd5b6146c886613ebd565b94506146d660208701613ebd565b9350604086013592506060860135915060808601356001600160401b038111156146ff57600080fd5b6141da88828901613ff1565b60008060008060008060008060006101208a8c03121561472a57600080fd5b8935985060208a0135975060408a0135965060608a013561474a816143cc565b955060808a013561475a816143cc565b945060a08a013561476a816143cc565b935060c08a0135925060e08a0135614781816143cc565b91506101008a01356001600160401b0381111561479d57600080fd5b6147a98c828d01613ff1565b9150509295985092959850929598565b600181811c908216806147cd57607f821691505b602082108114156147ee57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60208082526017908201527f546f6b656e206973206e6f7420747261646561626c6521000000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561486b5761486b614841565b5060010190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206040820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606082015260800190565b60008160001904831182151516156148de576148de614841565b500290565b600082198211156148f6576148f6614841565b500190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60006020828403121561493757600080fd5b5051919050565b60008261495b57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561497257600080fd5b8151611888816143cc565b6001600160a01b0386811682528516602080830191909152604082018590526060820184905260a0608083015282546000918291600181811c90828116806149c657607f831692505b8483108114156149e457634e487b7160e01b86526022600452602486fd5b60a0880183905260c08801818015614a035760018114614a1457614a3f565b60ff19861682528682019750614a3f565b60008b81526020902060005b86811015614a3957815484820152908501908801614a20565b83019850505b50959d9c50505050505050505050505050565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000614b3d6040830185614352565b8281036020840152614b4f8185614352565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090614b8490830186614352565b8281036060840152614b968186614352565b90508281036080840152614baa8185613f36565b98975050505050505050565b600060208284031215614bc857600080fd5b815161188881613f03565b600060033d1115614bec5760046000803e5060005160e01c5b90565b600060443d1015614bfd5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614c2c57505050505090565b8285019150815181811115614c445750505050505090565b843d8701016020828501011115614c5e5750505050505090565b614c6d60208286010187613fc5565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090614cfa90830184613f36565b979650505050505050565b600082821015614d1757614d17614841565b50039056fe68747470733a2f2f6d657461646174612e6d696e74706c65782e78797a2f6a7a48676d63654d4e6b4a4941735a5147424c512f636f6e74726163742d6d65746164617461a264697066735822122039316380bfab0f22593aaae60d0d6cc4c3a4143fa4df8145f36b62d688dcb38664736f6c63430008090033

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.