ETH Price: $2,441.76 (+3.38%)

Token

Code: Magi (Magi)
 

Overview

Max Total Supply

200 Magi

Holders

45

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 Magi
0x7f6735484aAAbb863955Fb029B602ABCf9626F3B
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:
Codemagi

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : Codemagi.sol
// SPDX-License-Identifier: MIT


// File contracts/OperatorFilter/IOperatorFilterRegistry.sol

pragma solidity ^0.8.13;

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 unregister(address addr) 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.13;

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        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(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // 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) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    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(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}


// File contracts/OperatorFilter/DefaultOperatorFilterer.sol


pragma solidity ^0.8.13;

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}




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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

    return account.code.length > 0;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
  /**
   * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
   * by `operator` from `from`, this function is called.
   *
   * It must return its Solidity selector to confirm the token transfer.
   * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
   *
   * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
   */
  function onERC721Received(
    address operator,
    address from,
    uint256 tokenId,
    bytes calldata data
  ) external returns (bytes4);
}

// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
  /**
   * @dev Returns the token collection name.
   */
  function name() external view returns (string memory);

  /**
   * @dev Returns the token collection symbol.
   */
  function symbol() external view returns (string memory);

  /**
   * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
   */
  function tokenURI(uint256 tokenId) external view returns (string memory);
}


pragma solidity ^0.8.0;



/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

// File @openzeppelin/contracts/interfaces/[email protected]


// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}


// File @openzeppelin/contracts/token/common/[email protected]


// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}


// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * 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 Calldata version of {verify}
   *
   * _Available since v4.7._
   */
  function verifyCalldata(
    bytes32[] calldata proof,
    bytes32 root,
    bytes32 leaf
  ) internal pure returns (bool) {
    return processProofCalldata(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++) {
      computedHash = _hashPair(computedHash, proof[i]);
    }
    return computedHash;
  }

  /**
   * @dev Calldata version of {processProof}
   *
   * _Available since v4.7._
   */
  function processProofCalldata(bytes32[] calldata proof, bytes32 leaf)
    internal
    pure
    returns (bytes32)
  {
    bytes32 computedHash = leaf;
    for (uint256 i = 0; i < proof.length; i++) {
      computedHash = _hashPair(computedHash, proof[i]);
    }
    return computedHash;
  }

  /**
   * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
   * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
   *
   * _Available since v4.7._
   */
  function multiProofVerify(
    bytes32[] memory proof,
    bool[] memory proofFlags,
    bytes32 root,
    bytes32[] memory leaves
  ) internal pure returns (bool) {
    return processMultiProof(proof, proofFlags, leaves) == root;
  }

  /**
   * @dev Calldata version of {multiProofVerify}
   *
   * _Available since v4.7._
   */
  function multiProofVerifyCalldata(
    bytes32[] calldata proof,
    bool[] calldata proofFlags,
    bytes32 root,
    bytes32[] memory leaves
  ) internal pure returns (bool) {
    return processMultiProofCalldata(proof, proofFlags, leaves) == root;
  }

  /**
   * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
   * consuming from one or the other at each step according to the instructions given by
   * `proofFlags`.
   *
   * _Available since v4.7._
   */
  function processMultiProof(
    bytes32[] memory proof,
    bool[] memory proofFlags,
    bytes32[] memory leaves
  ) internal pure returns (bytes32 merkleRoot) {
    // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
    // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
    // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
    // the merkle tree.
    uint256 leavesLen = leaves.length;
    uint256 totalHashes = proofFlags.length;

    // Check proof validity.
    require(
      leavesLen + proof.length - 1 == totalHashes,
      "MerkleProof: invalid multiproof"
    );

    // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
    // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
    bytes32[] memory hashes = new bytes32[](totalHashes);
    uint256 leafPos = 0;
    uint256 hashPos = 0;
    uint256 proofPos = 0;
    // At each step, we compute the next hash using two values:
    // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
    //   get the next hash.
    // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
    //   `proof` array.
    for (uint256 i = 0; i < totalHashes; i++) {
      bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
      bytes32 b = proofFlags[i]
        ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]
        : proof[proofPos++];
      hashes[i] = _hashPair(a, b);
    }

    if (totalHashes > 0) {
      return hashes[totalHashes - 1];
    } else if (leavesLen > 0) {
      return leaves[0];
    } else {
      return proof[0];
    }
  }

  /**
   * @dev Calldata version of {processMultiProof}
   *
   * _Available since v4.7._
   */
  function processMultiProofCalldata(
    bytes32[] calldata proof,
    bool[] calldata proofFlags,
    bytes32[] memory leaves
  ) internal pure returns (bytes32 merkleRoot) {
    // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
    // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
    // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
    // the merkle tree.
    uint256 leavesLen = leaves.length;
    uint256 totalHashes = proofFlags.length;

    // Check proof validity.
    require(
      leavesLen + proof.length - 1 == totalHashes,
      "MerkleProof: invalid multiproof"
    );

    // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
    // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
    bytes32[] memory hashes = new bytes32[](totalHashes);
    uint256 leafPos = 0;
    uint256 hashPos = 0;
    uint256 proofPos = 0;
    // At each step, we compute the next hash using two values:
    // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
    //   get the next hash.
    // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
    //   `proof` array.
    for (uint256 i = 0; i < totalHashes; i++) {
      bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
      bytes32 b = proofFlags[i]
        ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]
        : proof[proofPos++];
      hashes[i] = _hashPair(a, b);
    }

    if (totalHashes > 0) {
      return hashes[totalHashes - 1];
    } else if (leavesLen > 0) {
      return leaves[0];
    } else {
      return proof[0];
    }
  }

  function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
    return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
  }

  function _efficientHash(bytes32 a, bytes32 b)
    private
    pure
    returns (bytes32 value)
  {
    /// @solidity memory-safe-assembly
    assembly {
      mstore(0x00, a)
      mstore(0x20, b)
      value := keccak256(0x00, 0x40)
    }
  }
}

pragma solidity ^0.8.17;

