ETH Price: $3,435.29 (-1.47%)

Contract

0x44445a848a660aa43fA739c52c62C6d3A774621e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...213955362024-12-13 18:59:1112 days ago1734116351IN
0x44445a84...3A774621e
0 ETH0.0008465918.36474781
Set Approval For...206477992024-08-31 9:56:47116 days ago1725098207IN
0x44445a84...3A774621e
0 ETH0.000070071.51740087
Set Approval For...202910802024-07-12 14:40:35166 days ago1720795235IN
0x44445a84...3A774621e
0 ETH0.00012795.28806932
Set Approval For...200747692024-06-12 9:11:47196 days ago1718183507IN
0x44445a84...3A774621e
0 ETH0.0004844510.50896193
Set Approval For...199572232024-05-26 23:06:23213 days ago1716764783IN
0x44445a84...3A774621e
0 ETH0.000090173.72804783
Set Approval For...199561962024-05-26 19:39:35213 days ago1716752375IN
0x44445a84...3A774621e
0 ETH0.000334297.25174963
Set Approval For...198752822024-05-15 12:08:35224 days ago1715774915IN
0x44445a84...3A774621e
0 ETH0.000222094.80910469
Set Approval For...198645882024-05-14 0:10:59226 days ago1715645459IN
0x44445a84...3A774621e
0 ETH0.000156333.38604741
Set Approval For...198581572024-05-13 2:37:11227 days ago1715567831IN
0x44445a84...3A774621e
0 ETH0.000169526.45294249
Set Approval For...198581552024-05-13 2:36:47227 days ago1715567807IN
0x44445a84...3A774621e
0 ETH0.000168616.94717883
Set Approval For...198557742024-05-12 18:37:47227 days ago1715539067IN
0x44445a84...3A774621e
0 ETH0.000160083.46640909
Set Approval For...198317702024-05-09 10:04:23230 days ago1715249063IN
0x44445a84...3A774621e
0 ETH0.000102414.23425073
Set Approval For...198218622024-05-08 0:47:47232 days ago1715129267IN
0x44445a84...3A774621e
0 ETH0.000191884.16235922
Set Approval For...198213892024-05-07 23:12:35232 days ago1715123555IN
0x44445a84...3A774621e
0 ETH0.00019484.22568857
Set Approval For...197523122024-04-28 7:25:35241 days ago1714289135IN
0x44445a84...3A774621e
0 ETH0.000273825.9399954
Set Approval For...196943932024-04-20 4:58:23250 days ago1713589103IN
0x44445a84...3A774621e
0 ETH0.00029136.30757327
Set Approval For...196939982024-04-20 3:38:47250 days ago1713584327IN
0x44445a84...3A774621e
0 ETH0.000318156.90145148
Set Approval For...196077552024-04-08 1:43:23262 days ago1712540603IN
0x44445a84...3A774621e
0 ETH0.0005262711.3984643
Set Approval For...196076492024-04-08 1:21:47262 days ago1712539307IN
0x44445a84...3A774621e
0 ETH0.0005021910.89376961
Set Approval For...193410772024-03-01 14:59:59299 days ago1709305199IN
0x44445a84...3A774621e
0 ETH0.0018270175.53689388
Set Approval For...192950582024-02-24 4:27:59306 days ago1708748879IN
0x44445a84...3A774621e
0 ETH0.0008447718.29182078
Set Approval For...191592292024-02-05 2:53:35325 days ago1707101615IN
0x44445a84...3A774621e
0 ETH0.0005930812.86537989
Set Approval For...191589272024-02-05 1:52:59325 days ago1707097979IN
0x44445a84...3A774621e
0 ETH0.0005655112.24513438
Set Approval For...190824262024-01-25 8:26:11335 days ago1706171171IN
0x44445a84...3A774621e
0 ETH0.0005183211.24380078
Set Approval For...190574972024-01-21 20:13:11339 days ago1705867991IN
0x44445a84...3A774621e
0 ETH0.0007135815.47944283
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
186944212023-12-01 22:03:59390 days ago1701468239
0x44445a84...3A774621e
0.1975 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WickedEvil

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-10-30
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;

//   __      __.____________  ____  __.___________________    
//  /  \    /  \   \_   ___ \|    |/ _|\_   _____/\______ \   
//  \   \/\/   /   /    \  \/|      <   |    __)_  |    |  \  
//   \        /|   \     \___|    |  \  |        \ |    `   \ 
//    \__/\  / |___|\______  /____|__ \/_______  //_______  / 
//         \/              \/        \/        \/         \/  
//             _______________   ____.___.____                
//             \_   _____/\   \ /   /|   |    |               
//              |    __)_  \   Y   / |   |    |               
//              |        \  \     /  |   |    |___            
//             /_______  /   \___/   |___|_______ \           
//                     \/                        \/           


