ETH Price: $3,341.80 (+3.09%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...215539172025-01-04 21:51:2319 days ago1736027483IN
0xBFcB983a...fBc29220a
0 ETH0.000369187.9840209
Set Approval For...214032682024-12-14 20:54:1140 days ago1734209651IN
0xBFcB983a...fBc29220a
0 ETH0.000431939.34103779
Set Approval For...211338812024-11-07 6:07:3577 days ago1730959655IN
0xBFcB983a...fBc29220a
0 ETH0.00037838.18123991
Set Approval For...208156882024-09-23 20:31:35122 days ago1727123495IN
0xBFcB983a...fBc29220a
0 ETH0.0012362126.78287092
Set Approval For...207489292024-09-14 12:44:47131 days ago1726317887IN
0xBFcB983a...fBc29220a
0 ETH0.000097062.09909987
Set Approval For...205097462024-08-12 3:07:23164 days ago1723432043IN
0xBFcB983a...fBc29220a
0 ETH0.000039141.60882005
Set Approval For...204058942024-07-28 15:18:23179 days ago1722179903IN
0xBFcB983a...fBc29220a
0 ETH0.000083943.18702445
Set Approval For...204058872024-07-28 15:16:59179 days ago1722179819IN
0xBFcB983a...fBc29220a
0 ETH0.000142233.07598405
Safe Transfer Fr...203434542024-07-19 22:05:59188 days ago1721426759IN
0xBFcB983a...fBc29220a
0 ETH0.001455945.22945615
Safe Transfer Fr...203434492024-07-19 22:04:59188 days ago1721426699IN
0xBFcB983a...fBc29220a
0 ETH0.001619075.77409379
Safe Transfer Fr...203434432024-07-19 22:03:47188 days ago1721426627IN
0xBFcB983a...fBc29220a
0 ETH0.00218815.83127953
Set Approval For...203225402024-07-17 0:03:59190 days ago1721174639IN
0xBFcB983a...fBc29220a
0 ETH0.000338787.32641418
Set Approval For...202814462024-07-11 6:23:35196 days ago1720679015IN
0xBFcB983a...fBc29220a
0 ETH0.000117512.54138572
Set Approval For...201430842024-06-21 22:30:23216 days ago1719009023IN
0xBFcB983a...fBc29220a
0 ETH0.000156593.39262746
Safe Transfer Fr...200432252024-06-07 23:27:23230 days ago1717802843IN
0xBFcB983a...fBc29220a
0 ETH0.000548757.81964931
Safe Transfer Fr...200432082024-06-07 23:23:59230 days ago1717802639IN
0xBFcB983a...fBc29220a
0 ETH0.00075487.79038981
Set Approval For...200049302024-06-02 15:08:23235 days ago1717340903IN
0xBFcB983a...fBc29220a
0 ETH0.0002869411.7943101
Set Approval For...197046892024-04-21 15:31:11277 days ago1713713471IN
0xBFcB983a...fBc29220a
0 ETH0.0004704310.19216489
Set Approval For...196925022024-04-19 22:37:23279 days ago1713566243IN
0xBFcB983a...fBc29220a
0 ETH0.000181967.47935797
Set Approval For...196924812024-04-19 22:32:59279 days ago1713565979IN
0xBFcB983a...fBc29220a
0 ETH0.000173167.14216851
Set Approval For...196083352024-04-08 3:40:47290 days ago1712547647IN
0xBFcB983a...fBc29220a
0 ETH0.0005708412.34503293
Set Approval For...193784612024-03-06 20:16:23323 days ago1709756183IN
0xBFcB983a...fBc29220a
0 ETH0.0044133795.4428512
Set Approval For...193405912024-03-01 13:22:23328 days ago1709299343IN
0xBFcB983a...fBc29220a
0 ETH0.0025807455.81064855
Set Approval For...193046232024-02-25 12:33:47333 days ago1708864427IN
0xBFcB983a...fBc29220a
0 ETH0.0012168326.36292107
Transfer From193045642024-02-25 12:21:59333 days ago1708863719IN
0xBFcB983a...fBc29220a
0 ETH0.0022176526.2767825
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
161606042022-12-11 9:34:59774 days ago1670751299
0xBFcB983a...fBc29220a
0.032 ETH
161606042022-12-11 9:34:59774 days ago1670751299
0xBFcB983a...fBc29220a
0.032 ETH
161606042022-12-11 9:34:59774 days ago1670751299
0xBFcB983a...fBc29220a
0.032 ETH
161606042022-12-11 9:34:59774 days ago1670751299
0xBFcB983a...fBc29220a
0.256 ETH
161606042022-12-11 9:34:59774 days ago1670751299
0xBFcB983a...fBc29220a
0.544 ETH
161606042022-12-11 9:34:59774 days ago1670751299
0xBFcB983a...fBc29220a
0.256 ETH
161606042022-12-11 9:34:59774 days ago1670751299
0xBFcB983a...fBc29220a
0.128 ETH
159466172022-11-11 11:56:11804 days ago1668167771
0xBFcB983a...fBc29220a
0.118 ETH
159466172022-11-11 11:56:11804 days ago1668167771
0xBFcB983a...fBc29220a
0.118 ETH
159466172022-11-11 11:56:11804 days ago1668167771
0xBFcB983a...fBc29220a
0.118 ETH
159466172022-11-11 11:56:11804 days ago1668167771
0xBFcB983a...fBc29220a
0.944 ETH
159466172022-11-11 11:56:11804 days ago1668167771
0xBFcB983a...fBc29220a
2.006 ETH
159466172022-11-11 11:56:11804 days ago1668167771
0xBFcB983a...fBc29220a
0.944 ETH
159466172022-11-11 11:56:11804 days ago1668167771
0xBFcB983a...fBc29220a
0.472 ETH
158812022022-11-02 8:40:11813 days ago1667378411
0xBFcB983a...fBc29220a
0.062 ETH
158812022022-11-02 8:40:11813 days ago1667378411
0xBFcB983a...fBc29220a
0.062 ETH
158812022022-11-02 8:40:11813 days ago1667378411
0xBFcB983a...fBc29220a
0.062 ETH
158812022022-11-02 8:40:11813 days ago1667378411
0xBFcB983a...fBc29220a
0.496 ETH
158812022022-11-02 8:40:11813 days ago1667378411
0xBFcB983a...fBc29220a
1.054 ETH
158812022022-11-02 8:40:11813 days ago1667378411
0xBFcB983a...fBc29220a
0.496 ETH
158812022022-11-02 8:40:11813 days ago1667378411
0xBFcB983a...fBc29220a
0.248 ETH
157231702022-10-11 6:46:59835 days ago1665470819
0xBFcB983a...fBc29220a
0.118 ETH
157231702022-10-11 6:46:59835 days ago1665470819
0xBFcB983a...fBc29220a
0.118 ETH
157231702022-10-11 6:46:59835 days ago1665470819
0xBFcB983a...fBc29220a
0.118 ETH
157231702022-10-11 6:46:59835 days ago1665470819
0xBFcB983a...fBc29220a
0.944 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Dogface

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.0;

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

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

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
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 tokenId);

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev 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 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;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

pragma solidity ^0.8.0;


abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

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

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

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

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

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

        uint count = 0;
        uint length = _owners.length;
        for( uint i = 0; i < length; ++i ){
          if( owner == _owners[i] ){
            ++count;
          }
        }

        delete length;
        return count;
    }

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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


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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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


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

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

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

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

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

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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


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

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

pragma solidity ^0.8.0;

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableB is ERC721B, IERC721Enumerable {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721B) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) {
        require(index < ERC721B.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");

        uint count;
        uint length = _owners.length;
        for( uint i; i < length; ++i ){
            if( owner == _owners[i] ){
                if( count == index ){
                    delete count;
                    delete length;
                    return i;
                }
                else
                    ++count;
            }
        }

        delete count;
        delete length;
        require(false, "ERC721Enumerable: owner index out of bounds");
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _owners.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721EnumerableB.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return index;
    }
}

pragma solidity ^0.8.0;

abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

pragma solidity ^0.8.0;

library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

pragma solidity ^0.8.0;