contract Codemagi is ERC721, Ownable, ERC2981, DefaultOperatorFilterer {
  using Strings for uint256;

  string private baseTokenURI;

  uint256 public maxMintPublic = 5;

  uint256 public costWLB1 = 0.025 ether;
  uint256 public costWLB2 = 0.042 ether;
  uint256 public costWLB3 = 0.08 ether;

  uint256 public costPublicB1 = 0.035 ether;
  uint256 public costPublicB2 = 0.05 ether;
  uint256 public costPublicB3 = 0.08 ether;

  uint256 public maxSupplyB1 = 1500;
  uint256 public maxSupplyB2 = 700;
  uint256 public maxSupplyB3 = 300;

  uint256 public mintedB1;
  uint256 public mintedB2;
  uint256 public mintedB3;

  uint256 public totalSupply;

  uint8 public mintPhase = 0; // 0 = DEV, 1 = WL , 2 = WL + OG  3 = PUBLIC, 4 = CLOSED

  bool public revealed = true;
  string public unrevealed_uri = "";

  address t1 = 0x38Cc56B0fd63D479617b08b2Ac445689ce6A952a;
  address t2 = 0x4c84f2c943b25bA1fD4ACa82244A5b00D90a1AD5;
  address t3 = 0x49131F1A71414cc29fE5a8d408DD6AaFe0E48C4D;
  address t4 = 0x2Dbb6717b685AC0af2760d8596f982aec23F7C95; 
  address t5 = 0xa5f409415D4381d82b1197F38B6c003A55e0b071; //Vault

  mapping(address => uint256) public mintedByAddress;

  bytes32 public _merkleRoot;

  constructor() ERC721 ("Code: Magi", "Magi")  {}

///////////////////////
////// MINTING ////////
///////////////////////

 // Public Mint

  function mint(uint256 _count, uint256 _band)
    external
    payable
  {
    require(mintPhase == 3, "Not yet");
    require(_count <= maxMintPublic, "Too many");
    require(mintedByAddress[msg.sender] + _count <= maxMintPublic, "already maxminted");
    require(_band == 1 || _band == 2 || _band == 3,  "Band incorrect");

    if (_band == 1) {
    require(msg.value == costPublicB1 * _count, "Ether sent is incorrect");
      require(mintedB1 + _count <= maxSupplyB1, "Would excced B1 supply");
      for(uint256 i; i < _count;){
        i++;
        _safeMint( msg.sender, mintedB1 + i );
      }
         mintedB1 += _count;

    } else if (_band == 2) {
      require(msg.value == costPublicB2 * _count, "Ether sent is incorrect");
        require(mintedB2 + _count <= maxSupplyB2, "Would excced B2 supply");
        for(uint256 i; i < _count;){
        i++;
        _safeMint( msg.sender, maxSupplyB1 + mintedB2 + i );
      }
         mintedB2 += _count;

    } else if (_band == 3) {
      require(msg.value == costPublicB3 * _count, "Ether sent is incorrect");
        require(mintedB3 + _count <= maxSupplyB3, "Would excced B3 supply");
        for(uint256 i; i < _count;){
          i++;
          _safeMint( msg.sender, maxSupplyB1 + maxSupplyB2 + mintedB3 + i  );
        }
          mintedB3 += _count;

    }    

        mintedByAddress[msg.sender] += _count;
        totalSupply += _count;
  }


    function mintWL(uint256 _count, uint256 _band, bytes32[] calldata _merkleProof)
    external
    payable
  {
    require(isWhitelisted(msg.sender, _merkleProof), "Not whitelisted");
    require(mintPhase == 1 || mintPhase == 2,  "WL mint not active");
    require(_band == 1 || _band == 2 || _band == 3,  "Band incorrect");
    require(_count <= mintPhase, "Too many");
    require(mintedByAddress[msg.sender] + _count <= mintPhase, "already maxminted for this phase");

    if (_band == 1) {
    require(msg.value == costWLB1 * _count, "Ether sent is incorrect");
      require(mintedB1 + _count <= maxSupplyB1, "Would excced B1 supply");
      for(uint256 i; i < _count;){
        i++;
        _safeMint( msg.sender, mintedB1 + i );
      }
         mintedB1 += _count;

    } else if (_band == 2) {
      require(msg.value == costWLB2 * _count, "Ether sent is incorrect");
        require(mintedB2 + _count <= maxSupplyB2, "Would excced B2 supply");
        for(uint256 i; i < _count;){
        i++;
        _safeMint( msg.sender, maxSupplyB1 + mintedB2 + i );
      }
         mintedB2 += _count;

    } else if (_band == 3) {
      require(msg.value == costWLB3 * _count, "Ether sent is incorrect");
        require(mintedB3 + _count <= maxSupplyB3, "Would excced B3 supply");
        for(uint256 i; i < _count;){
          i++;
          _safeMint( msg.sender, maxSupplyB1 + maxSupplyB2 + mintedB3 + i  );
        }
          mintedB3 += _count;

    }   
        mintedByAddress[msg.sender] += _count;
        totalSupply += _count;
  }

 // Airdrop
  function airdrop_single(uint256 _count, address _recipient) external onlyOwner {
    require(mintedB1 + _count <= maxSupplyB1, "Would excced B1 supply");

    for(uint256 i; i < _count;){
            i++;
            _safeMint( _recipient, mintedB1 + i );
      }
        totalSupply += _count;
        mintedB1 += _count;

  }

///////////////////////
/////// SETTERS ///////
///////////////////////

  function setWhitelistRoot(bytes32 merkleRoot) public onlyOwner {
    _merkleRoot = merkleRoot;
  }

  function setCostPublicB1(uint256 _newCostPublicB1) public onlyOwner {
    costPublicB1 = _newCostPublicB1;
  }

  function setCostPublicB2(uint256 _newCostPublicB2) public onlyOwner {
    costPublicB2 = _newCostPublicB2;
  }

  function setCostPublicB3(uint256 _newCostPublicB3) public onlyOwner {
    costPublicB3 = _newCostPublicB3;
  }

  function setCostWLB1(uint256 _newCostWLB1) public onlyOwner {
    costWLB1 = _newCostWLB1;
  }

  function setCostWLB2(uint256 _newCostWLB2) public onlyOwner {
    costWLB2 = _newCostWLB2;
  }

  function setCostWLB3(uint256 _newCostWLB3) public onlyOwner {
    costWLB3 = _newCostWLB3;
  }

  function setMaxSupplyB1(uint256 _newMaxSupplyB1) public onlyOwner {
    require (_newMaxSupplyB1 < maxSupplyB1, "can't exceed original supply");
    require (_newMaxSupplyB1 >= mintedB1, "can't be less than already minted");
    maxSupplyB1 = _newMaxSupplyB1;
  }

  function setMaxSupplyB2(uint256 _newMaxSupplyB2) public onlyOwner {
    require (_newMaxSupplyB2 < maxSupplyB2, "can't exceed original supply");
    require (_newMaxSupplyB2 >= mintedB2, "can't be less than already minted");
    maxSupplyB2 = _newMaxSupplyB2;
  }

  function setMaxSupplyB3(uint256 _newMaxSupplyB3) public onlyOwner {
    require (_newMaxSupplyB3 < maxSupplyB3, "can't exceed original supply");
    require (_newMaxSupplyB3 >= mintedB3, "can't be less than already minted");
    maxSupplyB3 = _newMaxSupplyB3;
  }

  function setRevealData(bool _revealed, string memory _unrevealedURI) public onlyOwner {
    revealed = _revealed;
    unrevealed_uri = _unrevealedURI;
  }

  function setBaseURI(string memory baseURI) public onlyOwner {
    baseTokenURI = baseURI;
  }

///////////////////////
////// GETTERS ////////
///////////////////////

  function isWhitelisted(address _wallet, bytes32[] calldata _merkleProof)
    public
    view
    returns (bool)
  {
    bytes32 leaf = keccak256(abi.encodePacked(_wallet));
    return MerkleProof.verify(_merkleProof, _merkleRoot, leaf);
  }

  function _baseURI() internal view virtual override returns (string memory) {
    return baseTokenURI;
  }

  function tokenURI(uint256 _tokenId)
    public
    view
    override
    returns (string memory)
  {
    if (revealed) {
    require(
      _exists(_tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );
    return string(abi.encodePacked(_baseURI(), _tokenId.toString(), ".json"));
    } else {
      return unrevealed_uri;
    }
  }

///////////////////////
/////// ADMIN /////////
///////////////////////

  // Change sale state
  function setMintPhase(uint8 _mintPhase) public onlyOwner {
    mintPhase = _mintPhase;
  }

  // Withdraw funds
  function withdrawAll() public payable onlyOwner {
    uint256 _share = address(this).balance / 1000;
    require(payable(t1).send(_share * 125));
    require(payable(t2).send(_share * 125));
    require(payable(t3).send(_share * 70));
    require(payable(t4).send(_share * 100));
    require(payable(t5).send(_share * 580));
  }

  // Set royalty info
  function setRoyaltyInfo(address receiver, uint96 feeBasisPoints)
    external
    onlyOwner
    {
        _setDefaultRoyalty(receiver, feeBasisPoints);
    }

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

    // Operator Filter

    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        override
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }


}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"airdrop_single","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costPublicB1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costPublicB2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costPublicB3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costWLB1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costWLB2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costWLB3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyB1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyB2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyB3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256","name":"_band","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPhase","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256","name":"_band","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintWL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedB1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedB2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedB3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCostPublicB1","type":"uint256"}],"name":"setCostPublicB1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCostPublicB2","type":"uint256"}],"name":"setCostPublicB2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCostPublicB3","type":"uint256"}],"name":"setCostPublicB3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCostWLB1","type":"uint256"}],"name":"setCostWLB1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCostWLB2","type":"uint256"}],"name":"setCostWLB2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCostWLB3","type":"uint256"}],"name":"setCostWLB3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupplyB1","type":"uint256"}],"name":"setMaxSupplyB1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupplyB2","type":"uint256"}],"name":"setMaxSupplyB2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupplyB3","type":"uint256"}],"name":"setMaxSupplyB3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_mintPhase","type":"uint8"}],"name":"setMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"},{"internalType":"string","name":"_unrevealedURI","type":"string"}],"name":"setRevealData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeBasisPoints","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWhitelistRoot","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":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealed_uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]

