ETH Price: $3,930.10 (+1.47%)

Contract

0xcbEC3A1d9d0e2d94e806a3455c13855f8A9C909b
 

Overview

ETH Balance

0.001 ETH

Eth Value

$3.93 (@ $3,930.10/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...195548992024-03-31 15:55:47259 days ago1711900547IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0005942124.44534964
Set Approval For...161498292022-12-09 21:28:23737 days ago1670621303IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0011165124.20052429
Set Approval For...161497442022-12-09 21:11:23737 days ago1670620283IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0016664636.12069214
Set Approval For...161497172022-12-09 21:05:59737 days ago1670619959IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0015904934.47395301
Set Approval For...161496222022-12-09 20:46:59737 days ago1670618819IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0020817945.12299939
Mint160007252022-11-19 1:17:35758 days ago1668820655IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0007205911.14161451
Mint159700452022-11-14 18:23:47762 days ago1668450227IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0013393220.70826121
Mint158325082022-10-26 13:20:35781 days ago1666790435IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0011102517.16643417
Mint158324912022-10-26 13:17:11781 days ago1666790231IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0010603416.39476143
Mint157902282022-10-20 15:33:11787 days ago1666279991IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0025564139.52646076
Mint157901882022-10-20 15:25:11787 days ago1666279511IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0023669336.59674476
Mint157901012022-10-20 15:07:47787 days ago1666278467IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0039539461.13459653
Set Approval For...157848272022-10-19 21:26:47788 days ago1666214807IN
0xcbEC3A1d...f8A9C909b
0 ETH0.000799330.39195162
Set Approval For...157848182022-10-19 21:24:59788 days ago1666214699IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0008512832.36832374
Set Approval For...157848182022-10-19 21:24:59788 days ago1666214699IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0008512832.36832374
Set Approval For...157848182022-10-19 21:24:59788 days ago1666214699IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0008512832.36832374
Set Approval For...157848182022-10-19 21:24:59788 days ago1666214699IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0008512832.36832374
Set Approval For...157848142022-10-19 21:24:11788 days ago1666214651IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0014479831.38519354
Transfer From157847632022-10-19 21:13:59788 days ago1666214039IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0014770739.0606728
Transfer From157847632022-10-19 21:13:59788 days ago1666214039IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0014770739.0606728
Transfer From157847632022-10-19 21:13:59788 days ago1666214039IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0014766139.0606728
Transfer From157847632022-10-19 21:13:59788 days ago1666214039IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0014766139.0606728
Transfer From157847632022-10-19 21:13:59788 days ago1666214039IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0014766139.0606728
Transfer From157847632022-10-19 21:13:59788 days ago1666214039IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0014770739.0606728
Set Approval For...157631842022-10-16 20:52:47791 days ago1665953567IN
0xcbEC3A1d...f8A9C909b
0 ETH0.0007497416.22124973
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Growith

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 1000 runs

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

// Growith NFT - Project
// https://growith.io
// https://twitter.com/GrowithNFT

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

// ERC165.sol

pragma solidity ^0.8.0;

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

// IERC721.sol

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

// IERC721Metadata.sol

pragma solidity ^0.8.0;

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

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

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

// IERC721Receiver.sol

pragma solidity ^0.8.0;

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

// IERC721Enumerable.sol

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

// Context.sol

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// ERC721S.sol

pragma solidity ^0.8.10;

abstract contract ERC721S is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    string private _name;
    string private _symbol;
    address[] internal _owners;
    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

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

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

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

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

    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721S.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);
    }

    function getApproved(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        require(
            _exists(tokenId),
            "ERC721: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

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

    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _operatorApprovals[owner][operator];
    }

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

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

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

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

    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _owners[tokenId] != address(0);
    }

    function _isApprovedOrOwner(address spender, uint256 tokenId)
        internal
        view
        virtual
        returns (bool)
    {
        require(
            _exists(tokenId),
            "ERC721: operator query for nonexistent token"
        );
        address owner = ERC721S.ownerOf(tokenId);
        return (spender == owner ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, spender));
    }

    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

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

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

    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721S.ownerOf(tokenId);

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

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

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

    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(
            ERC721S.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);
    }

    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721S.ownerOf(tokenId), to, tokenId);
    }

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

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

// SafeMath.sol

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

// Address.sol

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ERC721Enum.sol

pragma solidity ^0.8.10;

abstract contract ERC721Enum is ERC721S, IERC721Enumerable {
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(IERC165, ERC721S)
        returns (bool)
    {
        return
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256 tokenId)
    {
        require(index < ERC721S.balanceOf(owner), "ERC721Enum: owner ioob");
        uint256 count;
        for (uint256 i; i < _owners.length; ++i) {
            if (owner == _owners[i]) {
                if (count == index) return i;
                else ++count;
            }
        }
        require(false, "ERC721Enum: owner ioob");
    }

    function tokensOfOwner(address owner)
        public
        view
        returns (uint256[] memory)
    {
        require(0 < ERC721S.balanceOf(owner), "ERC721Enum: owner ioob");
        uint256 tokenCount = balanceOf(owner);
        uint256[] memory tokenIds = new uint256[](tokenCount);
        for (uint256 i = 0; i < tokenCount; i++) {
            tokenIds[i] = tokenOfOwnerByIndex(owner, i);
        }
        return tokenIds;
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _owners.length;
    }

    function tokenByIndex(uint256 index)
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(index < ERC721Enum.totalSupply(), "ERC721Enum: global ioob");
        return index;
    }
}