contract Dogface is Ownable, ERC721EnumerableB, ReentrancyGuard{
    using SafeMath for uint256;

    bool public alphaIsActive    = false;
    bool public bravoIsActive    = false;
    bool public presaleIsActive  = true;

    uint public maxTokens = 5555;

    uint public alphaReserveTokens = 100;
    uint public bravoReserveTokens = 100;
    uint public voucherTokens = 1000; 

    uint public ALPHA_SUPPLY = 2344;
    uint public soldAlphaSupply;

    uint public ALPHA_TEAM_RESERVE_BUFFER = 2344;
    uint public ALPHA_RESERVE_GIVEN;

    uint public BRAVO_SUPPLY = 2011;
    uint public soldBravoSupply;  
    uint public BRAVO_BUFFER = 2445;

    uint public BRAVO_TEAM_RESERVE_BUFFER = 4455;
    uint public BRAVO_RESERVE_GIVEN;

    uint public bravoSalePrice = 0.1 ether;

    string private _alphaTokenURI = "";
    string private _bravoTokenURI = "";
    string private _tokenURISuffix = '.json';

    mapping(address => uint256) public alphaBalance;
    mapping(address => uint256) public bravoBalance;
    mapping(address => uint256) public whiteListBalance;
    mapping(address => uint256) public couponBalance;

    mapping(address => uint[]) private _balances;

    mapping(uint256 => uint256) public keyURI;

    bytes32 public merkleRoot;
    bytes32 public couponRoot;

    /* Veteran Wallet */
    address public w1 = 0xA37b3373931aBb6A5D207b79ee65c6aAae15aF30;
    /* DAO */
    address public w2 = 0x9519A27015AD44E114b12B8011070D517F64296F;

    /* Team Wallets */
    address public w3 = 0xe78dAb9780aD0136581ca4A81775d7e5258DA036;
    address public w4 = 0x5acA4034e897417e20187ee68c992E600184CF81;
    address public w5 = 0x0A13468406494E5716AFa68c4599c15EE86Cb9b4;
    address public w6 = 0xfD7297515bB483A8fE863512D14BDF875D333271;
    address public w7 = 0x9a80E93E7CAf98801F764Cb72Acb4B1dA4a6D924;

    event TotalMinted(address indexed _from, uint256 _value);

    constructor()
    ERC721B("Dogface", "DF"){
    }

    fallback() external payable {
    }

    receive() external payable {
    }


    function alphaMint( uint256 _quantity) external payable nonReentrant{
        require( alphaIsActive,                                    "Sale is not active");
        require( msg.sender == tx.origin,                          "Interaction not allowed");
        require( alphaBalance[msg.sender].add(_quantity) <= 8,       "Max purchasable limit is 8");
        require( msg.value >= getPrice().mul(_quantity),           "Ether value sent is not sufficient");
        require( soldAlphaSupply + _quantity <= ALPHA_SUPPLY,    "Mint/order exceeds supply");
        
        alphaBalance[msg.sender] += _quantity;
  
        for(uint i = 0; i < _quantity; ++i){
            uint256 _ID = soldAlphaSupply++;
            
            keyURI[_ID] = 0;
            _safeMint( msg.sender, _ID);
        }
        emit TotalMinted(msg.sender, totalSupply());
    }  

    function whitelistMint( uint256 _quantity, bytes32[] calldata proof) external payable nonReentrant{
        require( presaleIsActive,                                  "Presale is not active");
        require( msg.sender == tx.origin,                          "Interaction not allowed");
        require( whiteListBalance[msg.sender].add(_quantity) <= 3, "Max purchasable limit is 3, please wait for the public sale.");
        require( msg.value >= getPrice().mul(_quantity),           "Ether value sent is not sufficient");
        require( soldAlphaSupply + _quantity <= ALPHA_SUPPLY,      "Mint/order exceeds supply");

        require( MerkleProof.verify(proof, merkleRoot, _generateLeaf(msg.sender)), "This user is not allowed to mint");
        
        whiteListBalance[msg.sender] += _quantity;
  
        for(uint i = 0; i < _quantity; ++i){
            uint256 _ID = soldAlphaSupply++;
            
            keyURI[_ID] = 0;
            _safeMint( msg.sender, _ID);
        }
        emit TotalMinted(msg.sender, totalSupply());
    }  

    function alphaReserve(uint256 _quantity, address _address) external onlyOwner nonReentrant{
        require( alphaIsActive,                               "Sale is not active"         );
        require( ALPHA_RESERVE_GIVEN + _quantity <= 100,      "Mint/order exceeds supply" );

        alphaBalance[_address] += _quantity;
        ALPHA_RESERVE_GIVEN += _quantity;

        for(uint i = 0; i < _quantity; ++i){
            uint256 _ID = ALPHA_TEAM_RESERVE_BUFFER++;
            
            keyURI[_ID] = 0;
            _safeMint( _address, _ID);
        }
        emit TotalMinted(_address, totalSupply());
    }

    function getPrice() public view returns (uint256) {
        require(soldAlphaSupply < ALPHA_SUPPLY, "Sale has already ended");
        uint currentSupply = totalSupply();
        if (currentSupply >= 301) {
            return 0.08 ether;
        } else {
            return 0.05 ether;
        }
    }

    function bravoMint( uint256 _quantity) external payable nonReentrant{
        require( bravoIsActive,                                  "Sale is not active");
        require( msg.sender == tx.origin,                        "Interaction not allowed");
        require( bravoBalance[msg.sender].add(_quantity) <= 8,   "Max purchasable limit is 8");
        require( msg.value >= bravoSalePrice * _quantity,        "Ether value sent is not sufficient");
        require( soldBravoSupply + _quantity <= BRAVO_SUPPLY,    "Mint/order exceeds supply");
        
        soldBravoSupply += _quantity;
        bravoBalance[msg.sender] += _quantity;
    
        for(uint i = 0; i < _quantity; ++i){
            uint256 _ID = BRAVO_BUFFER++;
            
            keyURI[_ID] = 1;
            _safeMint( msg.sender, _ID); 
        }
        emit TotalMinted(msg.sender, totalSupply());
    }  

    function bravoReserve(uint256 _quantity, address _address) external onlyOwner nonReentrant{
        require( bravoIsActive,                                  "Sale is not active"         );
        require( BRAVO_RESERVE_GIVEN + _quantity <= 100,         "Mint/order exceeds supply" );

        bravoBalance[_address] += _quantity;
        BRAVO_RESERVE_GIVEN += _quantity;

        for(uint i = 0; i < _quantity; ++i){
            uint256 _ID = BRAVO_TEAM_RESERVE_BUFFER++;
            
            keyURI[_ID] = 1;
            _safeMint( _address, _ID);
        }
        emit TotalMinted(_address, totalSupply());
    }

    function couponMint(bytes32[] calldata proof, string calldata _coupon) external payable nonReentrant{
        require( bravoIsActive,                                "Presale is not active");
        require( msg.sender == tx.origin,                        "Interaction not allowed");
        require( soldBravoSupply + 1 <= BRAVO_SUPPLY,    "Mint/order exceeds supply");

        require( MerkleProof.verify(proof, couponRoot, _generateCouponLeaf(_coupon)), "This user is not allowed to mint");
        
        bravoBalance[msg.sender]++;
    
        
        uint256 _ID = soldBravoSupply++;
        
        keyURI[_ID] = 1;
        _safeMint( msg.sender, _ID);
        
        emit TotalMinted(msg.sender, totalSupply());
    }  

    function tokenURI(uint256 tokenId) external view virtual override returns (string memory uri) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        if(keyURI[tokenId] == 0){
            bytes memory tempEmptyStringTest = bytes(_alphaTokenURI);
            if (tempEmptyStringTest.length == 0) {
                return string(abi.encodePacked('https://dogface.mypinata.cloud/ipfs/QmSWKSkne2FpZLkETrqyRL5iM5ExfuCTpcp7FiZQ6FCrGS'));
            } else {
                return string(abi.encodePacked(_alphaTokenURI, "ALPHA_", toString(tokenId), ".json"));
            }
        }else if(keyURI[tokenId] == 1){

            bytes memory tempEmptyStringTest = bytes(_bravoTokenURI);
            if (tempEmptyStringTest.length == 0) {
                return string(abi.encodePacked('https://dogface.mypinata.cloud/ipfs/QmSWKSkne2FpZLkETrqyRL5iM5ExfuCTpcp7FiZQ6FCrGS'));
            } else {
                return string(abi.encodePacked(_bravoTokenURI, "BRAVO_", toString(tokenId), ".json"));
            }
        }
    }

    function setAlphaURI(string calldata _newBaseURI) external onlyOwner{
        _alphaTokenURI = _newBaseURI;
    }

    function setBravoURI(string calldata _newBaseURI) external onlyOwner{
        _bravoTokenURI = _newBaseURI;
    }

    function _generateLeaf(address account) internal pure returns(bytes32){
        return keccak256(abi.encodePacked(account));
    }

    function _generateCouponLeaf(string memory coupon) internal pure returns(bytes32){
        return keccak256(abi.encodePacked(coupon));
    }

    function toggleAlphaActive(bool _isActive) external onlyOwner{
        if( alphaIsActive != _isActive ){
          alphaIsActive = _isActive;
        }
    }

    function toggleBravoActive(bool _isActive) external onlyOwner{
        if( bravoIsActive != _isActive ){
          bravoIsActive = _isActive;
        }
    }

    function togglePresale(bool _presaleOnly) external onlyOwner{
        if( presaleIsActive != _presaleOnly ){
          presaleIsActive = _presaleOnly;
        }
    }

    function setRoot(bytes32 _root) external onlyOwner{
        merkleRoot = _root;
    }

    function setCoupons(bytes32 _root) external onlyOwner{
        couponRoot = _root;
    }

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

    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) {
        require(index < ERC721B.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _balances[owner][index];
    }

    function _beforeTokenTransfer(
      address from,
      address to,
      uint256 tokenId
    ) internal override virtual {
    address zero = address(0);
        if( from != zero || to == zero ){
          uint length = _balances[from].length;
          for( uint i; i < length; ++i ){
            if( _balances[from][i] == tokenId ){
              _balances[from][i] = _balances[from][length - 1];
              _balances[from].pop();
              break;
            }
          }
          delete length;
        }

        if( from == zero || to != zero ){
          _balances[to].push( tokenId );
        }
    }

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

    uint256 public withdrawnFunds;

    function withdrawAllA() public onlyOwner{
        require(withdrawnFunds < 22.92 ether);
        uint256 balance = address(this).balance;
        require(balance > 0, "Insufficent balance");

        withdrawnFunds += balance;

        _widthdraw(w1, ((balance * 10) / 100));
        _widthdraw(w2, ((balance * 20) / 100));
        _widthdraw(w3, address(this).balance);
    }

    function withdrawAllB() public onlyOwner {
        require(withdrawnFunds > 22.92 ether);
        uint256 balance = address(this).balance;
        require(balance > 0, "Insufficent balance");
        _widthdraw(w1, ((balance * 10) / 100));
        _widthdraw(w2, ((balance * 20) / 100));
        _widthdraw(w3, ((balance * 425) / 1000));
        _widthdraw(w4, ((balance * 20) / 100));
        _widthdraw(w5, ((balance * 25) / 1000));
        _widthdraw(w6, ((balance * 25) / 1000));
        _widthdraw(w7, address(this).balance);
        
    }
    

    function _widthdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{ value: _amount }("");
        require(success, "Failed to widthdraw Ether");
    }


}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"TotalMinted","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ALPHA_RESERVE_GIVEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ALPHA_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ALPHA_TEAM_RESERVE_BUFFER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BRAVO_BUFFER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BRAVO_RESERVE_GIVEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BRAVO_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BRAVO_TEAM_RESERVE_BUFFER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alphaBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"alphaIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"alphaMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"alphaReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"alphaReserveTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"bravoBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bravoIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"bravoMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"bravoReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bravoReserveTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bravoSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"couponBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"string","name":"_coupon","type":"string"}],"name":"couponMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"couponRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"keyURI","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleIsActive","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":"string","name":"_newBaseURI","type":"string"}],"name":"setAlphaURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBravoURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setCoupons","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"soldAlphaSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"soldBravoSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"toggleAlphaActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"toggleBravoActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_presaleOnly","type":"bool"}],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"voucherTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w5","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w6","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"w7","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteListBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAllA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAllB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawnFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6007805462ffffff1916620100001790556115b360085560646009819055600a556103e8600b55610928600c819055600e556107db60105561098d60125561116760135567016345785d8a000060155560a06040819052600060808190526200006b916016916200028a565b506040805160208101918290526000908190526200008c916017916200028a565b5060408051808201909152600580825264173539b7b760d91b6020909201918252620000bb916018916200028a565b50602180546001600160a01b031990811673a37b3373931abb6a5d207b79ee65c6aaae15af3017909155602280548216739519a27015ad44e114b12b8011070d517f64296f17905560238054821673e78dab9780ad0136581ca4a81775d7e5258da036179055602480548216735aca4034e897417e20187ee68c992e600184cf81179055602580548216730a13468406494e5716afa68c4599c15ee86cb9b417905560268054821673fd7297515bb483a8fe863512d14bdf875d33327117905560278054909116739a80e93e7caf98801f764cb72acb4b1da4a6d924179055348015620001a757600080fd5b5060405180604001604052806007815260200166446f676661636560c81b81525060405180604001604052806002815260200161222360f11b815250620001fd620001f76200023660201b60201c565b6200023a565b8151620002129060019060208501906200028a565b508051620002289060029060208401906200028a565b50506001600655506200036d565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620002989062000330565b90600052602060002090601f016020900481019282620002bc576000855562000307565b82601f10620002d757805160ff191683800117855562000307565b8280016001018555821562000307579182015b8281111562000307578251825591602001919060010190620002ea565b506200031592915062000319565b5090565b5b808211156200031557600081556001016200031a565b600181811c908216806200034557607f821691505b602082108114156200036757634e487b7160e01b600052602260045260246000fd5b50919050565b613a30806200037d6000396000f3fe6080604052600436106103b85760003560e01c80638da5cb5b116101f0578063c2fddf741161010c578063df3ad133116100a5578063e985e9c511610077578063e985e9c514610add578063eff21f2314610b26578063f2fde38b14610b3c578063f66b135b14610b5c578063f72a56f514610b7257005b8063df3ad13314610a77578063e3d538d914610a91578063e603375414610ab1578063e831574214610ac757005b8063d2cf2cc2116100de578063d2cf2cc214610a01578063d35608a414610a21578063dab5f34014610a41578063dd1c535414610a6157005b8063c2fddf74146109a4578063c57f0074146109b9578063c87b56dd146109ce578063d2cab056146109ee57005b80639c4575d611610189578063a006fe021161015b578063a006fe021461090f578063a044c98714610925578063a22cb46514610945578063aa667af614610965578063b88d4fde1461098457005b80639c4575d6146108995780639dd1cfb8146108b95780639e0d28a7146108e65780639fcf8d8e146108f957005b8063978e2d3a116101c2578063978e2d3a1461084557806398d5fdca146108585780639abf27231461086d5780639c09853b1461088357005b80638da5cb5b146107e65780638f6dda9d14610804578063906280c31461081a57806395d89b411461083057005b806330f72cd4116102df5780636b2ce7f11161027857806378eb79b61161024a57806378eb79b61461075a5780637a619aec1461077a5780637de2d5d91461079a5780637e44755b146107b05780638be7adc3146107d057005b80636b2ce7f1146106ef57806370a082311461070f578063715018a61461072f5780637409750d1461074457005b80634f6ccce7116102b15780634f6ccce71461066f578063522fd9681461068f5780636352211e146106a2578063640b49d3146106c257005b806330f72cd4146105e25780633602deb2146106025780633fce584e1461062257806342842e0e1461064f57005b806318160ddd116103515780631ea5f589116103235780631ea5f5891461056c57806323b872dd1461058c5780632eb4a7ab146105ac5780632f745c59146105c257005b806318160ddd14610501578063185b121a146105165780631e39b9941461052c5780631e5c79be1461054c57005b806306fdde031161038a57806306fdde0314610489578063081812fc146104ab578063095ea7b3146104cb5780630eeb5dff146104eb57005b806301ffc9a7146103c157806302290f5d146103f657806303cf8a201461042e578063069070d21461044e57005b366103bf57005b005b3480156103cd57600080fd5b506103e16103dc366004613334565b610b9f565b60405190151581526020015b60405180910390f35b34801561040257600080fd5b50602654610416906001600160a01b031681565b6040516001600160a01b0390911681526020016103ed565b34801561043a57600080fd5b50602254610416906001600160a01b031681565b34801561045a57600080fd5b5061047b6104693660046130da565b601b6020526000908152604090205481565b6040519081526020016103ed565b34801561049557600080fd5b5061049e610bca565b6040516103ed919061361c565b3480156104b757600080fd5b506104166104c636600461331b565b610c5c565b3480156104d757600080fd5b506103bf6104e636600461326a565b610ce9565b3480156104f757600080fd5b5061047b60125481565b34801561050d57600080fd5b5060035461047b565b34801561052257600080fd5b5061047b60135481565b34801561053857600080fd5b506103bf610547366004613300565b610dff565b34801561055857600080fd5b506103bf6105673660046133b0565b610e56565b34801561057857600080fd5b50602554610416906001600160a01b031681565b34801561059857600080fd5b506103bf6105a7366004613128565b610fc8565b3480156105b857600080fd5b5061047b601f5481565b3480156105ce57600080fd5b5061047b6105dd36600461326a565b610ff9565b3480156105ee57600080fd5b506007546103e19062010000900460ff1681565b34801561060e57600080fd5b50602454610416906001600160a01b031681565b34801561062e57600080fd5b5061047b61063d36600461331b565b601e6020526000908152604090205481565b34801561065b57600080fd5b506103bf61066a366004613128565b6110a3565b34801561067b57600080fd5b5061047b61068a36600461331b565b6110be565b6103bf61069d366004613294565b611130565b3480156106ae57600080fd5b506104166106bd36600461331b565b611347565b3480156106ce57600080fd5b5061047b6106dd3660046130da565b60196020526000908152604090205481565b3480156106fb57600080fd5b506103bf61070a366004613300565b6113d3565b34801561071b57600080fd5b5061047b61072a3660046130da565b61142e565b34801561073b57600080fd5b506103bf611472565b34801561075057600080fd5b5061047b60145481565b34801561076657600080fd5b506103bf610775366004613300565b6114a8565b34801561078657600080fd5b506103bf61079536600461336e565b6114f5565b3480156107a657600080fd5b5061047b600b5481565b3480156107bc57600080fd5b50602154610416906001600160a01b031681565b3480156107dc57600080fd5b5061047b600a5481565b3480156107f257600080fd5b506000546001600160a01b0316610416565b34801561081057600080fd5b5061047b60205481565b34801561082657600080fd5b5061047b60285481565b34801561083c57600080fd5b5061049e61152b565b6103bf61085336600461331b565b61153a565b34801561086457600080fd5b5061047b611712565b34801561087957600080fd5b5061047b60115481565b34801561088f57600080fd5b5061047b600f5481565b3480156108a557600080fd5b50602754610416906001600160a01b031681565b3480156108c557600080fd5b5061047b6108d43660046130da565b601c6020526000908152604090205481565b6103bf6108f436600461331b565b611793565b34801561090557600080fd5b5061047b600e5481565b34801561091b57600080fd5b5061047b60155481565b34801561093157600080fd5b50602354610416906001600160a01b031681565b34801561095157600080fd5b506103bf610960366004613240565b611953565b34801561097157600080fd5b506007546103e190610100900460ff1681565b34801561099057600080fd5b506103bf61099f366004613164565b611a18565b3480156109b057600080fd5b506103bf611a50565b3480156109c557600080fd5b506103bf611bac565b3480156109da57600080fd5b5061049e6109e936600461331b565b611c98565b6103bf6109fc3660046133d3565b611ed7565b348015610a0d57600080fd5b506103bf610a1c36600461336e565b61218f565b348015610a2d57600080fd5b506103bf610a3c3660046133b0565b6121c5565b348015610a4d57600080fd5b506103bf610a5c36600461331b565b612302565b348015610a6d57600080fd5b5061047b600d5481565b348015610a8357600080fd5b506007546103e19060ff1681565b348015610a9d57600080fd5b506103bf610aac36600461331b565b612331565b348015610abd57600080fd5b5061047b60105481565b348015610ad357600080fd5b5061047b60085481565b348015610ae957600080fd5b506103e1610af83660046130f5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b3257600080fd5b5061047b60095481565b348015610b4857600080fd5b506103bf610b573660046130da565b612360565b348015610b6857600080fd5b5061047b600c5481565b348015610b7e57600080fd5b5061047b610b8d3660046130da565b601a6020526000908152604090205481565b60006001600160e01b0319821663780e9d6360e01b1480610bc45750610bc4826123f8565b92915050565b606060018054610bd9906138f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610c05906138f2565b8015610c525780601f10610c2757610100808354040283529160200191610c52565b820191906000526020600020905b815481529060010190602001808311610c3557829003601f168201915b5050505050905090565b6000610c6782612448565b610ccd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610cf482611347565b9050806001600160a01b0316836001600160a01b03161415610d625760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cc4565b336001600160a01b0382161480610d7e5750610d7e8133610af8565b610df05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cc4565b610dfa8383612492565b505050565b6000546001600160a01b03163314610e295760405162461bcd60e51b8152600401610cc490613770565b60075460ff61010090910416151581151514610e53576007805461ff001916610100831515021790555b50565b6000546001600160a01b03163314610e805760405162461bcd60e51b8152600401610cc490613770565b60026006541415610ea35760405162461bcd60e51b8152600401610cc4906137f6565b600260065560075460ff16610eca5760405162461bcd60e51b8152600401610cc4906136b8565b606482600f54610eda9190613864565b1115610ef85760405162461bcd60e51b8152600401610cc49061382d565b6001600160a01b03811660009081526019602052604081208054849290610f20908490613864565b9250508190555081600f6000828254610f399190613864565b90915550600090505b82811015610f8b57600e805460009182610f5b83613927565b909155506000818152601e60205260408120559050610f7a8382612500565b50610f8481613927565b9050610f42565b50806001600160a01b03166000805160206139db833981519152610fae60035490565b60405190815260200160405180910390a250506001600655565b610fd2338261251e565b610fee5760405162461bcd60e51b8152600401610cc4906137a5565b610dfa838383612608565b600061100483612769565b82106110665760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cc4565b6001600160a01b0383166000908152601d6020526040902080548390811061109057611090613998565b9060005260206000200154905092915050565b610dfa83838360405180602001604052806000815250611a18565b60006110c960035490565b821061112c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cc4565b5090565b600260065414156111535760405162461bcd60e51b8152600401610cc4906137f6565b6002600655600754610100900460ff166111a75760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b6044820152606401610cc4565b3332146111c65760405162461bcd60e51b8152600401610cc49061362f565b6010546011546111d7906001613864565b11156111f55760405162461bcd60e51b8152600401610cc49061382d565b611272848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506020805460408051601f890184900484028101840190915287815290935061126d92509087908790819084018382808284376000920191909152506127f892505050565b612828565b6112be5760405162461bcd60e51b815260206004820181905260248201527f546869732075736572206973206e6f7420616c6c6f77656420746f206d696e746044820152606401610cc4565b336000908152601a602052604081208054916112d983613927565b909155505060118054600091826112ef83613927565b909155506000818152601e602052604090206001905590506113113382612500565b336000805160206139db83398151915261132a60035490565b60405190815260200160405180910390a250506001600655505050565b6000806003838154811061135d5761135d613998565b6000918252602090912001546001600160a01b0316905080610bc45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cc4565b6000546001600160a01b031633146113fd5760405162461bcd60e51b8152600401610cc490613770565b60075460ff6201000090910416151581151514610e535760078054821515620100000262ff00001990911617905550565b60006001600160a01b0382166114565760405162461bcd60e51b8152600401610cc4906136e4565b506001600160a01b03166000908152601d602052604090205490565b6000546001600160a01b0316331461149c5760405162461bcd60e51b8152600401610cc490613770565b6114a6600061283e565b565b6000546001600160a01b031633146114d25760405162461bcd60e51b8152600401610cc490613770565b60075460ff16151581151514610e53576007805482151560ff1990911617905550565b6000546001600160a01b0316331461151f5760405162461bcd60e51b8152600401610cc490613770565b610dfa60178383612f95565b606060028054610bd9906138f2565b6002600654141561155d5760405162461bcd60e51b8152600401610cc4906137f6565b600260065560075460ff166115845760405162461bcd60e51b8152600401610cc4906136b8565b3332146115a35760405162461bcd60e51b8152600401610cc49061362f565b336000908152601960205260409020546008906115c0908361288e565b111561160e5760405162461bcd60e51b815260206004820152601a60248201527f4d6178207075726368617361626c65206c696d697420697320380000000000006044820152606401610cc4565b6116208161161a611712565b906128a1565b34101561163f5760405162461bcd60e51b8152600401610cc49061372e565b600c5481600d546116509190613864565b111561166e5760405162461bcd60e51b8152600401610cc49061382d565b336000908152601960205260408120805483929061168d908490613864565b90915550600090505b818110156116df57600d8054600091826116af83613927565b909155506000818152601e602052604081205590506116ce3382612500565b506116d881613927565b9050611696565b50336000805160206139db8339815191526116f960035490565b60405190815260200160405180910390a2506001600655565b6000600c54600d54106117605760405162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b6044820152606401610cc4565b600061176b60035490565b905061012d81106117855767011c37937e08000091505090565b66b1a2bc2ec5000091505090565b600260065414156117b65760405162461bcd60e51b8152600401610cc4906137f6565b6002600655600754610100900460ff166117e25760405162461bcd60e51b8152600401610cc4906136b8565b3332146118015760405162461bcd60e51b8152600401610cc49061362f565b336000908152601a602052604090205460089061181e908361288e565b111561186c5760405162461bcd60e51b815260206004820152601a60248201527f4d6178207075726368617361626c65206c696d697420697320380000000000006044820152606401610cc4565b8060155461187a9190613890565b3410156118995760405162461bcd60e51b8152600401610cc49061372e565b601054816011546118aa9190613864565b11156118c85760405162461bcd60e51b8152600401610cc49061382d565b80601160008282546118da9190613864565b9091555050336000908152601a6020526040812080548392906118fe908490613864565b90915550600090505b818110156116df57601280546000918261192083613927565b909155506000818152601e602052604090206001905590506119423382612500565b5061194c81613927565b9050611907565b6001600160a01b0382163314156119ac5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cc4565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a22338361251e565b611a3e5760405162461bcd60e51b8152600401610cc4906137a5565b611a4a848484846128ad565b50505050565b6000546001600160a01b03163314611a7a5760405162461bcd60e51b8152600401610cc490613770565b68013e1432908bf4000060285411611a9157600080fd5b4780611ad55760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b6044820152606401610cc4565b602154611b01906001600160a01b03166064611af284600a613890565b611afc919061387c565b6128e0565b602254611b1e906001600160a01b03166064611af2846014613890565b602354611b3d906001600160a01b03166103e8611af2846101a9613890565b602454611b5a906001600160a01b03166064611af2846014613890565b602554611b78906001600160a01b03166103e8611af2846019613890565b602654611b96906001600160a01b03166103e8611af2846019613890565b602754610e53906001600160a01b0316476128e0565b6000546001600160a01b03163314611bd65760405162461bcd60e51b8152600401610cc490613770565b68013e1432908bf4000060285410611bed57600080fd5b4780611c315760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b6044820152606401610cc4565b8060286000828254611c439190613864565b9091555050602154611c65906001600160a01b03166064611af284600a613890565b602254611c82906001600160a01b03166064611af2846014613890565b602354610e53906001600160a01b0316476128e0565b6060611ca382612448565b611d075760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610cc4565b6000828152601e6020526040902054611df557600060168054611d29906138f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611d55906138f2565b8015611da25780601f10611d7757610100808354040283529160200191611da2565b820191906000526020600020905b815481529060010190602001808311611d8557829003601f168201915b50505050509050805160001415611dd957604051602001611dc290613575565b604051602081830303815290604052915050919050565b6016611de484612983565b604051602001611dc292919061354a565b6000828152601e602052604090205460011415611ed257600060178054611e1b906138f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611e47906138f2565b8015611e945780601f10611e6957610100808354040283529160200191611e94565b820191906000526020600020905b815481529060010190602001808311611e7757829003601f168201915b50505050509050805160001415611eb457604051602001611dc290613575565b6017611ebf84612983565b604051602001611dc2929190613501565b505b919050565b60026006541415611efa5760405162461bcd60e51b8152600401610cc4906137f6565b600260065560075462010000900460ff16611f4f5760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b6044820152606401610cc4565b333214611f6e5760405162461bcd60e51b8152600401610cc49061362f565b336000908152601b6020526040902054600390611f8b908561288e565b1115611fff5760405162461bcd60e51b815260206004820152603c60248201527f4d6178207075726368617361626c65206c696d697420697320332c20706c656160448201527f7365207761697420666f7220746865207075626c69632073616c652e000000006064820152608401610cc4565b61200b8361161a611712565b34101561202a5760405162461bcd60e51b8152600401610cc49061372e565b600c5483600d5461203b9190613864565b11156120595760405162461bcd60e51b8152600401610cc49061382d565b61209d82828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601f54915061126d905033612a81565b6120e95760405162461bcd60e51b815260206004820181905260248201527f546869732075736572206973206e6f7420616c6c6f77656420746f206d696e746044820152606401610cc4565b336000908152601b602052604081208054859290612108908490613864565b90915550600090505b8381101561215a57600d80546000918261212a83613927565b909155506000818152601e602052604081205590506121493382612500565b5061215381613927565b9050612111565b50336000805160206139db83398151915261217460035490565b60405190815260200160405180910390a25050600160065550565b6000546001600160a01b031633146121b95760405162461bcd60e51b8152600401610cc490613770565b610dfa60168383612f95565b6000546001600160a01b031633146121ef5760405162461bcd60e51b8152600401610cc490613770565b600260065414156122125760405162461bcd60e51b8152600401610cc4906137f6565b6002600655600754610100900460ff1661223e5760405162461bcd60e51b8152600401610cc4906136b8565b60648260145461224e9190613864565b111561226c5760405162461bcd60e51b8152600401610cc49061382d565b6001600160a01b0381166000908152601a602052604081208054849290612294908490613864565b9250508190555081601460008282546122ad9190613864565b90915550600090505b82811015610f8b5760138054600091826122cf83613927565b909155506000818152601e602052604090206001905590506122f18382612500565b506122fb81613927565b90506122b6565b6000546001600160a01b0316331461232c5760405162461bcd60e51b8152600401610cc490613770565b601f55565b6000546001600160a01b0316331461235b5760405162461bcd60e51b8152600401610cc490613770565b602055565b6000546001600160a01b0316331461238a5760405162461bcd60e51b8152600401610cc490613770565b6001600160a01b0381166123ef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cc4565b610e538161283e565b60006001600160e01b031982166380ac58cd60e01b148061242957506001600160e01b03198216635b5e139f60e01b145b80610bc457506301ffc9a760e01b6001600160e01b0319831614610bc4565b60035460009082108015610bc4575060006001600160a01b03166003838154811061247557612475613998565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906124c782611347565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61251a828260405180602001604052806000815250612aa8565b5050565b600061252982612448565b61258a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cc4565b600061259583611347565b9050806001600160a01b0316846001600160a01b031614806125d05750836001600160a01b03166125c584610c5c565b6001600160a01b0316145b8061260057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661261b82611347565b6001600160a01b0316146126835760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cc4565b6001600160a01b0382166126e55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cc4565b6126f0838383612adb565b6126fb600082612492565b816003828154811061270f5761270f613998565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006001600160a01b0382166127915760405162461bcd60e51b8152600401610cc4906136e4565b600354600090815b818110156127ef57600381815481106127b4576127b4613998565b6000918252602090912001546001600160a01b03868116911614156127df576127dc83613927565b92505b6127e881613927565b9050612799565b50909392505050565b60008160405160200161280b91906134e5565b604051602081830303815290604052805190602001209050919050565b6000826128358584612ca8565b14949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061289a8284613864565b9392505050565b600061289a8284613890565b6128b8848484612608565b6128c484848484612d54565b611a4a5760405162461bcd60e51b8152600401610cc490613666565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461292d576040519150601f19603f3d011682016040523d82523d6000602084013e612932565b606091505b5050905080610dfa5760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f20776964746864726177204574686572000000000000006044820152606401610cc4565b6060816129a75750506040805180820190915260018152600360fc1b602082015290565b8160005b81156129d157806129bb81613927565b91506129ca9050600a8361387c565b91506129ab565b60008167ffffffffffffffff8111156129ec576129ec6139ae565b6040519080825280601f01601f191660200182016040528015612a16576020820181803683370190505b5090505b841561260057612a2b6001836138af565b9150612a38600a86613942565b612a43906030613864565b60f81b818381518110612a5857612a58613998565b60200101906001600160f81b031916908160001a905350612a7a600a8661387c565b9450612a1a565b6040516bffffffffffffffffffffffff19606083901b16602082015260009060340161280b565b612ab28383612e61565b612abf6000848484612d54565b610dfa5760405162461bcd60e51b8152600401610cc490613666565b60006001600160a01b038416151580612b055750806001600160a01b0316836001600160a01b0316145b15612c42576001600160a01b0384166000908152601d6020526040812054905b81811015612c3f576001600160a01b0386166000908152601d60205260409020805485919083908110612b5a57612b5a613998565b90600052602060002001541415612c2f576001600160a01b0386166000908152601d60205260409020612b8e6001846138af565b81548110612b9e57612b9e613998565b9060005260206000200154601d6000886001600160a01b03166001600160a01b031681526020019081526020016000208281548110612bdf57612bdf613998565b60009182526020808320909101929092556001600160a01b0388168152601d90915260409020805480612c1457612c14613982565b60019003818190600052602060002001600090559055612c3f565b612c3881613927565b9050612b25565b50505b806001600160a01b0316846001600160a01b03161480612c745750806001600160a01b0316836001600160a01b031614155b15611a4a57506001600160a01b03919091166000908152601d60209081526040822080546001810182559083529120015550565b600081815b8451811015612d4c576000858281518110612cca57612cca613998565b60200260200101519050808311612d0c576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612d39565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612d4481613927565b915050612cad565b509392505050565b60006001600160a01b0384163b15612e5657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d989033908990889088906004016135df565b602060405180830381600087803b158015612db257600080fd5b505af1925050508015612de2575060408051601f3d908101601f19168201909252612ddf91810190613351565b60015b612e3c573d808015612e10576040519150601f19603f3d011682016040523d82523d6000602084013e612e15565b606091505b508051612e345760405162461bcd60e51b8152600401610cc490613666565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612600565b506001949350505050565b6001600160a01b038216612eb75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cc4565b612ec081612448565b15612f0d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cc4565b612f1960008383612adb565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612fa1906138f2565b90600052602060002090601f016020900481019282612fc35760008555613009565b82601f10612fdc5782800160ff19823516178555613009565b82800160010185558215613009579182015b82811115613009578235825591602001919060010190612fee565b5061112c9291505b8082111561112c5760008155600101613011565b80356001600160a01b0381168114611ed257600080fd5b60008083601f84011261304e57600080fd5b50813567ffffffffffffffff81111561306657600080fd5b6020830191508360208260051b850101111561308157600080fd5b9250929050565b80358015158114611ed257600080fd5b60008083601f8401126130aa57600080fd5b50813567ffffffffffffffff8111156130c257600080fd5b60208301915083602082850101111561308157600080fd5b6000602082840312156130ec57600080fd5b61289a82613025565b6000806040838503121561310857600080fd5b61311183613025565b915061311f60208401613025565b90509250929050565b60008060006060848603121561313d57600080fd5b61314684613025565b925061315460208501613025565b9150604084013590509250925092565b6000806000806080858703121561317a57600080fd5b61318385613025565b935061319160208601613025565b925060408501359150606085013567ffffffffffffffff808211156131b557600080fd5b818701915087601f8301126131c957600080fd5b8135818111156131db576131db6139ae565b604051601f8201601f19908116603f01168101908382118183101715613203576132036139ae565b816040528281528a602084870101111561321c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561325357600080fd5b61325c83613025565b915061311f60208401613088565b6000806040838503121561327d57600080fd5b61328683613025565b946020939093013593505050565b600080600080604085870312156132aa57600080fd5b843567ffffffffffffffff808211156132c257600080fd5b6132ce8883890161303c565b909650945060208701359150808211156132e757600080fd5b506132f487828801613098565b95989497509550505050565b60006020828403121561331257600080fd5b61289a82613088565b60006020828403121561332d57600080fd5b5035919050565b60006020828403121561334657600080fd5b813561289a816139c4565b60006020828403121561336357600080fd5b815161289a816139c4565b6000806020838503121561338157600080fd5b823567ffffffffffffffff81111561339857600080fd5b6133a485828601613098565b90969095509350505050565b600080604083850312156133c357600080fd5b8235915061311f60208401613025565b6000806000604084860312156133e857600080fd5b83359250602084013567ffffffffffffffff81111561340657600080fd5b6134128682870161303c565b9497909650939450505050565b600081518084526134378160208601602086016138c6565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061346557607f831692505b602080841082141561348757634e487b7160e01b600052602260045260246000fd5b81801561349b57600181146134ac576134d9565b60ff198616895284890196506134d9565b60008881526020902060005b868110156134d15781548b8201529085019083016134b8565b505084890196505b50505050505092915050565b600082516134f78184602087016138c6565b9190910192915050565b600061350d828561344b565b65425241564f5f60d01b8152835161352c8160068401602088016138c6565b64173539b7b760d91b60069290910191820152600b01949350505050565b6000613556828561344b565b65414c5048415f60d01b8152835161352c8160068401602088016138c6565b7f68747470733a2f2f646f67666163652e6d7970696e6174612e636c6f75642f6981527f7066732f516d53574b536b6e653246705a4c6b4554727179524c35694d354578602082015271667543547063703746695a5136464372475360701b604082015260520190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136129083018461341f565b9695505050505050565b60208152600061289a602083018461341f565b60208082526017908201527f496e746572616374696f6e206e6f7420616c6c6f776564000000000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526012908201527153616c65206973206e6f742061637469766560701b604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526022908201527f45746865722076616c75652073656e74206973206e6f742073756666696369656040820152611b9d60f21b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526019908201527f4d696e742f6f72646572206578636565647320737570706c7900000000000000604082015260600190565b6000821982111561387757613877613956565b500190565b60008261388b5761388b61396c565b500490565b60008160001904831182151516156138aa576138aa613956565b500290565b6000828210156138c1576138c1613956565b500390565b60005b838110156138e15781810151838201526020016138c9565b83811115611a4a5750506000910152565b600181811c9082168061390657607f821691505b60208210811415611ed057634e487b7160e01b600052602260045260246000fd5b600060001982141561393b5761393b613956565b5060010190565b6000826139515761395161396c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610e5357600080fdfebe911fb2f9c16db8da0a4439c3aa4d120ad5eb58246a912047cd8a37b25e4d42a2646970667358221220c8fbb6bea85c39b2bf97d752749286f1cbece0861291938f7e83fc69b07568aa64736f6c63430008070033

