ETH Price: $2,920.36 (+2.79%)
 

Overview

Max Total Supply

641 MBD

Holders

104

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 MBD
0xF02DE4505027133432DF6eB111e4e60588B690e5
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MoBuDao

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 50 runs

Other Settings:
default evmVersion, MIT license
File 1 of 12 : MoBuDao.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

/**
 @title MoBuDao
 */
contract MoBuDao is ERC721A, Ownable {
    uint16 public constant MAX_SUPPLY = 6969;

    struct StageInfo {
        uint16 supply;
        uint240 price;
    }

    StageInfo private __stageInfo;

    string private __baseURI;

    /// @dev Setup ERC721 and initial baseURI
    constructor(string memory _initBaseURI, StageInfo memory _stageInfo)
        ERC721A("MoBuDao", "MBD", 5)
    {
        __baseURI = _initBaseURI;
        __stageInfo = _stageInfo;
    }

    /// @notice Mint NFT
    function mint(uint256 amount) external payable {
        require(
            totalSupply() + amount <= __stageInfo.supply,
            "exceed stage supply"
        );
        require(
            msg.value >= amount * __stageInfo.price,
            "not enough fund to mint"
        );
        _safeMint(_msgSender(), amount);
    }

    /// @dev Reserve NFT
    function reserve(address to, uint256 amount) external onlyOwner {
        require(totalSupply() + amount <= MAX_SUPPLY, "exceed max supply");
        _safeMint(to, amount);
    }

    /// @dev Set baseURI
    function setBaseURI(string calldata newBaseURI) external onlyOwner {
        __baseURI = newBaseURI;
    }

    /// @dev Set stage info
    function setStageInfo(StageInfo calldata newStageInfo) external onlyOwner {
        require(newStageInfo.supply <= MAX_SUPPLY, "exceed max supply");
        __stageInfo = newStageInfo;
    }

    /// @dev Withdraw
    function withdraw() external {
        Address.sendValue(payable(owner()), address(this).balance);
    }

    /// @dev Override _baseURI
    function _baseURI() internal view override returns (string memory) {
        return __baseURI;
    }

    /// @notice get mint price
    function MINT_PRICE() public view returns (uint240) {
        return __stageInfo.price;
    }

    /// @notice get stage supply
    function STAGE_SUPPLY() public view returns (uint16) {
        return __stageInfo.supply;
    }
}

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

File 3 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

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

File 4 of 12 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 5 of 12 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

File 6 of 12 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

File 7 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 9 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 11 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 12 of 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creators: locationtba.eth, 2pmflow.eth

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is
    Context,
    ERC165,
    IERC721,
    IERC721Metadata,
    IERC721Enumerable
{
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 private currentIndex = 0;

    uint256 internal immutable maxBatchSize;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    /**
     * @dev
     * `maxBatchSize` refers to how much a minter can mint at a time.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxBatchSize_
    ) {
        require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
    }

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

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256)
    {
        require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        for (uint256 i = 0; i < numMintedSoFar; i++) {
            TokenOwnership memory ownership = _ownerships[i];
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert("ERC721A: unable to get token of owner by index");
    }

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

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

    function _numberMinted(address owner) internal view returns (uint256) {
        require(
            owner != address(0),
            "ERC721A: number minted query for the zero address"
        );
        return uint256(_addressData[owner].numberMinted);
    }

    function ownershipOf(uint256 tokenId)
        internal
        view
        returns (TokenOwnership memory)
    {
        require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

        uint256 lowestTokenToCheck;
        if (tokenId >= maxBatchSize) {
            lowestTokenToCheck = tokenId - maxBatchSize + 1;
        }

        for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
            TokenOwnership memory ownership = _ownerships[curr];
            if (ownership.addr != address(0)) {
                return ownership;
            }
        }

        revert("ERC721A: unable to determine the owner of token");
    }

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "ERC721A: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < currentIndex;
    }

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` cannot be larger than the max batch size.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), "ERC721A: mint to the zero address");
        // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
        require(!_exists(startTokenId), "ERC721A: token already minted");
        require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

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

        AddressData memory addressData = _addressData[to];
        _addressData[to] = AddressData(
            addressData.balance + uint128(quantity),
            addressData.numberMinted + uint128(quantity)
        );
        _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

        uint256 updatedIndex = startTokenId;

        for (uint256 i = 0; i < quantity; i++) {
            emit Transfer(address(0), to, updatedIndex);
            require(
                _checkOnERC721Received(address(0), to, updatedIndex, _data),
                "ERC721A: transfer to non ERC721Receiver implementer"
            );
            updatedIndex++;
        }

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

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

        require(
            isApprovedOrOwner,
            "ERC721A: transfer caller is not owner nor approved"
        );

        require(
            prevOwnership.addr == from,
            "ERC721A: transfer from incorrect owner"
        );
        require(to != address(0), "ERC721A: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

        // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
        // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
        uint256 nextTokenId = tokenId + 1;
        if (_ownerships[nextTokenId].addr == address(0)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(
                    prevOwnership.addr,
                    prevOwnership.startTimestamp
                );
            }
        }

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

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

    uint256 public nextOwnerToExplicitlySet = 0;

    /**
     * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
     */
    function _setOwnersExplicit(uint256 quantity) internal {
        uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
        require(quantity > 0, "quantity must be nonzero");
        uint256 endIndex = oldNextOwnerToSet + quantity - 1;
        if (endIndex > currentIndex - 1) {
            endIndex = currentIndex - 1;
        }
        // We know if the last one in the group exists, all in the group exist, due to serial ordering.
        require(_exists(endIndex), "not enough minted yet for this cleanup");
        for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
            if (_ownerships[i].addr == address(0)) {
                TokenOwnership memory ownership = ownershipOf(i);
                _ownerships[i] = TokenOwnership(
                    ownership.addr,
                    ownership.startTimestamp
                );
            }
        }
        nextOwnerToExplicitlySet = endIndex + 1;
    }

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

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

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

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 50
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"},{"components":[{"internalType":"uint16","name":"supply","type":"uint16"},{"internalType":"uint240","name":"price","type":"uint240"}],"internalType":"struct MoBuDao.StageInfo","name":"_stageInfo","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint240","name":"","type":"uint240"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAGE_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint16","name":"supply","type":"uint16"},{"internalType":"uint240","name":"price","type":"uint240"}],"internalType":"struct MoBuDao.StageInfo","name":"newStageInfo","type":"tuple"}],"name":"setStageInfo","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":"","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":[],"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":"nonpayable","type":"function"}]