/**
 * @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;
    }
}
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);
    }
}
pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}
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);
}
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);
}
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() {
        _setOwner(_msgSender());
    }

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
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;
    }
}
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;
}
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);
}
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}
error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used). 
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex = 1;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return (_currentIndex - _burnCounter) - 1;    
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant: 
                    // There will always be an ownership that has an address and is not burned 
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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 override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _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 {
        _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 {
        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @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 {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked { 
            _burnCounter++;
        }
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, 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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert TransferToNonERC721ReceiverImplementer();
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

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

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

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

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

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

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

contract WickedEvil is Ownable, ERC721A {

    uint256 public MAX_PER_WALLET = 4;
    using Strings for uint256;

    mapping(uint256 => string) private _tokenURIs;
    bool public publicSaleOpen = false;
    bool public isBaseURIFrozen;
    string public baseURI = "ipfs://bafybeicedzkfrderucnf7xla3fkeri4rcrnulx34imn22cptd3pwdzfhhy/";
    string public _extension = ".json";
    uint256 public price = 0.0025 ether;
    uint256 public maxSupply = 4444;
    uint256 public MAX_FREE_PER_WALLET = 2;
 
    constructor() ERC721A("Wicked Evil", "WICKED"){
        isBaseURIFrozen = false;
    }
    
    function freeMintNFT(uint256 _quantity) public payable {
        require(publicSaleOpen, "Minting not started!");
        require(_quantity > 0 && _quantity <= MAX_PER_WALLET, "Wallet full, check max per wallet!");
        require(totalSupply() + _quantity <= maxSupply, "Reached max supply!");
        require(msg.value == 0 * _quantity, "You must send 0 ETH!");
        require(getMintedCount(msg.sender) + _quantity <= MAX_PER_WALLET, "Exceeded max minting amount!");
        require(getMintedCount(msg.sender) + _quantity <= MAX_FREE_PER_WALLET, "Exceeded max free per wallet");
         
        _safeMint(msg.sender, _quantity);

    }

    function paidMintNFT(uint256 _quantity) public payable {
        require(publicSaleOpen, "Minting not started!");
        require(_quantity > 0 && _quantity <= MAX_PER_WALLET, "Wallet full, check max per wallet!");
        require(totalSupply() + _quantity <= maxSupply, "Reached max supply!");
        require(msg.value == price * _quantity, "You must send more ETH!");
        require(getMintedCount(msg.sender) + _quantity <= MAX_PER_WALLET, "Exceeded max minting amount!");
        
        _safeMint(msg.sender, _quantity);

    }

    modifier baseURINotFrozen() {
        require(!isBaseURIFrozen, "BaseURI is frozen and cannot be changed");
        _;
    }

    function lockBaseURI() onlyOwner public onlyOwner() {
        // This function can be called by the owner to freeze baseURI
        isBaseURIFrozen = true;
    }

    function InitializeOS() public onlyOwner() {
        // Called by the owner to mint 2 NFT to set OS page and have for events
        require(totalSupply() + 2 <= maxSupply, "Reached max supply!");
        require(getMintedCount(msg.sender) < 2, "Max 2 to owner!");
        _safeMint(msg.sender, 2);

    }

    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        require(
            _exists(_tokenId),
            "ERC721Metadata: URI set of nonexistent token"
        );

        return string(abi.encodePacked(baseURI, _tokenId.toString(), _extension));
    }

    function updateBaseURI(string memory _newBaseURI) onlyOwner baseURINotFrozen public {
        baseURI = _newBaseURI;
    }

    function updateExtension(string memory _temp) onlyOwner public {
        _extension = _temp;
    }

    function getBaseURI() external view returns(string memory) {
        return baseURI;
    }

    function setPrice(uint256 _price) public onlyOwner() {
        price = _price;
    }
    
    function setWalletMaxs(uint256 _MAX_PER_WALLET) public onlyOwner() {
        MAX_PER_WALLET = _MAX_PER_WALLET;
    }

    function setmaxSupply(uint256 _supply) public onlyOwner() {
        require(_supply <= maxSupply, "Error: New max can not be higher than original max.");
        maxSupply = _supply;
    }

    function toggleSale() public onlyOwner() {
        publicSaleOpen = !publicSaleOpen;
    }

    function getBalance() public view returns(uint) {
        return address(this).balance;
    }

    function getMintedCount(address owner) public view returns (uint256) {
    return _numberMinted(owner);
    } 

    function withdraw() external onlyOwner {
        uint _balance = address(this).balance;
        payable(owner()).transfer(_balance); //Owner
    }

    function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) {
        return ownershipOf(tokenId);
    }
    
    receive() external payable {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","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":"InitializeOS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"MAX_FREE_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_extension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"freeMintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getMintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"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":[],"name":"isBaseURIFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","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":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"paidMintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_PER_WALLET","type":"uint256"}],"name":"setWalletMaxs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setmaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_temp","type":"string"}],"name":"updateExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

600180556004600955600b805460ff1916905561010060405260436080818152906200249760a039600c9062000036908262000207565b50604080518082019091526005815264173539b7b760d91b6020820152600d9062000062908262000207565b506608e1bc9bf04000600e5561115c600f55600260105534801562000085575f80fd5b506040518060400160405280600b81526020016a15da58dad95908115d9a5b60aa1b8152506040518060400160405280600681526020016515d250d2d15160d21b815250620000e3620000dd6200011460201b60201c565b62000118565b6003620000f1838262000207565b50600462000100828262000207565b5050600b805461ff001916905550620002cf565b3390565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200019057607f821691505b602082108103620001af57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000202575f81815260208120601f850160051c81016020861015620001dd5750805b601f850160051c820191505b81811015620001fe57828155600101620001e9565b5050505b505050565b81516001600160401b0381111562000223576200022362000167565b6200023b816200023484546200017b565b84620001b5565b602080601f83116001811462000271575f8415620002595750858301515b5f19600386901b1c1916600185901b178555620001fe565b5f85815260208120601f198616915b82811015620002a15788860151825594840194600190910190840162000280565b5085821015620002bf57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b6121ba80620002dd5f395ff3fe608060405260043610610236575f3560e01c80637a8e2e95116101295780639ca89fad116100a8578063d5abeb011161006d578063d5abeb0114610652578063e985e9c514610667578063f29c7ff314610686578063f2fde38b14610699578063f9e23799146106b8575f80fd5b80639ca89fad146105c2578063a035b1fe146105e0578063a22cb465146105f5578063b88d4fde14610614578063c87b56dd14610633575f80fd5b80639231ab2a116100ee5780639231ab2a14610506578063931688cb1461055b57806395d89b411461057a57806397d6696b1461058e57806398710d1e146105ad575f80fd5b80637a8e2e95146104845780637d8966e4146104985780637e6182d9146104ac5780638da5cb5b146104cb57806391b7f5ed146104e7575f80fd5b80633cca0d99116101b55780636352211e1161017a5780636352211e1461040a5780636c0360eb1461042957806370a082311461043d578063714c53981461045c578063715018a614610470575f80fd5b80633cca0d99146103915780633ccfd60b146103a457806342842e0e146103b857806353df5c7c146103d75780635c0017c2146103eb575f80fd5b806312065fe0116101fb57806312065fe01461031157806318160ddd14610323578063228025e81461033f57806323b872dd1461035e5780633ae1dd9d1461037d575f80fd5b806301ffc9a71461024157806306fdde0314610275578063081812fc14610296578063095ea7b3146102cd5780630f2cdd6c146102ee575f80fd5b3661023d57005b5f80fd5b34801561024c575f80fd5b5061026061025b366004611b1a565b6106d1565b60405190151581526020015b60405180910390f35b348015610280575f80fd5b50610289610722565b60405161026c9190611b89565b3480156102a1575f80fd5b506102b56102b0366004611b9b565b6107b2565b6040516001600160a01b03909116815260200161026c565b3480156102d8575f80fd5b506102ec6102e7366004611bcd565b6107f4565b005b3480156102f9575f80fd5b5061030360095481565b60405190815260200161026c565b34801561031c575f80fd5b5047610303565b34801561032e575f80fd5b50610303600254600154035f190190565b34801561034a575f80fd5b506102ec610359366004611b9b565b610880565b348015610369575f80fd5b506102ec610378366004611bf5565b610925565b348015610388575f80fd5b50610289610930565b6102ec61039f366004611b9b565b6109bc565b3480156103af575f80fd5b506102ec610b3c565b3480156103c3575f80fd5b506102ec6103d2366004611bf5565b610bb0565b3480156103e2575f80fd5b506102ec610bca565b3480156103f6575f80fd5b506102ec610405366004611b9b565b610c2d565b348015610415575f80fd5b506102b5610424366004611b9b565b610c5b565b348015610434575f80fd5b50610289610c6c565b348015610448575f80fd5b50610303610457366004611c2e565b610c79565b348015610467575f80fd5b50610289610cc5565b34801561047b575f80fd5b506102ec610cd4565b34801561048f575f80fd5b506102ec610d08565b3480156104a3575f80fd5b506102ec610dc2565b3480156104b7575f80fd5b506102ec6104c6366004611ccd565b610dff565b3480156104d6575f80fd5b505f546001600160a01b03166102b5565b3480156104f2575f80fd5b506102ec610501366004611b9b565b610e34565b348015610511575f80fd5b50610525610520366004611b9b565b610e62565b6040805182516001600160a01b031681526020808401516001600160401b0316908201529181015115159082015260600161026c565b348015610566575f80fd5b506102ec610575366004611ccd565b610e87565b348015610585575f80fd5b50610289610f24565b348015610599575f80fd5b506103036105a8366004611c2e565b610f33565b3480156105b8575f80fd5b5061030360105481565b3480156105cd575f80fd5b50600b5461026090610100900460ff1681565b3480156105eb575f80fd5b50610303600e5481565b348015610600575f80fd5b506102ec61060f366004611d11565b610f3d565b34801561061f575f80fd5b506102ec61062e366004611d4a565b610fd1565b34801561063e575f80fd5b5061028961064d366004611b9b565b61100b565b34801561065d575f80fd5b50610303600f5481565b348015610672575f80fd5b50610260610681366004611dc0565b6110ac565b6102ec610694366004611b9b565b6110d9565b3480156106a4575f80fd5b506102ec6106b3366004611c2e565b6112a4565b3480156106c3575f80fd5b50600b546102609060ff1681565b5f6001600160e01b031982166380ac58cd60e01b148061070157506001600160e01b03198216635b5e139f60e01b145b8061071c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606003805461073190611df1565b80601f016020809104026020016040519081016040528092919081815260200182805461075d90611df1565b80156107a85780601f1061077f576101008083540402835291602001916107a8565b820191905f5260205f20905b81548152906001019060200180831161078b57829003601f168201915b5050505050905090565b5f6107bc8261133b565b6107d9576040516333d1c03960e21b815260040160405180910390fd5b505f908152600760205260409020546001600160a01b031690565b5f6107fe82610c5b565b9050806001600160a01b0316836001600160a01b0316036108325760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610852575061085081336110ac565b155b15610870576040516367d9dca160e11b815260040160405180910390fd5b61087b838383611365565b505050565b5f546001600160a01b031633146108b25760405162461bcd60e51b81526004016108a990611e29565b60405180910390fd5b600f548111156109205760405162461bcd60e51b815260206004820152603360248201527f4572726f723a204e6577206d61782063616e206e6f7420626520686967686572604482015272103a3430b71037b934b3b4b730b61036b0bc1760691b60648201526084016108a9565b600f55565b61087b8383836113c0565b600d805461093d90611df1565b80601f016020809104026020016040519081016040528092919081815260200182805461096990611df1565b80156109b45780601f1061098b576101008083540402835291602001916109b4565b820191905f5260205f20905b81548152906001019060200180831161099757829003601f168201915b505050505081565b600b5460ff16610a055760405162461bcd60e51b81526020600482015260146024820152734d696e74696e67206e6f7420737461727465642160601b60448201526064016108a9565b5f81118015610a1657506009548111155b610a325760405162461bcd60e51b81526004016108a990611e5e565b600f5481610a46600254600154035f190190565b610a509190611eb4565b1115610a6e5760405162461bcd60e51b81526004016108a990611ec7565b80600e54610a7c9190611ef4565b3414610aca5760405162461bcd60e51b815260206004820152601760248201527f596f75206d7573742073656e64206d6f7265204554482100000000000000000060448201526064016108a9565b60095481610ad733610f33565b610ae19190611eb4565b1115610b2f5760405162461bcd60e51b815260206004820152601c60248201527f4578636565646564206d6178206d696e74696e6720616d6f756e74210000000060448201526064016108a9565b610b3933826115cc565b50565b5f546001600160a01b03163314610b655760405162461bcd60e51b81526004016108a990611e29565b47610b775f546001600160a01b031690565b6001600160a01b03166108fc8290811502906040515f60405180830381858888f19350505050158015610bac573d5f803e3d5ffd5b5050565b61087b83838360405180602001604052805f815250610fd1565b5f546001600160a01b03163314610bf35760405162461bcd60e51b81526004016108a990611e29565b5f546001600160a01b03163314610c1c5760405162461bcd60e51b81526004016108a990611e29565b600b805461ff001916610100179055565b5f546001600160a01b03163314610c565760405162461bcd60e51b81526004016108a990611e29565b600955565b5f610c65826115e5565b5192915050565b600c805461093d90611df1565b5f6001600160a01b038216610ca1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f908152600660205260409020546001600160401b031690565b6060600c805461073190611df1565b5f546001600160a01b03163314610cfd5760405162461bcd60e51b81526004016108a990611e29565b610d065f6116fc565b565b5f546001600160a01b03163314610d315760405162461bcd60e51b81526004016108a990611e29565b600f54610d44600254600154035f190190565b610d4f906002611eb4565b1115610d6d5760405162461bcd60e51b81526004016108a990611ec7565b6002610d7833610f33565b10610db75760405162461bcd60e51b815260206004820152600f60248201526e4d6178203220746f206f776e65722160881b60448201526064016108a9565b610d063360026115cc565b5f546001600160a01b03163314610deb5760405162461bcd60e51b81526004016108a990611e29565b600b805460ff19811660ff90911615179055565b5f546001600160a01b03163314610e285760405162461bcd60e51b81526004016108a990611e29565b600d610bac8282611f58565b5f546001600160a01b03163314610e5d5760405162461bcd60e51b81526004016108a990611e29565b600e55565b604080516060810182525f808252602082018190529181019190915261071c826115e5565b5f546001600160a01b03163314610eb05760405162461bcd60e51b81526004016108a990611e29565b600b54610100900460ff1615610f185760405162461bcd60e51b815260206004820152602760248201527f426173655552492069732066726f7a656e20616e642063616e6e6f742062652060448201526618da185b99d95960ca1b60648201526084016108a9565b600c610bac8282611f58565b60606004805461073190611df1565b5f61071c8261174b565b336001600160a01b03831603610f665760405163b06307db60e01b815260040160405180910390fd5b335f8181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fdc8484846113c0565b610fe88484848461179e565b611005576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606110168261133b565b6110775760405162461bcd60e51b815260206004820152602c60248201527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108a9565b600c6110828361189d565b600d60405160200161109693929190612082565b6040516020818303038152906040529050919050565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205460ff1690565b600b5460ff166111225760405162461bcd60e51b81526020600482015260146024820152734d696e74696e67206e6f7420737461727465642160601b60448201526064016108a9565b5f8111801561113357506009548111155b61114f5760405162461bcd60e51b81526004016108a990611e5e565b600f5481611163600254600154035f190190565b61116d9190611eb4565b111561118b5760405162461bcd60e51b81526004016108a990611ec7565b611195815f611ef4565b34146111da5760405162461bcd60e51b8152602060048201526014602482015273596f75206d7573742073656e642030204554482160601b60448201526064016108a9565b600954816111e733610f33565b6111f19190611eb4565b111561123f5760405162461bcd60e51b815260206004820152601c60248201527f4578636565646564206d6178206d696e74696e6720616d6f756e74210000000060448201526064016108a9565b6010548161124c33610f33565b6112569190611eb4565b1115610b2f5760405162461bcd60e51b815260206004820152601c60248201527f4578636565646564206d61782066726565207065722077616c6c65740000000060448201526064016108a9565b5f546001600160a01b031633146112cd5760405162461bcd60e51b81526004016108a990611e29565b6001600160a01b0381166113325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a9565b610b39816116fc565b5f6001548210801561071c5750505f90815260056020526040902054600160e01b900460ff161590565b5f8281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b5f6113ca826115e5565b80519091505f906001600160a01b0316336001600160a01b031614806113f7575081516113f790336110ac565b80611412575033611407846107b2565b6001600160a01b0316145b90508061143257604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b0316825f01516001600160a01b0316146114665760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661148d57604051633a954ecd60e21b815260040160405180910390fd5b61149b5f84845f0151611365565b6001600160a01b038581165f908152600660209081526040808320805467ffffffffffffffff198082166001600160401b039283165f1901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611582576001548110156115825782515f8281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610bac828260405180602001604052805f815250611999565b604080516060810182525f808252602082018190529181019190915260015482908110156116e3575f81815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906116e15780516001600160a01b03161561167a579392505050565b505f19015f81815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156116dc579392505050565b61167a565b505b604051636f96cda160e11b815260040160405180910390fd5b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f6001600160a01b038216611773576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b03165f90815260066020526040902054600160401b90046001600160401b031690565b5f6001600160a01b0384163b1561189157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906117e19033908990889088906004016120b4565b6020604051808303815f875af192505050801561181b575060408051601f3d908101601f19168201909252611818918101906120f0565b60015b611877573d808015611848576040519150601f19603f3d011682016040523d82523d5f602084013e61184d565b606091505b5080515f0361186f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611895565b5060015b949350505050565b6060815f036118c35750506040805180820190915260018152600360fc1b602082015290565b815f5b81156118ec57806118d68161210b565b91506118e59050600a83612137565b91506118c6565b5f816001600160401b0381111561190557611905611c47565b6040519080825280601f01601f19166020018201604052801561192f576020820181803683370190505b5090505b84156118955761194460018361214a565b9150611951600a8661215d565b61195c906030611eb4565b60f81b81838151811061197157611971612170565b60200101906001600160f81b03191690815f1a905350611992600a86612137565b9450611933565b61087b838383600180546001600160a01b0385166119c957604051622e076360e81b815260040160405180910390fd5b835f036119e95760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0385165f81815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526005909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015611afc5760405182906001600160a01b038916905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015611ad25750611ad05f88848861179e565b155b15611af0576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101611a7d565b506001556115c5565b6001600160e01b031981168114610b39575f80fd5b5f60208284031215611b2a575f80fd5b8135611b3581611b05565b9392505050565b5f5b83811015611b56578181015183820152602001611b3e565b50505f910152565b5f8151808452611b75816020860160208601611b3c565b601f01601f19169290920160200192915050565b602081525f611b356020830184611b5e565b5f60208284031215611bab575f80fd5b5035919050565b80356001600160a01b0381168114611bc8575f80fd5b919050565b5f8060408385031215611bde575f80fd5b611be783611bb2565b946020939093013593505050565b5f805f60608486031215611c07575f80fd5b611c1084611bb2565b9250611c1e60208501611bb2565b9150604084013590509250925092565b5f60208284031215611c3e575f80fd5b611b3582611bb2565b634e487b7160e01b5f52604160045260245ffd5b5f6001600160401b0380841115611c7457611c74611c47565b604051601f8501601f19908116603f01168101908282118183101715611c9c57611c9c611c47565b81604052809350858152868686011115611cb4575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215611cdd575f80fd5b81356001600160401b03811115611cf2575f80fd5b8201601f81018413611d02575f80fd5b61189584823560208401611c5b565b5f8060408385031215611d22575f80fd5b611d2b83611bb2565b915060208301358015158114611d3f575f80fd5b809150509250929050565b5f805f8060808587031215611d5d575f80fd5b611d6685611bb2565b9350611d7460208601611bb2565b92506040850135915060608501356001600160401b03811115611d95575f80fd5b8501601f81018713611da5575f80fd5b611db487823560208401611c5b565b91505092959194509250565b5f8060408385031215611dd1575f80fd5b611dda83611bb2565b9150611de860208401611bb2565b90509250929050565b600181811c90821680611e0557607f821691505b602082108103611e2357634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526022908201527f57616c6c65742066756c6c2c20636865636b206d6178207065722077616c6c65604082015261742160f01b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561071c5761071c611ea0565b60208082526013908201527252656163686564206d617820737570706c792160681b604082015260600190565b808202811582820484141761071c5761071c611ea0565b601f82111561087b575f81815260208120601f850160051c81016020861015611f315750805b601f850160051c820191505b81811015611f5057828155600101611f3d565b505050505050565b81516001600160401b03811115611f7157611f71611c47565b611f8581611f7f8454611df1565b84611f0b565b602080601f831160018114611fb8575f8415611fa15750858301515b5f19600386901b1c1916600185901b178555611f50565b5f85815260208120601f198616915b82811015611fe657888601518255948401946001909101908401611fc7565b508582101561200357878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f815461201f81611df1565b60018281168015612037576001811461204c57612078565b60ff1984168752821515830287019450612078565b855f526020805f205f5b8581101561206f5781548a820152908401908201612056565b50505082870194505b5050505092915050565b5f61208d8286612013565b845161209d818360208901611b3c565b6120a981830186612013565b979650505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f906120e690830184611b5e565b9695505050505050565b5f60208284031215612100575f80fd5b8151611b3581611b05565b5f6001820161211c5761211c611ea0565b5060010190565b634e487b7160e01b5f52601260045260245ffd5b5f8261214557612145612123565b500490565b8181038181111561071c5761071c611ea0565b5f8261216b5761216b612123565b500690565b634e487b7160e01b5f52603260045260245ffdfea2646970667358221220ce40eb448dc7f3d0e9cd1159c76228ad16030ea067b3a45c97421c99855c832664736f6c63430008150033697066733a2f2f626166796265696365647a6b667264657275636e6637786c6133666b657269347263726e756c783334696d6e323263707464337077647a666868792f

Deployed Bytecode

0x608060405260043610610236575f3560e01c80637a8e2e95116101295780639ca89fad116100a8578063d5abeb011161006d578063d5abeb0114610652578063e985e9c514610667578063f29c7ff314610686578063f2fde38b14610699578063f9e23799146106b8575f80fd5b80639ca89fad146105c2578063a035b1fe146105e0578063a22cb465146105f5578063b88d4fde14610614578063c87b56dd14610633575f80fd5b80639231ab2a116100ee5780639231ab2a14610506578063931688cb1461055b57806395d89b411461057a57806397d6696b1461058e57806398710d1e146105ad575f80fd5b80637a8e2e95146104845780637d8966e4146104985780637e6182d9146104ac5780638da5cb5b146104cb57806391b7f5ed146104e7575f80fd5b80633cca0d99116101b55780636352211e1161017a5780636352211e1461040a5780636c0360eb1461042957806370a082311461043d578063714c53981461045c578063715018a614610470575f80fd5b80633cca0d99146103915780633ccfd60b146103a457806342842e0e146103b857806353df5c7c146103d75780635c0017c2146103eb575f80fd5b806312065fe0116101fb57806312065fe01461031157806318160ddd14610323578063228025e81461033f57806323b872dd1461035e5780633ae1dd9d1461037d575f80fd5b806301ffc9a71461024157806306fdde0314610275578063081812fc14610296578063095ea7b3146102cd5780630f2cdd6c146102ee575f80fd5b3661023d57005b5f80fd5b34801561024c575f80fd5b5061026061025b366004611b1a565b6106d1565b60405190151581526020015b60405180910390f35b348015610280575f80fd5b50610289610722565b60405161026c9190611b89565b3480156102a1575f80fd5b506102b56102b0366004611b9b565b6107b2565b6040516001600160a01b03909116815260200161026c565b3480156102d8575f80fd5b506102ec6102e7366004611bcd565b6107f4565b005b3480156102f9575f80fd5b5061030360095481565b60405190815260200161026c565b34801561031c575f80fd5b5047610303565b34801561032e575f80fd5b50610303600254600154035f190190565b34801561034a575f80fd5b506102ec610359366004611b9b565b610880565b348015610369575f80fd5b506102ec610378366004611bf5565b610925565b348015610388575f80fd5b50610289610930565b6102ec61039f366004611b9b565b6109bc565b3480156103af575f80fd5b506102ec610b3c565b3480156103c3575f80fd5b506102ec6103d2366004611bf5565b610bb0565b3480156103e2575f80fd5b506102ec610bca565b3480156103f6575f80fd5b506102ec610405366004611b9b565b610c2d565b348015610415575f80fd5b506102b5610424366004611b9b565b610c5b565b348015610434575f80fd5b50610289610c6c565b348015610448575f80fd5b50610303610457366004611c2e565b610c79565b348015610467575f80fd5b50610289610cc5565b34801561047b575f80fd5b506102ec610cd4565b34801561048f575f80fd5b506102ec610d08565b3480156104a3575f80fd5b506102ec610dc2565b3480156104b7575f80fd5b506102ec6104c6366004611ccd565b610dff565b3480156104d6575f80fd5b505f546001600160a01b03166102b5565b3480156104f2575f80fd5b506102ec610501366004611b9b565b610e34565b348015610511575f80fd5b50610525610520366004611b9b565b610e62565b6040805182516001600160a01b031681526020808401516001600160401b0316908201529181015115159082015260600161026c565b348015610566575f80fd5b506102ec610575366004611ccd565b610e87565b348015610585575f80fd5b50610289610f24565b348015610599575f80fd5b506103036105a8366004611c2e565b610f33565b3480156105b8575f80fd5b5061030360105481565b3480156105cd575f80fd5b50600b5461026090610100900460ff1681565b3480156105eb575f80fd5b50610303600e5481565b348015610600575f80fd5b506102ec61060f366004611d11565b610f3d565b34801561061f575f80fd5b506102ec61062e366004611d4a565b610fd1565b34801561063e575f80fd5b5061028961064d366004611b9b565b61100b565b34801561065d575f80fd5b50610303600f5481565b348015610672575f80fd5b50610260610681366004611dc0565b6110ac565b6102ec610694366004611b9b565b6110d9565b3480156106a4575f80fd5b506102ec6106b3366004611c2e565b6112a4565b3480156106c3575f80fd5b50600b546102609060ff1681565b5f6001600160e01b031982166380ac58cd60e01b148061070157506001600160e01b03198216635b5e139f60e01b145b8061071c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606003805461073190611df1565b80601f016020809104026020016040519081016040528092919081815260200182805461075d90611df1565b80156107a85780601f1061077f576101008083540402835291602001916107a8565b820191905f5260205f20905b81548152906001019060200180831161078b57829003601f168201915b5050505050905090565b5f6107bc8261133b565b6107d9576040516333d1c03960e21b815260040160405180910390fd5b505f908152600760205260409020546001600160a01b031690565b5f6107fe82610c5b565b9050806001600160a01b0316836001600160a01b0316036108325760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610852575061085081336110ac565b155b15610870576040516367d9dca160e11b815260040160405180910390fd5b61087b838383611365565b505050565b5f546001600160a01b031633146108b25760405162461bcd60e51b81526004016108a990611e29565b60405180910390fd5b600f548111156109205760405162461bcd60e51b815260206004820152603360248201527f4572726f723a204e6577206d61782063616e206e6f7420626520686967686572604482015272103a3430b71037b934b3b4b730b61036b0bc1760691b60648201526084016108a9565b600f55565b61087b8383836113c0565b600d805461093d90611df1565b80601f016020809104026020016040519081016040528092919081815260200182805461096990611df1565b80156109b45780601f1061098b576101008083540402835291602001916109b4565b820191905f5260205f20905b81548152906001019060200180831161099757829003601f168201915b505050505081565b600b5460ff16610a055760405162461bcd60e51b81526020600482015260146024820152734d696e74696e67206e6f7420737461727465642160601b60448201526064016108a9565b5f81118015610a1657506009548111155b610a325760405162461bcd60e51b81526004016108a990611e5e565b600f5481610a46600254600154035f190190565b610a509190611eb4565b1115610a6e5760405162461bcd60e51b81526004016108a990611ec7565b80600e54610a7c9190611ef4565b3414610aca5760405162461bcd60e51b815260206004820152601760248201527f596f75206d7573742073656e64206d6f7265204554482100000000000000000060448201526064016108a9565b60095481610ad733610f33565b610ae19190611eb4565b1115610b2f5760405162461bcd60e51b815260206004820152601c60248201527f4578636565646564206d6178206d696e74696e6720616d6f756e74210000000060448201526064016108a9565b610b3933826115cc565b50565b5f546001600160a01b03163314610b655760405162461bcd60e51b81526004016108a990611e29565b47610b775f546001600160a01b031690565b6001600160a01b03166108fc8290811502906040515f60405180830381858888f19350505050158015610bac573d5f803e3d5ffd5b5050565b61087b83838360405180602001604052805f815250610fd1565b5f546001600160a01b03163314610bf35760405162461bcd60e51b81526004016108a990611e29565b5f546001600160a01b03163314610c1c5760405162461bcd60e51b81526004016108a990611e29565b600b805461ff001916610100179055565b5f546001600160a01b03163314610c565760405162461bcd60e51b81526004016108a990611e29565b600955565b5f610c65826115e5565b5192915050565b600c805461093d90611df1565b5f6001600160a01b038216610ca1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f908152600660205260409020546001600160401b031690565b6060600c805461073190611df1565b5f546001600160a01b03163314610cfd5760405162461bcd60e51b81526004016108a990611e29565b610d065f6116fc565b565b5f546001600160a01b03163314610d315760405162461bcd60e51b81526004016108a990611e29565b600f54610d44600254600154035f190190565b610d4f906002611eb4565b1115610d6d5760405162461bcd60e51b81526004016108a990611ec7565b6002610d7833610f33565b10610db75760405162461bcd60e51b815260206004820152600f60248201526e4d6178203220746f206f776e65722160881b60448201526064016108a9565b610d063360026115cc565b5f546001600160a01b03163314610deb5760405162461bcd60e51b81526004016108a990611e29565b600b805460ff19811660ff90911615179055565b5f546001600160a01b03163314610e285760405162461bcd60e51b81526004016108a990611e29565b600d610bac8282611f58565b5f546001600160a01b03163314610e5d5760405162461bcd60e51b81526004016108a990611e29565b600e55565b604080516060810182525f808252602082018190529181019190915261071c826115e5565b5f546001600160a01b03163314610eb05760405162461bcd60e51b81526004016108a990611e29565b600b54610100900460ff1615610f185760405162461bcd60e51b815260206004820152602760248201527f426173655552492069732066726f7a656e20616e642063616e6e6f742062652060448201526618da185b99d95960ca1b60648201526084016108a9565b600c610bac8282611f58565b60606004805461073190611df1565b5f61071c8261174b565b336001600160a01b03831603610f665760405163b06307db60e01b815260040160405180910390fd5b335f8181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fdc8484846113c0565b610fe88484848461179e565b611005576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606110168261133b565b6110775760405162461bcd60e51b815260206004820152602c60248201527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108a9565b600c6110828361189d565b600d60405160200161109693929190612082565b6040516020818303038152906040529050919050565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205460ff1690565b600b5460ff166111225760405162461bcd60e51b81526020600482015260146024820152734d696e74696e67206e6f7420737461727465642160601b60448201526064016108a9565b5f8111801561113357506009548111155b61114f5760405162461bcd60e51b81526004016108a990611e5e565b600f5481611163600254600154035f190190565b61116d9190611eb4565b111561118b5760405162461bcd60e51b81526004016108a990611ec7565b611195815f611ef4565b34146111da5760405162461bcd60e51b8152602060048201526014602482015273596f75206d7573742073656e642030204554482160601b60448201526064016108a9565b600954816111e733610f33565b6111f19190611eb4565b111561123f5760405162461bcd60e51b815260206004820152601c60248201527f4578636565646564206d6178206d696e74696e6720616d6f756e74210000000060448201526064016108a9565b6010548161124c33610f33565b6112569190611eb4565b1115610b2f5760405162461bcd60e51b815260206004820152601c60248201527f4578636565646564206d61782066726565207065722077616c6c65740000000060448201526064016108a9565b5f546001600160a01b031633146112cd5760405162461bcd60e51b81526004016108a990611e29565b6001600160a01b0381166113325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a9565b610b39816116fc565b5f6001548210801561071c5750505f90815260056020526040902054600160e01b900460ff161590565b5f8281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b5f6113ca826115e5565b80519091505f906001600160a01b0316336001600160a01b031614806113f7575081516113f790336110ac565b80611412575033611407846107b2565b6001600160a01b0316145b90508061143257604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b0316825f01516001600160a01b0316146114665760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661148d57604051633a954ecd60e21b815260040160405180910390fd5b61149b5f84845f0151611365565b6001600160a01b038581165f908152600660209081526040808320805467ffffffffffffffff198082166001600160401b039283165f1901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611582576001548110156115825782515f8281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610bac828260405180602001604052805f815250611999565b604080516060810182525f808252602082018190529181019190915260015482908110156116e3575f81815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906116e15780516001600160a01b03161561167a579392505050565b505f19015f81815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156116dc579392505050565b61167a565b505b604051636f96cda160e11b815260040160405180910390fd5b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f6001600160a01b038216611773576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b03165f90815260066020526040902054600160401b90046001600160401b031690565b5f6001600160a01b0384163b1561189157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906117e19033908990889088906004016120b4565b6020604051808303815f875af192505050801561181b575060408051601f3d908101601f19168201909252611818918101906120f0565b60015b611877573d808015611848576040519150601f19603f3d011682016040523d82523d5f602084013e61184d565b606091505b5080515f0361186f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611895565b5060015b949350505050565b6060815f036118c35750506040805180820190915260018152600360fc1b602082015290565b815f5b81156118ec57806118d68161210b565b91506118e59050600a83612137565b91506118c6565b5f816001600160401b0381111561190557611905611c47565b6040519080825280601f01601f19166020018201604052801561192f576020820181803683370190505b5090505b84156118955761194460018361214a565b9150611951600a8661215d565b61195c906030611eb4565b60f81b81838151811061197157611971612170565b60200101906001600160f81b03191690815f1a905350611992600a86612137565b9450611933565b61087b838383600180546001600160a01b0385166119c957604051622e076360e81b815260040160405180910390fd5b835f036119e95760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0385165f81815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526005909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015611afc5760405182906001600160a01b038916905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015611ad25750611ad05f88848861179e565b155b15611af0576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101611a7d565b506001556115c5565b6001600160e01b031981168114610b39575f80fd5b5f60208284031215611b2a575f80fd5b8135611b3581611b05565b9392505050565b5f5b83811015611b56578181015183820152602001611b3e565b50505f910152565b5f8151808452611b75816020860160208601611b3c565b601f01601f19169290920160200192915050565b602081525f611b356020830184611b5e565b5f60208284031215611bab575f80fd5b5035919050565b80356001600160a01b0381168114611bc8575f80fd5b919050565b5f8060408385031215611bde575f80fd5b611be783611bb2565b946020939093013593505050565b5f805f60608486031215611c07575f80fd5b611c1084611bb2565b9250611c1e60208501611bb2565b9150604084013590509250925092565b5f60208284031215611c3e575f80fd5b611b3582611bb2565b634e487b7160e01b5f52604160045260245ffd5b5f6001600160401b0380841115611c7457611c74611c47565b604051601f8501601f19908116603f01168101908282118183101715611c9c57611c9c611c47565b81604052809350858152868686011115611cb4575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215611cdd575f80fd5b81356001600160401b03811115611cf2575f80fd5b8201601f81018413611d02575f80fd5b61189584823560208401611c5b565b5f8060408385031215611d22575f80fd5b611d2b83611bb2565b915060208301358015158114611d3f575f80fd5b809150509250929050565b5f805f8060808587031215611d5d575f80fd5b611d6685611bb2565b9350611d7460208601611bb2565b92506040850135915060608501356001600160401b03811115611d95575f80fd5b8501601f81018713611da5575f80fd5b611db487823560208401611c5b565b91505092959194509250565b5f8060408385031215611dd1575f80fd5b611dda83611bb2565b9150611de860208401611bb2565b90509250929050565b600181811c90821680611e0557607f821691505b602082108103611e2357634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526022908201527f57616c6c65742066756c6c2c20636865636b206d6178207065722077616c6c65604082015261742160f01b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561071c5761071c611ea0565b60208082526013908201527252656163686564206d617820737570706c792160681b604082015260600190565b808202811582820484141761071c5761071c611ea0565b601f82111561087b575f81815260208120601f850160051c81016020861015611f315750805b601f850160051c820191505b81811015611f5057828155600101611f3d565b505050505050565b81516001600160401b03811115611f7157611f71611c47565b611f8581611f7f8454611df1565b84611f0b565b602080601f831160018114611fb8575f8415611fa15750858301515b5f19600386901b1c1916600185901b178555611f50565b5f85815260208120601f198616915b82811015611fe657888601518255948401946001909101908401611fc7565b508582101561200357878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f815461201f81611df1565b60018281168015612037576001811461204c57612078565b60ff1984168752821515830287019450612078565b855f526020805f205f5b8581101561206f5781548a820152908401908201612056565b50505082870194505b5050505092915050565b5f61208d8286612013565b845161209d818360208901611b3c565b6120a981830186612013565b979650505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f906120e690830184611b5e565b9695505050505050565b5f60208284031215612100575f80fd5b8151611b3581611b05565b5f6001820161211c5761211c611ea0565b5060010190565b634e487b7160e01b5f52601260045260245ffd5b5f8261214557612145612123565b500490565b8181038181111561071c5761071c611ea0565b5f8261216b5761216b612123565b500690565b634e487b7160e01b5f52603260045260245ffdfea2646970667358221220ce40eb448dc7f3d0e9cd1159c76228ad16030ea067b3a45c97421c99855c832664736f6c63430008150033

Deployed Bytecode Sourcemap

55753:4191:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26118:305;;;;;;;;;;-1:-1:-1;26118:305:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;26118:305:0;;;;;;;;29478:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;30981:204::-;;;;;;;;;;-1:-1:-1;30981:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;30981:204:0;1533:203:1;30544:371:0;;;;;;;;;;-1:-1:-1;30544:371:0;;;;;:::i;:::-;;:::i;:::-;;55802:33;;;;;;;;;;;;;;;;;;;2324:25:1;;;2312:2;2297:18;55802:33:0;2178:177:1;59385:95:0;;;;;;;;;;-1:-1:-1;59451:21:0;59385:95;;25769:277;;;;;;;;;;;;26006:12;;26022:1;25990:13;:28;-1:-1:-1;;25989:34:0;;25769:277;59086:191;;;;;;;;;;-1:-1:-1;59086:191:0;;;;;:::i;:::-;;:::i;31838:170::-;;;;;;;;;;-1:-1:-1;31838:170:0;;;;;:::i;:::-;;:::i;56103:34::-;;;;;;;;;;;;;:::i;57031:544::-;;;;;;:::i;:::-;;:::i;59608:149::-;;;;;;;;;;;;;:::i;32079:185::-;;;;;;;;;;-1:-1:-1;32079:185:0;;;;;:::i;:::-;;:::i;57718:164::-;;;;;;;;;;;;;:::i;58960:118::-;;;;;;;;;;-1:-1:-1;58960:118:0;;;;;:::i;:::-;;:::i;29287:124::-;;;;;;;;;;-1:-1:-1;29287:124:0;;;;;:::i;:::-;;:::i;56003:93::-;;;;;;;;;;;;;:::i;26487:206::-;;;;;;;;;;-1:-1:-1;26487:206:0;;;;;:::i;:::-;;:::i;58762:92::-;;;;;;;;;;;;;:::i;14884:94::-;;;;;;;;;;;;;:::i;57890:311::-;;;;;;;;;;;;;:::i;59285:92::-;;;;;;;;;;;;;:::i;58654:100::-;;;;;;;;;;-1:-1:-1;58654:100:0;;;;;:::i;:::-;;:::i;14233:87::-;;;;;;;;;;-1:-1:-1;14279:7:0;14306:6;-1:-1:-1;;;;;14306:6:0;14233:87;;58862:86;;;;;;;;;;-1:-1:-1;58862:86:0;;;;;:::i;:::-;;:::i;59765:135::-;;;;;;;;;;-1:-1:-1;59765:135:0;;;;;:::i;:::-;;:::i;:::-;;;;4339:13:1;;-1:-1:-1;;;;;4335:39:1;4317:58;;4435:4;4423:17;;;4417:24;-1:-1:-1;;;;;4413:49:1;4391:20;;;4384:79;4521:17;;;4515:24;4508:32;4501:40;4479:20;;;4472:70;4305:2;4290:18;59765:135:0;4109:439:1;58522:124:0;;;;;;;;;;-1:-1:-1;58522:124:0;;;;;:::i;:::-;;:::i;29647:104::-;;;;;;;;;;;;;:::i;59488:111::-;;;;;;;;;;-1:-1:-1;59488:111:0;;;;;:::i;:::-;;:::i;56224:38::-;;;;;;;;;;;;;;;;55969:27;;;;;;;;;;-1:-1:-1;55969:27:0;;;;;;;;;;;56144:35;;;;;;;;;;;;;;;;31257:279;;;;;;;;;;-1:-1:-1;31257:279:0;;;;;:::i;:::-;;:::i;32335:342::-;;;;;;;;;;-1:-1:-1;32335:342:0;;;;;:::i;:::-;;:::i;58209:305::-;;;;;;;;;;-1:-1:-1;58209:305:0;;;;;:::i;:::-;;:::i;56186:31::-;;;;;;;;;;;;;;;;31607:164;;;;;;;;;;-1:-1:-1;31607:164:0;;;;;:::i;:::-;;:::i;56372:651::-;;;;;;:::i;:::-;;:::i;15133:192::-;;;;;;;;;;-1:-1:-1;15133:192:0;;;;;:::i;:::-;;:::i;55928:34::-;;;;;;;;;;-1:-1:-1;55928:34:0;;;;;;;;26118:305;26220:4;-1:-1:-1;;;;;;26257:40:0;;-1:-1:-1;;;26257:40:0;;:105;;-1:-1:-1;;;;;;;26314:48:0;;-1:-1:-1;;;26314:48:0;26257:105;:158;;;-1:-1:-1;;;;;;;;;;16347:40:0;;;26379:36;26237:178;26118:305;-1:-1:-1;;26118:305:0:o;29478:100::-;29532:13;29565:5;29558:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29478:100;:::o;30981:204::-;31049:7;31074:16;31082:7;31074;:16::i;:::-;31069:64;;31099:34;;-1:-1:-1;;;31099:34:0;;;;;;;;;;;31069:64;-1:-1:-1;31153:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;31153:24:0;;30981:204::o;30544:371::-;30617:13;30633:24;30649:7;30633:15;:24::i;:::-;30617:40;;30678:5;-1:-1:-1;;;;;30672:11:0;:2;-1:-1:-1;;;;;30672:11:0;;30668:48;;30692:24;;-1:-1:-1;;;30692:24:0;;;;;;;;;;;30668:48;1453:10;-1:-1:-1;;;;;30733:21:0;;;;;;:63;;-1:-1:-1;30759:37:0;30776:5;1453:10;31607:164;:::i;30759:37::-;30758:38;30733:63;30729:138;;;30820:35;;-1:-1:-1;;;30820:35:0;;;;;;;;;;;30729:138;30879:28;30888:2;30892:7;30901:5;30879:8;:28::i;:::-;30606:309;30544:371;;:::o;59086:191::-;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23;14445:68;;;;-1:-1:-1;;;14445:68:0;;;;;;;:::i;:::-;;;;;;;;;59174:9:::1;;59163:7;:20;;59155:84;;;::::0;-1:-1:-1;;;59155:84:0;;6790:2:1;59155:84:0::1;::::0;::::1;6772:21:1::0;6829:2;6809:18;;;6802:30;6868:34;6848:18;;;6841:62;-1:-1:-1;;;6919:18:1;;;6912:49;6978:19;;59155:84:0::1;6588:415:1::0;59155:84:0::1;59250:9;:19:::0;59086:191::o;31838:170::-;31972:28;31982:4;31988:2;31992:7;31972:9;:28::i;56103:34::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;57031:544::-;57105:14;;;;57097:47;;;;-1:-1:-1;;;57097:47:0;;7210:2:1;57097:47:0;;;7192:21:1;7249:2;7229:18;;;7222:30;-1:-1:-1;;;7268:18:1;;;7261:50;7328:18;;57097:47:0;7008:344:1;57097:47:0;57175:1;57163:9;:13;:44;;;;;57193:14;;57180:9;:27;;57163:44;57155:91;;;;-1:-1:-1;;;57155:91:0;;;;;;;:::i;:::-;57294:9;;57281;57265:13;26006:12;;26022:1;25990:13;:28;-1:-1:-1;;25989:34:0;;25769:277;57265:13;:25;;;;:::i;:::-;:38;;57257:70;;;;-1:-1:-1;;;57257:70:0;;;;;;;:::i;:::-;57367:9;57359:5;;:17;;;;:::i;:::-;57346:9;:30;57338:66;;;;-1:-1:-1;;;57338:66:0;;8745:2:1;57338:66:0;;;8727:21:1;8784:2;8764:18;;;8757:30;8823:25;8803:18;;;8796:53;8866:18;;57338:66:0;8543:347:1;57338:66:0;57465:14;;57452:9;57423:26;57438:10;57423:14;:26::i;:::-;:38;;;;:::i;:::-;:56;;57415:97;;;;-1:-1:-1;;;57415:97:0;;9097:2:1;57415:97:0;;;9079:21:1;9136:2;9116:18;;;9109:30;9175;9155:18;;;9148:58;9223:18;;57415:97:0;8895:352:1;57415:97:0;57533:32;57543:10;57555:9;57533;:32::i;:::-;57031:544;:::o;59608:149::-;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23;14445:68;;;;-1:-1:-1;;;14445:68:0;;;;;;;:::i;:::-;59674:21:::1;59714:7;14279::::0;14306:6;-1:-1:-1;;;;;14306:6:0;;14233:87;59714:7:::1;-1:-1:-1::0;;;;;59706:25:0::1;:35;59732:8;59706:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;59647:110;59608:149::o:0;32079:185::-;32217:39;32234:4;32240:2;32244:7;32217:39;;;;;;;;;;;;:16;:39::i;57718:164::-;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23;14445:68;;;;-1:-1:-1;;;14445:68:0;;;;;;;:::i;:::-;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23:::1;14445:68;;;;-1:-1:-1::0;;;14445:68:0::1;;;;;;;:::i;:::-;57852:15:::2;:22:::0;;-1:-1:-1;;57852:22:0::2;;;::::0;;57718:164::o;58960:118::-;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23;14445:68;;;;-1:-1:-1;;;14445:68:0;;;;;;;:::i;:::-;59038:14:::1;:32:::0;58960:118::o;29287:124::-;29351:7;29378:20;29390:7;29378:11;:20::i;:::-;:25;;29287:124;-1:-1:-1;;29287:124:0:o;56003:93::-;;;;;;;:::i;26487:206::-;26551:7;-1:-1:-1;;;;;26575:19:0;;26571:60;;26603:28;;-1:-1:-1;;;26603:28:0;;;;;;;;;;;26571:60;-1:-1:-1;;;;;;26657:19:0;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;26657:27:0;;26487:206::o;58762:92::-;58806:13;58839:7;58832:14;;;;;:::i;14884:94::-;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23;14445:68;;;;-1:-1:-1;;;14445:68:0;;;;;;;:::i;:::-;14949:21:::1;14967:1;14949:9;:21::i;:::-;14884:94::o:0;57890:311::-;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23;14445:68;;;;-1:-1:-1;;;14445:68:0;;;;;;;:::i;:::-;58054:9:::1;;58033:13;26006:12:::0;;26022:1;25990:13;:28;-1:-1:-1;;25989:34:0;;25769:277;58033:13:::1;:17;::::0;58049:1:::1;58033:17;:::i;:::-;:30;;58025:62;;;;-1:-1:-1::0;;;58025:62:0::1;;;;;;;:::i;:::-;58135:1;58106:26;58121:10;58106:14;:26::i;:::-;:30;58098:58;;;::::0;-1:-1:-1;;;58098:58:0;;9454:2:1;58098:58:0::1;::::0;::::1;9436:21:1::0;9493:2;9473:18;;;9466:30;-1:-1:-1;;;9512:18:1;;;9505:45;9567:18;;58098:58:0::1;9252:339:1::0;58098:58:0::1;58167:24;58177:10;58189:1;58167:9;:24::i;59285:92::-:0;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23;14445:68;;;;-1:-1:-1;;;14445:68:0;;;;;;;:::i;:::-;59355:14:::1;::::0;;-1:-1:-1;;59337:32:0;::::1;59355:14;::::0;;::::1;59354:15;59337:32;::::0;;59285:92::o;58654:100::-;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23;14445:68;;;;-1:-1:-1;;;14445:68:0;;;;;;;:::i;:::-;58728:10:::1;:18;58741:5:::0;58728:10;:18:::1;:::i;58862:86::-:0;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23;14445:68;;;;-1:-1:-1;;;14445:68:0;;;;;;;:::i;:::-;58926:5:::1;:14:::0;58862:86::o;59765:135::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;59872:20:0;59884:7;59872:11;:20::i;58522:124::-;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23;14445:68;;;;-1:-1:-1;;;14445:68:0;;;;;;;:::i;:::-;57631:15:::1;::::0;::::1;::::0;::::1;;;57630:16;57622:68;;;::::0;-1:-1:-1;;;57622:68:0;;12002:2:1;57622:68:0::1;::::0;::::1;11984:21:1::0;12041:2;12021:18;;;12014:30;12080:34;12060:18;;;12053:62;-1:-1:-1;;;12131:18:1;;;12124:37;12178:19;;57622:68:0::1;11800:403:1::0;57622:68:0::1;58617:7:::2;:21;58627:11:::0;58617:7;:21:::2;:::i;29647:104::-:0;29703:13;29736:7;29729:14;;;;;:::i;59488:111::-;59548:7;59571:20;59585:5;59571:13;:20::i;31257:279::-;1453:10;-1:-1:-1;;;;;31348:24:0;;;31344:54;;31381:17;;-1:-1:-1;;;31381:17:0;;;;;;;;;;;31344:54;1453:10;31411:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;31411:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;31411:53:0;;;;;;;;;;31480:48;;540:41:1;;;31411:42:0;;1453:10;31480:48;;513:18:1;31480:48:0;;;;;;;31257:279;;:::o;32335:342::-;32502:28;32512:4;32518:2;32522:7;32502:9;:28::i;:::-;32546:48;32569:4;32575:2;32579:7;32588:5;32546:22;:48::i;:::-;32541:129;;32618:40;;-1:-1:-1;;;32618:40:0;;;;;;;;;;;32541:129;32335:342;;;;:::o;58209:305::-;58283:13;58331:17;58339:8;58331:7;:17::i;:::-;58309:111;;;;-1:-1:-1;;;58309:111:0;;12410:2:1;58309:111:0;;;12392:21:1;12449:2;12429:18;;;12422:30;12488:34;12468:18;;;12461:62;-1:-1:-1;;;12539:18:1;;;12532:42;12591:19;;58309:111:0;12208:408:1;58309:111:0;58464:7;58473:19;:8;:17;:19::i;:::-;58494:10;58447:58;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;58433:73;;58209:305;;;:::o;31607:164::-;-1:-1:-1;;;;;31728:25:0;;;31704:4;31728:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;31607:164::o;56372:651::-;56446:14;;;;56438:47;;;;-1:-1:-1;;;56438:47:0;;7210:2:1;56438:47:0;;;7192:21:1;7249:2;7229:18;;;7222:30;-1:-1:-1;;;7268:18:1;;;7261:50;7328:18;;56438:47:0;7008:344:1;56438:47:0;56516:1;56504:9;:13;:44;;;;;56534:14;;56521:9;:27;;56504:44;56496:91;;;;-1:-1:-1;;;56496:91:0;;;;;;;:::i;:::-;56635:9;;56622;56606:13;26006:12;;26022:1;25990:13;:28;-1:-1:-1;;25989:34:0;;25769:277;56606:13;:25;;;;:::i;:::-;:38;;56598:70;;;;-1:-1:-1;;;56598:70:0;;;;;;;:::i;:::-;56700:13;56704:9;56700:1;:13;:::i;:::-;56687:9;:26;56679:59;;;;-1:-1:-1;;;56679:59:0;;14024:2:1;56679:59:0;;;14006:21:1;14063:2;14043:18;;;14036:30;-1:-1:-1;;;14082:18:1;;;14075:50;14142:18;;56679:59:0;13822:344:1;56679:59:0;56799:14;;56786:9;56757:26;56772:10;56757:14;:26::i;:::-;:38;;;;:::i;:::-;:56;;56749:97;;;;-1:-1:-1;;;56749:97:0;;9097:2:1;56749:97:0;;;9079:21:1;9136:2;9116:18;;;9109:30;9175;9155:18;;;9148:58;9223:18;;56749:97:0;8895:352:1;56749:97:0;56907:19;;56894:9;56865:26;56880:10;56865:14;:26::i;:::-;:38;;;;:::i;:::-;:61;;56857:102;;;;-1:-1:-1;;;56857:102:0;;14373:2:1;56857:102:0;;;14355:21:1;14412:2;14392:18;;;14385:30;14451;14431:18;;;14424:58;14499:18;;56857:102:0;14171:352:1;15133:192:0;14279:7;14306:6;-1:-1:-1;;;;;14306:6:0;1453:10;14453:23;14445:68;;;;-1:-1:-1;;;14445:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;15222:22:0;::::1;15214:73;;;::::0;-1:-1:-1;;;15214:73:0;;14730:2:1;15214:73:0::1;::::0;::::1;14712:21:1::0;14769:2;14749:18;;;14742:30;14808:34;14788:18;;;14781:62;-1:-1:-1;;;14859:18:1;;;14852:36;14905:19;;15214:73:0::1;14528:402:1::0;15214:73:0::1;15298:19;15308:8;15298:9;:19::i;32932:144::-:0;32989:4;33023:13;;33013:7;:23;:55;;;;-1:-1:-1;;33041:20:0;;;;:11;:20;;;;;:27;-1:-1:-1;;;33041:27:0;;;;33040:28;;32932:144::o;40138:196::-;40253:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;40253:29:0;-1:-1:-1;;;;;40253:29:0;;;;;;;;;40298:28;;40253:24;;40298:28;;;;;;;40138:196;;;:::o;35639:2112::-;35754:35;35792:20;35804:7;35792:11;:20::i;:::-;35867:18;;35754:58;;-1:-1:-1;35825:22:0;;-1:-1:-1;;;;;35851:34:0;1453:10;-1:-1:-1;;;;;35851:34:0;;:101;;;-1:-1:-1;35919:18:0;;35902:50;;1453:10;31607:164;:::i;35902:50::-;35851:154;;;-1:-1:-1;1453:10:0;35969:20;35981:7;35969:11;:20::i;:::-;-1:-1:-1;;;;;35969:36:0;;35851:154;35825:181;;36024:17;36019:66;;36050:35;;-1:-1:-1;;;36050:35:0;;;;;;;;;;;36019:66;36122:4;-1:-1:-1;;;;;36100:26:0;:13;:18;;;-1:-1:-1;;;;;36100:26:0;;36096:67;;36135:28;;-1:-1:-1;;;36135:28:0;;;;;;;;;;;36096:67;-1:-1:-1;;;;;36178:16:0;;36174:52;;36203:23;;-1:-1:-1;;;36203:23:0;;;;;;;;;;;36174:52;36347:49;36364:1;36368:7;36377:13;:18;;;36347:8;:49::i;:::-;-1:-1:-1;;;;;36692:18:0;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;36692:31:0;;;-1:-1:-1;;;;;36692:31:0;;;-1:-1:-1;;36692:31:0;;;;;;;36738:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;36738:29:0;;;;;;;;;;;36784:20;;;:11;:20;;;;;;:30;;-1:-1:-1;;;;;;36829:61:0;;;;-1:-1:-1;;;36874:15:0;36829:61;;;;;;;;;;;37164:11;;;37194:24;;;;;:29;37164:11;;37194:29;37190:445;;37419:13;;37405:11;:27;37401:219;;;37489:18;;;37457:24;;;:11;:24;;;;;;;;:50;;37572:28;;;;-1:-1:-1;;;;;37530:70:0;-1:-1:-1;;;37530:70:0;-1:-1:-1;;;;;;37530:70:0;;;-1:-1:-1;;;;;37457:50:0;;;37530:70;;;;;;;37401:219;36667:979;37682:7;37678:2;-1:-1:-1;;;;;37663:27:0;37672:4;-1:-1:-1;;;;;37663:27:0;;;;;;;;;;;37701:42;35743:2008;;35639:2112;;;:::o;33084:104::-;33153:27;33163:2;33167:8;33153:27;;;;;;;;;;;;:9;:27::i;28142:1083::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;28308:13:0;;28252:7;;28301:20;;28297:861;;;28342:31;28376:17;;;:11;:17;;;;;;;;;28342:51;;;;;;;;;-1:-1:-1;;;;;28342:51:0;;;;-1:-1:-1;;;28342:51:0;;-1:-1:-1;;;;;28342:51:0;;;;;;;;-1:-1:-1;;;28342:51:0;;;;;;;;;;;;;;28412:731;;28462:14;;-1:-1:-1;;;;;28462:28:0;;28458:101;;28526:9;28142:1083;-1:-1:-1;;;28142:1083:0:o;28458:101::-;-1:-1:-1;;;28903:6:0;28948:17;;;;:11;:17;;;;;;;;;28936:29;;;;;;;;;-1:-1:-1;;;;;28936:29:0;;;;;-1:-1:-1;;;28936:29:0;;-1:-1:-1;;;;;28936:29:0;;;;;;;;-1:-1:-1;;;28936:29:0;;;;;;;;;;;;;28996:28;28992:109;;29064:9;28142:1083;-1:-1:-1;;;28142:1083:0:o;28992:109::-;28863:261;;;28323:835;28297:861;29186:31;;-1:-1:-1;;;29186:31:0;;;;;;;;;;;15333:173;15389:16;15408:6;;-1:-1:-1;;;;;15425:17:0;;;-1:-1:-1;;;;;;15425:17:0;;;;;;15458:40;;15408:6;;;;;;;15458:40;;15389:16;15458:40;15378:128;15333:173;:::o;26775:207::-;26836:7;-1:-1:-1;;;;;26860:19:0;;26856:59;;26888:27;;-1:-1:-1;;;26888:27:0;;;;;;;;;;;26856:59;-1:-1:-1;;;;;;26941:19:0;;;;;:12;:19;;;;;:32;-1:-1:-1;;;26941:32:0;;-1:-1:-1;;;;;26941:32:0;;26775:207::o;40899:790::-;41054:4;-1:-1:-1;;;;;41075:13:0;;4626:20;4674:8;41071:611;;41111:72;;-1:-1:-1;;;41111:72:0;;-1:-1:-1;;;;;41111:36:0;;;;;:72;;1453:10;;41162:4;;41168:7;;41177:5;;41111:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41111:72:0;;;;;;;;-1:-1:-1;;41111:72:0;;;;;;;;;;;;:::i;:::-;;;41107:520;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41357:6;:13;41374:1;41357:18;41353:259;;41407:40;;-1:-1:-1;;;41407:40:0;;;;;;;;;;;41353:259;41562:6;41556:13;41547:6;41543:2;41539:15;41532:38;41107:520;-1:-1:-1;;;;;;41234:55:0;-1:-1:-1;;;41234:55:0;;-1:-1:-1;41227:62:0;;41071:611;-1:-1:-1;41666:4:0;41071:611;40899:790;;;;;;:::o;1838:723::-;1894:13;2115:5;2124:1;2115:10;2111:53;;-1:-1:-1;;2142:10:0;;;;;;;;;;;;-1:-1:-1;;;2142:10:0;;;;;1838:723::o;2111:53::-;2189:5;2174:12;2230:78;2237:9;;2230:78;;2263:8;;;;:::i;:::-;;-1:-1:-1;2286:10:0;;-1:-1:-1;2294:2:0;2286:10;;:::i;:::-;;;2230:78;;;2318:19;2350:6;-1:-1:-1;;;;;2340:17:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2340:17:0;;2318:39;;2368:154;2375:10;;2368:154;;2402:11;2412:1;2402:11;;:::i;:::-;;-1:-1:-1;2471:10:0;2479:2;2471:5;:10;:::i;:::-;2458:24;;:2;:24;:::i;:::-;2445:39;;2428:6;2435;2428:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;2428:56:0;;;;;;;;-1:-1:-1;2499:11:0;2508:2;2499:11;;:::i;:::-;;;2368:154;;33551:163;33674:32;33680:2;33684:8;33694:5;33701:4;34135:13;;-1:-1:-1;;;;;34163:16:0;;34159:48;;34188:19;;-1:-1:-1;;;34188:19:0;;;;;;;;;;;34159:48;34222:8;34234:1;34222:13;34218:44;;34244:18;;-1:-1:-1;;;34244:18:0;;;;;;;;;;;34218:44;-1:-1:-1;;;;;34613:16:0;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;34672:49:0;;-1:-1:-1;;;;;34613:44:0;;;;;;;34672:49;;;-1:-1:-1;;;;;34613:44:0;;;;;;34672:49;;;;;;;;;;;;;;;;34738:25;;;:11;:25;;;;;:35;;-1:-1:-1;;;;;;34788:66:0;;;;-1:-1:-1;;;34838:15:0;34788:66;;;;;;;;;;;34738:25;;34923:328;34943:8;34939:1;:12;34923:328;;;34982:38;;35007:12;;-1:-1:-1;;;;;34982:38:0;;;34999:1;;34982:38;;34999:1;;34982:38;35043:4;:68;;;;;35052:59;35083:1;35087:2;35091:12;35105:5;35052:22;:59::i;:::-;35051:60;35043:68;35039:164;;;35143:40;;-1:-1:-1;;;35143:40:0;;;;;;;;;;;35039:164;35221:14;;;;;34953:3;34923:328;;;-1:-1:-1;35267:13:0;:28;35317:60;32335:342;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:1:o;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:186::-;2752:6;2805:2;2793:9;2784:7;2780:23;2776:32;2773:52;;;2821:1;2818;2811:12;2773:52;2844:29;2863:9;2844:29;:::i;2884:127::-;2945:10;2940:3;2936:20;2933:1;2926:31;2976:4;2973:1;2966:15;3000:4;2997:1;2990:15;3016:632;3081:5;-1:-1:-1;;;;;3152:2:1;3144:6;3141:14;3138:40;;;3158:18;;:::i;:::-;3233:2;3227:9;3201:2;3287:15;;-1:-1:-1;;3283:24:1;;;3309:2;3279:33;3275:42;3263:55;;;3333:18;;;3353:22;;;3330:46;3327:72;;;3379:18;;:::i;:::-;3419:10;3415:2;3408:22;3448:6;3439:15;;3478:6;3470;3463:22;3518:3;3509:6;3504:3;3500:16;3497:25;3494:45;;;3535:1;3532;3525:12;3494:45;3585:6;3580:3;3573:4;3565:6;3561:17;3548:44;3640:1;3633:4;3624:6;3616;3612:19;3608:30;3601:41;;;;3016:632;;;;;:::o;3653:451::-;3722:6;3775:2;3763:9;3754:7;3750:23;3746:32;3743:52;;;3791:1;3788;3781:12;3743:52;3831:9;3818:23;-1:-1:-1;;;;;3856:6:1;3853:30;3850:50;;;3896:1;3893;3886:12;3850:50;3919:22;;3972:4;3964:13;;3960:27;-1:-1:-1;3950:55:1;;4001:1;3998;3991:12;3950:55;4024:74;4090:7;4085:2;4072:16;4067:2;4063;4059:11;4024:74;:::i;4553:347::-;4618:6;4626;4679:2;4667:9;4658:7;4654:23;4650:32;4647:52;;;4695:1;4692;4685:12;4647:52;4718:29;4737:9;4718:29;:::i;:::-;4708:39;;4797:2;4786:9;4782:18;4769:32;4844:5;4837:13;4830:21;4823:5;4820:32;4810:60;;4866:1;4863;4856:12;4810:60;4889:5;4879:15;;;4553:347;;;;;:::o;4905:667::-;5000:6;5008;5016;5024;5077:3;5065:9;5056:7;5052:23;5048:33;5045:53;;;5094:1;5091;5084:12;5045:53;5117:29;5136:9;5117:29;:::i;:::-;5107:39;;5165:38;5199:2;5188:9;5184:18;5165:38;:::i;:::-;5155:48;;5250:2;5239:9;5235:18;5222:32;5212:42;;5305:2;5294:9;5290:18;5277:32;-1:-1:-1;;;;;5324:6:1;5321:30;5318:50;;;5364:1;5361;5354:12;5318:50;5387:22;;5440:4;5432:13;;5428:27;-1:-1:-1;5418:55:1;;5469:1;5466;5459:12;5418:55;5492:74;5558:7;5553:2;5540:16;5535:2;5531;5527:11;5492:74;:::i;:::-;5482:84;;;4905:667;;;;;;;:::o;5577:260::-;5645:6;5653;5706:2;5694:9;5685:7;5681:23;5677:32;5674:52;;;5722:1;5719;5712:12;5674:52;5745:29;5764:9;5745:29;:::i;:::-;5735:39;;5793:38;5827:2;5816:9;5812:18;5793:38;:::i;:::-;5783:48;;5577:260;;;;;:::o;5842:380::-;5921:1;5917:12;;;;5964;;;5985:61;;6039:4;6031:6;6027:17;6017:27;;5985:61;6092:2;6084:6;6081:14;6061:18;6058:38;6055:161;;6138:10;6133:3;6129:20;6126:1;6119:31;6173:4;6170:1;6163:15;6201:4;6198:1;6191:15;6055:161;;5842:380;;;:::o;6227:356::-;6429:2;6411:21;;;6448:18;;;6441:30;6507:34;6502:2;6487:18;;6480:62;6574:2;6559:18;;6227:356::o;7357:398::-;7559:2;7541:21;;;7598:2;7578:18;;;7571:30;7637:34;7632:2;7617:18;;7610:62;-1:-1:-1;;;7703:2:1;7688:18;;7681:32;7745:3;7730:19;;7357:398::o;7760:127::-;7821:10;7816:3;7812:20;7809:1;7802:31;7852:4;7849:1;7842:15;7876:4;7873:1;7866:15;7892:125;7957:9;;;7978:10;;;7975:36;;;7991:18;;:::i;8022:343::-;8224:2;8206:21;;;8263:2;8243:18;;;8236:30;-1:-1:-1;;;8297:2:1;8282:18;;8275:49;8356:2;8341:18;;8022:343::o;8370:168::-;8443:9;;;8474;;8491:15;;;8485:22;;8471:37;8461:71;;8512:18;;:::i;9722:545::-;9824:2;9819:3;9816:11;9813:448;;;9860:1;9885:5;9881:2;9874:17;9930:4;9926:2;9916:19;10000:2;9988:10;9984:19;9981:1;9977:27;9971:4;9967:38;10036:4;10024:10;10021:20;10018:47;;;-1:-1:-1;10059:4:1;10018:47;10114:2;10109:3;10105:12;10102:1;10098:20;10092:4;10088:31;10078:41;;10169:82;10187:2;10180:5;10177:13;10169:82;;;10232:17;;;10213:1;10202:13;10169:82;;;10173:3;;;9722:545;;;:::o;10443:1352::-;10569:3;10563:10;-1:-1:-1;;;;;10588:6:1;10585:30;10582:56;;;10618:18;;:::i;:::-;10647:97;10737:6;10697:38;10729:4;10723:11;10697:38;:::i;:::-;10691:4;10647:97;:::i;:::-;10799:4;;10863:2;10852:14;;10880:1;10875:663;;;;11582:1;11599:6;11596:89;;;-1:-1:-1;11651:19:1;;;11645:26;11596:89;-1:-1:-1;;10400:1:1;10396:11;;;10392:24;10388:29;10378:40;10424:1;10420:11;;;10375:57;11698:81;;10845:944;;10875:663;9669:1;9662:14;;;9706:4;9693:18;;-1:-1:-1;;10911:20:1;;;11029:236;11043:7;11040:1;11037:14;11029:236;;;11132:19;;;11126:26;11111:42;;11224:27;;;;11192:1;11180:14;;;;11059:19;;11029:236;;;11033:3;11293:6;11284:7;11281:19;11278:201;;;11354:19;;;11348:26;-1:-1:-1;;11437:1:1;11433:14;;;11449:3;11429:24;11425:37;11421:42;11406:58;11391:74;;11278:201;-1:-1:-1;;;;;11525:1:1;11509:14;;;11505:22;11492:36;;-1:-1:-1;10443:1352:1:o;12621:722::-;12671:3;12712:5;12706:12;12741:36;12767:9;12741:36;:::i;:::-;12796:1;12813:18;;;12840:133;;;;12987:1;12982:355;;;;12806:531;;12840:133;-1:-1:-1;;12873:24:1;;12861:37;;12946:14;;12939:22;12927:35;;12918:45;;;-1:-1:-1;12840:133:1;;12982:355;13013:5;13010:1;13003:16;13042:4;13087:2;13084:1;13074:16;13112:1;13126:165;13140:6;13137:1;13134:13;13126:165;;;13218:14;;13205:11;;;13198:35;13261:16;;;;13155:10;;13126:165;;;13130:3;;;13320:6;13315:3;13311:16;13304:23;;12806:531;;;;;12621:722;;;;:::o;13348:469::-;13569:3;13597:38;13631:3;13623:6;13597:38;:::i;:::-;13664:6;13658:13;13680:65;13738:6;13734:2;13727:4;13719:6;13715:17;13680:65;:::i;:::-;13761:50;13803:6;13799:2;13795:15;13787:6;13761:50;:::i;:::-;13754:57;13348:469;-1:-1:-1;;;;;;;13348:469:1:o;14935:489::-;-1:-1:-1;;;;;15204:15:1;;;15186:34;;15256:15;;15251:2;15236:18;;15229:43;15303:2;15288:18;;15281:34;;;15351:3;15346:2;15331:18;;15324:31;;;15129:4;;15372:46;;15398:19;;15390:6;15372:46;:::i;:::-;15364:54;14935:489;-1:-1:-1;;;;;;14935:489:1:o;15429:249::-;15498:6;15551:2;15539:9;15530:7;15526:23;15522:32;15519:52;;;15567:1;15564;15557:12;15519:52;15599:9;15593:16;15618:30;15642:5;15618:30;:::i;15683:135::-;15722:3;15743:17;;;15740:43;;15763:18;;:::i;:::-;-1:-1:-1;15810:1:1;15799:13;;15683:135::o;15823:127::-;15884:10;15879:3;15875:20;15872:1;15865:31;15915:4;15912:1;15905:15;15939:4;15936:1;15929:15;15955:120;15995:1;16021;16011:35;;16026:18;;:::i;:::-;-1:-1:-1;16060:9:1;;15955:120::o;16080:128::-;16147:9;;;16168:11;;;16165:37;;;16182:18;;:::i;16213:112::-;16245:1;16271;16261:35;;16276:18;;:::i;:::-;-1:-1:-1;16310:9:1;;16213:112::o;16330:127::-;16391:10;16386:3;16382:20;16379:1;16372:31;16422:4;16419:1;16412:15;16446:4;16443:1;16436:15

Swarm Source

ipfs://ce40eb448dc7f3d0e9cd1159c76228ad16030ea067b3a45c97421c99855c8326

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.