Deployed Bytecode

0x6080604052600436106103b85760003560e01c80638da5cb5b116101f0578063c2fddf741161010c578063df3ad133116100a5578063e985e9c511610077578063e985e9c514610add578063eff21f2314610b26578063f2fde38b14610b3c578063f66b135b14610b5c578063f72a56f514610b7257005b8063df3ad13314610a77578063e3d538d914610a91578063e603375414610ab1578063e831574214610ac757005b8063d2cf2cc2116100de578063d2cf2cc214610a01578063d35608a414610a21578063dab5f34014610a41578063dd1c535414610a6157005b8063c2fddf74146109a4578063c57f0074146109b9578063c87b56dd146109ce578063d2cab056146109ee57005b80639c4575d611610189578063a006fe021161015b578063a006fe021461090f578063a044c98714610925578063a22cb46514610945578063aa667af614610965578063b88d4fde1461098457005b80639c4575d6146108995780639dd1cfb8146108b95780639e0d28a7146108e65780639fcf8d8e146108f957005b8063978e2d3a116101c2578063978e2d3a1461084557806398d5fdca146108585780639abf27231461086d5780639c09853b1461088357005b80638da5cb5b146107e65780638f6dda9d14610804578063906280c31461081a57806395d89b411461083057005b806330f72cd4116102df5780636b2ce7f11161027857806378eb79b61161024a57806378eb79b61461075a5780637a619aec1461077a5780637de2d5d91461079a5780637e44755b146107b05780638be7adc3146107d057005b80636b2ce7f1146106ef57806370a082311461070f578063715018a61461072f5780637409750d1461074457005b80634f6ccce7116102b15780634f6ccce71461066f578063522fd9681461068f5780636352211e146106a2578063640b49d3146106c257005b806330f72cd4146105e25780633602deb2146106025780633fce584e1461062257806342842e0e1461064f57005b806318160ddd116103515780631ea5f589116103235780631ea5f5891461056c57806323b872dd1461058c5780632eb4a7ab146105ac5780632f745c59146105c257005b806318160ddd14610501578063185b121a146105165780631e39b9941461052c5780631e5c79be1461054c57005b806306fdde031161038a57806306fdde0314610489578063081812fc146104ab578063095ea7b3146104cb5780630eeb5dff146104eb57005b806301ffc9a7146103c157806302290f5d146103f657806303cf8a201461042e578063069070d21461044e57005b366103bf57005b005b3480156103cd57600080fd5b506103e16103dc366004613334565b610b9f565b60405190151581526020015b60405180910390f35b34801561040257600080fd5b50602654610416906001600160a01b031681565b6040516001600160a01b0390911681526020016103ed565b34801561043a57600080fd5b50602254610416906001600160a01b031681565b34801561045a57600080fd5b5061047b6104693660046130da565b601b6020526000908152604090205481565b6040519081526020016103ed565b34801561049557600080fd5b5061049e610bca565b6040516103ed919061361c565b3480156104b757600080fd5b506104166104c636600461331b565b610c5c565b3480156104d757600080fd5b506103bf6104e636600461326a565b610ce9565b3480156104f757600080fd5b5061047b60125481565b34801561050d57600080fd5b5060035461047b565b34801561052257600080fd5b5061047b60135481565b34801561053857600080fd5b506103bf610547366004613300565b610dff565b34801561055857600080fd5b506103bf6105673660046133b0565b610e56565b34801561057857600080fd5b50602554610416906001600160a01b031681565b34801561059857600080fd5b506103bf6105a7366004613128565b610fc8565b3480156105b857600080fd5b5061047b601f5481565b3480156105ce57600080fd5b5061047b6105dd36600461326a565b610ff9565b3480156105ee57600080fd5b506007546103e19062010000900460ff1681565b34801561060e57600080fd5b50602454610416906001600160a01b031681565b34801561062e57600080fd5b5061047b61063d36600461331b565b601e6020526000908152604090205481565b34801561065b57600080fd5b506103bf61066a366004613128565b6110a3565b34801561067b57600080fd5b5061047b61068a36600461331b565b6110be565b6103bf61069d366004613294565b611130565b3480156106ae57600080fd5b506104166106bd36600461331b565b611347565b3480156106ce57600080fd5b5061047b6106dd3660046130da565b60196020526000908152604090205481565b3480156106fb57600080fd5b506103bf61070a366004613300565b6113d3565b34801561071b57600080fd5b5061047b61072a3660046130da565b61142e565b34801561073b57600080fd5b506103bf611472565b34801561075057600080fd5b5061047b60145481565b34801561076657600080fd5b506103bf610775366004613300565b6114a8565b34801561078657600080fd5b506103bf61079536600461336e565b6114f5565b3480156107a657600080fd5b5061047b600b5481565b3480156107bc57600080fd5b50602154610416906001600160a01b031681565b3480156107dc57600080fd5b5061047b600a5481565b3480156107f257600080fd5b506000546001600160a01b0316610416565b34801561081057600080fd5b5061047b60205481565b34801561082657600080fd5b5061047b60285481565b34801561083c57600080fd5b5061049e61152b565b6103bf61085336600461331b565b61153a565b34801561086457600080fd5b5061047b611712565b34801561087957600080fd5b5061047b60115481565b34801561088f57600080fd5b5061047b600f5481565b3480156108a557600080fd5b50602754610416906001600160a01b031681565b3480156108c557600080fd5b5061047b6108d43660046130da565b601c6020526000908152604090205481565b6103bf6108f436600461331b565b611793565b34801561090557600080fd5b5061047b600e5481565b34801561091b57600080fd5b5061047b60155481565b34801561093157600080fd5b50602354610416906001600160a01b031681565b34801561095157600080fd5b506103bf610960366004613240565b611953565b34801561097157600080fd5b506007546103e190610100900460ff1681565b34801561099057600080fd5b506103bf61099f366004613164565b611a18565b3480156109b057600080fd5b506103bf611a50565b3480156109c557600080fd5b506103bf611bac565b3480156109da57600080fd5b5061049e6109e936600461331b565b611c98565b6103bf6109fc3660046133d3565b611ed7565b348015610a0d57600080fd5b506103bf610a1c36600461336e565b61218f565b348015610a2d57600080fd5b506103bf610a3c3660046133b0565b6121c5565b348015610a4d57600080fd5b506103bf610a5c36600461331b565b612302565b348015610a6d57600080fd5b5061047b600d5481565b348015610a8357600080fd5b506007546103e19060ff1681565b348015610a9d57600080fd5b506103bf610aac36600461331b565b612331565b348015610abd57600080fd5b5061047b60105481565b348015610ad357600080fd5b5061047b60085481565b348015610ae957600080fd5b506103e1610af83660046130f5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b3257600080fd5b5061047b60095481565b348015610b4857600080fd5b506103bf610b573660046130da565b612360565b348015610b6857600080fd5b5061047b600c5481565b348015610b7e57600080fd5b5061047b610b8d3660046130da565b601a6020526000908152604090205481565b60006001600160e01b0319821663780e9d6360e01b1480610bc45750610bc4826123f8565b92915050565b606060018054610bd9906138f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610c05906138f2565b8015610c525780601f10610c2757610100808354040283529160200191610c52565b820191906000526020600020905b815481529060010190602001808311610c3557829003601f168201915b5050505050905090565b6000610c6782612448565b610ccd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610cf482611347565b9050806001600160a01b0316836001600160a01b03161415610d625760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cc4565b336001600160a01b0382161480610d7e5750610d7e8133610af8565b610df05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cc4565b610dfa8383612492565b505050565b6000546001600160a01b03163314610e295760405162461bcd60e51b8152600401610cc490613770565b60075460ff61010090910416151581151514610e53576007805461ff001916610100831515021790555b50565b6000546001600160a01b03163314610e805760405162461bcd60e51b8152600401610cc490613770565b60026006541415610ea35760405162461bcd60e51b8152600401610cc4906137f6565b600260065560075460ff16610eca5760405162461bcd60e51b8152600401610cc4906136b8565b606482600f54610eda9190613864565b1115610ef85760405162461bcd60e51b8152600401610cc49061382d565b6001600160a01b03811660009081526019602052604081208054849290610f20908490613864565b9250508190555081600f6000828254610f399190613864565b90915550600090505b82811015610f8b57600e805460009182610f5b83613927565b909155506000818152601e60205260408120559050610f7a8382612500565b50610f8481613927565b9050610f42565b50806001600160a01b03166000805160206139db833981519152610fae60035490565b60405190815260200160405180910390a250506001600655565b610fd2338261251e565b610fee5760405162461bcd60e51b8152600401610cc4906137a5565b610dfa838383612608565b600061100483612769565b82106110665760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cc4565b6001600160a01b0383166000908152601d6020526040902080548390811061109057611090613998565b9060005260206000200154905092915050565b610dfa83838360405180602001604052806000815250611a18565b60006110c960035490565b821061112c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cc4565b5090565b600260065414156111535760405162461bcd60e51b8152600401610cc4906137f6565b6002600655600754610100900460ff166111a75760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b6044820152606401610cc4565b3332146111c65760405162461bcd60e51b8152600401610cc49061362f565b6010546011546111d7906001613864565b11156111f55760405162461bcd60e51b8152600401610cc49061382d565b611272848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506020805460408051601f890184900484028101840190915287815290935061126d92509087908790819084018382808284376000920191909152506127f892505050565b612828565b6112be5760405162461bcd60e51b815260206004820181905260248201527f546869732075736572206973206e6f7420616c6c6f77656420746f206d696e746044820152606401610cc4565b336000908152601a602052604081208054916112d983613927565b909155505060118054600091826112ef83613927565b909155506000818152601e602052604090206001905590506113113382612500565b336000805160206139db83398151915261132a60035490565b60405190815260200160405180910390a250506001600655505050565b6000806003838154811061135d5761135d613998565b6000918252602090912001546001600160a01b0316905080610bc45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cc4565b6000546001600160a01b031633146113fd5760405162461bcd60e51b8152600401610cc490613770565b60075460ff6201000090910416151581151514610e535760078054821515620100000262ff00001990911617905550565b60006001600160a01b0382166114565760405162461bcd60e51b8152600401610cc4906136e4565b506001600160a01b03166000908152601d602052604090205490565b6000546001600160a01b0316331461149c5760405162461bcd60e51b8152600401610cc490613770565b6114a6600061283e565b565b6000546001600160a01b031633146114d25760405162461bcd60e51b8152600401610cc490613770565b60075460ff16151581151514610e53576007805482151560ff1990911617905550565b6000546001600160a01b0316331461151f5760405162461bcd60e51b8152600401610cc490613770565b610dfa60178383612f95565b606060028054610bd9906138f2565b6002600654141561155d5760405162461bcd60e51b8152600401610cc4906137f6565b600260065560075460ff166115845760405162461bcd60e51b8152600401610cc4906136b8565b3332146115a35760405162461bcd60e51b8152600401610cc49061362f565b336000908152601960205260409020546008906115c0908361288e565b111561160e5760405162461bcd60e51b815260206004820152601a60248201527f4d6178207075726368617361626c65206c696d697420697320380000000000006044820152606401610cc4565b6116208161161a611712565b906128a1565b34101561163f5760405162461bcd60e51b8152600401610cc49061372e565b600c5481600d546116509190613864565b111561166e5760405162461bcd60e51b8152600401610cc49061382d565b336000908152601960205260408120805483929061168d908490613864565b90915550600090505b818110156116df57600d8054600091826116af83613927565b909155506000818152601e602052604081205590506116ce3382612500565b506116d881613927565b9050611696565b50336000805160206139db8339815191526116f960035490565b60405190815260200160405180910390a2506001600655565b6000600c54600d54106117605760405162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b6044820152606401610cc4565b600061176b60035490565b905061012d81106117855767011c37937e08000091505090565b66b1a2bc2ec5000091505090565b600260065414156117b65760405162461bcd60e51b8152600401610cc4906137f6565b6002600655600754610100900460ff166117e25760405162461bcd60e51b8152600401610cc4906136b8565b3332146118015760405162461bcd60e51b8152600401610cc49061362f565b336000908152601a602052604090205460089061181e908361288e565b111561186c5760405162461bcd60e51b815260206004820152601a60248201527f4d6178207075726368617361626c65206c696d697420697320380000000000006044820152606401610cc4565b8060155461187a9190613890565b3410156118995760405162461bcd60e51b8152600401610cc49061372e565b601054816011546118aa9190613864565b11156118c85760405162461bcd60e51b8152600401610cc49061382d565b80601160008282546118da9190613864565b9091555050336000908152601a6020526040812080548392906118fe908490613864565b90915550600090505b818110156116df57601280546000918261192083613927565b909155506000818152601e602052604090206001905590506119423382612500565b5061194c81613927565b9050611907565b6001600160a01b0382163314156119ac5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cc4565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a22338361251e565b611a3e5760405162461bcd60e51b8152600401610cc4906137a5565b611a4a848484846128ad565b50505050565b6000546001600160a01b03163314611a7a5760405162461bcd60e51b8152600401610cc490613770565b68013e1432908bf4000060285411611a9157600080fd5b4780611ad55760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b6044820152606401610cc4565b602154611b01906001600160a01b03166064611af284600a613890565b611afc919061387c565b6128e0565b602254611b1e906001600160a01b03166064611af2846014613890565b602354611b3d906001600160a01b03166103e8611af2846101a9613890565b602454611b5a906001600160a01b03166064611af2846014613890565b602554611b78906001600160a01b03166103e8611af2846019613890565b602654611b96906001600160a01b03166103e8611af2846019613890565b602754610e53906001600160a01b0316476128e0565b6000546001600160a01b03163314611bd65760405162461bcd60e51b8152600401610cc490613770565b68013e1432908bf4000060285410611bed57600080fd5b4780611c315760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b6044820152606401610cc4565b8060286000828254611c439190613864565b9091555050602154611c65906001600160a01b03166064611af284600a613890565b602254611c82906001600160a01b03166064611af2846014613890565b602354610e53906001600160a01b0316476128e0565b6060611ca382612448565b611d075760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610cc4565b6000828152601e6020526040902054611df557600060168054611d29906138f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611d55906138f2565b8015611da25780601f10611d7757610100808354040283529160200191611da2565b820191906000526020600020905b815481529060010190602001808311611d8557829003601f168201915b50505050509050805160001415611dd957604051602001611dc290613575565b604051602081830303815290604052915050919050565b6016611de484612983565b604051602001611dc292919061354a565b6000828152601e602052604090205460011415611ed257600060178054611e1b906138f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611e47906138f2565b8015611e945780601f10611e6957610100808354040283529160200191611e94565b820191906000526020600020905b815481529060010190602001808311611e7757829003601f168201915b50505050509050805160001415611eb457604051602001611dc290613575565b6017611ebf84612983565b604051602001611dc2929190613501565b505b919050565b60026006541415611efa5760405162461bcd60e51b8152600401610cc4906137f6565b600260065560075462010000900460ff16611f4f5760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b6044820152606401610cc4565b333214611f6e5760405162461bcd60e51b8152600401610cc49061362f565b336000908152601b6020526040902054600390611f8b908561288e565b1115611fff5760405162461bcd60e51b815260206004820152603c60248201527f4d6178207075726368617361626c65206c696d697420697320332c20706c656160448201527f7365207761697420666f7220746865207075626c69632073616c652e000000006064820152608401610cc4565b61200b8361161a611712565b34101561202a5760405162461bcd60e51b8152600401610cc49061372e565b600c5483600d5461203b9190613864565b11156120595760405162461bcd60e51b8152600401610cc49061382d565b61209d82828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601f54915061126d905033612a81565b6120e95760405162461bcd60e51b815260206004820181905260248201527f546869732075736572206973206e6f7420616c6c6f77656420746f206d696e746044820152606401610cc4565b336000908152601b602052604081208054859290612108908490613864565b90915550600090505b8381101561215a57600d80546000918261212a83613927565b909155506000818152601e602052604081205590506121493382612500565b5061215381613927565b9050612111565b50336000805160206139db83398151915261217460035490565b60405190815260200160405180910390a25050600160065550565b6000546001600160a01b031633146121b95760405162461bcd60e51b8152600401610cc490613770565b610dfa60168383612f95565b6000546001600160a01b031633146121ef5760405162461bcd60e51b8152600401610cc490613770565b600260065414156122125760405162461bcd60e51b8152600401610cc4906137f6565b6002600655600754610100900460ff1661223e5760405162461bcd60e51b8152600401610cc4906136b8565b60648260145461224e9190613864565b111561226c5760405162461bcd60e51b8152600401610cc49061382d565b6001600160a01b0381166000908152601a602052604081208054849290612294908490613864565b9250508190555081601460008282546122ad9190613864565b90915550600090505b82811015610f8b5760138054600091826122cf83613927565b909155506000818152601e602052604090206001905590506122f18382612500565b506122fb81613927565b90506122b6565b6000546001600160a01b0316331461232c5760405162461bcd60e51b8152600401610cc490613770565b601f55565b6000546001600160a01b0316331461235b5760405162461bcd60e51b8152600401610cc490613770565b602055565b6000546001600160a01b0316331461238a5760405162461bcd60e51b8152600401610cc490613770565b6001600160a01b0381166123ef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cc4565b610e538161283e565b60006001600160e01b031982166380ac58cd60e01b148061242957506001600160e01b03198216635b5e139f60e01b145b80610bc457506301ffc9a760e01b6001600160e01b0319831614610bc4565b60035460009082108015610bc4575060006001600160a01b03166003838154811061247557612475613998565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906124c782611347565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61251a828260405180602001604052806000815250612aa8565b5050565b600061252982612448565b61258a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cc4565b600061259583611347565b9050806001600160a01b0316846001600160a01b031614806125d05750836001600160a01b03166125c584610c5c565b6001600160a01b0316145b8061260057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661261b82611347565b6001600160a01b0316146126835760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cc4565b6001600160a01b0382166126e55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cc4565b6126f0838383612adb565b6126fb600082612492565b816003828154811061270f5761270f613998565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006001600160a01b0382166127915760405162461bcd60e51b8152600401610cc4906136e4565b600354600090815b818110156127ef57600381815481106127b4576127b4613998565b6000918252602090912001546001600160a01b03868116911614156127df576127dc83613927565b92505b6127e881613927565b9050612799565b50909392505050565b60008160405160200161280b91906134e5565b604051602081830303815290604052805190602001209050919050565b6000826128358584612ca8565b14949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061289a8284613864565b9392505050565b600061289a8284613890565b6128b8848484612608565b6128c484848484612d54565b611a4a5760405162461bcd60e51b8152600401610cc490613666565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461292d576040519150601f19603f3d011682016040523d82523d6000602084013e612932565b606091505b5050905080610dfa5760405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f20776964746864726177204574686572000000000000006044820152606401610cc4565b6060816129a75750506040805180820190915260018152600360fc1b602082015290565b8160005b81156129d157806129bb81613927565b91506129ca9050600a8361387c565b91506129ab565b60008167ffffffffffffffff8111156129ec576129ec6139ae565b6040519080825280601f01601f191660200182016040528015612a16576020820181803683370190505b5090505b841561260057612a2b6001836138af565b9150612a38600a86613942565b612a43906030613864565b60f81b818381518110612a5857612a58613998565b60200101906001600160f81b031916908160001a905350612a7a600a8661387c565b9450612a1a565b6040516bffffffffffffffffffffffff19606083901b16602082015260009060340161280b565b612ab28383612e61565b612abf6000848484612d54565b610dfa5760405162461bcd60e51b8152600401610cc490613666565b60006001600160a01b038416151580612b055750806001600160a01b0316836001600160a01b0316145b15612c42576001600160a01b0384166000908152601d6020526040812054905b81811015612c3f576001600160a01b0386166000908152601d60205260409020805485919083908110612b5a57612b5a613998565b90600052602060002001541415612c2f576001600160a01b0386166000908152601d60205260409020612b8e6001846138af565b81548110612b9e57612b9e613998565b9060005260206000200154601d6000886001600160a01b03166001600160a01b031681526020019081526020016000208281548110612bdf57612bdf613998565b60009182526020808320909101929092556001600160a01b0388168152601d90915260409020805480612c1457612c14613982565b60019003818190600052602060002001600090559055612c3f565b612c3881613927565b9050612b25565b50505b806001600160a01b0316846001600160a01b03161480612c745750806001600160a01b0316836001600160a01b031614155b15611a4a57506001600160a01b03919091166000908152601d60209081526040822080546001810182559083529120015550565b600081815b8451811015612d4c576000858281518110612cca57612cca613998565b60200260200101519050808311612d0c576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612d39565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612d4481613927565b915050612cad565b509392505050565b60006001600160a01b0384163b15612e5657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d989033908990889088906004016135df565b602060405180830381600087803b158015612db257600080fd5b505af1925050508015612de2575060408051601f3d908101601f19168201909252612ddf91810190613351565b60015b612e3c573d808015612e10576040519150601f19603f3d011682016040523d82523d6000602084013e612e15565b606091505b508051612e345760405162461bcd60e51b8152600401610cc490613666565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612600565b506001949350505050565b6001600160a01b038216612eb75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cc4565b612ec081612448565b15612f0d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cc4565b612f1960008383612adb565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612fa1906138f2565b90600052602060002090601f016020900481019282612fc35760008555613009565b82601f10612fdc5782800160ff19823516178555613009565b82800160010185558215613009579182015b82811115613009578235825591602001919060010190612fee565b5061112c9291505b8082111561112c5760008155600101613011565b80356001600160a01b0381168114611ed257600080fd5b60008083601f84011261304e57600080fd5b50813567ffffffffffffffff81111561306657600080fd5b6020830191508360208260051b850101111561308157600080fd5b9250929050565b80358015158114611ed257600080fd5b60008083601f8401126130aa57600080fd5b50813567ffffffffffffffff8111156130c257600080fd5b60208301915083602082850101111561308157600080fd5b6000602082840312156130ec57600080fd5b61289a82613025565b6000806040838503121561310857600080fd5b61311183613025565b915061311f60208401613025565b90509250929050565b60008060006060848603121561313d57600080fd5b61314684613025565b925061315460208501613025565b9150604084013590509250925092565b6000806000806080858703121561317a57600080fd5b61318385613025565b935061319160208601613025565b925060408501359150606085013567ffffffffffffffff808211156131b557600080fd5b818701915087601f8301126131c957600080fd5b8135818111156131db576131db6139ae565b604051601f8201601f19908116603f01168101908382118183101715613203576132036139ae565b816040528281528a602084870101111561321c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561325357600080fd5b61325c83613025565b915061311f60208401613088565b6000806040838503121561327d57600080fd5b61328683613025565b946020939093013593505050565b600080600080604085870312156132aa57600080fd5b843567ffffffffffffffff808211156132c257600080fd5b6132ce8883890161303c565b909650945060208701359150808211156132e757600080fd5b506132f487828801613098565b95989497509550505050565b60006020828403121561331257600080fd5b61289a82613088565b60006020828403121561332d57600080fd5b5035919050565b60006020828403121561334657600080fd5b813561289a816139c4565b60006020828403121561336357600080fd5b815161289a816139c4565b6000806020838503121561338157600080fd5b823567ffffffffffffffff81111561339857600080fd5b6133a485828601613098565b90969095509350505050565b600080604083850312156133c357600080fd5b8235915061311f60208401613025565b6000806000604084860312156133e857600080fd5b83359250602084013567ffffffffffffffff81111561340657600080fd5b6134128682870161303c565b9497909650939450505050565b600081518084526134378160208601602086016138c6565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061346557607f831692505b602080841082141561348757634e487b7160e01b600052602260045260246000fd5b81801561349b57600181146134ac576134d9565b60ff198616895284890196506134d9565b60008881526020902060005b868110156134d15781548b8201529085019083016134b8565b505084890196505b50505050505092915050565b600082516134f78184602087016138c6565b9190910192915050565b600061350d828561344b565b65425241564f5f60d01b8152835161352c8160068401602088016138c6565b64173539b7b760d91b60069290910191820152600b01949350505050565b6000613556828561344b565b65414c5048415f60d01b8152835161352c8160068401602088016138c6565b7f68747470733a2f2f646f67666163652e6d7970696e6174612e636c6f75642f6981527f7066732f516d53574b536b6e653246705a4c6b4554727179524c35694d354578602082015271667543547063703746695a5136464372475360701b604082015260520190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136129083018461341f565b9695505050505050565b60208152600061289a602083018461341f565b60208082526017908201527f496e746572616374696f6e206e6f7420616c6c6f776564000000000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526012908201527153616c65206973206e6f742061637469766560701b604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526022908201527f45746865722076616c75652073656e74206973206e6f742073756666696369656040820152611b9d60f21b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526019908201527f4d696e742f6f72646572206578636565647320737570706c7900000000000000604082015260600190565b6000821982111561387757613877613956565b500190565b60008261388b5761388b61396c565b500490565b60008160001904831182151516156138aa576138aa613956565b500290565b6000828210156138c1576138c1613956565b500390565b60005b838110156138e15781810151838201526020016138c9565b83811115611a4a5750506000910152565b600181811c9082168061390657607f821691505b60208210811415611ed057634e487b7160e01b600052602260045260246000fd5b600060001982141561393b5761393b613956565b5060010190565b6000826139515761395161396c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610e5357600080fdfebe911fb2f9c16db8da0a4439c3aa4d120ad5eb58246a912047cd8a37b25e4d42a2646970667358221220c8fbb6bea85c39b2bf97d752749286f1cbece0861291938f7e83fc69b07568aa64736f6c63430008070033

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.