60a06040526000805560006007553480156200001a57600080fd5b50604051620028ea380380620028ea8339810160408190526200003d91620002b6565b604051806040016040528060078152602001664d6f427544616f60c81b8152506040518060400160405280600381526020016213509160ea1b815250600560008111620000a75760405162461bcd60e51b81526004016200009e9062000383565b60405180910390fd5b8251620000bc90600190602086019062000194565b508151620000d290600290602085019062000194565b5060805250620000ed9050620000e76200013e565b62000142565b81516200010290600a90602085019062000194565b508051600980546020909301516001600160f01b0316620100000261ffff92831661ffff19909416939093179091169190911790555062000449565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001a290620003f6565b90600052602060002090601f016020900481019282620001c6576000855562000211565b82601f10620001e157805160ff191683800117855562000211565b8280016001018555821562000211579182015b8281111562000211578251825591602001919060010190620001f4565b506200021f92915062000223565b5090565b5b808211156200021f576000815560010162000224565b6000604082840312156200024c578081fd5b604080519081016001600160401b038111828210171562000271576200027162000433565b8060405250809150825161ffff811681146200028c57600080fd5b815260208301516001600160f01b0381168114620002a957600080fd5b6020919091015292915050565b60008060608385031215620002c9578182fd5b82516001600160401b0380821115620002e0578384fd5b818501915085601f830112620002f4578384fd5b81518181111562000309576200030962000433565b6020915062000321601f8201601f19168301620003ca565b818152878383860101111562000335578586fd5b855b828110156200035457848101840151828201850152830162000337565b828111156200036557868484840101525b509450620003789050868683016200023a565b925050509250929050565b60208082526027908201527f455243373231413a206d61782062617463682073697a65206d757374206265206040820152666e6f6e7a65726f60c81b606082015260800190565b6040518181016001600160401b0381118282101715620003ee57620003ee62000433565b604052919050565b6002810460018216806200040b57607f821691505b602082108114156200042d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b608051612477620004736000396000818161113f01528181611169015261152201526124776000f3fe6080604052600436106101575760003560e01c8063715018a6116100bc578063715018a61461033c5780638da5cb5b1461035157806395d89b4114610366578063986a504d1461037b578063a0712d681461039b578063a22cb465146103ae578063b88d4fde146103ce578063c002d23d146103ee578063c87b56dd14610410578063cc47a40b14610430578063d7224ba014610450578063db6b2e5914610465578063e985e9c51461047a578063f2fde38b1461049a57610157565b806301ffc9a71461015c57806306fdde0314610192578063081812fc146101b4578063095ea7b3146101e157806318160ddd1461020357806323b872dd146102255780632f745c591461024557806332cb6b0c146102655780633ccfd60b1461028757806342842e0e1461029c5780634f6ccce7146102bc57806355f804b3146102dc5780636352211e146102fc57806370a082311461031c575b600080fd5b34801561016857600080fd5b5061017c6101773660046119b7565b6104ba565b6040516101899190611b55565b60405180910390f35b34801561019e57600080fd5b506101a761051d565b6040516101899190611b60565b3480156101c057600080fd5b506101d46101cf366004611a8e565b6105af565b6040516101899190611b04565b3480156101ed57600080fd5b506102016101fc36600461198e565b6105fb565b005b34801561020f57600080fd5b50610218610694565b6040516101899190612237565b34801561023157600080fd5b5061020161024036600461184e565b61069a565b34801561025157600080fd5b5061021861026036600461198e565b6106a5565b34801561027157600080fd5b5061027a6107a0565b6040516101899190612214565b34801561029357600080fd5b506102016107a6565b3480156102a857600080fd5b506102016102b736600461184e565b6107b9565b3480156102c857600080fd5b506102186102d7366004611a8e565b6107d4565b3480156102e857600080fd5b506102016102f73660046119ef565b610800565b34801561030857600080fd5b506101d4610317366004611a8e565b61084b565b34801561032857600080fd5b50610218610337366004611802565b61085d565b34801561034857600080fd5b506102016108aa565b34801561035d57600080fd5b506101d46108f3565b34801561037257600080fd5b506101a7610902565b34801561038757600080fd5b50610201610396366004611a5b565b610911565b6102016103a9366004611a8e565b61098f565b3480156103ba57600080fd5b506102016103c9366004611954565b610a16565b3480156103da57600080fd5b506102016103e9366004611889565b610ae4565b3480156103fa57600080fd5b50610403610b1d565b6040516101899190612223565b34801561041c57600080fd5b506101a761042b366004611a8e565b610b32565b34801561043c57600080fd5b5061020161044b36600461198e565b610bb5565b34801561045c57600080fd5b50610218610c36565b34801561047157600080fd5b5061027a610c3c565b34801561048657600080fd5b5061017c61049536600461181c565b610c46565b3480156104a657600080fd5b506102016104b5366004611802565b610c74565b60006001600160e01b031982166380ac58cd60e01b14806104eb57506001600160e01b03198216635b5e139f60e01b145b8061050657506001600160e01b0319821663780e9d6360e01b145b80610515575061051582610ce2565b90505b919050565b60606001805461052c9061232f565b80601f01602080910402602001604051908101604052809291908181526020018280546105589061232f565b80156105a55780601f1061057a576101008083540402835291602001916105a5565b820191906000526020600020905b81548152906001019060200180831161058857829003601f168201915b5050505050905090565b60006105ba82610cfb565b6105df5760405162461bcd60e51b81526004016105d690612185565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006106068261084b565b9050806001600160a01b0316836001600160a01b0316141561063a5760405162461bcd60e51b81526004016105d690611faa565b806001600160a01b031661064c610d02565b6001600160a01b03161480610668575061066881610495610d02565b6106845760405162461bcd60e51b81526004016105d690611db6565b61068f838383610d06565b505050565b60005490565b61068f838383610d62565b60006106b08361085d565b82106106ce5760405162461bcd60e51b81526004016105d690611b73565b60006106d8610694565b905060008060005b83811015610781576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561073257805192505b876001600160a01b0316836001600160a01b0316141561076e57868414156107605750935061079a92505050565b8361076a81612364565b9450505b508061077981612364565b9150506106e0565b5060405162461bcd60e51b81526004016105d6906120e8565b92915050565b611b3981565b6107b76107b16108f3565b47611072565b565b61068f83838360405180602001604052806000815250610ae4565b60006107de610694565b82106107fc5760405162461bcd60e51b81526004016105d690611c72565b5090565b610808610d02565b6001600160a01b03166108196108f3565b6001600160a01b03161461083f5760405162461bcd60e51b81526004016105d690611ea0565b61068f600a838361173f565b60006108568261110e565b5192915050565b60006001600160a01b0382166108855760405162461bcd60e51b81526004016105d690611e0f565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6108b2610d02565b6001600160a01b03166108c36108f3565b6001600160a01b0316146108e95760405162461bcd60e51b81526004016105d690611ea0565b6107b76000611220565b6008546001600160a01b031690565b60606002805461052c9061232f565b610919610d02565b6001600160a01b031661092a6108f3565b6001600160a01b0316146109505760405162461bcd60e51b81526004016105d690611ea0565b611b396109606020830183611a72565b61ffff1611156109825760405162461bcd60e51b81526004016105d690611cb5565b80600961068f82826123d5565b60095461ffff168161099f610694565b6109a99190612262565b11156109c75760405162461bcd60e51b81526004016105d690611c45565b6009546109e3906201000090046001600160f01b03168261228e565b341015610a025760405162461bcd60e51b81526004016105d6906120b7565b610a13610a0d610d02565b82611272565b50565b610a1e610d02565b6001600160a01b0316826001600160a01b03161415610a4f5760405162461bcd60e51b81526004016105d690611f24565b8060066000610a5c610d02565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610aa0610d02565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610ad89190611b55565b60405180910390a35050565b610aef848484610d62565b610afb8484848461128c565b610b175760405162461bcd60e51b81526004016105d690611fec565b50505050565b6009546201000090046001600160f01b031690565b6060610b3d82610cfb565b610b595760405162461bcd60e51b81526004016105d690611ed5565b6000610b636113a8565b90506000815111610b835760405180602001604052806000815250610bae565b80610b8d846113b7565b604051602001610b9e929190611ad2565b6040516020818303038152906040525b9392505050565b610bbd610d02565b6001600160a01b0316610bce6108f3565b6001600160a01b031614610bf45760405162461bcd60e51b81526004016105d690611ea0565b611b3981610c00610694565b610c0a9190612262565b1115610c285760405162461bcd60e51b81526004016105d690611cb5565b610c328282611272565b5050565b60075481565b60095461ffff1690565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610c7c610d02565b6001600160a01b0316610c8d6108f3565b6001600160a01b031614610cb35760405162461bcd60e51b81526004016105d690611ea0565b6001600160a01b038116610cd95760405162461bcd60e51b81526004016105d690611bb5565b610a1381611220565b6001600160e01b031981166301ffc9a760e01b14919050565b6000541190565b3390565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d6d8261110e565b9050600081600001516001600160a01b0316610d87610d02565b6001600160a01b03161480610dbc5750610d9f610d02565b6001600160a01b0316610db1846105af565b6001600160a01b0316145b80610dd057508151610dd090610495610d02565b905080610def5760405162461bcd60e51b81526004016105d690611f58565b846001600160a01b031682600001516001600160a01b031614610e245760405162461bcd60e51b81526004016105d690611e5a565b6001600160a01b038416610e4a5760405162461bcd60e51b81526004016105d690611ce0565b610e578585856001610b17565b610e676000848460000151610d06565b6001600160a01b0385166000908152600460205260408120805460019290610e999084906001600160801b03166122ad565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092610ee591859116612240565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b02600160a01b600160e01b0319929093166001600160a01b03199091161716179055610f79846001612262565b6000818152600360205260409020549091506001600160a01b031661101c57610fa181610cfb565b1561101c5760408051808201825284516001600160a01b0390811682526020808701516001600160401b0390811682850190815260008781526003909352949091209251835494516001600160a01b0319909516921691909117600160a01b600160e01b031916600160a01b93909116929092029190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461106a8686866001610b17565b505050505050565b804710156110925760405162461bcd60e51b81526004016105d690611d7f565b6000826001600160a01b0316826040516110ab90611b01565b60006040518083038185875af1925050503d80600081146110e8576040519150601f19603f3d011682016040523d82523d6000602084013e6110ed565b606091505b505090508061068f5760405162461bcd60e51b81526004016105d690611d25565b6111166117bf565b61111f82610cfb565b61113b5760405162461bcd60e51b81526004016105d690611bfb565b60007f0000000000000000000000000000000000000000000000000000000000000000831061119c5761118e7f0000000000000000000000000000000000000000000000000000000000000000846122d5565b611199906001612262565b90505b825b818110611207576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156111f4579250610518915050565b50806111ff81612318565b91505061119e565b5060405162461bcd60e51b81526004016105d690612136565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c328282604051806020016040528060008152506114d1565b60006112a0846001600160a01b0316611739565b1561139c57836001600160a01b031663150b7a026112bc610d02565b8786866040518563ffffffff1660e01b81526004016112de9493929190611b18565b602060405180830381600087803b1580156112f857600080fd5b505af1925050508015611328575060408051601f3d908101601f19168201909252611325918101906119d3565b60015b611382573d808015611356576040519150601f19603f3d011682016040523d82523d6000602084013e61135b565b606091505b50805161137a5760405162461bcd60e51b81526004016105d690611fec565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113a0565b5060015b949350505050565b6060600a805461052c9061232f565b6060816113dc57506040805180820190915260018152600360fc1b6020820152610518565b8160005b811561140657806113f081612364565b91506113ff9050600a8361227a565b91506113e0565b6000816001600160401b0381111561142e57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611458576020820181803683370190505b5090505b84156113a05761146d6001836122d5565b915061147a600a8661237f565b611485906030612262565b60f81b8183815181106114a857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506114ca600a8661227a565b945061145c565b6000546001600160a01b0384166114fa5760405162461bcd60e51b81526004016105d690612076565b61150381610cfb565b156115205760405162461bcd60e51b81526004016105d69061203f565b7f00000000000000000000000000000000000000000000000000000000000000008311156115605760405162461bcd60e51b81526004016105d6906121d2565b61156d6000858386610b17565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906115c9908790612240565b6001600160801b031681526020018583602001516115e79190612240565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087518154988401518816600160801b029088166001600160801b03199099169890981790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b02600160a01b600160e01b0319959093166001600160a01b031990941693909317939093161790915582905b858110156117275760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46116eb600088848861128c565b6117075760405162461bcd60e51b81526004016105d690611fec565b8161171181612364565b925050808061171f90612364565b91505061169e565b50600081815561106a90878588610b17565b3b151590565b82805461174b9061232f565b90600052602060002090601f01602090048101928261176d57600085556117b3565b82601f106117865782800160ff198235161785556117b3565b828001600101855582156117b3579182015b828111156117b3578235825591602001919060010190611798565b506107fc9291506117d6565b604080518082019091526000808252602082015290565b5b808211156107fc57600081556001016117d7565b80356001600160a01b038116811461051857600080fd5b600060208284031215611813578081fd5b610bae826117eb565b6000806040838503121561182e578081fd5b611837836117eb565b9150611845602084016117eb565b90509250929050565b600080600060608486031215611862578081fd5b61186b846117eb565b9250611879602085016117eb565b9150604084013590509250925092565b6000806000806080858703121561189e578081fd5b6118a7856117eb565b935060206118b68187016117eb565b93506040860135925060608601356001600160401b03808211156118d8578384fd5b818801915088601f8301126118eb578384fd5b8135818111156118fd576118fd6123bf565b604051601f8201601f1916810185018381118282101715611920576119206123bf565b60405281815283820185018b1015611936578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215611966578182fd5b61196f836117eb565b915060208301358015158114611983578182fd5b809150509250929050565b600080604083850312156119a0578182fd5b6119a9836117eb565b946020939093013593505050565b6000602082840312156119c8578081fd5b8135610bae8161241b565b6000602082840312156119e4578081fd5b8151610bae8161241b565b60008060208385031215611a01578182fd5b82356001600160401b0380821115611a17578384fd5b818501915085601f830112611a2a578384fd5b813581811115611a38578485fd5b866020828501011115611a49578485fd5b60209290920196919550909350505050565b600060408284031215611a6c578081fd5b50919050565b600060208284031215611a83578081fd5b8135610bae81612431565b600060208284031215611a9f578081fd5b5035919050565b60008151808452611abe8160208601602086016122ec565b601f01601f19169290920160200192915050565b60008351611ae48184602088016122ec565b835190830190611af88183602088016122ec565b01949350505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b4b90830184611aa6565b9695505050505050565b901515815260200190565b600060208252610bae6020830184611aa6565b60208082526022908201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252602a908201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736040820152693a32b73a103a37b5b2b760b11b606082015260800190565b60208082526013908201527265786365656420737461676520737570706c7960681b604082015260600190565b60208082526023908201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756040820152626e647360e81b606082015260800190565b602080825260119082015270657863656564206d617820737570706c7960781b604082015260600190565b60208082526025908201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726040820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526039908201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f6040820152781ddb995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b603a1b606082015260800190565b6020808252602b908201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60408201526a65726f206164647265737360a81b606082015260800190565b60208082526026908201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746040820152651037bbb732b960d11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252601a908201527922a9219b9918a09d1030b8383937bb32903a379031b0b63632b960311b604082015260600190565b60208082526032908201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206040820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606082015260800190565b60208082526022908201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60408201526132b960f11b606082015260800190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601d908201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604082015260600190565b60208082526021908201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252601790820152761b9bdd08195b9bdd59da08199d5b99081d1bc81b5a5b9d604a1b604082015260600190565b6020808252602e908201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060408201526d0deeedccae440c4f240d2dcc8caf60931b606082015260800190565b6020808252602f908201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560408201526e1037bbb732b91037b3103a37b5b2b760891b606082015260800190565b6020808252602d908201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560408201526c3c34b9ba32b73a103a37b5b2b760991b606082015260800190565b60208082526022908201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696040820152610ced60f31b606082015260800190565b61ffff91909116815260200190565b6001600160f01b0391909116815260200190565b90815260200190565b60006001600160801b03828116848216808303821115611af857611af8612393565b6000821982111561227557612275612393565b500190565b600082612289576122896123a9565b500490565b60008160001904831182151516156122a8576122a8612393565b500290565b60006001600160801b03838116908316818110156122cd576122cd612393565b039392505050565b6000828210156122e7576122e7612393565b500390565b60005b838110156123075781810151838201526020016122ef565b83811115610b175750506000910152565b60008161232757612327612393565b506000190190565b60028104600182168061234357607f821691505b60208210811415611a6c57634e487b7160e01b600052602260045260246000fd5b600060001982141561237857612378612393565b5060010190565b60008261238e5761238e6123a9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b81356123e081612431565b815461ffff1990811661ffff92831617808455919060208501356001600160f01b038116811461240f57600080fd5b60101b16911617905550565b6001600160e01b031981168114610a1357600080fd5b61ffff81168114610a1357600080fdfea26469706673582212209cf0b27ec659e3398dedbeabe4cf68108a47bfc515c8a23648939fb17e94a61364736f6c634300080000330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000470de4df8200000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d57336575716372484d68614661674e547678334250556a43627545314a6e57326e704e595a38313147714b742f00000000000000000000