// ReentrancyGuard.sol

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
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 make 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;
    }
}

// PaymentSplitter.sol

pragma solidity ^0.8.0;

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(
            payees.length == shares_.length,
            "PaymentSplitter: payees and shares length mismatch"
        );
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + _totalReleased;
        uint256 payment = (totalReceived * _shares[account]) /
            _totalShares -
            _released[account];

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] = _released[account] + payment;
        _totalReleased = _totalReleased + payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(
            account != address(0),
            "PaymentSplitter: account is the zero address"
        );
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(
            _shares[account] == 0,
            "PaymentSplitter: account already has shares"
        );

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

//  Pausable.sol

pragma solidity ^0.8.0;

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// Strings.sol

pragma solidity ^0.8.0;

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

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

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

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

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

// Ownable.sol

pragma solidity ^0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _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);
    }
}

// Growith.sol

pragma solidity ^0.8.10;

contract Growith is ERC721Enum, Ownable, Pausable, ReentrancyGuard {
    using Strings for uint256;
    string public baseURI;

    uint256 public cost = 0.03 ether;
    uint256 public maxSupply = 4200;
    uint256 public maxMintAmount = 21;

    uint256 public freeQuantity = 420;

    bool public saleStatus = true;
    mapping(address => uint256) public addressMintedBalance;

    constructor(string memory valueBaseURI) ERC721S("Growith", "Growith") {
        setBaseURI(valueBaseURI);
    }

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

    function mint(uint256 _mintAmount) public payable nonReentrant {
        uint256 nftCount = totalSupply();
        require(saleStatus == true, "Sales are not enabled");
        require(_mintAmount > 0, "Can't mint 0");
        require(_mintAmount <= maxMintAmount, "Can't mint more then 5");
        require(nftCount + _mintAmount <= maxSupply, "Can't go over supply");
        require(msg.value >= cost * _mintAmount || nftCount + _mintAmount <= freeQuantity, "Incorrect amount");
        for (uint256 i = 0; i < _mintAmount; ++i) {
            _safeMint(msg.sender, nftCount + i, "");
        }
        delete nftCount;
    }

    function gift(uint256[] calldata quantity, address[] calldata recipient)
        external
        onlyOwner
    {
        require(
            quantity.length == recipient.length,
            "Provide quantities and recipients"
        );
        uint256 totalQuantity = 0;
        uint256 s = totalSupply();
        for (uint256 i = 0; i < quantity.length; ++i) {
            totalQuantity += quantity[i];
        }
        require(s + totalQuantity <= maxSupply, "Too many");
        delete totalQuantity;
        for (uint256 i = 0; i < recipient.length; ++i) {
            for (uint256 j = 0; j < quantity[i]; ++j) {
                _safeMint(recipient[i], s++, "");
            }
        }
        delete s;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(tokenId), "ERC721Metadata: Nonexistent token");
        string memory currentBaseURI = _baseURI();
        return
            bytes(currentBaseURI).length > 0
                ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), ".json"))
                : "";
    }

    function setCost(uint256 _newCost) public onlyOwner {
        cost = _newCost;
    }

    function setMaxMintAmount(uint256 _newMaxMintAmount) public onlyOwner {
        maxMintAmount = _newMaxMintAmount;
    }

    function setFreeQuantity(uint256 _newFreeQuantity) public onlyOwner {
        freeQuantity = _newFreeQuantity;
    }

    function setMaxSupply(uint256 _newMaxSupply) public onlyOwner {
        maxSupply = _newMaxSupply;
    }

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

    function setSaleStatus(bool _newSaleStatus) public onlyOwner {
        saleStatus = _newSaleStatus;
    }

    function withdraw() public payable onlyOwner {
        (bool success, ) = payable(msg.sender).call{
            value: address(this).balance
        }("");
        require(success);
    }

    function withdrawSome(uint256 _amount) public payable onlyOwner {
        (bool success, ) = payable(msg.sender).call{value: _amount}("");
        require(success);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"valueBaseURI","type":"string"}],"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"quantity","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"paused","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":[],"name":"saleStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFreeQuantity","type":"uint256"}],"name":"setFreeQuantity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_newSaleStatus","type":"bool"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawSome","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052666a94d74f4300006008556110686009556015600a556101a4600b55600c805460ff191660011790553480156200003a57600080fd5b5060405162002d7338038062002d738339810160408190526200005d9162000280565b60408051808201825260078082526608ee4deeed2e8d60cb1b6020808401828152855180870190965292855284015281519192916200009f91600091620001c4565b508051620000b5906001906020840190620001c4565b505050620000d2620000cc620000f660201b60201c565b620000fa565b6005805460ff60a01b191690556001600655620000ef816200014c565b5062000399565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6005546001600160a01b03163314620001ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620001c0906007906020840190620001c4565b5050565b828054620001d2906200035c565b90600052602060002090601f016020900481019282620001f6576000855562000241565b82601f106200021157805160ff191683800117855562000241565b8280016001018555821562000241579182015b828111156200024157825182559160200191906001019062000224565b506200024f92915062000253565b5090565b5b808211156200024f576000815560010162000254565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200029457600080fd5b82516001600160401b0380821115620002ac57600080fd5b818501915085601f830112620002c157600080fd5b815181811115620002d657620002d66200026a565b604051601f8201601f19908116603f011681019083821181831017156200030157620003016200026a565b8160405282815288868487010111156200031a57600080fd5b600093505b828410156200033e57848401860151818501870152928501926200031f565b82841115620003505760008684830101525b98975050505050505050565b600181811c908216806200037157607f821691505b602082108114156200039357634e487b7160e01b600052602260045260246000fd5b50919050565b6129ca80620003a96000396000f3fe6080604052600436106102855760003560e01c80636352211e11610153578063a0712d68116100cb578063d5abeb011161007f578063e985e9c511610064578063e985e9c5146106cb578063f2fde38b14610714578063f9020e331461073457600080fd5b8063d5abeb0114610695578063d897833e146106ab57600080fd5b8063ae9b051c116100b0578063ae9b051c14610642578063b88d4fde14610655578063c87b56dd1461067557600080fd5b8063a0712d681461060f578063a22cb4651461062257600080fd5b8063715018a6116101225780638da5cb5b116101075780638da5cb5b146105bc57806395d89b41146105da57806396ea3a47146105ef57600080fd5b8063715018a61461057a5780638462151c1461058f57600080fd5b80636352211e146105055780636c0360eb146105255780636f8b44b01461053a57806370a082311461055a57600080fd5b8063239c70ae1161020157806344a0d68a116101b557806355f804b31161019a57806355f804b31461049f5780635c975abb146104bf578063626c8f8e146104ef57600080fd5b806344a0d68a1461045f5780634f6ccce71461047f57600080fd5b80632f745c59116101e65780632f745c59146104175780633ccfd60b1461043757806342842e0e1461043f57600080fd5b8063239c70ae146103e157806323b872dd146103f757600080fd5b8063088a4ed01161025857806313faede61161023d57806313faede61461037b57806318160ddd1461039f57806318cae269146103b457600080fd5b8063088a4ed01461033b578063095ea7b31461035b57600080fd5b806301ffc9a71461028a57806303b462a1146102bf57806306fdde03146102e1578063081812fc14610303575b600080fd5b34801561029657600080fd5b506102aa6102a53660046123a3565b61074e565b60405190151581526020015b60405180910390f35b3480156102cb57600080fd5b506102df6102da3660046123c0565b610792565b005b3480156102ed57600080fd5b506102f66107e4565b6040516102b69190612431565b34801561030f57600080fd5b5061032361031e3660046123c0565b610876565b6040516001600160a01b0390911681526020016102b6565b34801561034757600080fd5b506102df6103563660046123c0565b6108fe565b34801561036757600080fd5b506102df610376366004612460565b61094b565b34801561038757600080fd5b5061039160085481565b6040519081526020016102b6565b3480156103ab57600080fd5b50600254610391565b3480156103c057600080fd5b506103916103cf36600461248a565b600d6020526000908152604090205481565b3480156103ed57600080fd5b50610391600a5481565b34801561040357600080fd5b506102df6104123660046124a5565b610a7d565b34801561042357600080fd5b50610391610432366004612460565b610b04565b6102df610c13565b34801561044b57600080fd5b506102df61045a3660046124a5565b610cb3565b34801561046b57600080fd5b506102df61047a3660046123c0565b610cce565b34801561048b57600080fd5b5061039161049a3660046123c0565b610d1b565b3480156104ab57600080fd5b506102df6104ba36600461256d565b610d78565b3480156104cb57600080fd5b5060055474010000000000000000000000000000000000000000900460ff166102aa565b3480156104fb57600080fd5b50610391600b5481565b34801561051157600080fd5b506103236105203660046123c0565b610dd7565b34801561053157600080fd5b506102f6610e77565b34801561054657600080fd5b506102df6105553660046123c0565b610f05565b34801561056657600080fd5b5061039161057536600461248a565b610f52565b34801561058657600080fd5b506102df611037565b34801561059b57600080fd5b506105af6105aa36600461248a565b61108b565b6040516102b691906125b6565b3480156105c857600080fd5b506005546001600160a01b0316610323565b3480156105e657600080fd5b506102f6611185565b3480156105fb57600080fd5b506102df61060a366004612646565b611194565b6102df61061d3660046123c0565b6113a3565b34801561062e57600080fd5b506102df61063d3660046126c2565b611618565b6102df6106503660046123c0565b6116dd565b34801561066157600080fd5b506102df6106703660046126f5565b61177a565b34801561068157600080fd5b506102f66106903660046123c0565b611808565b3480156106a157600080fd5b5061039160095481565b3480156106b757600080fd5b506102df6106c6366004612771565b6118e1565b3480156106d757600080fd5b506102aa6106e636600461278c565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561072057600080fd5b506102df61072f36600461248a565b61193c565b34801561074057600080fd5b50600c546102aa9060ff1681565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061078c575061078c82611a09565b92915050565b6005546001600160a01b031633146107df5760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064015b60405180910390fd5b600b55565b6060600080546107f3906127b6565b80601f016020809104026020016040519081016040528092919081815260200182805461081f906127b6565b801561086c5780601f106108415761010080835404028352916020019161086c565b820191906000526020600020905b81548152906001019060200180831161084f57829003601f168201915b5050505050905090565b600061088182611aa4565b6108e25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107d6565b506000908152600360205260409020546001600160a01b031690565b6005546001600160a01b031633146109465760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b600a55565b600061095682610dd7565b9050806001600160a01b0316836001600160a01b031614156109e05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107d6565b336001600160a01b03821614806109fc57506109fc81336106e6565b610a6e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107d6565b610a788383611aee565b505050565b610a873382611b69565b610af95760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107d6565b610a78838383611c53565b6000610b0f83610f52565b8210610b5d5760405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f620000000000000000000060448201526064016107d6565b6000805b600254811015610bca5760028181548110610b7e57610b7e6127f1565b6000918252602090912001546001600160a01b0386811691161415610bba5783821415610bae57915061078c9050565b610bb78261281d565b91505b610bc38161281d565b9050610b61565b5060405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f620000000000000000000060448201526064016107d6565b6005546001600160a01b03163314610c5b5760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b604051600090339047908381818185875af1925050503d8060008114610c9d576040519150601f19603f3d011682016040523d82523d6000602084013e610ca2565b606091505b5050905080610cb057600080fd5b50565b610a788383836040518060200160405280600081525061177a565b6005546001600160a01b03163314610d165760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b600855565b6000610d2660025490565b8210610d745760405162461bcd60e51b815260206004820152601760248201527f455243373231456e756d3a20676c6f62616c20696f6f6200000000000000000060448201526064016107d6565b5090565b6005546001600160a01b03163314610dc05760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b8051610dd39060079060208401906122fd565b5050565b60008060028381548110610ded57610ded6127f1565b6000918252602090912001546001600160a01b031690508061078c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107d6565b60078054610e84906127b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb0906127b6565b8015610efd5780601f10610ed257610100808354040283529160200191610efd565b820191906000526020600020905b815481529060010190602001808311610ee057829003601f168201915b505050505081565b6005546001600160a01b03163314610f4d5760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b600955565b60006001600160a01b038216610fd05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107d6565b600254600090815b8181101561102e5760028181548110610ff357610ff36127f1565b6000918252602090912001546001600160a01b038681169116141561101e5761101b8361281d565b92505b6110278161281d565b9050610fd8565b50909392505050565b6005546001600160a01b0316331461107f5760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b6110896000611de3565b565b606061109682610f52565b6000106110e55760405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f620000000000000000000060448201526064016107d6565b60006110f083610f52565b905060008167ffffffffffffffff81111561110d5761110d6124e1565b604051908082528060200260200182016040528015611136578160200160208202803683370190505b50905060005b8281101561117d5761114e8582610b04565b828281518110611160576111606127f1565b6020908102919091010152806111758161281d565b91505061113c565b509392505050565b6060600180546107f3906127b6565b6005546001600160a01b031633146111dc5760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b8281146112515760405162461bcd60e51b815260206004820152602160248201527f50726f76696465207175616e74697469657320616e6420726563697069656e7460448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107d6565b60008061125d60025490565b905060005b858110156112a05786868281811061127c5761127c6127f1565b905060200201358361128e9190612838565b92506112998161281d565b9050611262565b506009546112ae8383612838565b11156112fc5760405162461bcd60e51b815260206004820152600860248201527f546f6f206d616e7900000000000000000000000000000000000000000000000060448201526064016107d6565b6000915060005b8381101561139a5760005b878783818110611320576113206127f1565b9050602002013581101561138957611379868684818110611343576113436127f1565b9050602002016020810190611358919061248a565b846113628161281d565b955060405180602001604052806000815250611e42565b6113828161281d565b905061130e565b506113938161281d565b9050611303565b50505050505050565b600260065414156113f65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107d6565b6002600655600061140660025490565b600c5490915060ff1615156001146114605760405162461bcd60e51b815260206004820152601560248201527f53616c657320617265206e6f7420656e61626c6564000000000000000000000060448201526064016107d6565b600082116114b05760405162461bcd60e51b815260206004820152600c60248201527f43616e2774206d696e742030000000000000000000000000000000000000000060448201526064016107d6565b600a548211156115025760405162461bcd60e51b815260206004820152601660248201527f43616e2774206d696e74206d6f7265207468656e20350000000000000000000060448201526064016107d6565b60095461150f8383612838565b111561155d5760405162461bcd60e51b815260206004820152601460248201527f43616e277420676f206f76657220737570706c7900000000000000000000000060448201526064016107d6565b8160085461156b9190612850565b341015806115845750600b546115818383612838565b11155b6115d05760405162461bcd60e51b815260206004820152601060248201527f496e636f727265637420616d6f756e740000000000000000000000000000000060448201526064016107d6565b60005b8281101561160e576115fe336115e98385612838565b60405180602001604052806000815250611e42565b6116078161281d565b90506115d3565b5050600160065550565b6001600160a01b0382163314156116715760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107d6565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6005546001600160a01b031633146117255760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b604051600090339083908381818185875af1925050503d8060008114611767576040519150601f19603f3d011682016040523d82523d6000602084013e61176c565b606091505b5050905080610dd357600080fd5b6117843383611b69565b6117f65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107d6565b61180284848484611ec0565b50505050565b606061181382611aa4565b6118855760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560448201527f6e0000000000000000000000000000000000000000000000000000000000000060648201526084016107d6565b600061188f611f3e565b905060008151116118af57604051806020016040528060008152506118da565b806118b984611f4d565b6040516020016118ca92919061286f565b6040516020818303038152906040525b9392505050565b6005546001600160a01b031633146119295760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b600c805460ff1916911515919091179055565b6005546001600160a01b031633146119845760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b6001600160a01b038116611a005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107d6565b610cb081611de3565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611a6c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061078c57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461078c565b6002546000908210801561078c575060006001600160a01b031660028381548110611ad157611ad16127f1565b6000918252602090912001546001600160a01b0316141592915050565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611b3082610dd7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b7482611aa4565b611bd55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107d6565b6000611be083610dd7565b9050806001600160a01b0316846001600160a01b03161480611c1b5750836001600160a01b0316611c1084610876565b6001600160a01b0316145b80611c4b57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611c6682610dd7565b6001600160a01b031614611ce25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107d6565b6001600160a01b038216611d5d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107d6565b611d68600082611aee565b8160028281548110611d7c57611d7c6127f1565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611e4c838361207f565b611e5960008484846121b4565b610a785760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107d6565b611ecb848484611c53565b611ed7848484846121b4565b6118025760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107d6565b6060600780546107f3906127b6565b606081611f8d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611fb75780611fa18161281d565b9150611fb09050600a836128dc565b9150611f91565b60008167ffffffffffffffff811115611fd257611fd26124e1565b6040519080825280601f01601f191660200182016040528015611ffc576020820181803683370190505b5090505b8415611c4b576120116001836128f0565b915061201e600a86612907565b612029906030612838565b60f81b81838151811061203e5761203e6127f1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612078600a866128dc565b9450612000565b6001600160a01b0382166120d55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107d6565b6120de81611aa4565b1561212b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107d6565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156122f257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121f890339089908890889060040161291b565b6020604051808303816000875af1925050508015612233575060408051601f3d908101601f1916820190925261223091810190612957565b60015b6122d8573d808015612261576040519150601f19603f3d011682016040523d82523d6000602084013e612266565b606091505b5080516122d05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107d6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c4b565b506001949350505050565b828054612309906127b6565b90600052602060002090601f01602090048101928261232b5760008555612371565b82601f1061234457805160ff1916838001178555612371565b82800160010185558215612371579182015b82811115612371578251825591602001919060010190612356565b50610d749291505b80821115610d745760008155600101612379565b6001600160e01b031981168114610cb057600080fd5b6000602082840312156123b557600080fd5b81356118da8161238d565b6000602082840312156123d257600080fd5b5035919050565b60005b838110156123f45781810151838201526020016123dc565b838111156118025750506000910152565b6000815180845261241d8160208601602086016123d9565b601f01601f19169290920160200192915050565b6020815260006118da6020830184612405565b80356001600160a01b038116811461245b57600080fd5b919050565b6000806040838503121561247357600080fd5b61247c83612444565b946020939093013593505050565b60006020828403121561249c57600080fd5b6118da82612444565b6000806000606084860312156124ba57600080fd5b6124c384612444565b92506124d160208501612444565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612512576125126124e1565b604051601f8501601f19908116603f0116810190828211818310171561253a5761253a6124e1565b8160405280935085815286868601111561255357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561257f57600080fd5b813567ffffffffffffffff81111561259657600080fd5b8201601f810184136125a757600080fd5b611c4b848235602084016124f7565b6020808252825182820181905260009190848201906040850190845b818110156125ee578351835292840192918401916001016125d2565b50909695505050505050565b60008083601f84011261260c57600080fd5b50813567ffffffffffffffff81111561262457600080fd5b6020830191508360208260051b850101111561263f57600080fd5b9250929050565b6000806000806040858703121561265c57600080fd5b843567ffffffffffffffff8082111561267457600080fd5b612680888389016125fa565b9096509450602087013591508082111561269957600080fd5b506126a6878288016125fa565b95989497509550505050565b8035801515811461245b57600080fd5b600080604083850312156126d557600080fd5b6126de83612444565b91506126ec602084016126b2565b90509250929050565b6000806000806080858703121561270b57600080fd5b61271485612444565b935061272260208601612444565b925060408501359150606085013567ffffffffffffffff81111561274557600080fd5b8501601f8101871361275657600080fd5b612765878235602084016124f7565b91505092959194509250565b60006020828403121561278357600080fd5b6118da826126b2565b6000806040838503121561279f57600080fd5b6127a883612444565b91506126ec60208401612444565b600181811c908216806127ca57607f821691505b602082108114156127eb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561283157612831612807565b5060010190565b6000821982111561284b5761284b612807565b500190565b600081600019048311821515161561286a5761286a612807565b500290565b600083516128818184602088016123d9565b8351908301906128958183602088016123d9565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826128eb576128eb6128c6565b500490565b60008282101561290257612902612807565b500390565b600082612916576129166128c6565b500690565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261294d6080830184612405565b9695505050505050565b60006020828403121561296957600080fd5b81516118da8161238d56fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212206d983937edc42820b4a3a1a45174be0edf58b578664b1e5dca711a43d69c29ce64736f6c634300080b003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d614671637350515943425339387046396f536f33504e566470336f577654786571464776774d6b4c3167454e2f00000000000000000000