6005600a556658d15e17628000600b55669536c708910000600c5567011c37937e080000600d819055667c585087238000600e5566b1a2bc2ec50000600f556010556105dc6011556102bc60125561012c6013556018805461ffff191661010017905560a0604052600060809081526019906200007d90826200040a565b50601a80546001600160a01b03199081167338cc56b0fd63d479617b08b2ac445689ce6a952a17909155601b80548216734c84f2c943b25ba1fd4aca82244a5b00d90a1ad5179055601c805482167349131f1a71414cc29fe5a8d408dd6aafe0e48c4d179055601d80548216732dbb6717b685ac0af2760d8596f982aec23f7c95179055601e805490911673a5f409415d4381d82b1197f38b6c003a55e0b0711790553480156200012d57600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600a815260200169436f64653a204d61676960b01b815250604051806040016040528060048152602001634d61676960e01b81525081600090816200019691906200040a565b506001620001a582826200040a565b505050620001c2620001bc6200030f60201b60201c565b62000313565b6daaeb6d7670e522a718067333cd4e3b15620003075780156200025557604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200023657600080fd5b505af11580156200024b573d6000803e3d6000fd5b5050505062000307565b6001600160a01b03821615620002a65760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200021b565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620002ed57600080fd5b505af115801562000302573d6000803e3d6000fd5b505050505b5050620004d6565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200039057607f821691505b602082108103620003b157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200040557600081815260208120601f850160051c81016020861015620003e05750805b601f850160051c820191505b818110156200040157828155600101620003ec565b5050505b505050565b81516001600160401b0381111562000426576200042662000365565b6200043e816200043784546200037b565b84620003b7565b602080601f8311600181146200047657600084156200045d5750858301515b600019600386901b1c1916600185901b17855562000401565b600085815260208120601f198616915b82811015620004a75788860151825594840194600190910190840162000486565b5085821015620004c65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6134ac80620004e66000396000f3fe60806040526004361061036b5760003560e01c806370a08231116101c6578063b88d4fde116100f7578063dc92684311610095578063e985e9c51161006f578063e985e9c514610987578063ef9b63ba146109a7578063f2fde38b146109bd578063f5aa406d146109dd57600080fd5b8063dc92684314610931578063ddda579a14610951578063e235341d1461097157600080fd5b8063ccc7b242116100d1578063ccc7b242146108c8578063d1a0a4ad146108e8578063d673b368146108fe578063d7b232681461091157600080fd5b8063b88d4fde14610868578063c780a22f14610888578063c87b56dd146108a857600080fd5b80638da5cb5b116101645780639a9f2c2a1161013e5780639a9f2c2a146107fc5780639ffe1f5f14610812578063a22cb46514610832578063ab3ef4831461085257600080fd5b80638da5cb5b146107a957806395d89b41146107c7578063961a903d146107dc57600080fd5b8063853828b6116101a0578063853828b61461074b57806387e6f72e146107535780638839c7db14610773578063890131641461078957600080fd5b806370a082311461070057806370b19b9b14610720578063715018a61461073657600080fd5b80632a55205a116102a057806342842e0e1161023e57806355f804b31161021857806355f804b31461068b57806358043ced146106ab5780635a23dd99146106c05780636352211e146106e057600080fd5b806342842e0e1461062c5780634db26ad71461064c578063518302271461066c57600080fd5b806331c07bbf1161027a57806331c07bbf146105a7578063332ba8af146105c75780633ca63f2c146105dd57806341f434341461060a57600080fd5b80632a55205a1461053c5780632fb625071461057b5780632fc37ab21461059157600080fd5b8063126c56621161030d57806318160ddd116102e757806318160ddd146104d35780631b2ef1ca146104e957806321cd8193146104fc57806323b872dd1461051c57600080fd5b8063126c56621461047b5780631294a6a21461049157806317881cbf146104a757600080fd5b806307c1afff1161034957806307c1afff146103e9578063081812fc1461040d578063095ea7b3146104455780630a70c67a1461046557600080fd5b806301ffc9a71461037057806302fa7c47146103a557806306fdde03146103c7575b600080fd5b34801561037c57600080fd5b5061039061038b366004612b20565b6109fd565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103c56103c0366004612b54565b610a0e565b005b3480156103d357600080fd5b506103dc610a4f565b60405161039c9190612be7565b3480156103f557600080fd5b506103ff600d5481565b60405190815260200161039c565b34801561041957600080fd5b5061042d610428366004612bfa565b610ae1565b6040516001600160a01b03909116815260200161039c565b34801561045157600080fd5b506103c5610460366004612c13565b610b76565b34801561047157600080fd5b506103ff60165481565b34801561048757600080fd5b506103ff600f5481565b34801561049d57600080fd5b506103ff600b5481565b3480156104b357600080fd5b506018546104c19060ff1681565b60405160ff909116815260200161039c565b3480156104df57600080fd5b506103ff60175481565b6103c56104f7366004612c3d565b610b8f565b34801561050857600080fd5b506103c5610517366004612bfa565b610f77565b34801561052857600080fd5b506103c5610537366004612c5f565b610fe9565b34801561054857600080fd5b5061055c610557366004612c3d565b611014565b604080516001600160a01b03909316835260208301919091520161039c565b34801561058757600080fd5b506103ff60155481565b34801561059d57600080fd5b506103ff60205481565b3480156105b357600080fd5b506103c56105c2366004612c9b565b6110c2565b3480156105d357600080fd5b506103ff600c5481565b3480156105e957600080fd5b506103ff6105f8366004612cbe565b601f6020526000908152604090205481565b34801561061657600080fd5b5061042d6daaeb6d7670e522a718067333cd4e81565b34801561063857600080fd5b506103c5610647366004612c5f565b611102565b34801561065857600080fd5b506103c5610667366004612bfa565b611127565b34801561067857600080fd5b5060185461039090610100900460ff1681565b34801561069757600080fd5b506103c56106a6366004612d85565b611156565b3480156106b757600080fd5b506103dc61118c565b3480156106cc57600080fd5b506103906106db366004612dff565b61121a565b3480156106ec57600080fd5b5061042d6106fb366004612bfa565b6112a0565b34801561070c57600080fd5b506103ff61071b366004612cbe565b611317565b34801561072c57600080fd5b506103ff60115481565b34801561074257600080fd5b506103c561139e565b6103c56113d4565b34801561075f57600080fd5b506103c561076e366004612bfa565b611535565b34801561077f57600080fd5b506103ff60125481565b34801561079557600080fd5b506103c56107a4366004612bfa565b611564565b3480156107b557600080fd5b506006546001600160a01b031661042d565b3480156107d357600080fd5b506103dc611593565b3480156107e857600080fd5b506103c56107f7366004612bfa565b6115a2565b34801561080857600080fd5b506103ff60105481565b34801561081e57600080fd5b506103c561082d366004612bfa565b6115d1565b34801561083e57600080fd5b506103c561084d366004612e60565b611643565b34801561085e57600080fd5b506103ff600e5481565b34801561087457600080fd5b506103c5610883366004612e8c565b611657565b34801561089457600080fd5b506103c56108a3366004612bfa565b611684565b3480156108b457600080fd5b506103dc6108c3366004612bfa565b6116f6565b3480156108d457600080fd5b506103c56108e3366004612bfa565b611854565b3480156108f457600080fd5b506103ff60145481565b6103c561090c366004612f08565b611883565b34801561091d57600080fd5b506103c561092c366004612f5b565b611ccd565b34801561093d57600080fd5b506103c561094c366004612fab565b611d16565b34801561095d57600080fd5b506103c561096c366004612bfa565b611dca565b34801561097d57600080fd5b506103ff60135481565b34801561099357600080fd5b506103906109a2366004612fd7565b611df9565b3480156109b357600080fd5b506103ff600a5481565b3480156109c957600080fd5b506103c56109d8366004612cbe565b611e27565b3480156109e957600080fd5b506103c56109f8366004612bfa565b611ebf565b6000610a0882611eee565b92915050565b6006546001600160a01b03163314610a415760405162461bcd60e51b8152600401610a3890613001565b60405180910390fd5b610a4b8282611f13565b5050565b606060008054610a5e90613036565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8a90613036565b8015610ad75780601f10610aac57610100808354040283529160200191610ad7565b820191906000526020600020905b815481529060010190602001808311610aba57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b5a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a38565b506000908152600460205260409020546001600160a01b031690565b81610b8081612010565b610b8a83836120c9565b505050565b60185460ff16600314610bce5760405162461bcd60e51b8152602060048201526007602482015266139bdd081e595d60ca1b6044820152606401610a38565b600a54821115610c0b5760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610a38565b600a54336000908152601f6020526040902054610c29908490613086565b1115610c6b5760405162461bcd60e51b8152602060048201526011602482015270185b1c9958591e481b585e1b5a5b9d1959607a1b6044820152606401610a38565b8060011480610c7a5750806002145b80610c855750806003145b610cc25760405162461bcd60e51b815260206004820152600e60248201526d10985b99081a5b98dbdc9c9958dd60921b6044820152606401610a38565b80600103610d775781600e54610cd89190613099565b3414610cf65760405162461bcd60e51b8152600401610a38906130b0565b60115482601454610d079190613086565b1115610d255760405162461bcd60e51b8152600401610a38906130e7565b60005b82811015610d595780610d3a81613117565b915050610d543382601454610d4f9190613086565b6121d9565b610d28565b508160146000828254610d6c9190613086565b90915550610f369050565b80600203610e525781600f54610d8d9190613099565b3414610dab5760405162461bcd60e51b8152600401610a38906130b0565b60125482601554610dbc9190613086565b1115610e035760405162461bcd60e51b8152602060048201526016602482015275576f756c642065786363656420423220737570706c7960501b6044820152606401610a38565b60005b82811015610e3f5780610e1881613117565b915050610e3a3382601554601154610e309190613086565b610d4f9190613086565b610e06565b508160156000828254610d6c9190613086565b80600303610f365781601054610e689190613099565b3414610e865760405162461bcd60e51b8152600401610a38906130b0565b60135482601654610e979190613086565b1115610ede5760405162461bcd60e51b8152602060048201526016602482015275576f756c642065786363656420423320737570706c7960501b6044820152606401610a38565b60005b82811015610f1d5780610ef381613117565b915050610f183382601654601254601154610f0e9190613086565b610e309190613086565b610ee1565b508160166000828254610f309190613086565b90915550505b336000908152601f602052604081208054849290610f55908490613086565b925050819055508160176000828254610f6e9190613086565b90915550505050565b6006546001600160a01b03163314610fa15760405162461bcd60e51b8152600401610a3890613001565b6011548110610fc25760405162461bcd60e51b8152600401610a3890613130565b601454811015610fe45760405162461bcd60e51b8152600401610a3890613167565b601155565b826001600160a01b03811633146110035761100333612010565b61100e8484846121f3565b50505050565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916110895750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906110a8906001600160601b031687613099565b6110b291906131be565b91519350909150505b9250929050565b6006546001600160a01b031633146110ec5760405162461bcd60e51b8152600401610a3890613001565b6018805460ff191660ff92909216919091179055565b826001600160a01b038116331461111c5761111c33612010565b61100e848484612224565b6006546001600160a01b031633146111515760405162461bcd60e51b8152600401610a3890613001565b600d55565b6006546001600160a01b031633146111805760405162461bcd60e51b8152600401610a3890613001565b6009610a4b8282613220565b6019805461119990613036565b80601f01602080910402602001604051908101604052809291908181526020018280546111c590613036565b80156112125780601f106111e757610100808354040283529160200191611212565b820191906000526020600020905b8154815290600101906020018083116111f557829003601f168201915b505050505081565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061129784848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050602054915084905061223f565b95945050505050565b6000818152600260205260408120546001600160a01b031680610a085760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a38565b60006001600160a01b0382166113825760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a38565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146113c85760405162461bcd60e51b8152600401610a3890613001565b6113d26000612255565b565b6006546001600160a01b031633146113fe5760405162461bcd60e51b8152600401610a3890613001565b600061140c6103e8476131be565b601a549091506001600160a01b03166108fc61142983607d613099565b6040518115909202916000818181858888f1935050505061144957600080fd5b601b546001600160a01b03166108fc61146383607d613099565b6040518115909202916000818181858888f1935050505061148357600080fd5b601c546001600160a01b03166108fc61149d836046613099565b6040518115909202916000818181858888f193505050506114bd57600080fd5b601d546001600160a01b03166108fc6114d7836064613099565b6040518115909202916000818181858888f193505050506114f757600080fd5b601e546001600160a01b03166108fc61151283610244613099565b6040518115909202916000818181858888f1935050505061153257600080fd5b50565b6006546001600160a01b0316331461155f5760405162461bcd60e51b8152600401610a3890613001565b600e55565b6006546001600160a01b0316331461158e5760405162461bcd60e51b8152600401610a3890613001565b600f55565b606060018054610a5e90613036565b6006546001600160a01b031633146115cc5760405162461bcd60e51b8152600401610a3890613001565b600b55565b6006546001600160a01b031633146115fb5760405162461bcd60e51b8152600401610a3890613001565b601354811061161c5760405162461bcd60e51b8152600401610a3890613130565b60165481101561163e5760405162461bcd60e51b8152600401610a3890613167565b601355565b8161164d81612010565b610b8a83836122a7565b836001600160a01b03811633146116715761167133612010565b61167d8585858561236b565b5050505050565b6006546001600160a01b031633146116ae5760405162461bcd60e51b8152600401610a3890613001565b60125481106116cf5760405162461bcd60e51b8152600401610a3890613130565b6015548110156116f15760405162461bcd60e51b8152600401610a3890613167565b601255565b601854606090610100900460ff16156117bd576000828152600260205260409020546001600160a01b03166117855760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a38565b61178d61239d565b611796836123ac565b6040516020016117a79291906132e0565b6040516020818303038152906040529050919050565b601980546117ca90613036565b80601f01602080910402602001604051908101604052809291908181526020018280546117f690613036565b80156118435780601f1061181857610100808354040283529160200191611843565b820191906000526020600020905b81548152906001019060200180831161182657829003601f168201915b50505050509050919050565b919050565b6006546001600160a01b0316331461187e5760405162461bcd60e51b8152600401610a3890613001565b600c55565b61188e33838361121a565b6118cc5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610a38565b60185460ff16600114806118e5575060185460ff166002145b6119265760405162461bcd60e51b8152602060048201526012602482015271574c206d696e74206e6f742061637469766560701b6044820152606401610a38565b82600114806119355750826002145b806119405750826003145b61197d5760405162461bcd60e51b815260206004820152600e60248201526d10985b99081a5b98dbdc9c9958dd60921b6044820152606401610a38565b60185460ff168411156119bd5760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610a38565b601854336000908152601f602052604090205460ff909116906119e1908690613086565b1115611a2f5760405162461bcd60e51b815260206004820181905260248201527f616c7265616479206d61786d696e74656420666f7220746869732070686173656044820152606401610a38565b82600103611adf5783600b54611a459190613099565b3414611a635760405162461bcd60e51b8152600401610a38906130b0565b60115484601454611a749190613086565b1115611a925760405162461bcd60e51b8152600401610a38906130e7565b60005b84811015611ac15780611aa781613117565b915050611abc3382601454610d4f9190613086565b611a95565b508360146000828254611ad49190613086565b90915550611c8a9050565b82600203611bb05783600c54611af59190613099565b3414611b135760405162461bcd60e51b8152600401610a38906130b0565b60125484601554611b249190613086565b1115611b6b5760405162461bcd60e51b8152602060048201526016602482015275576f756c642065786363656420423220737570706c7960501b6044820152606401610a38565b60005b84811015611b9d5780611b8081613117565b915050611b983382601554601154610e309190613086565b611b6e565b508360156000828254611ad49190613086565b82600303611c8a5783600d54611bc69190613099565b3414611be45760405162461bcd60e51b8152600401610a38906130b0565b60135484601654611bf59190613086565b1115611c3c5760405162461bcd60e51b8152602060048201526016602482015275576f756c642065786363656420423320737570706c7960501b6044820152606401610a38565b60005b84811015611c715780611c5181613117565b915050611c6c3382601654601254601154610f0e9190613086565b611c3f565b508360166000828254611c849190613086565b90915550505b336000908152601f602052604081208054869290611ca9908490613086565b925050819055508360176000828254611cc29190613086565b909155505050505050565b6006546001600160a01b03163314611cf75760405162461bcd60e51b8152600401610a3890613001565b6018805461ff001916610100841515021790556019610b8a8282613220565b6006546001600160a01b03163314611d405760405162461bcd60e51b8152600401610a3890613001565b60115482601454611d519190613086565b1115611d6f5760405162461bcd60e51b8152600401610a38906130e7565b60005b82811015611d9e5780611d8481613117565b915050611d998282601454610d4f9190613086565b611d72565b508160176000828254611db19190613086565b925050819055508160146000828254610f6e9190613086565b6006546001600160a01b03163314611df45760405162461bcd60e51b8152600401610a3890613001565b601055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b03163314611e515760405162461bcd60e51b8152600401610a3890613001565b6001600160a01b038116611eb65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a38565b61153281612255565b6006546001600160a01b03163314611ee95760405162461bcd60e51b8152600401610a3890613001565b602055565b60006001600160e01b0319821663152a902d60e11b1480610a085750610a08826124b5565b6127106001600160601b0382161115611f815760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a38565b6001600160a01b038216611fd75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a38565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b6daaeb6d7670e522a718067333cd4e3b1561153257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561207d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120a1919061331f565b61153257604051633b79c77360e21b81526001600160a01b0382166004820152602401610a38565b60006120d4826112a0565b9050806001600160a01b0316836001600160a01b0316036121415760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a38565b336001600160a01b038216148061215d575061215d8133611df9565b6121cf5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a38565b610b8a8383612505565b610a4b828260405180602001604052806000815250612573565b6121fd33826125a6565b6122195760405162461bcd60e51b8152600401610a389061333c565b610b8a838383612675565b610b8a83838360405180602001604052806000815250611657565b60008261224c8584612815565b14949350505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b336001600160a01b038316036122ff5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a38565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61237533836125a6565b6123915760405162461bcd60e51b8152600401610a389061333c565b61100e84848484612862565b606060098054610a5e90613036565b6060816000036123d35750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123fd57806123e781613117565b91506123f69050600a836131be565b91506123d7565b60008167ffffffffffffffff81111561241857612418612cd9565b6040519080825280601f01601f191660200182016040528015612442576020820181803683370190505b5090505b84156124ad5761245760018361338d565b9150612464600a866133a0565b61246f906030613086565b60f81b818381518110612484576124846133b4565b60200101906001600160f81b031916908160001a9053506124a6600a866131be565b9450612446565b949350505050565b60006001600160e01b031982166380ac58cd60e01b14806124e657506001600160e01b03198216635b5e139f60e01b145b80610a0857506301ffc9a760e01b6001600160e01b0319831614610a08565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061253a826112a0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61257d8383612895565b61258a60008484846129d7565b610b8a5760405162461bcd60e51b8152600401610a38906133ca565b6000818152600260205260408120546001600160a01b031661261f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a38565b600061262a836112a0565b9050806001600160a01b0316846001600160a01b031614806126655750836001600160a01b031661265a84610ae1565b6001600160a01b0316145b806124ad57506124ad8185611df9565b826001600160a01b0316612688826112a0565b6001600160a01b0316146126f05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a38565b6001600160a01b0382166127525760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a38565b61275d600082612505565b6001600160a01b038316600090815260036020526040812080546001929061278690849061338d565b90915550506001600160a01b03821660009081526003602052604081208054600192906127b4908490613086565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081815b845181101561285a5761284682868381518110612839576128396133b4565b6020026020010151612ad8565b91508061285281613117565b91505061281a565b509392505050565b61286d848484612675565b612879848484846129d7565b61100e5760405162461bcd60e51b8152600401610a38906133ca565b6001600160a01b0382166128eb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a38565b6000818152600260205260409020546001600160a01b0316156129505760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a38565b6001600160a01b0382166000908152600360205260408120805460019290612979908490613086565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612acd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a1b90339089908890889060040161341c565b6020604051808303816000875af1925050508015612a56575060408051601f3d908101601f19168201909252612a5391810190613459565b60015b612ab3573d808015612a84576040519150601f19603f3d011682016040523d82523d6000602084013e612a89565b606091505b508051600003612aab5760405162461bcd60e51b8152600401610a38906133ca565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124ad565b506001949350505050565b6000818310612af4576000828152602084905260409020612b03565b60008381526020839052604090205b9392505050565b6001600160e01b03198116811461153257600080fd5b600060208284031215612b3257600080fd5b8135612b0381612b0a565b80356001600160a01b038116811461184f57600080fd5b60008060408385031215612b6757600080fd5b612b7083612b3d565b915060208301356001600160601b0381168114612b8c57600080fd5b809150509250929050565b60005b83811015612bb2578181015183820152602001612b9a565b50506000910152565b60008151808452612bd3816020860160208601612b97565b601f01601f19169290920160200192915050565b602081526000612b036020830184612bbb565b600060208284031215612c0c57600080fd5b5035919050565b60008060408385031215612c2657600080fd5b612c2f83612b3d565b946020939093013593505050565b60008060408385031215612c5057600080fd5b50508035926020909101359150565b600080600060608486031215612c7457600080fd5b612c7d84612b3d565b9250612c8b60208501612b3d565b9150604084013590509250925092565b600060208284031215612cad57600080fd5b813560ff81168114612b0357600080fd5b600060208284031215612cd057600080fd5b612b0382612b3d565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612d0a57612d0a612cd9565b604051601f8501601f19908116603f01168101908282118183101715612d3257612d32612cd9565b81604052809350858152868686011115612d4b57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612d7657600080fd5b612b0383833560208501612cef565b600060208284031215612d9757600080fd5b813567ffffffffffffffff811115612dae57600080fd5b6124ad84828501612d65565b60008083601f840112612dcc57600080fd5b50813567ffffffffffffffff811115612de457600080fd5b6020830191508360208260051b85010111156110bb57600080fd5b600080600060408486031215612e1457600080fd5b612e1d84612b3d565b9250602084013567ffffffffffffffff811115612e3957600080fd5b612e4586828701612dba565b9497909650939450505050565b801515811461153257600080fd5b60008060408385031215612e7357600080fd5b612e7c83612b3d565b91506020830135612b8c81612e52565b60008060008060808587031215612ea257600080fd5b612eab85612b3d565b9350612eb960208601612b3d565b925060408501359150606085013567ffffffffffffffff811115612edc57600080fd5b8501601f81018713612eed57600080fd5b612efc87823560208401612cef565b91505092959194509250565b60008060008060608587031215612f1e57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115612f4357600080fd5b612f4f87828801612dba565b95989497509550505050565b60008060408385031215612f6e57600080fd5b8235612f7981612e52565b9150602083013567ffffffffffffffff811115612f9557600080fd5b612fa185828601612d65565b9150509250929050565b60008060408385031215612fbe57600080fd5b82359150612fce60208401612b3d565b90509250929050565b60008060408385031215612fea57600080fd5b612ff383612b3d565b9150612fce60208401612b3d565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061304a57607f821691505b60208210810361306a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a0857610a08613070565b8082028115828204841417610a0857610a08613070565b60208082526017908201527f45746865722073656e7420697320696e636f7272656374000000000000000000604082015260600190565b602080825260169082015275576f756c642065786363656420423120737570706c7960501b604082015260600190565b60006001820161312957613129613070565b5060010190565b6020808252601c908201527f63616e277420657863656564206f726967696e616c20737570706c7900000000604082015260600190565b60208082526021908201527f63616e2774206265206c657373207468616e20616c7265616479206d696e74656040820152601960fa1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826131cd576131cd6131a8565b500490565b601f821115610b8a57600081815260208120601f850160051c810160208610156131f95750805b601f850160051c820191505b8181101561321857828155600101613205565b505050505050565b815167ffffffffffffffff81111561323a5761323a612cd9565b61324e816132488454613036565b846131d2565b602080601f831160018114613283576000841561326b5750858301515b600019600386901b1c1916600185901b178555613218565b600085815260208120601f198616915b828110156132b257888601518255948401946001909101908401613293565b50858210156132d05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516132f2818460208801612b97565b835190830190613306818360208801612b97565b64173539b7b760d91b9101908152600501949350505050565b60006020828403121561333157600080fd5b8151612b0381612e52565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b81810381811115610a0857610a08613070565b6000826133af576133af6131a8565b500690565b634e487b7160e01b600052603260045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061344f90830184612bbb565b9695505050505050565b60006020828403121561346b57600080fd5b8151612b0381612b0a56fea264697066735822122086378902fae3a7e5839ffd3bb9cd0d77e67b8b20f2d31745bc256dc3b8e1b97464736f6c63430008110033