Deployed Bytecode

0x6080604052600436106101575760003560e01c8063715018a6116100bc578063715018a61461033c5780638da5cb5b1461035157806395d89b4114610366578063986a504d1461037b578063a0712d681461039b578063a22cb465146103ae578063b88d4fde146103ce578063c002d23d146103ee578063c87b56dd14610410578063cc47a40b14610430578063d7224ba014610450578063db6b2e5914610465578063e985e9c51461047a578063f2fde38b1461049a57610157565b806301ffc9a71461015c57806306fdde0314610192578063081812fc146101b4578063095ea7b3146101e157806318160ddd1461020357806323b872dd146102255780632f745c591461024557806332cb6b0c146102655780633ccfd60b1461028757806342842e0e1461029c5780634f6ccce7146102bc57806355f804b3146102dc5780636352211e146102fc57806370a082311461031c575b600080fd5b34801561016857600080fd5b5061017c6101773660046119b7565b6104ba565b6040516101899190611b55565b60405180910390f35b34801561019e57600080fd5b506101a761051d565b6040516101899190611b60565b3480156101c057600080fd5b506101d46101cf366004611a8e565b6105af565b6040516101899190611b04565b3480156101ed57600080fd5b506102016101fc36600461198e565b6105fb565b005b34801561020f57600080fd5b50610218610694565b6040516101899190612237565b34801561023157600080fd5b5061020161024036600461184e565b61069a565b34801561025157600080fd5b5061021861026036600461198e565b6106a5565b34801561027157600080fd5b5061027a6107a0565b6040516101899190612214565b34801561029357600080fd5b506102016107a6565b3480156102a857600080fd5b506102016102b736600461184e565b6107b9565b3480156102c857600080fd5b506102186102d7366004611a8e565b6107d4565b3480156102e857600080fd5b506102016102f73660046119ef565b610800565b34801561030857600080fd5b506101d4610317366004611a8e565b61084b565b34801561032857600080fd5b50610218610337366004611802565b61085d565b34801561034857600080fd5b506102016108aa565b34801561035d57600080fd5b506101d46108f3565b34801561037257600080fd5b506101a7610902565b34801561038757600080fd5b50610201610396366004611a5b565b610911565b6102016103a9366004611a8e565b61098f565b3480156103ba57600080fd5b506102016103c9366004611954565b610a16565b3480156103da57600080fd5b506102016103e9366004611889565b610ae4565b3480156103fa57600080fd5b50610403610b1d565b6040516101899190612223565b34801561041c57600080fd5b506101a761042b366004611a8e565b610b32565b34801561043c57600080fd5b5061020161044b36600461198e565b610bb5565b34801561045c57600080fd5b50610218610c36565b34801561047157600080fd5b5061027a610c3c565b34801561048657600080fd5b5061017c61049536600461181c565b610c46565b3480156104a657600080fd5b506102016104b5366004611802565b610c74565b60006001600160e01b031982166380ac58cd60e01b14806104eb57506001600160e01b03198216635b5e139f60e01b145b8061050657506001600160e01b0319821663780e9d6360e01b145b80610515575061051582610ce2565b90505b919050565b60606001805461052c9061232f565b80601f01602080910402602001604051908101604052809291908181526020018280546105589061232f565b80156105a55780601f1061057a576101008083540402835291602001916105a5565b820191906000526020600020905b81548152906001019060200180831161058857829003601f168201915b5050505050905090565b60006105ba82610cfb565b6105df5760405162461bcd60e51b81526004016105d690612185565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006106068261084b565b9050806001600160a01b0316836001600160a01b0316141561063a5760405162461bcd60e51b81526004016105d690611faa565b806001600160a01b031661064c610d02565b6001600160a01b03161480610668575061066881610495610d02565b6106845760405162461bcd60e51b81526004016105d690611db6565b61068f838383610d06565b505050565b60005490565b61068f838383610d62565b60006106b08361085d565b82106106ce5760405162461bcd60e51b81526004016105d690611b73565b60006106d8610694565b905060008060005b83811015610781576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561073257805192505b876001600160a01b0316836001600160a01b0316141561076e57868414156107605750935061079a92505050565b8361076a81612364565b9450505b508061077981612364565b9150506106e0565b5060405162461bcd60e51b81526004016105d6906120e8565b92915050565b611b3981565b6107b76107b16108f3565b47611072565b565b61068f83838360405180602001604052806000815250610ae4565b60006107de610694565b82106107fc5760405162461bcd60e51b81526004016105d690611c72565b5090565b610808610d02565b6001600160a01b03166108196108f3565b6001600160a01b03161461083f5760405162461bcd60e51b81526004016105d690611ea0565b61068f600a838361173f565b60006108568261110e565b5192915050565b60006001600160a01b0382166108855760405162461bcd60e51b81526004016105d690611e0f565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6108b2610d02565b6001600160a01b03166108c36108f3565b6001600160a01b0316146108e95760405162461bcd60e51b81526004016105d690611ea0565b6107b76000611220565b6008546001600160a01b031690565b60606002805461052c9061232f565b610919610d02565b6001600160a01b031661092a6108f3565b6001600160a01b0316146109505760405162461bcd60e51b81526004016105d690611ea0565b611b396109606020830183611a72565b61ffff1611156109825760405162461bcd60e51b81526004016105d690611cb5565b80600961068f82826123d5565b60095461ffff168161099f610694565b6109a99190612262565b11156109c75760405162461bcd60e51b81526004016105d690611c45565b6009546109e3906201000090046001600160f01b03168261228e565b341015610a025760405162461bcd60e51b81526004016105d6906120b7565b610a13610a0d610d02565b82611272565b50565b610a1e610d02565b6001600160a01b0316826001600160a01b03161415610a4f5760405162461bcd60e51b81526004016105d690611f24565b8060066000610a5c610d02565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610aa0610d02565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610ad89190611b55565b60405180910390a35050565b610aef848484610d62565b610afb8484848461128c565b610b175760405162461bcd60e51b81526004016105d690611fec565b50505050565b6009546201000090046001600160f01b031690565b6060610b3d82610cfb565b610b595760405162461bcd60e51b81526004016105d690611ed5565b6000610b636113a8565b90506000815111610b835760405180602001604052806000815250610bae565b80610b8d846113b7565b604051602001610b9e929190611ad2565b6040516020818303038152906040525b9392505050565b610bbd610d02565b6001600160a01b0316610bce6108f3565b6001600160a01b031614610bf45760405162461bcd60e51b81526004016105d690611ea0565b611b3981610c00610694565b610c0a9190612262565b1115610c285760405162461bcd60e51b81526004016105d690611cb5565b610c328282611272565b5050565b60075481565b60095461ffff1690565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610c7c610d02565b6001600160a01b0316610c8d6108f3565b6001600160a01b031614610cb35760405162461bcd60e51b81526004016105d690611ea0565b6001600160a01b038116610cd95760405162461bcd60e51b81526004016105d690611bb5565b610a1381611220565b6001600160e01b031981166301ffc9a760e01b14919050565b6000541190565b3390565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d6d8261110e565b9050600081600001516001600160a01b0316610d87610d02565b6001600160a01b03161480610dbc5750610d9f610d02565b6001600160a01b0316610db1846105af565b6001600160a01b0316145b80610dd057508151610dd090610495610d02565b905080610def5760405162461bcd60e51b81526004016105d690611f58565b846001600160a01b031682600001516001600160a01b031614610e245760405162461bcd60e51b81526004016105d690611e5a565b6001600160a01b038416610e4a5760405162461bcd60e51b81526004016105d690611ce0565b610e578585856001610b17565b610e676000848460000151610d06565b6001600160a01b0385166000908152600460205260408120805460019290610e999084906001600160801b03166122ad565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092610ee591859116612240565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b02600160a01b600160e01b0319929093166001600160a01b03199091161716179055610f79846001612262565b6000818152600360205260409020549091506001600160a01b031661101c57610fa181610cfb565b1561101c5760408051808201825284516001600160a01b0390811682526020808701516001600160401b0390811682850190815260008781526003909352949091209251835494516001600160a01b0319909516921691909117600160a01b600160e01b031916600160a01b93909116929092029190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461106a8686866001610b17565b505050505050565b804710156110925760405162461bcd60e51b81526004016105d690611d7f565b6000826001600160a01b0316826040516110ab90611b01565b60006040518083038185875af1925050503d80600081146110e8576040519150601f19603f3d011682016040523d82523d6000602084013e6110ed565b606091505b505090508061068f5760405162461bcd60e51b81526004016105d690611d25565b6111166117bf565b61111f82610cfb565b61113b5760405162461bcd60e51b81526004016105d690611bfb565b60007f0000000000000000000000000000000000000000000000000000000000000005831061119c5761118e7f0000000000000000000000000000000000000000000000000000000000000005846122d5565b611199906001612262565b90505b825b818110611207576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156111f4579250610518915050565b50806111ff81612318565b91505061119e565b5060405162461bcd60e51b81526004016105d690612136565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c328282604051806020016040528060008152506114d1565b60006112a0846001600160a01b0316611739565b1561139c57836001600160a01b031663150b7a026112bc610d02565b8786866040518563ffffffff1660e01b81526004016112de9493929190611b18565b602060405180830381600087803b1580156112f857600080fd5b505af1925050508015611328575060408051601f3d908101601f19168201909252611325918101906119d3565b60015b611382573d808015611356576040519150601f19603f3d011682016040523d82523d6000602084013e61135b565b606091505b50805161137a5760405162461bcd60e51b81526004016105d690611fec565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113a0565b5060015b949350505050565b6060600a805461052c9061232f565b6060816113dc57506040805180820190915260018152600360fc1b6020820152610518565b8160005b811561140657806113f081612364565b91506113ff9050600a8361227a565b91506113e0565b6000816001600160401b0381111561142e57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611458576020820181803683370190505b5090505b84156113a05761146d6001836122d5565b915061147a600a8661237f565b611485906030612262565b60f81b8183815181106114a857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506114ca600a8661227a565b945061145c565b6000546001600160a01b0384166114fa5760405162461bcd60e51b81526004016105d690612076565b61150381610cfb565b156115205760405162461bcd60e51b81526004016105d69061203f565b7f00000000000000000000000000000000000000000000000000000000000000058311156115605760405162461bcd60e51b81526004016105d6906121d2565b61156d6000858386610b17565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906115c9908790612240565b6001600160801b031681526020018583602001516115e79190612240565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087518154988401518816600160801b029088166001600160801b03199099169890981790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b02600160a01b600160e01b0319959093166001600160a01b031990941693909317939093161790915582905b858110156117275760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46116eb600088848861128c565b6117075760405162461bcd60e51b81526004016105d690611fec565b8161171181612364565b925050808061171f90612364565b91505061169e565b50600081815561106a90878588610b17565b3b151590565b82805461174b9061232f565b90600052602060002090601f01602090048101928261176d57600085556117b3565b82601f106117865782800160ff198235161785556117b3565b828001600101855582156117b3579182015b828111156117b3578235825591602001919060010190611798565b506107fc9291506117d6565b604080518082019091526000808252602082015290565b5b808211156107fc57600081556001016117d7565b80356001600160a01b038116811461051857600080fd5b600060208284031215611813578081fd5b610bae826117eb565b6000806040838503121561182e578081fd5b611837836117eb565b9150611845602084016117eb565b90509250929050565b600080600060608486031215611862578081fd5b61186b846117eb565b9250611879602085016117eb565b9150604084013590509250925092565b6000806000806080858703121561189e578081fd5b6118a7856117eb565b935060206118b68187016117eb565b93506040860135925060608601356001600160401b03808211156118d8578384fd5b818801915088601f8301126118eb578384fd5b8135818111156118fd576118fd6123bf565b604051601f8201601f1916810185018381118282101715611920576119206123bf565b60405281815283820185018b1015611936578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215611966578182fd5b61196f836117eb565b915060208301358015158114611983578182fd5b809150509250929050565b600080604083850312156119a0578182fd5b6119a9836117eb565b946020939093013593505050565b6000602082840312156119c8578081fd5b8135610bae8161241b565b6000602082840312156119e4578081fd5b8151610bae8161241b565b60008060208385031215611a01578182fd5b82356001600160401b0380821115611a17578384fd5b818501915085601f830112611a2a578384fd5b813581811115611a38578485fd5b866020828501011115611a49578485fd5b60209290920196919550909350505050565b600060408284031215611a6c578081fd5b50919050565b600060208284031215611a83578081fd5b8135610bae81612431565b600060208284031215611a9f578081fd5b5035919050565b60008151808452611abe8160208601602086016122ec565b601f01601f19169290920160200192915050565b60008351611ae48184602088016122ec565b835190830190611af88183602088016122ec565b01949350505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b4b90830184611aa6565b9695505050505050565b901515815260200190565b600060208252610bae6020830184611aa6565b60208082526022908201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252602a908201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736040820152693a32b73a103a37b5b2b760b11b606082015260800190565b60208082526013908201527265786365656420737461676520737570706c7960681b604082015260600190565b60208082526023908201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756040820152626e647360e81b606082015260800190565b602080825260119082015270657863656564206d617820737570706c7960781b604082015260600190565b60208082526025908201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726040820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526039908201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f6040820152781ddb995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b603a1b606082015260800190565b6020808252602b908201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60408201526a65726f206164647265737360a81b606082015260800190565b60208082526026908201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746040820152651037bbb732b960d11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252601a908201527922a9219b9918a09d1030b8383937bb32903a379031b0b63632b960311b604082015260600190565b60208082526032908201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206040820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606082015260800190565b60208082526022908201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60408201526132b960f11b606082015260800190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601d908201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604082015260600190565b60208082526021908201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252601790820152761b9bdd08195b9bdd59da08199d5b99081d1bc81b5a5b9d604a1b604082015260600190565b6020808252602e908201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060408201526d0deeedccae440c4f240d2dcc8caf60931b606082015260800190565b6020808252602f908201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560408201526e1037bbb732b91037b3103a37b5b2b760891b606082015260800190565b6020808252602d908201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560408201526c3c34b9ba32b73a103a37b5b2b760991b606082015260800190565b60208082526022908201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696040820152610ced60f31b606082015260800190565b61ffff91909116815260200190565b6001600160f01b0391909116815260200190565b90815260200190565b60006001600160801b03828116848216808303821115611af857611af8612393565b6000821982111561227557612275612393565b500190565b600082612289576122896123a9565b500490565b60008160001904831182151516156122a8576122a8612393565b500290565b60006001600160801b03838116908316818110156122cd576122cd612393565b039392505050565b6000828210156122e7576122e7612393565b500390565b60005b838110156123075781810151838201526020016122ef565b83811115610b175750506000910152565b60008161232757612327612393565b506000190190565b60028104600182168061234357607f821691505b60208210811415611a6c57634e487b7160e01b600052602260045260246000fd5b600060001982141561237857612378612393565b5060010190565b60008261238e5761238e6123a9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b81356123e081612431565b815461ffff1990811661ffff92831617808455919060208501356001600160f01b038116811461240f57600080fd5b60101b16911617905550565b6001600160e01b031981168114610a1357600080fd5b61ffff81168114610a1357600080fdfea26469706673582212209cf0b27ec659e3398dedbeabe4cf68108a47bfc515c8a23648939fb17e94a61364736f6c63430008000033

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

0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000470de4df8200000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d57336575716372484d68614661674e547678334250556a43627545314a6e57326e704e595a38313147714b742f00000000000000000000

-----Decoded View---------------
Arg [0] : _initBaseURI (string): ipfs://QmW3euqcrHMhaFagNTvx3BPUjCbuE1JnW2npNYZ811GqKt/
Arg [1] : _stageInfo (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 00000000000000000000000000000000000000000000000000470de4df820000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d57336575716372484d68614661674e547678334250556a
Arg [5] : 43627545314a6e57326e704e595a38313147714b742f00000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.