Deployed Bytecode

0x6080604052600436106102855760003560e01c80636352211e11610153578063a0712d68116100cb578063d5abeb011161007f578063e985e9c511610064578063e985e9c5146106cb578063f2fde38b14610714578063f9020e331461073457600080fd5b8063d5abeb0114610695578063d897833e146106ab57600080fd5b8063ae9b051c116100b0578063ae9b051c14610642578063b88d4fde14610655578063c87b56dd1461067557600080fd5b8063a0712d681461060f578063a22cb4651461062257600080fd5b8063715018a6116101225780638da5cb5b116101075780638da5cb5b146105bc57806395d89b41146105da57806396ea3a47146105ef57600080fd5b8063715018a61461057a5780638462151c1461058f57600080fd5b80636352211e146105055780636c0360eb146105255780636f8b44b01461053a57806370a082311461055a57600080fd5b8063239c70ae1161020157806344a0d68a116101b557806355f804b31161019a57806355f804b31461049f5780635c975abb146104bf578063626c8f8e146104ef57600080fd5b806344a0d68a1461045f5780634f6ccce71461047f57600080fd5b80632f745c59116101e65780632f745c59146104175780633ccfd60b1461043757806342842e0e1461043f57600080fd5b8063239c70ae146103e157806323b872dd146103f757600080fd5b8063088a4ed01161025857806313faede61161023d57806313faede61461037b57806318160ddd1461039f57806318cae269146103b457600080fd5b8063088a4ed01461033b578063095ea7b31461035b57600080fd5b806301ffc9a71461028a57806303b462a1146102bf57806306fdde03146102e1578063081812fc14610303575b600080fd5b34801561029657600080fd5b506102aa6102a53660046123a3565b61074e565b60405190151581526020015b60405180910390f35b3480156102cb57600080fd5b506102df6102da3660046123c0565b610792565b005b3480156102ed57600080fd5b506102f66107e4565b6040516102b69190612431565b34801561030f57600080fd5b5061032361031e3660046123c0565b610876565b6040516001600160a01b0390911681526020016102b6565b34801561034757600080fd5b506102df6103563660046123c0565b6108fe565b34801561036757600080fd5b506102df610376366004612460565b61094b565b34801561038757600080fd5b5061039160085481565b6040519081526020016102b6565b3480156103ab57600080fd5b50600254610391565b3480156103c057600080fd5b506103916103cf36600461248a565b600d6020526000908152604090205481565b3480156103ed57600080fd5b50610391600a5481565b34801561040357600080fd5b506102df6104123660046124a5565b610a7d565b34801561042357600080fd5b50610391610432366004612460565b610b04565b6102df610c13565b34801561044b57600080fd5b506102df61045a3660046124a5565b610cb3565b34801561046b57600080fd5b506102df61047a3660046123c0565b610cce565b34801561048b57600080fd5b5061039161049a3660046123c0565b610d1b565b3480156104ab57600080fd5b506102df6104ba36600461256d565b610d78565b3480156104cb57600080fd5b5060055474010000000000000000000000000000000000000000900460ff166102aa565b3480156104fb57600080fd5b50610391600b5481565b34801561051157600080fd5b506103236105203660046123c0565b610dd7565b34801561053157600080fd5b506102f6610e77565b34801561054657600080fd5b506102df6105553660046123c0565b610f05565b34801561056657600080fd5b5061039161057536600461248a565b610f52565b34801561058657600080fd5b506102df611037565b34801561059b57600080fd5b506105af6105aa36600461248a565b61108b565b6040516102b691906125b6565b3480156105c857600080fd5b506005546001600160a01b0316610323565b3480156105e657600080fd5b506102f6611185565b3480156105fb57600080fd5b506102df61060a366004612646565b611194565b6102df61061d3660046123c0565b6113a3565b34801561062e57600080fd5b506102df61063d3660046126c2565b611618565b6102df6106503660046123c0565b6116dd565b34801561066157600080fd5b506102df6106703660046126f5565b61177a565b34801561068157600080fd5b506102f66106903660046123c0565b611808565b3480156106a157600080fd5b5061039160095481565b3480156106b757600080fd5b506102df6106c6366004612771565b6118e1565b3480156106d757600080fd5b506102aa6106e636600461278c565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561072057600080fd5b506102df61072f36600461248a565b61193c565b34801561074057600080fd5b50600c546102aa9060ff1681565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061078c575061078c82611a09565b92915050565b6005546001600160a01b031633146107df5760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064015b60405180910390fd5b600b55565b6060600080546107f3906127b6565b80601f016020809104026020016040519081016040528092919081815260200182805461081f906127b6565b801561086c5780601f106108415761010080835404028352916020019161086c565b820191906000526020600020905b81548152906001019060200180831161084f57829003601f168201915b5050505050905090565b600061088182611aa4565b6108e25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107d6565b506000908152600360205260409020546001600160a01b031690565b6005546001600160a01b031633146109465760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b600a55565b600061095682610dd7565b9050806001600160a01b0316836001600160a01b031614156109e05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107d6565b336001600160a01b03821614806109fc57506109fc81336106e6565b610a6e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107d6565b610a788383611aee565b505050565b610a873382611b69565b610af95760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107d6565b610a78838383611c53565b6000610b0f83610f52565b8210610b5d5760405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f620000000000000000000060448201526064016107d6565b6000805b600254811015610bca5760028181548110610b7e57610b7e6127f1565b6000918252602090912001546001600160a01b0386811691161415610bba5783821415610bae57915061078c9050565b610bb78261281d565b91505b610bc38161281d565b9050610b61565b5060405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f620000000000000000000060448201526064016107d6565b6005546001600160a01b03163314610c5b5760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b604051600090339047908381818185875af1925050503d8060008114610c9d576040519150601f19603f3d011682016040523d82523d6000602084013e610ca2565b606091505b5050905080610cb057600080fd5b50565b610a788383836040518060200160405280600081525061177a565b6005546001600160a01b03163314610d165760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b600855565b6000610d2660025490565b8210610d745760405162461bcd60e51b815260206004820152601760248201527f455243373231456e756d3a20676c6f62616c20696f6f6200000000000000000060448201526064016107d6565b5090565b6005546001600160a01b03163314610dc05760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b8051610dd39060079060208401906122fd565b5050565b60008060028381548110610ded57610ded6127f1565b6000918252602090912001546001600160a01b031690508061078c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107d6565b60078054610e84906127b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb0906127b6565b8015610efd5780601f10610ed257610100808354040283529160200191610efd565b820191906000526020600020905b815481529060010190602001808311610ee057829003601f168201915b505050505081565b6005546001600160a01b03163314610f4d5760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b600955565b60006001600160a01b038216610fd05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107d6565b600254600090815b8181101561102e5760028181548110610ff357610ff36127f1565b6000918252602090912001546001600160a01b038681169116141561101e5761101b8361281d565b92505b6110278161281d565b9050610fd8565b50909392505050565b6005546001600160a01b0316331461107f5760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b6110896000611de3565b565b606061109682610f52565b6000106110e55760405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f620000000000000000000060448201526064016107d6565b60006110f083610f52565b905060008167ffffffffffffffff81111561110d5761110d6124e1565b604051908082528060200260200182016040528015611136578160200160208202803683370190505b50905060005b8281101561117d5761114e8582610b04565b828281518110611160576111606127f1565b6020908102919091010152806111758161281d565b91505061113c565b509392505050565b6060600180546107f3906127b6565b6005546001600160a01b031633146111dc5760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b8281146112515760405162461bcd60e51b815260206004820152602160248201527f50726f76696465207175616e74697469657320616e6420726563697069656e7460448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107d6565b60008061125d60025490565b905060005b858110156112a05786868281811061127c5761127c6127f1565b905060200201358361128e9190612838565b92506112998161281d565b9050611262565b506009546112ae8383612838565b11156112fc5760405162461bcd60e51b815260206004820152600860248201527f546f6f206d616e7900000000000000000000000000000000000000000000000060448201526064016107d6565b6000915060005b8381101561139a5760005b878783818110611320576113206127f1565b9050602002013581101561138957611379868684818110611343576113436127f1565b9050602002016020810190611358919061248a565b846113628161281d565b955060405180602001604052806000815250611e42565b6113828161281d565b905061130e565b506113938161281d565b9050611303565b50505050505050565b600260065414156113f65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107d6565b6002600655600061140660025490565b600c5490915060ff1615156001146114605760405162461bcd60e51b815260206004820152601560248201527f53616c657320617265206e6f7420656e61626c6564000000000000000000000060448201526064016107d6565b600082116114b05760405162461bcd60e51b815260206004820152600c60248201527f43616e2774206d696e742030000000000000000000000000000000000000000060448201526064016107d6565b600a548211156115025760405162461bcd60e51b815260206004820152601660248201527f43616e2774206d696e74206d6f7265207468656e20350000000000000000000060448201526064016107d6565b60095461150f8383612838565b111561155d5760405162461bcd60e51b815260206004820152601460248201527f43616e277420676f206f76657220737570706c7900000000000000000000000060448201526064016107d6565b8160085461156b9190612850565b341015806115845750600b546115818383612838565b11155b6115d05760405162461bcd60e51b815260206004820152601060248201527f496e636f727265637420616d6f756e740000000000000000000000000000000060448201526064016107d6565b60005b8281101561160e576115fe336115e98385612838565b60405180602001604052806000815250611e42565b6116078161281d565b90506115d3565b5050600160065550565b6001600160a01b0382163314156116715760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107d6565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6005546001600160a01b031633146117255760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b604051600090339083908381818185875af1925050503d8060008114611767576040519150601f19603f3d011682016040523d82523d6000602084013e61176c565b606091505b5050905080610dd357600080fd5b6117843383611b69565b6117f65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107d6565b61180284848484611ec0565b50505050565b606061181382611aa4565b6118855760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560448201527f6e0000000000000000000000000000000000000000000000000000000000000060648201526084016107d6565b600061188f611f3e565b905060008151116118af57604051806020016040528060008152506118da565b806118b984611f4d565b6040516020016118ca92919061286f565b6040516020818303038152906040525b9392505050565b6005546001600160a01b031633146119295760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b600c805460ff1916911515919091179055565b6005546001600160a01b031633146119845760405162461bcd60e51b8152602060048201819052602482015260008051602061297583398151915260448201526064016107d6565b6001600160a01b038116611a005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107d6565b610cb081611de3565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611a6c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061078c57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461078c565b6002546000908210801561078c575060006001600160a01b031660028381548110611ad157611ad16127f1565b6000918252602090912001546001600160a01b0316141592915050565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611b3082610dd7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b7482611aa4565b611bd55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107d6565b6000611be083610dd7565b9050806001600160a01b0316846001600160a01b03161480611c1b5750836001600160a01b0316611c1084610876565b6001600160a01b0316145b80611c4b57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611c6682610dd7565b6001600160a01b031614611ce25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107d6565b6001600160a01b038216611d5d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107d6565b611d68600082611aee565b8160028281548110611d7c57611d7c6127f1565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611e4c838361207f565b611e5960008484846121b4565b610a785760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107d6565b611ecb848484611c53565b611ed7848484846121b4565b6118025760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107d6565b6060600780546107f3906127b6565b606081611f8d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611fb75780611fa18161281d565b9150611fb09050600a836128dc565b9150611f91565b60008167ffffffffffffffff811115611fd257611fd26124e1565b6040519080825280601f01601f191660200182016040528015611ffc576020820181803683370190505b5090505b8415611c4b576120116001836128f0565b915061201e600a86612907565b612029906030612838565b60f81b81838151811061203e5761203e6127f1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612078600a866128dc565b9450612000565b6001600160a01b0382166120d55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107d6565b6120de81611aa4565b1561212b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107d6565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156122f257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121f890339089908890889060040161291b565b6020604051808303816000875af1925050508015612233575060408051601f3d908101601f1916820190925261223091810190612957565b60015b6122d8573d808015612261576040519150601f19603f3d011682016040523d82523d6000602084013e612266565b606091505b5080516122d05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016107d6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c4b565b506001949350505050565b828054612309906127b6565b90600052602060002090601f01602090048101928261232b5760008555612371565b82601f1061234457805160ff1916838001178555612371565b82800160010185558215612371579182015b82811115612371578251825591602001919060010190612356565b50610d749291505b80821115610d745760008155600101612379565b6001600160e01b031981168114610cb057600080fd5b6000602082840312156123b557600080fd5b81356118da8161238d565b6000602082840312156123d257600080fd5b5035919050565b60005b838110156123f45781810151838201526020016123dc565b838111156118025750506000910152565b6000815180845261241d8160208601602086016123d9565b601f01601f19169290920160200192915050565b6020815260006118da6020830184612405565b80356001600160a01b038116811461245b57600080fd5b919050565b6000806040838503121561247357600080fd5b61247c83612444565b946020939093013593505050565b60006020828403121561249c57600080fd5b6118da82612444565b6000806000606084860312156124ba57600080fd5b6124c384612444565b92506124d160208501612444565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612512576125126124e1565b604051601f8501601f19908116603f0116810190828211818310171561253a5761253a6124e1565b8160405280935085815286868601111561255357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561257f57600080fd5b813567ffffffffffffffff81111561259657600080fd5b8201601f810184136125a757600080fd5b611c4b848235602084016124f7565b6020808252825182820181905260009190848201906040850190845b818110156125ee578351835292840192918401916001016125d2565b50909695505050505050565b60008083601f84011261260c57600080fd5b50813567ffffffffffffffff81111561262457600080fd5b6020830191508360208260051b850101111561263f57600080fd5b9250929050565b6000806000806040858703121561265c57600080fd5b843567ffffffffffffffff8082111561267457600080fd5b612680888389016125fa565b9096509450602087013591508082111561269957600080fd5b506126a6878288016125fa565b95989497509550505050565b8035801515811461245b57600080fd5b600080604083850312156126d557600080fd5b6126de83612444565b91506126ec602084016126b2565b90509250929050565b6000806000806080858703121561270b57600080fd5b61271485612444565b935061272260208601612444565b925060408501359150606085013567ffffffffffffffff81111561274557600080fd5b8501601f8101871361275657600080fd5b612765878235602084016124f7565b91505092959194509250565b60006020828403121561278357600080fd5b6118da826126b2565b6000806040838503121561279f57600080fd5b6127a883612444565b91506126ec60208401612444565b600181811c908216806127ca57607f821691505b602082108114156127eb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561283157612831612807565b5060010190565b6000821982111561284b5761284b612807565b500190565b600081600019048311821515161561286a5761286a612807565b500290565b600083516128818184602088016123d9565b8351908301906128958183602088016123d9565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826128eb576128eb6128c6565b500490565b60008282101561290257612902612807565b500390565b600082612916576129166128c6565b500690565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261294d6080830184612405565b9695505050505050565b60006020828403121561296957600080fd5b81516118da8161238d56fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212206d983937edc42820b4a3a1a45174be0edf58b578664b1e5dca711a43d69c29ce64736f6c634300080b0033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d614671637350515943425339387046396f536f33504e566470336f577654786571464776774d6b4c3167454e2f00000000000000000000

-----Decoded View---------------
Arg [0] : valueBaseURI (string): ipfs://QmaFqcsPQYCBS98pF9oSo3PNVdp3oWvTxeqFGvwMkL1gEN/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d614671637350515943425339387046396f536f33504e56
Arg [3] : 6470336f577654786571464776774d6b4c3167454e2f00000000000000000000


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  ]

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.