Deployed Bytecode

0x60806040526004361061036b5760003560e01c806370a08231116101c6578063b88d4fde116100f7578063dc92684311610095578063e985e9c51161006f578063e985e9c514610987578063ef9b63ba146109a7578063f2fde38b146109bd578063f5aa406d146109dd57600080fd5b8063dc92684314610931578063ddda579a14610951578063e235341d1461097157600080fd5b8063ccc7b242116100d1578063ccc7b242146108c8578063d1a0a4ad146108e8578063d673b368146108fe578063d7b232681461091157600080fd5b8063b88d4fde14610868578063c780a22f14610888578063c87b56dd146108a857600080fd5b80638da5cb5b116101645780639a9f2c2a1161013e5780639a9f2c2a146107fc5780639ffe1f5f14610812578063a22cb46514610832578063ab3ef4831461085257600080fd5b80638da5cb5b146107a957806395d89b41146107c7578063961a903d146107dc57600080fd5b8063853828b6116101a0578063853828b61461074b57806387e6f72e146107535780638839c7db14610773578063890131641461078957600080fd5b806370a082311461070057806370b19b9b14610720578063715018a61461073657600080fd5b80632a55205a116102a057806342842e0e1161023e57806355f804b31161021857806355f804b31461068b57806358043ced146106ab5780635a23dd99146106c05780636352211e146106e057600080fd5b806342842e0e1461062c5780634db26ad71461064c578063518302271461066c57600080fd5b806331c07bbf1161027a57806331c07bbf146105a7578063332ba8af146105c75780633ca63f2c146105dd57806341f434341461060a57600080fd5b80632a55205a1461053c5780632fb625071461057b5780632fc37ab21461059157600080fd5b8063126c56621161030d57806318160ddd116102e757806318160ddd146104d35780631b2ef1ca146104e957806321cd8193146104fc57806323b872dd1461051c57600080fd5b8063126c56621461047b5780631294a6a21461049157806317881cbf146104a757600080fd5b806307c1afff1161034957806307c1afff146103e9578063081812fc1461040d578063095ea7b3146104455780630a70c67a1461046557600080fd5b806301ffc9a71461037057806302fa7c47146103a557806306fdde03146103c7575b600080fd5b34801561037c57600080fd5b5061039061038b366004612b20565b6109fd565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103c56103c0366004612b54565b610a0e565b005b3480156103d357600080fd5b506103dc610a4f565b60405161039c9190612be7565b3480156103f557600080fd5b506103ff600d5481565b60405190815260200161039c565b34801561041957600080fd5b5061042d610428366004612bfa565b610ae1565b6040516001600160a01b03909116815260200161039c565b34801561045157600080fd5b506103c5610460366004612c13565b610b76565b34801561047157600080fd5b506103ff60165481565b34801561048757600080fd5b506103ff600f5481565b34801561049d57600080fd5b506103ff600b5481565b3480156104b357600080fd5b506018546104c19060ff1681565b60405160ff909116815260200161039c565b3480156104df57600080fd5b506103ff60175481565b6103c56104f7366004612c3d565b610b8f565b34801561050857600080fd5b506103c5610517366004612bfa565b610f77565b34801561052857600080fd5b506103c5610537366004612c5f565b610fe9565b34801561054857600080fd5b5061055c610557366004612c3d565b611014565b604080516001600160a01b03909316835260208301919091520161039c565b34801561058757600080fd5b506103ff60155481565b34801561059d57600080fd5b506103ff60205481565b3480156105b357600080fd5b506103c56105c2366004612c9b565b6110c2565b3480156105d357600080fd5b506103ff600c5481565b3480156105e957600080fd5b506103ff6105f8366004612cbe565b601f6020526000908152604090205481565b34801561061657600080fd5b5061042d6daaeb6d7670e522a718067333cd4e81565b34801561063857600080fd5b506103c5610647366004612c5f565b611102565b34801561065857600080fd5b506103c5610667366004612bfa565b611127565b34801561067857600080fd5b5060185461039090610100900460ff1681565b34801561069757600080fd5b506103c56106a6366004612d85565b611156565b3480156106b757600080fd5b506103dc61118c565b3480156106cc57600080fd5b506103906106db366004612dff565b61121a565b3480156106ec57600080fd5b5061042d6106fb366004612bfa565b6112a0565b34801561070c57600080fd5b506103ff61071b366004612cbe565b611317565b34801561072c57600080fd5b506103ff60115481565b34801561074257600080fd5b506103c561139e565b6103c56113d4565b34801561075f57600080fd5b506103c561076e366004612bfa565b611535565b34801561077f57600080fd5b506103ff60125481565b34801561079557600080fd5b506103c56107a4366004612bfa565b611564565b3480156107b557600080fd5b506006546001600160a01b031661042d565b3480156107d357600080fd5b506103dc611593565b3480156107e857600080fd5b506103c56107f7366004612bfa565b6115a2565b34801561080857600080fd5b506103ff60105481565b34801561081e57600080fd5b506103c561082d366004612bfa565b6115d1565b34801561083e57600080fd5b506103c561084d366004612e60565b611643565b34801561085e57600080fd5b506103ff600e5481565b34801561087457600080fd5b506103c5610883366004612e8c565b611657565b34801561089457600080fd5b506103c56108a3366004612bfa565b611684565b3480156108b457600080fd5b506103dc6108c3366004612bfa565b6116f6565b3480156108d457600080fd5b506103c56108e3366004612bfa565b611854565b3480156108f457600080fd5b506103ff60145481565b6103c561090c366004612f08565b611883565b34801561091d57600080fd5b506103c561092c366004612f5b565b611ccd565b34801561093d57600080fd5b506103c561094c366004612fab565b611d16565b34801561095d57600080fd5b506103c561096c366004612bfa565b611dca565b34801561097d57600080fd5b506103ff60135481565b34801561099357600080fd5b506103906109a2366004612fd7565b611df9565b3480156109b357600080fd5b506103ff600a5481565b3480156109c957600080fd5b506103c56109d8366004612cbe565b611e27565b3480156109e957600080fd5b506103c56109f8366004612bfa565b611ebf565b6000610a0882611eee565b92915050565b6006546001600160a01b03163314610a415760405162461bcd60e51b8152600401610a3890613001565b60405180910390fd5b610a4b8282611f13565b5050565b606060008054610a5e90613036565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8a90613036565b8015610ad75780601f10610aac57610100808354040283529160200191610ad7565b820191906000526020600020905b815481529060010190602001808311610aba57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b5a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a38565b506000908152600460205260409020546001600160a01b031690565b81610b8081612010565b610b8a83836120c9565b505050565b60185460ff16600314610bce5760405162461bcd60e51b8152602060048201526007602482015266139bdd081e595d60ca1b6044820152606401610a38565b600a54821115610c0b5760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610a38565b600a54336000908152601f6020526040902054610c29908490613086565b1115610c6b5760405162461bcd60e51b8152602060048201526011602482015270185b1c9958591e481b585e1b5a5b9d1959607a1b6044820152606401610a38565b8060011480610c7a5750806002145b80610c855750806003145b610cc25760405162461bcd60e51b815260206004820152600e60248201526d10985b99081a5b98dbdc9c9958dd60921b6044820152606401610a38565b80600103610d775781600e54610cd89190613099565b3414610cf65760405162461bcd60e51b8152600401610a38906130b0565b60115482601454610d079190613086565b1115610d255760405162461bcd60e51b8152600401610a38906130e7565b60005b82811015610d595780610d3a81613117565b915050610d543382601454610d4f9190613086565b6121d9565b610d28565b508160146000828254610d6c9190613086565b90915550610f369050565b80600203610e525781600f54610d8d9190613099565b3414610dab5760405162461bcd60e51b8152600401610a38906130b0565b60125482601554610dbc9190613086565b1115610e035760405162461bcd60e51b8152602060048201526016602482015275576f756c642065786363656420423220737570706c7960501b6044820152606401610a38565b60005b82811015610e3f5780610e1881613117565b915050610e3a3382601554601154610e309190613086565b610d4f9190613086565b610e06565b508160156000828254610d6c9190613086565b80600303610f365781601054610e689190613099565b3414610e865760405162461bcd60e51b8152600401610a38906130b0565b60135482601654610e979190613086565b1115610ede5760405162461bcd60e51b8152602060048201526016602482015275576f756c642065786363656420423320737570706c7960501b6044820152606401610a38565b60005b82811015610f1d5780610ef381613117565b915050610f183382601654601254601154610f0e9190613086565b610e309190613086565b610ee1565b508160166000828254610f309190613086565b90915550505b336000908152601f602052604081208054849290610f55908490613086565b925050819055508160176000828254610f6e9190613086565b90915550505050565b6006546001600160a01b03163314610fa15760405162461bcd60e51b8152600401610a3890613001565b6011548110610fc25760405162461bcd60e51b8152600401610a3890613130565b601454811015610fe45760405162461bcd60e51b8152600401610a3890613167565b601155565b826001600160a01b03811633146110035761100333612010565b61100e8484846121f3565b50505050565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916110895750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906110a8906001600160601b031687613099565b6110b291906131be565b91519350909150505b9250929050565b6006546001600160a01b031633146110ec5760405162461bcd60e51b8152600401610a3890613001565b6018805460ff191660ff92909216919091179055565b826001600160a01b038116331461111c5761111c33612010565b61100e848484612224565b6006546001600160a01b031633146111515760405162461bcd60e51b8152600401610a3890613001565b600d55565b6006546001600160a01b031633146111805760405162461bcd60e51b8152600401610a3890613001565b6009610a4b8282613220565b6019805461119990613036565b80601f01602080910402602001604051908101604052809291908181526020018280546111c590613036565b80156112125780601f106111e757610100808354040283529160200191611212565b820191906000526020600020905b8154815290600101906020018083116111f557829003601f168201915b505050505081565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061129784848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050602054915084905061223f565b95945050505050565b6000818152600260205260408120546001600160a01b031680610a085760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a38565b60006001600160a01b0382166113825760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a38565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146113c85760405162461bcd60e51b8152600401610a3890613001565b6113d26000612255565b565b6006546001600160a01b031633146113fe5760405162461bcd60e51b8152600401610a3890613001565b600061140c6103e8476131be565b601a549091506001600160a01b03166108fc61142983607d613099565b6040518115909202916000818181858888f1935050505061144957600080fd5b601b546001600160a01b03166108fc61146383607d613099565b6040518115909202916000818181858888f1935050505061148357600080fd5b601c546001600160a01b03166108fc61149d836046613099565b6040518115909202916000818181858888f193505050506114bd57600080fd5b601d546001600160a01b03166108fc6114d7836064613099565b6040518115909202916000818181858888f193505050506114f757600080fd5b601e546001600160a01b03166108fc61151283610244613099565b6040518115909202916000818181858888f1935050505061153257600080fd5b50565b6006546001600160a01b0316331461155f5760405162461bcd60e51b8152600401610a3890613001565b600e55565b6006546001600160a01b0316331461158e5760405162461bcd60e51b8152600401610a3890613001565b600f55565b606060018054610a5e90613036565b6006546001600160a01b031633146115cc5760405162461bcd60e51b8152600401610a3890613001565b600b55565b6006546001600160a01b031633146115fb5760405162461bcd60e51b8152600401610a3890613001565b601354811061161c5760405162461bcd60e51b8152600401610a3890613130565b60165481101561163e5760405162461bcd60e51b8152600401610a3890613167565b601355565b8161164d81612010565b610b8a83836122a7565b836001600160a01b03811633146116715761167133612010565b61167d8585858561236b565b5050505050565b6006546001600160a01b031633146116ae5760405162461bcd60e51b8152600401610a3890613001565b60125481106116cf5760405162461bcd60e51b8152600401610a3890613130565b6015548110156116f15760405162461bcd60e51b8152600401610a3890613167565b601255565b601854606090610100900460ff16156117bd576000828152600260205260409020546001600160a01b03166117855760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a38565b61178d61239d565b611796836123ac565b6040516020016117a79291906132e0565b6040516020818303038152906040529050919050565b601980546117ca90613036565b80601f01602080910402602001604051908101604052809291908181526020018280546117f690613036565b80156118435780601f1061181857610100808354040283529160200191611843565b820191906000526020600020905b81548152906001019060200180831161182657829003601f168201915b50505050509050919050565b919050565b6006546001600160a01b0316331461187e5760405162461bcd60e51b8152600401610a3890613001565b600c55565b61188e33838361121a565b6118cc5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610a38565b60185460ff16600114806118e5575060185460ff166002145b6119265760405162461bcd60e51b8152602060048201526012602482015271574c206d696e74206e6f742061637469766560701b6044820152606401610a38565b82600114806119355750826002145b806119405750826003145b61197d5760405162461bcd60e51b815260206004820152600e60248201526d10985b99081a5b98dbdc9c9958dd60921b6044820152606401610a38565b60185460ff168411156119bd5760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610a38565b601854336000908152601f602052604090205460ff909116906119e1908690613086565b1115611a2f5760405162461bcd60e51b815260206004820181905260248201527f616c7265616479206d61786d696e74656420666f7220746869732070686173656044820152606401610a38565b82600103611adf5783600b54611a459190613099565b3414611a635760405162461bcd60e51b8152600401610a38906130b0565b60115484601454611a749190613086565b1115611a925760405162461bcd60e51b8152600401610a38906130e7565b60005b84811015611ac15780611aa781613117565b915050611abc3382601454610d4f9190613086565b611a95565b508360146000828254611ad49190613086565b90915550611c8a9050565b82600203611bb05783600c54611af59190613099565b3414611b135760405162461bcd60e51b8152600401610a38906130b0565b60125484601554611b249190613086565b1115611b6b5760405162461bcd60e51b8152602060048201526016602482015275576f756c642065786363656420423220737570706c7960501b6044820152606401610a38565b60005b84811015611b9d5780611b8081613117565b915050611b983382601554601154610e309190613086565b611b6e565b508360156000828254611ad49190613086565b82600303611c8a5783600d54611bc69190613099565b3414611be45760405162461bcd60e51b8152600401610a38906130b0565b60135484601654611bf59190613086565b1115611c3c5760405162461bcd60e51b8152602060048201526016602482015275576f756c642065786363656420423320737570706c7960501b6044820152606401610a38565b60005b84811015611c715780611c5181613117565b915050611c6c3382601654601254601154610f0e9190613086565b611c3f565b508360166000828254611c849190613086565b90915550505b336000908152601f602052604081208054869290611ca9908490613086565b925050819055508360176000828254611cc29190613086565b909155505050505050565b6006546001600160a01b03163314611cf75760405162461bcd60e51b8152600401610a3890613001565b6018805461ff001916610100841515021790556019610b8a8282613220565b6006546001600160a01b03163314611d405760405162461bcd60e51b8152600401610a3890613001565b60115482601454611d519190613086565b1115611d6f5760405162461bcd60e51b8152600401610a38906130e7565b60005b82811015611d9e5780611d8481613117565b915050611d998282601454610d4f9190613086565b611d72565b508160176000828254611db19190613086565b925050819055508160146000828254610f6e9190613086565b6006546001600160a01b03163314611df45760405162461bcd60e51b8152600401610a3890613001565b601055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b03163314611e515760405162461bcd60e51b8152600401610a3890613001565b6001600160a01b038116611eb65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a38565b61153281612255565b6006546001600160a01b03163314611ee95760405162461bcd60e51b8152600401610a3890613001565b602055565b60006001600160e01b0319821663152a902d60e11b1480610a085750610a08826124b5565b6127106001600160601b0382161115611f815760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a38565b6001600160a01b038216611fd75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a38565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b6daaeb6d7670e522a718067333cd4e3b1561153257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561207d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120a1919061331f565b61153257604051633b79c77360e21b81526001600160a01b0382166004820152602401610a38565b60006120d4826112a0565b9050806001600160a01b0316836001600160a01b0316036121415760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a38565b336001600160a01b038216148061215d575061215d8133611df9565b6121cf5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a38565b610b8a8383612505565b610a4b828260405180602001604052806000815250612573565b6121fd33826125a6565b6122195760405162461bcd60e51b8152600401610a389061333c565b610b8a838383612675565b610b8a83838360405180602001604052806000815250611657565b60008261224c8584612815565b14949350505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b336001600160a01b038316036122ff5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a38565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61237533836125a6565b6123915760405162461bcd60e51b8152600401610a389061333c565b61100e84848484612862565b606060098054610a5e90613036565b6060816000036123d35750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123fd57806123e781613117565b91506123f69050600a836131be565b91506123d7565b60008167ffffffffffffffff81111561241857612418612cd9565b6040519080825280601f01601f191660200182016040528015612442576020820181803683370190505b5090505b84156124ad5761245760018361338d565b9150612464600a866133a0565b61246f906030613086565b60f81b818381518110612484576124846133b4565b60200101906001600160f81b031916908160001a9053506124a6600a866131be565b9450612446565b949350505050565b60006001600160e01b031982166380ac58cd60e01b14806124e657506001600160e01b03198216635b5e139f60e01b145b80610a0857506301ffc9a760e01b6001600160e01b0319831614610a08565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061253a826112a0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61257d8383612895565b61258a60008484846129d7565b610b8a5760405162461bcd60e51b8152600401610a38906133ca565b6000818152600260205260408120546001600160a01b031661261f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a38565b600061262a836112a0565b9050806001600160a01b0316846001600160a01b031614806126655750836001600160a01b031661265a84610ae1565b6001600160a01b0316145b806124ad57506124ad8185611df9565b826001600160a01b0316612688826112a0565b6001600160a01b0316146126f05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a38565b6001600160a01b0382166127525760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a38565b61275d600082612505565b6001600160a01b038316600090815260036020526040812080546001929061278690849061338d565b90915550506001600160a01b03821660009081526003602052604081208054600192906127b4908490613086565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081815b845181101561285a5761284682868381518110612839576128396133b4565b6020026020010151612ad8565b91508061285281613117565b91505061281a565b509392505050565b61286d848484612675565b612879848484846129d7565b61100e5760405162461bcd60e51b8152600401610a38906133ca565b6001600160a01b0382166128eb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a38565b6000818152600260205260409020546001600160a01b0316156129505760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a38565b6001600160a01b0382166000908152600360205260408120805460019290612979908490613086565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612acd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a1b90339089908890889060040161341c565b6020604051808303816000875af1925050508015612a56575060408051601f3d908101601f19168201909252612a5391810190613459565b60015b612ab3573d808015612a84576040519150601f19603f3d011682016040523d82523d6000602084013e612a89565b606091505b508051600003612aab5760405162461bcd60e51b8152600401610a38906133ca565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124ad565b506001949350505050565b6000818310612af4576000828152602084905260409020612b03565b60008381526020839052604090205b9392505050565b6001600160e01b03198116811461153257600080fd5b600060208284031215612b3257600080fd5b8135612b0381612b0a565b80356001600160a01b038116811461184f57600080fd5b60008060408385031215612b6757600080fd5b612b7083612b3d565b915060208301356001600160601b0381168114612b8c57600080fd5b809150509250929050565b60005b83811015612bb2578181015183820152602001612b9a565b50506000910152565b60008151808452612bd3816020860160208601612b97565b601f01601f19169290920160200192915050565b602081526000612b036020830184612bbb565b600060208284031215612c0c57600080fd5b5035919050565b60008060408385031215612c2657600080fd5b612c2f83612b3d565b946020939093013593505050565b60008060408385031215612c5057600080fd5b50508035926020909101359150565b600080600060608486031215612c7457600080fd5b612c7d84612b3d565b9250612c8b60208501612b3d565b9150604084013590509250925092565b600060208284031215612cad57600080fd5b813560ff81168114612b0357600080fd5b600060208284031215612cd057600080fd5b612b0382612b3d565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612d0a57612d0a612cd9565b604051601f8501601f19908116603f01168101908282118183101715612d3257612d32612cd9565b81604052809350858152868686011115612d4b57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612d7657600080fd5b612b0383833560208501612cef565b600060208284031215612d9757600080fd5b813567ffffffffffffffff811115612dae57600080fd5b6124ad84828501612d65565b60008083601f840112612dcc57600080fd5b50813567ffffffffffffffff811115612de457600080fd5b6020830191508360208260051b85010111156110bb57600080fd5b600080600060408486031215612e1457600080fd5b612e1d84612b3d565b9250602084013567ffffffffffffffff811115612e3957600080fd5b612e4586828701612dba565b9497909650939450505050565b801515811461153257600080fd5b60008060408385031215612e7357600080fd5b612e7c83612b3d565b91506020830135612b8c81612e52565b60008060008060808587031215612ea257600080fd5b612eab85612b3d565b9350612eb960208601612b3d565b925060408501359150606085013567ffffffffffffffff811115612edc57600080fd5b8501601f81018713612eed57600080fd5b612efc87823560208401612cef565b91505092959194509250565b60008060008060608587031215612f1e57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115612f4357600080fd5b612f4f87828801612dba565b95989497509550505050565b60008060408385031215612f6e57600080fd5b8235612f7981612e52565b9150602083013567ffffffffffffffff811115612f9557600080fd5b612fa185828601612d65565b9150509250929050565b60008060408385031215612fbe57600080fd5b82359150612fce60208401612b3d565b90509250929050565b60008060408385031215612fea57600080fd5b612ff383612b3d565b9150612fce60208401612b3d565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061304a57607f821691505b60208210810361306a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a0857610a08613070565b8082028115828204841417610a0857610a08613070565b60208082526017908201527f45746865722073656e7420697320696e636f7272656374000000000000000000604082015260600190565b602080825260169082015275576f756c642065786363656420423120737570706c7960501b604082015260600190565b60006001820161312957613129613070565b5060010190565b6020808252601c908201527f63616e277420657863656564206f726967696e616c20737570706c7900000000604082015260600190565b60208082526021908201527f63616e2774206265206c657373207468616e20616c7265616479206d696e74656040820152601960fa1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826131cd576131cd6131a8565b500490565b601f821115610b8a57600081815260208120601f850160051c810160208610156131f95750805b601f850160051c820191505b8181101561321857828155600101613205565b505050505050565b815167ffffffffffffffff81111561323a5761323a612cd9565b61324e816132488454613036565b846131d2565b602080601f831160018114613283576000841561326b5750858301515b600019600386901b1c1916600185901b178555613218565b600085815260208120601f198616915b828110156132b257888601518255948401946001909101908401613293565b50858210156132d05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516132f2818460208801612b97565b835190830190613306818360208801612b97565b64173539b7b760d91b9101908152600501949350505050565b60006020828403121561333157600080fd5b8151612b0381612e52565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b81810381811115610a0857610a08613070565b6000826133af576133af6131a8565b500690565b634e487b7160e01b600052603260045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061344f90830184612bbb565b9695505050505050565b60006020828403121561346b57600080fd5b8151612b0381612b0a56fea264697066735822122086378902fae3a7e5839ffd3bb9cd0d77e67b8b20f2d31745bc256dc3b8e1b97464736f6c63430008110033

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.