ETH Price: $2,450.87 (+2.27%)

Token

BADDIES (BADDIES)
 

Overview

Max Total Supply

124 BADDIES

Holders

71

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Memories on King Drive: Deployer
Balance
10 BADDIES
0x396054f3012b76d2c940b233751fb18d25a80200
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:
Baddies606

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
byzantium EvmVersion
File 1 of 21 : Baddies606.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0

pragma solidity ^0.8.10;
pragma abicoder v2;

import "./core/CoreDrop721.sol";

contract Baddies606 is CoreDrop721 {

    // ---
    // Constructor
    // ---

    // @dev Contract constructor.
    constructor() CoreDrop721(
        NftOptions({
            name: "BADDIES",
            symbol: "BADDIES",
            imnotArtBps: 0,
            royaltyBps: 1000,
            startingTokenId: 1,
            maxInvocations: 606,
            contractUri: "https://ipfs.imnotart.com/ipfs/QmTdmAqY7ev1ZL9TzvZpFV6ZHH6tFqtwFPDS4c3ZPuGtwK"
        }), 
        DropOptions({
            metadataBaseUri: "https://api.imnotart.com/",
            mintPriceInWei: 0.05 ether,
            maxQuantityPerTransaction: 10,
            autoPayout: false,
            active: false,
            presaleMint: false,
            presaleActive: false,
            presaleDifferentMintPrice: false,
            presaleMintPriceInWei: 0.05 ether,
            imnotArtPayoutAddress: msg.sender,
            artistPayoutAddress: msg.sender,
            maxPerWalletEnabled: false,
            maxPerWalletQuantity: 0,
            artistProofs: false,
            artistProofsQuantity: 0,
            artistProofsAddress: msg.sender
        })
    ){
    }
}

File 2 of 21 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/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 generally not needed starting with Solidity 0.8, since 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;
        }
    }
}

File 3 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 4 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 5 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 6 of 21 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 7 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 9 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 10 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 11 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

File 12 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 13 of 21 : StringsUtil.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0

pragma solidity ^0.8.10;
pragma abicoder v2;

library StringsUtil {

    function concat(string memory _base, string memory _value) internal pure returns (string memory) {
        bytes memory _baseBytes = bytes(_base);
        bytes memory _valueBytes = bytes(_value);

        string memory _tmpValue = new string(_baseBytes.length + _valueBytes.length);
        bytes memory _newValue = bytes(_tmpValue);

        uint i;
        uint j;

        for(i=0; i<_baseBytes.length; i++) {
            _newValue[j++] = _baseBytes[i];
        }

        for(i=0; i<_valueBytes.length; i++) {
            _newValue[j++] = _valueBytes[i];
        }

        return string(_newValue);
    }

    function address2str(address _address) internal pure returns (string memory) {
        bytes memory s = new bytes(40);
        for (uint i = 0; i < 20; i++) {
            bytes1 b = bytes1(uint8(uint(uint160(_address)) / (2**(8*(19 - i)))));
            bytes1 hi = bytes1(uint8(b) / 16);
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
            s[2*i] = char(hi);
            s[2*i+1] = char(lo);            
        }
        return string(s);
    }

    function char(bytes1 b) internal pure returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
        else return bytes1(uint8(b) + 0x57);
    }

    function uint2str(uint256 _i) internal pure returns (string memory str) {
        if (_i == 0) {
            return "0";
        }

        uint256 j = _i;
        uint256 length;

        while (j != 0) {
            length++;
            j /= 10;
        }

        bytes memory bstr = new bytes(length);
        uint256 k = length;
        j = _i;

        while (j != 0) {
            bstr[--k] = bytes1(uint8(48 + j % 10));
            j /= 10;
        }

        str = string(bstr);
    }
}

File 14 of 21 : LibPart.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0

pragma solidity ^0.8.10;
pragma abicoder v2;

library LibPart {
    bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)");

    struct Part {
        address payable account;
        uint96 value;
    }

    function hash(Part memory part) internal pure returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, part.account, part.value));
    }
}

File 15 of 21 : PresaleFunctions.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0

pragma solidity ^0.8.10;
pragma abicoder v2;

contract PresaleFunctions {

    // ---
    // Properties
    // ---

    bool public presaleMint;
    bool public presaleActive;
    bool public presaleDifferentMintPrice;
    uint256 public presaleMintPriceInWei;

    // ---
    // Mappings
    // ---

    mapping(address => bool) public isPresaleAddress;
}

File 16 of 21 : DropFunctions.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0

pragma solidity ^0.8.10;
pragma abicoder v2;

contract DropFunctions {

    // ---
    // Properties
    // ---

    uint256 public invocations = 0;
    uint256 public maxInvocations;
    uint256 public nextTokenId;
    uint256 public mintPriceInWei;
    uint256 public maxQuantityPerTransaction;
    string public metadataBaseUri;
    bool public autoPayout;
    bool public active;
    bool public paused;
    bool public completed;
    uint256 public royaltyFeeBps;
    uint256 public imnotArtBps;
    address public artistPayoutAddress;
    bool public maxPerWalletEnabled;
    uint256 public maxPerWalletQuantity;

    // ---
    // Mappings
    // ---

    mapping(address => uint256) mintsPerWallet;

    // ---
    // Function Modifiers
    // ---

    modifier onlyActive() {
        require(active, "Minting is not active.");
        _;
    }

    modifier onlyNonPaused() {
        require(!paused, "Minting is paused.");
        _;
    }

    // ---
    // Functions
    // ---

    function totalSupply() external view returns (uint256) {
        return invocations;
    }
}

File 17 of 21 : AdminFunctions.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0

pragma solidity ^0.8.10;
pragma abicoder v2;

contract AdminFunctions {

    // ---
    // Properties
    // ---

    string public contractURI;
    address public imnotArtPayoutAddress;

    // ---
    // Function Modifiers
    // ---

    modifier onlyAdmin {
        require(isAdmin[msg.sender], "Only Admins.");
        _;
    }

    // ---
    // Mappings
    // ---

    mapping(address => bool) isAdmin;

    // ---
    // Functions
    // ---

    // @dev Add an address to the isAdmin mapping.
    function addAdmin(address addressToAdd) external {
        require(isAdmin[msg.sender], "Only Admins.");

        isAdmin[addressToAdd] = true;
    }

    // @dev Remove an address from the isAdmin mapping.
    function removeAdmin(address addressToRemove) external {
        require(isAdmin[msg.sender], "Only Admins.");

        isAdmin[addressToRemove] = false;
    }

    // @dev Update the contract uri.
    function updateContractUri(string memory newContractUri) external {
        require(isAdmin[msg.sender], "Only Admins.");

        contractURI = newContractUri;
    }

    // @dev Update the imnotArt payout address.
    function updateImnotartPayoutAddress(address _payoutAddress) external {
        require(isAdmin[msg.sender], "Only Admins.");

        imnotArtPayoutAddress = _payoutAddress;
    }

    // @dev Take the balance of the given contract and transfer it to the caller.
    function withdraw() external {
        require(isAdmin[msg.sender], "Only Admins.");

        uint256 amount = address(this).balance;
        require(amount > 0, "Contract balance empty.");
        (bool success, ) = payable(msg.sender).call{value: amount}("");
        require(success, "Transfer failed.");
    }
}

File 18 of 21 : IRaribleRoyaltiesV2.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0

pragma solidity ^0.8.10;
pragma abicoder v2;

import "../parts/rarible/LibPart.sol";

interface IRaribleRoyaltiesV2 {

    event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);

    function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory);
}

File 19 of 21 : INA721Standard.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0

pragma solidity ^0.8.10;
pragma abicoder v2;

interface INA721Standard {

    // ---
    // Struct
    // ---

    // @dev NftOptions to make setup of contract a lot easier.
    struct NftOptions {
        string name;
        string symbol;
        uint16 imnotArtBps;
        uint16 royaltyBps;
        uint256 startingTokenId;
        uint256 maxInvocations;
        string contractUri;
    }
}

File 20 of 21 : INA721DropStandard.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0

pragma solidity ^0.8.10;
pragma abicoder v2;

// @dev This should be used for drops where minting starts at 0/1 and the collector mints themselves.
interface INA721DropStandard {

    // ---
    // Events
    // ---

    event Mint(uint256 indexed tokenId, address indexed owner); // @todo(iolson): Add hash to the message for future on-chain generative stuff.
    event Payout(uint256 amount, address payee);

    // ---
    // Struct
    // ---

    // @dev DropOptions to make setup of contract a lot easier.
    struct DropOptions {
        string metadataBaseUri;
        uint256 mintPriceInWei;
        uint256 maxQuantityPerTransaction;
        bool autoPayout;
        bool active;
        bool presaleMint;
        bool presaleActive;
        bool presaleDifferentMintPrice;
        uint256 presaleMintPriceInWei;
        address imnotArtPayoutAddress;
        address artistPayoutAddress;
        bool maxPerWalletEnabled;
        uint256 maxPerWalletQuantity;
        bool artistProofs;
        uint256 artistProofsQuantity;
        address artistProofsAddress;
    }

    // ---
    // Functions
    // ---

    function mint(uint256 quantity) external payable;

    function updateImNotArtPayoutAddress(address payoutAddress) external;

    function updateArtistPayoutAddress(address payoutAddress) external;

    function bulkAddPresaleWallets(address[] memory presaleWallets) external;

    function addPresaleWallet(address presaleWallet) external;

    function removePresaleWallet(address presaleWallet) external;
}

File 21 of 21 : CoreDrop721.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0

pragma solidity ^0.8.10;
pragma abicoder v2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./interfaces/INA721Standard.sol";
import "./interfaces/INA721DropStandard.sol";
import "./interfaces/IRaribleRoyaltiesV2.sol";
import "./parts/AdminFunctions.sol";
import "./parts/DropFunctions.sol";
import "./parts/PresaleFunctions.sol";
import "./parts/rarible/LibPart.sol";
import "./utils/StringsUtil.sol";

contract CoreDrop721 is Ownable, ERC721, INA721Standard, INA721DropStandard, AdminFunctions, DropFunctions, PresaleFunctions, IRaribleRoyaltiesV2 {
    using SafeMath for uint256;

    // ---
    // Constants
    // ---

    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;
    bytes4 private constant _INTERFACE_ID_EIP2981 = 0x2a55205a;
    bytes4 private constant _INTERFACE_RARIBLE_ROYALTIES = 0xcad96cca; // bytes4(keccak256('getRaribleV2Royalties(uint256)')) == 0xcad96cca

    // ---
    // Constructor
    // ---

    // @dev Contract constructor.
    constructor(NftOptions memory options, DropOptions memory dropOptions) ERC721(options.name, options.symbol) {
        nextTokenId = options.startingTokenId;
        maxInvocations = options.maxInvocations;
        imnotArtBps = options.imnotArtBps;
        royaltyFeeBps = options.royaltyBps;
        contractURI = options.contractUri;
        metadataBaseUri = dropOptions.metadataBaseUri;
        mintPriceInWei = dropOptions.mintPriceInWei;
        active = dropOptions.active;
        presaleMint = dropOptions.presaleMint;
        presaleActive = dropOptions.presaleActive;
        presaleDifferentMintPrice = dropOptions.presaleDifferentMintPrice;
        presaleMintPriceInWei = dropOptions.presaleMintPriceInWei;
        autoPayout = dropOptions.autoPayout;
        imnotArtPayoutAddress = dropOptions.imnotArtPayoutAddress;
        artistPayoutAddress = dropOptions.artistPayoutAddress;
        maxQuantityPerTransaction = dropOptions.maxQuantityPerTransaction;
        maxPerWalletEnabled = dropOptions.maxPerWalletEnabled;
        maxPerWalletQuantity = dropOptions.maxPerWalletQuantity;
        paused = false;
        completed = false;

        // Add default admins.
        isAdmin[msg.sender] = true; // Deployer
        address gnosisSafe = address(0x12b66baFc99D351f7e24874B3e52B1889641D3f3); // imnotArt Gnosis Safe
        isAdmin[gnosisSafe] = true;

        // Artist Proofs
        if (dropOptions.artistProofs) {
            internalMint(dropOptions.artistProofsAddress, dropOptions.artistProofsQuantity);
        }
    }

    // ---
    // Supported Interfaces
    // ---

    // @dev Return the support interfaces of this contract.
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == _INTERFACE_ID_ERC165
        || interfaceId == _INTERFACE_RARIBLE_ROYALTIES
        || interfaceId == _INTERFACE_ID_ERC721
        || interfaceId == _INTERFACE_ID_ERC721_METADATA
        || interfaceId == _INTERFACE_ID_EIP2981
        || super.supportsInterface(interfaceId);
    }

    // ---
    // Minting
    // ---

    // @dev Mint new tokens from the contract.
    function mint(uint256 quantity) public payable onlyActive onlyNonPaused {
        require(quantity <= maxQuantityPerTransaction, StringsUtil.concat("Max limit per transaction is ", StringsUtil.uint2str(maxQuantityPerTransaction)));
        require(invocations.add(quantity) <= maxInvocations, "Must not exceed max invocations.");
        uint256 mintPrice = mintPriceInWei;

        if (presaleMint && presaleActive) {
            require(isPresaleAddress[_msgSender()], "Wallet is not part of pre-sale.");

            if (presaleDifferentMintPrice) {
                mintPrice = presaleMintPriceInWei;
            }
        }

        // Check against mint price.
        require(msg.value >= (mintPrice * quantity), "Must send minimum value.");

        uint256 currentMints = 0;
        if (maxPerWalletEnabled) {
            currentMints = mintsPerWallet[_msgSender()];
            require(currentMints.add(quantity) <= maxPerWalletQuantity, "Must not exceed max mints per wallet.");
        }

        internalMint(_msgSender(), quantity);

        uint256 balance = msg.value;
        uint256 refund = balance.sub((mintPrice * quantity));
        if (refund > 0) {
            balance = balance.sub(refund);
            (bool refundSuccess, ) = payable(_msgSender()).call{value: refund}("");
            require(refundSuccess, "Transfer failed.");
            emit Payout(refund, _msgSender());
        }

        // Auto-Payout Feature
        if (autoPayout) {
            // Payout imnotArt
            uint256 imnotArtPayout = SafeMath.div(SafeMath.mul(balance, imnotArtBps), 10000);
            if (imnotArtPayout > 0) {
                balance = balance.sub(imnotArtPayout);
                (bool imnotArtPayoutSuccess, ) = payable(imnotArtPayoutAddress).call{value: imnotArtPayout}("");
                require(imnotArtPayoutSuccess, "Transfer failed.");
                emit Payout(imnotArtPayout, imnotArtPayoutAddress);
            }

            // Payout Artist
            (bool artistPayoutSuccess, ) = payable(artistPayoutAddress).call{value: balance}("");
            require(artistPayoutSuccess, "Transfer failed.");
            emit Payout(balance, artistPayoutAddress);
        }

        if (maxPerWalletEnabled) {
            mintsPerWallet[_msgSender()] = currentMints.add(quantity);
        }
    }

    function internalMint(address to, uint256 quantity) internal {
        uint8 i;
        uint256 tokenId = nextTokenId;
        for (i = 0; i < quantity; i++) {
            _safeMint(to, tokenId);
            emit Mint(tokenId, to);
            tokenId = tokenId.add(1);
        }

        // Update the nextTokenId
        nextTokenId = nextTokenId.add(quantity);

        // Update number of invocations
        invocations = invocations.add(quantity);
    }

    // ---
    // Functions
    // ---

    // @dev Override the updateImNotArtPayoutAddress function to account for admin security.
    function updateImNotArtPayoutAddress(address _payoutAddress) external override onlyAdmin {
        imnotArtPayoutAddress = _payoutAddress;
    }

    // @dev Override the updateArtistPayoutAddress function to account for admin security.
    function updateArtistPayoutAddress(address _payoutAddress) external override onlyAdmin {
        artistPayoutAddress = _payoutAddress;
    }

    // @dev Update the base URL that will be used for the tokenURI() function.
    function updateMetadataBaseUri(string memory _metadataBaseUri) public onlyAdmin {
        metadataBaseUri = _metadataBaseUri;
    }

    // @dev Bulk add wallets to pre-sale list.
    function bulkAddPresaleWallets(address[] memory presaleWallets) external override onlyAdmin {
        require(presaleWallets.length > 1, "Use addPresaleWallet function instead.");
        uint amountOfPresaleWallets = presaleWallets.length;
        for (uint i = 0; i < amountOfPresaleWallets; i++) {
            isPresaleAddress[presaleWallets[i]] = true;
        }
    }

    // @dev Add a wallet to pre-sale list.
    function addPresaleWallet(address presaleWallet) public onlyAdmin {
        isPresaleAddress[presaleWallet] = true;
    }

    // @dev Remove a wallet from pre-sale list.
    function removePresaleWallet(address presaleWallet) public onlyAdmin {
        require((_msgSender() != presaleWallet), "Cannot remove self.");

        isPresaleAddress[presaleWallet] = false;
    }

    // @dev Update the max invocations, this can only be done BEFORE the minting is active.
    function updateMaxInvocations(uint256 newMaxInvocations) public onlyAdmin {
        require(!active, "Cannot change max invocations after active.");
        maxInvocations = newMaxInvocations;
    }

    // @dev Update the max quantity per transaction, this can only be done BEFORE the minting is active.
    function updateMaxQuantityPerTransaction(uint256 newMaxQuantityPerTransaction) public onlyAdmin {
        require(!active, "Cannot change max quantity per transaction after active.");
        maxQuantityPerTransaction = newMaxQuantityPerTransaction;
    }

    // @dev Update the mint price, this can only be done BEFORE the minting is active.
    function updateMintPriceInWei(uint256 newMintPriceInWei) public onlyAdmin {
        mintPriceInWei = newMintPriceInWei;
    }

    // @dev Update the presale mint price, this can only be done BEFORE the minting is active.
    function updatePresaleMintPriceInWei(uint256 newMintPriceInWei) public onlyAdmin {
        presaleMintPriceInWei = newMintPriceInWei;
    }

    // @dev Enable minting and make contract active.
    function enableMinting() public onlyAdmin {
        active = true;
    }

    // @dev Enable public sale on the mint function.
    function enablePublicSale() public onlyAdmin {
        presaleActive = false;
    }

    // @dev Toggle the pause state of minting.
    function toggleMintPause() public onlyAdmin {
        paused = !paused;
    }

    // @dev Override the tokenURI function to return the base URL + concat and tokenId.
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "Token ID does not exist.");

        return StringsUtil.concat(metadataBaseUri, StringsUtil.uint2str(tokenId));
    }

    // ---
    // Secondary Marketplace Functions
    // ---

    // @dev Rarible royalties V2 implementation.
    function getRaribleV2Royalties(uint256 id) external view override returns (LibPart.Part[] memory) {
        require(_exists(id), "Token ID does not exist.");

        LibPart.Part[] memory royalties = new LibPart.Part[](1);
        royalties[0] = LibPart.Part({
            account : payable(address(this)),
            value : uint96(royaltyFeeBps)
        });

        return royalties;
    }

    // @dev EIP-2981 royalty standard implementation.
    function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 amount) {
        require(_exists(tokenId), "Token ID does not exist.");

        uint256 royaltyPercentageAmount = SafeMath.div(SafeMath.mul(salePrice, royaltyFeeBps), 10000);
        return (payable(address(this)), royaltyPercentageAmount);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"Mint","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":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"payee","type":"address"}],"name":"Payout","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","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":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addressToAdd","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"presaleWallet","type":"address"}],"name":"addPresaleWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistPayoutAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoPayout","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"presaleWallets","type":"address[]"}],"name":"bulkAddPresaleWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"completed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enablePublicSale","outputs":[],"stateMutability":"nonpayable","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":"id","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imnotArtBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imnotArtPayoutAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"invocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isPresaleAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxInvocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWalletEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWalletQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxQuantityPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataBaseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPriceInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleDifferentMintPrice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMintPriceInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addressToRemove","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"presaleWallet","type":"address"}],"name":"removePresaleWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleMintPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_payoutAddress","type":"address"}],"name":"updateArtistPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractUri","type":"string"}],"name":"updateContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_payoutAddress","type":"address"}],"name":"updateImNotArtPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_payoutAddress","type":"address"}],"name":"updateImnotartPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxInvocations","type":"uint256"}],"name":"updateMaxInvocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxQuantityPerTransaction","type":"uint256"}],"name":"updateMaxQuantityPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataBaseUri","type":"string"}],"name":"updateMetadataBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintPriceInWei","type":"uint256"}],"name":"updateMintPriceInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintPriceInWei","type":"uint256"}],"name":"updatePresaleMintPriceInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600a553480156200001657600080fd5b506040518060e001604052806040518060400160405280600781526020017f424144444945530000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f42414444494553000000000000000000000000000000000000000000000000008152508152602001600061ffff1681526020016103e861ffff1681526020016001815260200161025e81526020016040518060800160405280604d8152602001620041b2604d913990526040805161024081018252601961020082019081527f68747470733a2f2f6170692e696d6e6f746172742e636f6d2f00000000000000610220830152815266b1a2bc2ec500006020808301829052600a938301939093526000606083018190526080830181905260a0830181905260c0830181905260e083018190526101008301919091523361012083018190526101408301819052610160830182905261018083018290526101a083018290526101c08301919091526101e0820152825191830151909190620001c6620001b7640100000000620003e4810204565b640100000000620003e8810204565b8151620001db90600190602085019062000997565b508051620001f190600290602084019062000997565b5050506080820151600c5560a0820151600b55604082015161ffff90811660125560608301511660115560c08201518051620002369160079160209091019062000997565b50805180516200024f91600f9160209091019062000997565b50602080820151600d5560808201516010805460a08501516016805460c088015160e08901511515620100000262ff00001991151561010090810295151561ff00191661ffff199485161795909517919091161790915581870151601755606087015161012088015160088054600160a060020a03928316600160a060020a0319909116179055610140890151601380546040808d0151600e556101608d015115157401000000000000000000000000000000000000000002600160a860020a0319909216939094169290921791909117905561018089015160145563ffff00001991151560ff19971515909402871692909416919091179190911716909155336000908152600990935282208054821660019081179091557312b66bafc99d351f7e24874b3e52b1889641d3f3928390527faae759814ff5607a0a302cd9945f57c1269196b3f2dd4db241246f4c3d95132780549092161790556101a082015115620003db57620003db826101e00151836101c0015162000438640100000000026401000000009004565b50505062000bc0565b3390565b60008054600160a060020a03838116600160a060020a0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600c546000905b828260ff161015620004c8576200046084826401000000006200050e810204565b604051600160a060020a0385169082907ff3cea5493d790af0133817606f7350a91d7f154ea52eaa79d179d4d231e5010290600090a3620004b1816001640100000000620021b86200053d82021704565b905081620004bf8162000a6c565b9250506200043f565b600c54620004e59084640100000000620021b86200053d82021704565b600c55600a54620005059084640100000000620021b86200053d82021704565b600a5550505050565b6200053982826040518060200160405280600081525062000552640100000000026401000000009004565b5050565b60006200054b828462000a8f565b9392505050565b62000567838364010000000062000605810204565b6200057f600084848464010000000062000794810204565b62000600576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201526000805160206200419283398151915260448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084015b60405180910390fd5b505050565b600160a060020a03821662000677576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620005f7565b6200068b8164010000000062000974810204565b15620006f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620005f7565b6200070b6000838364010000000062000600810204565b600160a060020a03821660009081526004602052604081208054600192906200073690849062000a8f565b90915550506000818152600360205260408082208054600160a060020a031916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000620007b8600160a060020a038516640100000000620021cb6200099182021704565b156200096857600160a060020a03841663150b7a02620007e0640100000000620003e4810204565b8786866040518563ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040162000820949392919062000aaa565b6020604051808303816000875af19250505080156200085e575060408051601f3d908101601f191682019092526200085b9181019062000b26565b60015b6200091c573d8080156200088f576040519150601f19603f3d011682016040523d82523d6000602084013e62000894565b606091505b50805162000914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201526000805160206200419283398151915260448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401620005f7565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506200096c565b5060015b949350505050565b600090815260036020526040902054600160a060020a0316151590565b3b151590565b828054620009a59062000b6a565b90600052602060002090601f016020900481019282620009c9576000855562000a14565b82601f10620009e457805160ff191683800117855562000a14565b8280016001018555821562000a14579182015b8281111562000a14578251825591602001919060010190620009f7565b5062000a2292915062000a26565b5090565b5b8082111562000a22576000815560010162000a27565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600060ff821660ff81141562000a865762000a8662000a3d565b60010192915050565b6000821982111562000aa55762000aa562000a3d565b500190565b6000600160a060020a038087168352602081871681850152856040850152608060608501528451915081608085015260005b8281101562000afa5785810182015185820160a00152810162000adc565b8281111562000b0d57600060a084870101525b5050601f01601f19169190910160a00195945050505050565b60006020828403121562000b3957600080fd5b81517fffffffff00000000000000000000000000000000000000000000000000000000811681146200054b57600080fd5b60028104600182168062000b7f57607f821691505b6020821081141562000bba577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6135c28062000bd06000396000f3fe6080604052600436106103b4576000357c010000000000000000000000000000000000000000000000000000000090048063715018a6116101f9578063b88d4fde1161011f578063d5291e4c116100bd578063e985e9c51161008c578063e985e9c514610a53578063ee1a14c314610a9c578063f2fde38b14610abc578063f433036814610adc57600080fd5b8063d5291e4c146105f7578063da56665514610a13578063e797ec1b14610a29578063e8a3d48514610a3e57600080fd5b8063c34a2a3a116100f9578063c34a2a3a14610990578063c87b56dd146109b0578063cad96cca146109d0578063d399b7ac146109fd57600080fd5b8063b88d4fde1461093a578063b973d8591461095a578063bdaaf5fa1461097a57600080fd5b80638f99822a11610197578063a0712d6811610166578063a0712d68146108c7578063a22cb465146108da578063a4445d4d146108fa578063ae856ce31461091a57600080fd5b80638f99822a14610865578063911927651461087b57806395d89b41146108915780639d9a7fe9146108a657600080fd5b80637f392078116101d35780637f392078146107e7578063811e0aa914610807578063871b4cfc146108275780638da5cb5b1461084757600080fd5b8063715018a6146107a257806375794a3c146107b75780637764db39146107cd57600080fd5b806336864adb116102de57806353135ca01161027c5780636352211e1161024b5780636352211e1461072c5780636cbdef611461074c578063704802751461076257806370a082311461078257600080fd5b806353135ca0146106be57806359533d6c146106dd5780635c464229146106f75780635c975abb1461070c57600080fd5b806342842e0e116102b857806342842e0e1461062c57806347c8ff5e1461064c5780634a6f07a51461066c5780634ce2ee831461068c57600080fd5b806336864adb146105e257806338a2801b146105f75780633ccfd60b1461061757600080fd5b80631785f53c1161035657806323b872dd1161032557806323b872dd1461053d5780632a55205a1461055d5780632dd28c5c1461059c57806330df6548146105cc57600080fd5b80631785f53c146104c957806318160ddd146104e95780631fce4e8d146105085780632316b4da1461052857600080fd5b80630430f25b116103925780630430f25b1461042f57806306fdde031461044f578063081812fc14610471578063095ea7b3146104a957600080fd5b806301fb7f26146103b957806301ffc9a7146103db57806302fb0c5e14610410575b600080fd5b3480156103c557600080fd5b506103d96103d4366004612e30565b610af2565b005b3480156103e757600080fd5b506103fb6103f6366004612e5f565b610bb3565b60405190151581526020015b60405180910390f35b34801561041c57600080fd5b506010546103fb90610100900460ff1681565b34801561043b57600080fd5b506103d961044a366004612e30565b610cc7565b34801561045b57600080fd5b50610464610cfe565b6040516104079190612ec9565b34801561047d57600080fd5b5061049161048c366004612e30565b610d90565b604051600160a060020a039091168152602001610407565b3480156104b557600080fd5b506103d96104c4366004612ef8565b610e2c565b3480156104d557600080fd5b506103d96104e4366004612f22565b610f64565b3480156104f557600080fd5b50600a545b604051908152602001610407565b34801561051457600080fd5b506016546103fb9062010000900460ff1681565b34801561053457600080fd5b506103d9610fb7565b34801561054957600080fd5b506103d9610558366004612f3d565b610ff6565b34801561056957600080fd5b5061057d610578366004612f79565b61102a565b60408051600160a060020a039093168352602083019190915201610407565b3480156105a857600080fd5b506103fb6105b7366004612f22565b60186020526000908152604090205460ff1681565b3480156105d857600080fd5b506104fa60145481565b3480156105ee57600080fd5b5061046461107a565b34801561060357600080fd5b506103d9610612366004612f22565b611108565b34801561062357600080fd5b506103d9611169565b34801561063857600080fd5b506103d9610647366004612f3d565b61125c565b34801561065857600080fd5b506103d961066736600461303d565b611277565b34801561067857600080fd5b506103d9610687366004612f22565b6112bc565b34801561069857600080fd5b506013546103fb9074010000000000000000000000000000000000000000900460ff1681565b3480156106ca57600080fd5b506016546103fb90610100900460ff1681565b3480156106e957600080fd5b506016546103fb9060ff1681565b34801561070357600080fd5b506103d961131d565b34801561071857600080fd5b506010546103fb9062010000900460ff1681565b34801561073857600080fd5b50610491610747366004612e30565b61136e565b34801561075857600080fd5b506104fa600b5481565b34801561076e57600080fd5b506103d961077d366004612f22565b6113fc565b34801561078e57600080fd5b506104fa61079d366004612f22565b611452565b3480156107ae57600080fd5b506103d96114ef565b3480156107c357600080fd5b506104fa600c5481565b3480156107d957600080fd5b506010546103fb9060ff1681565b3480156107f357600080fd5b506103d961080236600461303d565b611558565b34801561081357600080fd5b506103d9610822366004612f22565b61159d565b34801561083357600080fd5b506103d9610842366004612e30565b61164c565b34801561085357600080fd5b50600054600160a060020a0316610491565b34801561087157600080fd5b506104fa600e5481565b34801561088757600080fd5b506104fa60115481565b34801561089d57600080fd5b50610464611683565b3480156108b257600080fd5b506010546103fb906301000000900460ff1681565b6103d96108d5366004612e30565b611692565b3480156108e657600080fd5b506103d96108f5366004613086565b611c9a565b34801561090657600080fd5b506103d9610915366004612f22565b611ca5565b34801561092657600080fd5b506103d96109353660046130c2565b611cfb565b34801561094657600080fd5b506103d961095536600461316e565b611e10565b34801561096657600080fd5b5060135461049190600160a060020a031681565b34801561098657600080fd5b506104fa600a5481565b34801561099c57600080fd5b5060085461049190600160a060020a031681565b3480156109bc57600080fd5b506104646109cb366004612e30565b611e4b565b3480156109dc57600080fd5b506109f06109eb366004612e30565b611f0c565b60405161040791906131ea565b348015610a0957600080fd5b506104fa60175481565b348015610a1f57600080fd5b506104fa60125481565b348015610a3557600080fd5b506103d9611fc8565b348015610a4a57600080fd5b5061046461200b565b348015610a5f57600080fd5b506103fb610a6e366004613250565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610aa857600080fd5b506103d9610ab7366004612e30565b612018565b348015610ac857600080fd5b506103d9610ad7366004612f22565b6120d0565b348015610ae857600080fd5b506104fa600d5481565b3360009081526009602052604090205460ff16610b2d5760405160e560020a62461bcd028152600401610b2490613283565b60405180910390fd5b601054610100900460ff1615610bae5760405160e560020a62461bcd02815260206004820152603860248201527f43616e6e6f74206368616e6765206d6178207175616e7469747920706572207460448201527f72616e73616374696f6e206166746572206163746976652e00000000000000006064820152608401610b24565b600e55565b6000600160e060020a031982167f01ffc9a7000000000000000000000000000000000000000000000000000000001480610c165750600160e060020a031982167fcad96cca00000000000000000000000000000000000000000000000000000000145b80610c4a5750600160e060020a031982167f80ac58cd00000000000000000000000000000000000000000000000000000000145b80610c7e5750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610cb25750600160e060020a031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b80610cc15750610cc1826121d1565b92915050565b3360009081526009602052604090205460ff16610cf95760405160e560020a62461bcd028152600401610b2490613283565b600d55565b606060018054610d0d906132ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610d39906132ba565b8015610d865780601f10610d5b57610100808354040283529160200191610d86565b820191906000526020600020905b815481529060010190602001808311610d6957829003601f168201915b5050505050905090565b6000610d9b8261226c565b610e105760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b24565b50600090815260056020526040902054600160a060020a031690565b6000610e378261136e565b905080600160a060020a031683600160a060020a03161415610ec45760405160e560020a62461bcd02815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b24565b33600160a060020a0382161480610ee05750610ee08133610a6e565b610f555760405160e560020a62461bcd02815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b24565b610f5f8383612289565b505050565b3360009081526009602052604090205460ff16610f965760405160e560020a62461bcd028152600401610b2490613283565b600160a060020a03166000908152600960205260409020805460ff19169055565b3360009081526009602052604090205460ff16610fe95760405160e560020a62461bcd028152600401610b2490613283565b6016805461ff0019169055565b6110003382612304565b61101f5760405160e560020a62461bcd028152600401610b24906132f8565b610f5f838383612402565b6000806110368461226c565b6110555760405160e560020a62461bcd028152600401610b2490613355565b600061106e611066856011546125e2565b6127106125ee565b30969095509350505050565b600f8054611087906132ba565b80601f01602080910402602001604051908101604052809291908181526020018280546110b3906132ba565b80156111005780601f106110d557610100808354040283529160200191611100565b820191906000526020600020905b8154815290600101906020018083116110e357829003601f168201915b505050505081565b3360009081526009602052604090205460ff1661113a5760405160e560020a62461bcd028152600401610b2490613283565b6008805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b3360009081526009602052604090205460ff1661119b5760405160e560020a62461bcd028152600401610b2490613283565b3031806111ed5760405160e560020a62461bcd02815260206004820152601760248201527f436f6e74726163742062616c616e636520656d7074792e0000000000000000006044820152606401610b24565b604051600090339083908381818185875af1925050503d806000811461122f576040519150601f19603f3d011682016040523d82523d6000602084013e611234565b606091505b50509050806112585760405160e560020a62461bcd028152600401610b249061338c565b5050565b610f5f83838360405180602001604052806000815250611e10565b3360009081526009602052604090205460ff166112a95760405160e560020a62461bcd028152600401610b2490613283565b8051611258906007906020840190612d97565b3360009081526009602052604090205460ff166112ee5760405160e560020a62461bcd028152600401610b2490613283565b6013805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b3360009081526009602052604090205460ff1661134f5760405160e560020a62461bcd028152600401610b2490613283565b6010805462ff0000198116620100009182900460ff1615909102179055565b600081815260036020526040812054600160a060020a031680610cc15760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b24565b3360009081526009602052604090205460ff1661142e5760405160e560020a62461bcd028152600401610b2490613283565b600160a060020a03166000908152600960205260409020805460ff19166001179055565b6000600160a060020a0382166114d35760405160e560020a62461bcd02815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b24565b50600160a060020a031660009081526004602052604090205490565b600054600160a060020a0316331461154c5760405160e560020a62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b24565b61155660006125fa565b565b3360009081526009602052604090205460ff1661158a5760405160e560020a62461bcd028152600401610b2490613283565b805161125890600f906020840190612d97565b3360009081526009602052604090205460ff166115cf5760405160e560020a62461bcd028152600401610b2490613283565b33600160a060020a038216141561162b5760405160e560020a62461bcd02815260206004820152601360248201527f43616e6e6f742072656d6f76652073656c662e000000000000000000000000006044820152606401610b24565b600160a060020a03166000908152601860205260409020805460ff19169055565b3360009081526009602052604090205460ff1661167e5760405160e560020a62461bcd028152600401610b2490613283565b601755565b606060028054610d0d906132ba565b601054610100900460ff166116ec5760405160e560020a62461bcd02815260206004820152601660248201527f4d696e74696e67206973206e6f74206163746976652e000000000000000000006044820152606401610b24565b60105462010000900460ff16156117485760405160e560020a62461bcd02815260206004820152601260248201527f4d696e74696e67206973207061757365642e00000000000000000000000000006044820152606401610b24565b600e548111156117976040518060400160405280601d81526020017f4d6178206c696d697420706572207472616e73616374696f6e20697320000000815250611792600e54612657565b612797565b906117b85760405160e560020a62461bcd028152600401610b249190612ec9565b50600b54600a546117c990836121b8565b111561181a5760405160e560020a62461bcd02815260206004820181905260248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e732e6044820152606401610b24565b600d5460165460ff1680156118365750601654610100900460ff165b156118b3573360009081526018602052604090205460ff1661189d5760405160e560020a62461bcd02815260206004820152601f60248201527f57616c6c6574206973206e6f742070617274206f66207072652d73616c652e006044820152606401610b24565b60165462010000900460ff16156118b357506017545b6118bd82826133dc565b34101561190f5760405160e560020a62461bcd02815260206004820152601860248201527f4d7573742073656e64206d696e696d756d2076616c75652e00000000000000006044820152606401610b24565b60135460009074010000000000000000000000000000000000000000900460ff16156119ca57503360009081526015602052604090205460145461195382856121b8565b11156119ca5760405160e560020a62461bcd02815260206004820152602560248201527f4d757374206e6f7420657863656564206d6178206d696e74732070657220776160448201527f6c6c65742e0000000000000000000000000000000000000000000000000000006064820152608401610b24565b6119d43384612923565b3460006119eb6119e486866133dc565b83906129ba565b90508015611aa7576119fd82826129ba565b604051909250600090339083908381818185875af1925050503d8060008114611a42576040519150601f19603f3d011682016040523d82523d6000602084013e611a47565b606091505b5050905080611a6b5760405160e560020a62461bcd028152600401610b249061338c565b6040805183815233602082015281517f9b5d1a613fa5f0790b36b13103706e31fca06b229d87e9915b29fc20c1d76490929181900390910190a1505b60105460ff1615611c55576000611ac3611066846012546125e2565b90508015611b9757611ad583826129ba565b600854604051919450600091600160a060020a039091169083908381818185875af1925050503d8060008114611b27576040519150601f19603f3d011682016040523d82523d6000602084013e611b2c565b606091505b5050905080611b505760405160e560020a62461bcd028152600401610b249061338c565b60085460408051848152600160a060020a0390921660208301527f9b5d1a613fa5f0790b36b13103706e31fca06b229d87e9915b29fc20c1d76490910160405180910390a1505b601354604051600091600160a060020a03169085908381818185875af1925050503d8060008114611be4576040519150601f19603f3d011682016040523d82523d6000602084013e611be9565b606091505b5050905080611c0d5760405160e560020a62461bcd028152600401610b249061338c565b60135460408051868152600160a060020a0390921660208301527f9b5d1a613fa5f0790b36b13103706e31fca06b229d87e9915b29fc20c1d76490910160405180910390a150505b60135474010000000000000000000000000000000000000000900460ff1615611c9357611c8283866121b8565b336000908152601560205260409020555b5050505050565b6112583383836129c6565b3360009081526009602052604090205460ff16611cd75760405160e560020a62461bcd028152600401610b2490613283565b600160a060020a03166000908152601860205260409020805460ff19166001179055565b3360009081526009602052604090205460ff16611d2d5760405160e560020a62461bcd028152600401610b2490613283565b6001815111611da75760405160e560020a62461bcd02815260206004820152602660248201527f5573652061646450726573616c6557616c6c65742066756e6374696f6e20696e60448201527f73746561642e00000000000000000000000000000000000000000000000000006064820152608401610b24565b805160005b81811015610f5f57600160186000858481518110611dcc57611dcc6133fb565b602090810291909101810151600160a060020a03168252810191909152604001600020805460ff191691151591909117905580611e0881613414565b915050611dac565b611e1a3383612304565b611e395760405160e560020a62461bcd028152600401610b24906132f8565b611e4584848484612a98565b50505050565b6060611e568261226c565b611e755760405160e560020a62461bcd028152600401610b2490613355565b610cc1600f8054611e85906132ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611eb1906132ba565b8015611efe5780601f10611ed357610100808354040283529160200191611efe565b820191906000526020600020905b815481529060010190602001808311611ee157829003601f168201915b505050505061179284612657565b6060611f178261226c565b611f365760405160e560020a62461bcd028152600401610b2490613355565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081611f4d579050509050604051806040016040528030600160a060020a031681526020016011546bffffffffffffffffffffffff1681525081600081518110611fb757611fb76133fb565b602090810291909101015292915050565b3360009081526009602052604090205460ff16611ffa5760405160e560020a62461bcd028152600401610b2490613283565b6010805461ff001916610100179055565b60078054611087906132ba565b3360009081526009602052604090205460ff1661204a5760405160e560020a62461bcd028152600401610b2490613283565b601054610100900460ff16156120cb5760405160e560020a62461bcd02815260206004820152602b60248201527f43616e6e6f74206368616e6765206d617820696e766f636174696f6e7320616660448201527f746572206163746976652e0000000000000000000000000000000000000000006064820152608401610b24565b600b55565b600054600160a060020a0316331461212d5760405160e560020a62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b24565b600160a060020a0381166121ac5760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b24565b6121b5816125fa565b50565b60006121c4828461342f565b9392505050565b3b151590565b6000600160e060020a031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806122345750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610cc157507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a0319831614610cc1565b600090815260036020526040902054600160a060020a0316151590565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03841690811790915581906122cb8261136e565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061230f8261226c565b6123845760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b24565b600061238f8361136e565b905080600160a060020a031684600160a060020a031614806123ca575083600160a060020a03166123bf84610d90565b600160a060020a0316145b806123fa5750600160a060020a0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b82600160a060020a03166124158261136e565b600160a060020a0316146124945760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610b24565b600160a060020a0382166125125760405160e560020a62461bcd028152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b24565b61251d600082612289565b600160a060020a0383166000908152600460205260408120805460019290612546908490613447565b9091555050600160a060020a038216600090815260046020526040812080546001929061257490849061342f565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006121c482846133dc565b60006121c48284613477565b60008054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608161269757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156126c157806126ab81613414565b91506126ba9050600a83613477565b915061269b565b60008167ffffffffffffffff8111156126dc576126dc612f9b565b6040519080825280601f01601f191660200182016040528015612706576020820181803683370190505b508593509050815b831561278e5761271f600a8561348b565b61272a90603061342f565b60f860020a028261273a8361349f565b9250828151811061274d5761274d6133fb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612787600a85613477565b935061270e565b50949350505050565b80518251606091849184916000916127af919061342f565b67ffffffffffffffff8111156127c7576127c7612f9b565b6040519080825280601f01601f1916602001820160405280156127f1576020820181803683370190505b509050806000805b855182101561288557858281518110612814576128146133fb565b602001015160f860020a900460f860020a0283828061283290613414565b935081518110612844576128446133fb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508161287d81613414565b9250506127f9565b600091505b8451821015612916578482815181106128a5576128a56133fb565b602001015160f860020a900460f860020a028382806128c390613414565b9350815181106128d5576128d56133fb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508161290e81613414565b92505061288a565b5090979650505050505050565b600c546000905b828260ff1610156129945761293f8482612ace565b604051600160a060020a0385169082907ff3cea5493d790af0133817606f7350a91d7f154ea52eaa79d179d4d231e5010290600090a36129808160016121b8565b90508161298c816134b6565b92505061292a565b600c546129a190846121b8565b600c55600a546129b190846121b8565b600a5550505050565b60006121c48284613447565b81600160a060020a031683600160a060020a03161415612a2b5760405160e560020a62461bcd02815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b24565b600160a060020a03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612aa3848484612402565b612aaf84848484612ae8565b611e455760405160e560020a62461bcd028152600401610b24906134d6565b611258828260405180602001604052806000815250612c1b565b6000600160a060020a0384163b15612c10576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a0290612b45903390899088908890600401613533565b6020604051808303816000875af1925050508015612b80575060408051601f3d908101601f19168201909252612b7d9181019061356f565b60015b612bdd573d808015612bae576040519150601f19603f3d011682016040523d82523d6000602084013e612bb3565b606091505b508051612bd55760405160e560020a62461bcd028152600401610b24906134d6565b805181602001fd5b600160e060020a0319167f150b7a02000000000000000000000000000000000000000000000000000000001490506123fa565b506001949350505050565b612c258383612c51565b612c326000848484612ae8565b610f5f5760405160e560020a62461bcd028152600401610b24906134d6565b600160a060020a038216612caa5760405160e560020a62461bcd02815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b24565b612cb38161226c565b15612d035760405160e560020a62461bcd02815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b24565b600160a060020a0382166000908152600460205260408120805460019290612d2c90849061342f565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612da3906132ba565b90600052602060002090601f016020900481019282612dc55760008555612e0b565b82601f10612dde57805160ff1916838001178555612e0b565b82800160010185558215612e0b579182015b82811115612e0b578251825591602001919060010190612df0565b50612e17929150612e1b565b5090565b5b80821115612e175760008155600101612e1c565b600060208284031215612e4257600080fd5b5035919050565b600160e060020a0319811681146121b557600080fd5b600060208284031215612e7157600080fd5b81356121c481612e49565b6000815180845260005b81811015612ea257602081850181015186830182015201612e86565b81811115612eb4576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006121c46020830184612e7c565b8035600160a060020a0381168114612ef357600080fd5b919050565b60008060408385031215612f0b57600080fd5b612f1483612edc565b946020939093013593505050565b600060208284031215612f3457600080fd5b6121c482612edc565b600080600060608486031215612f5257600080fd5b612f5b84612edc565b9250612f6960208501612edc565b9150604084013590509250925092565b60008060408385031215612f8c57600080fd5b50508035926020909101359150565b60e060020a634e487b7102600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612fdd57612fdd612f9b565b604052919050565b600067ffffffffffffffff831115612fff57612fff612f9b565b613012601f8401601f1916602001612fb4565b905082815283838301111561302657600080fd5b828260208301376000602084830101529392505050565b60006020828403121561304f57600080fd5b813567ffffffffffffffff81111561306657600080fd5b8201601f8101841361307757600080fd5b6123fa84823560208401612fe5565b6000806040838503121561309957600080fd5b6130a283612edc565b9150602083013580151581146130b757600080fd5b809150509250929050565b600060208083850312156130d557600080fd5b823567ffffffffffffffff808211156130ed57600080fd5b818501915085601f83011261310157600080fd5b81358181111561311357613113612f9b565b8381029150613123848301612fb4565b818152918301840191848101908884111561313d57600080fd5b938501935b838510156131625761315385612edc565b82529385019390850190613142565b98975050505050505050565b6000806000806080858703121561318457600080fd5b61318d85612edc565b935061319b60208601612edc565b925060408501359150606085013567ffffffffffffffff8111156131be57600080fd5b8501601f810187136131cf57600080fd5b6131de87823560208401612fe5565b91505092959194509250565b602080825282518282018190526000919060409081850190868401855b828110156132435781518051600160a060020a031685528601516bffffffffffffffffffffffff16868501529284019290850190600101613207565b5091979650505050505050565b6000806040838503121561326357600080fd5b61326c83612edc565b915061327a60208401612edc565b90509250929050565b6020808252600c908201527f4f6e6c792041646d696e732e0000000000000000000000000000000000000000604082015260600190565b6002810460018216806132ce57607f821691505b602082108114156132f25760e060020a634e487b7102600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60208082526018908201527f546f6b656e20494420646f6573206e6f742065786973742e0000000000000000604082015260600190565b60208082526010908201527f5472616e73666572206661696c65642e00000000000000000000000000000000604082015260600190565b60e060020a634e487b7102600052601160045260246000fd5b60008160001904831182151516156133f6576133f66133c3565b500290565b60e060020a634e487b7102600052603260045260246000fd5b6000600019821415613428576134286133c3565b5060010190565b60008219821115613442576134426133c3565b500190565b600082821015613459576134596133c3565b500390565b60e060020a634e487b7102600052601260045260246000fd5b6000826134865761348661345e565b500490565b60008261349a5761349a61345e565b500690565b6000816134ae576134ae6133c3565b506000190190565b600060ff821660ff8114156134cd576134cd6133c3565b60010192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6000600160a060020a038087168352808616602084015250836040830152608060608301526135656080830184612e7c565b9695505050505050565b60006020828403121561358157600080fd5b81516121c481612e4956fea26469706673582212202a270c6e100b2c526fafc2a561bd152c69e4ac9daef43f5bc96e354eb4440f8364736f6c634300080a00334552433732313a207472616e7366657220746f206e6f6e20455243373231526568747470733a2f2f697066732e696d6e6f746172742e636f6d2f697066732f516d54646d417159376576315a4c39547a765a704656365a4848367446717477465044533463335a50754774774b

Deployed Bytecode

0x6080604052600436106103b4576000357c010000000000000000000000000000000000000000000000000000000090048063715018a6116101f9578063b88d4fde1161011f578063d5291e4c116100bd578063e985e9c51161008c578063e985e9c514610a53578063ee1a14c314610a9c578063f2fde38b14610abc578063f433036814610adc57600080fd5b8063d5291e4c146105f7578063da56665514610a13578063e797ec1b14610a29578063e8a3d48514610a3e57600080fd5b8063c34a2a3a116100f9578063c34a2a3a14610990578063c87b56dd146109b0578063cad96cca146109d0578063d399b7ac146109fd57600080fd5b8063b88d4fde1461093a578063b973d8591461095a578063bdaaf5fa1461097a57600080fd5b80638f99822a11610197578063a0712d6811610166578063a0712d68146108c7578063a22cb465146108da578063a4445d4d146108fa578063ae856ce31461091a57600080fd5b80638f99822a14610865578063911927651461087b57806395d89b41146108915780639d9a7fe9146108a657600080fd5b80637f392078116101d35780637f392078146107e7578063811e0aa914610807578063871b4cfc146108275780638da5cb5b1461084757600080fd5b8063715018a6146107a257806375794a3c146107b75780637764db39146107cd57600080fd5b806336864adb116102de57806353135ca01161027c5780636352211e1161024b5780636352211e1461072c5780636cbdef611461074c578063704802751461076257806370a082311461078257600080fd5b806353135ca0146106be57806359533d6c146106dd5780635c464229146106f75780635c975abb1461070c57600080fd5b806342842e0e116102b857806342842e0e1461062c57806347c8ff5e1461064c5780634a6f07a51461066c5780634ce2ee831461068c57600080fd5b806336864adb146105e257806338a2801b146105f75780633ccfd60b1461061757600080fd5b80631785f53c1161035657806323b872dd1161032557806323b872dd1461053d5780632a55205a1461055d5780632dd28c5c1461059c57806330df6548146105cc57600080fd5b80631785f53c146104c957806318160ddd146104e95780631fce4e8d146105085780632316b4da1461052857600080fd5b80630430f25b116103925780630430f25b1461042f57806306fdde031461044f578063081812fc14610471578063095ea7b3146104a957600080fd5b806301fb7f26146103b957806301ffc9a7146103db57806302fb0c5e14610410575b600080fd5b3480156103c557600080fd5b506103d96103d4366004612e30565b610af2565b005b3480156103e757600080fd5b506103fb6103f6366004612e5f565b610bb3565b60405190151581526020015b60405180910390f35b34801561041c57600080fd5b506010546103fb90610100900460ff1681565b34801561043b57600080fd5b506103d961044a366004612e30565b610cc7565b34801561045b57600080fd5b50610464610cfe565b6040516104079190612ec9565b34801561047d57600080fd5b5061049161048c366004612e30565b610d90565b604051600160a060020a039091168152602001610407565b3480156104b557600080fd5b506103d96104c4366004612ef8565b610e2c565b3480156104d557600080fd5b506103d96104e4366004612f22565b610f64565b3480156104f557600080fd5b50600a545b604051908152602001610407565b34801561051457600080fd5b506016546103fb9062010000900460ff1681565b34801561053457600080fd5b506103d9610fb7565b34801561054957600080fd5b506103d9610558366004612f3d565b610ff6565b34801561056957600080fd5b5061057d610578366004612f79565b61102a565b60408051600160a060020a039093168352602083019190915201610407565b3480156105a857600080fd5b506103fb6105b7366004612f22565b60186020526000908152604090205460ff1681565b3480156105d857600080fd5b506104fa60145481565b3480156105ee57600080fd5b5061046461107a565b34801561060357600080fd5b506103d9610612366004612f22565b611108565b34801561062357600080fd5b506103d9611169565b34801561063857600080fd5b506103d9610647366004612f3d565b61125c565b34801561065857600080fd5b506103d961066736600461303d565b611277565b34801561067857600080fd5b506103d9610687366004612f22565b6112bc565b34801561069857600080fd5b506013546103fb9074010000000000000000000000000000000000000000900460ff1681565b3480156106ca57600080fd5b506016546103fb90610100900460ff1681565b3480156106e957600080fd5b506016546103fb9060ff1681565b34801561070357600080fd5b506103d961131d565b34801561071857600080fd5b506010546103fb9062010000900460ff1681565b34801561073857600080fd5b50610491610747366004612e30565b61136e565b34801561075857600080fd5b506104fa600b5481565b34801561076e57600080fd5b506103d961077d366004612f22565b6113fc565b34801561078e57600080fd5b506104fa61079d366004612f22565b611452565b3480156107ae57600080fd5b506103d96114ef565b3480156107c357600080fd5b506104fa600c5481565b3480156107d957600080fd5b506010546103fb9060ff1681565b3480156107f357600080fd5b506103d961080236600461303d565b611558565b34801561081357600080fd5b506103d9610822366004612f22565b61159d565b34801561083357600080fd5b506103d9610842366004612e30565b61164c565b34801561085357600080fd5b50600054600160a060020a0316610491565b34801561087157600080fd5b506104fa600e5481565b34801561088757600080fd5b506104fa60115481565b34801561089d57600080fd5b50610464611683565b3480156108b257600080fd5b506010546103fb906301000000900460ff1681565b6103d96108d5366004612e30565b611692565b3480156108e657600080fd5b506103d96108f5366004613086565b611c9a565b34801561090657600080fd5b506103d9610915366004612f22565b611ca5565b34801561092657600080fd5b506103d96109353660046130c2565b611cfb565b34801561094657600080fd5b506103d961095536600461316e565b611e10565b34801561096657600080fd5b5060135461049190600160a060020a031681565b34801561098657600080fd5b506104fa600a5481565b34801561099c57600080fd5b5060085461049190600160a060020a031681565b3480156109bc57600080fd5b506104646109cb366004612e30565b611e4b565b3480156109dc57600080fd5b506109f06109eb366004612e30565b611f0c565b60405161040791906131ea565b348015610a0957600080fd5b506104fa60175481565b348015610a1f57600080fd5b506104fa60125481565b348015610a3557600080fd5b506103d9611fc8565b348015610a4a57600080fd5b5061046461200b565b348015610a5f57600080fd5b506103fb610a6e366004613250565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610aa857600080fd5b506103d9610ab7366004612e30565b612018565b348015610ac857600080fd5b506103d9610ad7366004612f22565b6120d0565b348015610ae857600080fd5b506104fa600d5481565b3360009081526009602052604090205460ff16610b2d5760405160e560020a62461bcd028152600401610b2490613283565b60405180910390fd5b601054610100900460ff1615610bae5760405160e560020a62461bcd02815260206004820152603860248201527f43616e6e6f74206368616e6765206d6178207175616e7469747920706572207460448201527f72616e73616374696f6e206166746572206163746976652e00000000000000006064820152608401610b24565b600e55565b6000600160e060020a031982167f01ffc9a7000000000000000000000000000000000000000000000000000000001480610c165750600160e060020a031982167fcad96cca00000000000000000000000000000000000000000000000000000000145b80610c4a5750600160e060020a031982167f80ac58cd00000000000000000000000000000000000000000000000000000000145b80610c7e5750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610cb25750600160e060020a031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b80610cc15750610cc1826121d1565b92915050565b3360009081526009602052604090205460ff16610cf95760405160e560020a62461bcd028152600401610b2490613283565b600d55565b606060018054610d0d906132ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610d39906132ba565b8015610d865780601f10610d5b57610100808354040283529160200191610d86565b820191906000526020600020905b815481529060010190602001808311610d6957829003601f168201915b5050505050905090565b6000610d9b8261226c565b610e105760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b24565b50600090815260056020526040902054600160a060020a031690565b6000610e378261136e565b905080600160a060020a031683600160a060020a03161415610ec45760405160e560020a62461bcd02815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b24565b33600160a060020a0382161480610ee05750610ee08133610a6e565b610f555760405160e560020a62461bcd02815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b24565b610f5f8383612289565b505050565b3360009081526009602052604090205460ff16610f965760405160e560020a62461bcd028152600401610b2490613283565b600160a060020a03166000908152600960205260409020805460ff19169055565b3360009081526009602052604090205460ff16610fe95760405160e560020a62461bcd028152600401610b2490613283565b6016805461ff0019169055565b6110003382612304565b61101f5760405160e560020a62461bcd028152600401610b24906132f8565b610f5f838383612402565b6000806110368461226c565b6110555760405160e560020a62461bcd028152600401610b2490613355565b600061106e611066856011546125e2565b6127106125ee565b30969095509350505050565b600f8054611087906132ba565b80601f01602080910402602001604051908101604052809291908181526020018280546110b3906132ba565b80156111005780601f106110d557610100808354040283529160200191611100565b820191906000526020600020905b8154815290600101906020018083116110e357829003601f168201915b505050505081565b3360009081526009602052604090205460ff1661113a5760405160e560020a62461bcd028152600401610b2490613283565b6008805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b3360009081526009602052604090205460ff1661119b5760405160e560020a62461bcd028152600401610b2490613283565b3031806111ed5760405160e560020a62461bcd02815260206004820152601760248201527f436f6e74726163742062616c616e636520656d7074792e0000000000000000006044820152606401610b24565b604051600090339083908381818185875af1925050503d806000811461122f576040519150601f19603f3d011682016040523d82523d6000602084013e611234565b606091505b50509050806112585760405160e560020a62461bcd028152600401610b249061338c565b5050565b610f5f83838360405180602001604052806000815250611e10565b3360009081526009602052604090205460ff166112a95760405160e560020a62461bcd028152600401610b2490613283565b8051611258906007906020840190612d97565b3360009081526009602052604090205460ff166112ee5760405160e560020a62461bcd028152600401610b2490613283565b6013805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b3360009081526009602052604090205460ff1661134f5760405160e560020a62461bcd028152600401610b2490613283565b6010805462ff0000198116620100009182900460ff1615909102179055565b600081815260036020526040812054600160a060020a031680610cc15760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b24565b3360009081526009602052604090205460ff1661142e5760405160e560020a62461bcd028152600401610b2490613283565b600160a060020a03166000908152600960205260409020805460ff19166001179055565b6000600160a060020a0382166114d35760405160e560020a62461bcd02815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b24565b50600160a060020a031660009081526004602052604090205490565b600054600160a060020a0316331461154c5760405160e560020a62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b24565b61155660006125fa565b565b3360009081526009602052604090205460ff1661158a5760405160e560020a62461bcd028152600401610b2490613283565b805161125890600f906020840190612d97565b3360009081526009602052604090205460ff166115cf5760405160e560020a62461bcd028152600401610b2490613283565b33600160a060020a038216141561162b5760405160e560020a62461bcd02815260206004820152601360248201527f43616e6e6f742072656d6f76652073656c662e000000000000000000000000006044820152606401610b24565b600160a060020a03166000908152601860205260409020805460ff19169055565b3360009081526009602052604090205460ff1661167e5760405160e560020a62461bcd028152600401610b2490613283565b601755565b606060028054610d0d906132ba565b601054610100900460ff166116ec5760405160e560020a62461bcd02815260206004820152601660248201527f4d696e74696e67206973206e6f74206163746976652e000000000000000000006044820152606401610b24565b60105462010000900460ff16156117485760405160e560020a62461bcd02815260206004820152601260248201527f4d696e74696e67206973207061757365642e00000000000000000000000000006044820152606401610b24565b600e548111156117976040518060400160405280601d81526020017f4d6178206c696d697420706572207472616e73616374696f6e20697320000000815250611792600e54612657565b612797565b906117b85760405160e560020a62461bcd028152600401610b249190612ec9565b50600b54600a546117c990836121b8565b111561181a5760405160e560020a62461bcd02815260206004820181905260248201527f4d757374206e6f7420657863656564206d617820696e766f636174696f6e732e6044820152606401610b24565b600d5460165460ff1680156118365750601654610100900460ff165b156118b3573360009081526018602052604090205460ff1661189d5760405160e560020a62461bcd02815260206004820152601f60248201527f57616c6c6574206973206e6f742070617274206f66207072652d73616c652e006044820152606401610b24565b60165462010000900460ff16156118b357506017545b6118bd82826133dc565b34101561190f5760405160e560020a62461bcd02815260206004820152601860248201527f4d7573742073656e64206d696e696d756d2076616c75652e00000000000000006044820152606401610b24565b60135460009074010000000000000000000000000000000000000000900460ff16156119ca57503360009081526015602052604090205460145461195382856121b8565b11156119ca5760405160e560020a62461bcd02815260206004820152602560248201527f4d757374206e6f7420657863656564206d6178206d696e74732070657220776160448201527f6c6c65742e0000000000000000000000000000000000000000000000000000006064820152608401610b24565b6119d43384612923565b3460006119eb6119e486866133dc565b83906129ba565b90508015611aa7576119fd82826129ba565b604051909250600090339083908381818185875af1925050503d8060008114611a42576040519150601f19603f3d011682016040523d82523d6000602084013e611a47565b606091505b5050905080611a6b5760405160e560020a62461bcd028152600401610b249061338c565b6040805183815233602082015281517f9b5d1a613fa5f0790b36b13103706e31fca06b229d87e9915b29fc20c1d76490929181900390910190a1505b60105460ff1615611c55576000611ac3611066846012546125e2565b90508015611b9757611ad583826129ba565b600854604051919450600091600160a060020a039091169083908381818185875af1925050503d8060008114611b27576040519150601f19603f3d011682016040523d82523d6000602084013e611b2c565b606091505b5050905080611b505760405160e560020a62461bcd028152600401610b249061338c565b60085460408051848152600160a060020a0390921660208301527f9b5d1a613fa5f0790b36b13103706e31fca06b229d87e9915b29fc20c1d76490910160405180910390a1505b601354604051600091600160a060020a03169085908381818185875af1925050503d8060008114611be4576040519150601f19603f3d011682016040523d82523d6000602084013e611be9565b606091505b5050905080611c0d5760405160e560020a62461bcd028152600401610b249061338c565b60135460408051868152600160a060020a0390921660208301527f9b5d1a613fa5f0790b36b13103706e31fca06b229d87e9915b29fc20c1d76490910160405180910390a150505b60135474010000000000000000000000000000000000000000900460ff1615611c9357611c8283866121b8565b336000908152601560205260409020555b5050505050565b6112583383836129c6565b3360009081526009602052604090205460ff16611cd75760405160e560020a62461bcd028152600401610b2490613283565b600160a060020a03166000908152601860205260409020805460ff19166001179055565b3360009081526009602052604090205460ff16611d2d5760405160e560020a62461bcd028152600401610b2490613283565b6001815111611da75760405160e560020a62461bcd02815260206004820152602660248201527f5573652061646450726573616c6557616c6c65742066756e6374696f6e20696e60448201527f73746561642e00000000000000000000000000000000000000000000000000006064820152608401610b24565b805160005b81811015610f5f57600160186000858481518110611dcc57611dcc6133fb565b602090810291909101810151600160a060020a03168252810191909152604001600020805460ff191691151591909117905580611e0881613414565b915050611dac565b611e1a3383612304565b611e395760405160e560020a62461bcd028152600401610b24906132f8565b611e4584848484612a98565b50505050565b6060611e568261226c565b611e755760405160e560020a62461bcd028152600401610b2490613355565b610cc1600f8054611e85906132ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611eb1906132ba565b8015611efe5780601f10611ed357610100808354040283529160200191611efe565b820191906000526020600020905b815481529060010190602001808311611ee157829003601f168201915b505050505061179284612657565b6060611f178261226c565b611f365760405160e560020a62461bcd028152600401610b2490613355565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081611f4d579050509050604051806040016040528030600160a060020a031681526020016011546bffffffffffffffffffffffff1681525081600081518110611fb757611fb76133fb565b602090810291909101015292915050565b3360009081526009602052604090205460ff16611ffa5760405160e560020a62461bcd028152600401610b2490613283565b6010805461ff001916610100179055565b60078054611087906132ba565b3360009081526009602052604090205460ff1661204a5760405160e560020a62461bcd028152600401610b2490613283565b601054610100900460ff16156120cb5760405160e560020a62461bcd02815260206004820152602b60248201527f43616e6e6f74206368616e6765206d617820696e766f636174696f6e7320616660448201527f746572206163746976652e0000000000000000000000000000000000000000006064820152608401610b24565b600b55565b600054600160a060020a0316331461212d5760405160e560020a62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b24565b600160a060020a0381166121ac5760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b24565b6121b5816125fa565b50565b60006121c4828461342f565b9392505050565b3b151590565b6000600160e060020a031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806122345750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610cc157507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a0319831614610cc1565b600090815260036020526040902054600160a060020a0316151590565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03841690811790915581906122cb8261136e565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061230f8261226c565b6123845760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b24565b600061238f8361136e565b905080600160a060020a031684600160a060020a031614806123ca575083600160a060020a03166123bf84610d90565b600160a060020a0316145b806123fa5750600160a060020a0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b82600160a060020a03166124158261136e565b600160a060020a0316146124945760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610b24565b600160a060020a0382166125125760405160e560020a62461bcd028152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b24565b61251d600082612289565b600160a060020a0383166000908152600460205260408120805460019290612546908490613447565b9091555050600160a060020a038216600090815260046020526040812080546001929061257490849061342f565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006121c482846133dc565b60006121c48284613477565b60008054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608161269757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156126c157806126ab81613414565b91506126ba9050600a83613477565b915061269b565b60008167ffffffffffffffff8111156126dc576126dc612f9b565b6040519080825280601f01601f191660200182016040528015612706576020820181803683370190505b508593509050815b831561278e5761271f600a8561348b565b61272a90603061342f565b60f860020a028261273a8361349f565b9250828151811061274d5761274d6133fb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612787600a85613477565b935061270e565b50949350505050565b80518251606091849184916000916127af919061342f565b67ffffffffffffffff8111156127c7576127c7612f9b565b6040519080825280601f01601f1916602001820160405280156127f1576020820181803683370190505b509050806000805b855182101561288557858281518110612814576128146133fb565b602001015160f860020a900460f860020a0283828061283290613414565b935081518110612844576128446133fb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508161287d81613414565b9250506127f9565b600091505b8451821015612916578482815181106128a5576128a56133fb565b602001015160f860020a900460f860020a028382806128c390613414565b9350815181106128d5576128d56133fb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508161290e81613414565b92505061288a565b5090979650505050505050565b600c546000905b828260ff1610156129945761293f8482612ace565b604051600160a060020a0385169082907ff3cea5493d790af0133817606f7350a91d7f154ea52eaa79d179d4d231e5010290600090a36129808160016121b8565b90508161298c816134b6565b92505061292a565b600c546129a190846121b8565b600c55600a546129b190846121b8565b600a5550505050565b60006121c48284613447565b81600160a060020a031683600160a060020a03161415612a2b5760405160e560020a62461bcd02815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b24565b600160a060020a03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612aa3848484612402565b612aaf84848484612ae8565b611e455760405160e560020a62461bcd028152600401610b24906134d6565b611258828260405180602001604052806000815250612c1b565b6000600160a060020a0384163b15612c10576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a0290612b45903390899088908890600401613533565b6020604051808303816000875af1925050508015612b80575060408051601f3d908101601f19168201909252612b7d9181019061356f565b60015b612bdd573d808015612bae576040519150601f19603f3d011682016040523d82523d6000602084013e612bb3565b606091505b508051612bd55760405160e560020a62461bcd028152600401610b24906134d6565b805181602001fd5b600160e060020a0319167f150b7a02000000000000000000000000000000000000000000000000000000001490506123fa565b506001949350505050565b612c258383612c51565b612c326000848484612ae8565b610f5f5760405160e560020a62461bcd028152600401610b24906134d6565b600160a060020a038216612caa5760405160e560020a62461bcd02815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b24565b612cb38161226c565b15612d035760405160e560020a62461bcd02815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b24565b600160a060020a0382166000908152600460205260408120805460019290612d2c90849061342f565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612da3906132ba565b90600052602060002090601f016020900481019282612dc55760008555612e0b565b82601f10612dde57805160ff1916838001178555612e0b565b82800160010185558215612e0b579182015b82811115612e0b578251825591602001919060010190612df0565b50612e17929150612e1b565b5090565b5b80821115612e175760008155600101612e1c565b600060208284031215612e4257600080fd5b5035919050565b600160e060020a0319811681146121b557600080fd5b600060208284031215612e7157600080fd5b81356121c481612e49565b6000815180845260005b81811015612ea257602081850181015186830182015201612e86565b81811115612eb4576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006121c46020830184612e7c565b8035600160a060020a0381168114612ef357600080fd5b919050565b60008060408385031215612f0b57600080fd5b612f1483612edc565b946020939093013593505050565b600060208284031215612f3457600080fd5b6121c482612edc565b600080600060608486031215612f5257600080fd5b612f5b84612edc565b9250612f6960208501612edc565b9150604084013590509250925092565b60008060408385031215612f8c57600080fd5b50508035926020909101359150565b60e060020a634e487b7102600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612fdd57612fdd612f9b565b604052919050565b600067ffffffffffffffff831115612fff57612fff612f9b565b613012601f8401601f1916602001612fb4565b905082815283838301111561302657600080fd5b828260208301376000602084830101529392505050565b60006020828403121561304f57600080fd5b813567ffffffffffffffff81111561306657600080fd5b8201601f8101841361307757600080fd5b6123fa84823560208401612fe5565b6000806040838503121561309957600080fd5b6130a283612edc565b9150602083013580151581146130b757600080fd5b809150509250929050565b600060208083850312156130d557600080fd5b823567ffffffffffffffff808211156130ed57600080fd5b818501915085601f83011261310157600080fd5b81358181111561311357613113612f9b565b8381029150613123848301612fb4565b818152918301840191848101908884111561313d57600080fd5b938501935b838510156131625761315385612edc565b82529385019390850190613142565b98975050505050505050565b6000806000806080858703121561318457600080fd5b61318d85612edc565b935061319b60208601612edc565b925060408501359150606085013567ffffffffffffffff8111156131be57600080fd5b8501601f810187136131cf57600080fd5b6131de87823560208401612fe5565b91505092959194509250565b602080825282518282018190526000919060409081850190868401855b828110156132435781518051600160a060020a031685528601516bffffffffffffffffffffffff16868501529284019290850190600101613207565b5091979650505050505050565b6000806040838503121561326357600080fd5b61326c83612edc565b915061327a60208401612edc565b90509250929050565b6020808252600c908201527f4f6e6c792041646d696e732e0000000000000000000000000000000000000000604082015260600190565b6002810460018216806132ce57607f821691505b602082108114156132f25760e060020a634e487b7102600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60208082526018908201527f546f6b656e20494420646f6573206e6f742065786973742e0000000000000000604082015260600190565b60208082526010908201527f5472616e73666572206661696c65642e00000000000000000000000000000000604082015260600190565b60e060020a634e487b7102600052601160045260246000fd5b60008160001904831182151516156133f6576133f66133c3565b500290565b60e060020a634e487b7102600052603260045260246000fd5b6000600019821415613428576134286133c3565b5060010190565b60008219821115613442576134426133c3565b500190565b600082821015613459576134596133c3565b500390565b60e060020a634e487b7102600052601260045260246000fd5b6000826134865761348661345e565b500490565b60008261349a5761349a61345e565b500690565b6000816134ae576134ae6133c3565b506000190190565b600060ff821660ff8114156134cd576134cd6133c3565b60010192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6000600160a060020a038087168352808616602084015250836040830152608060608301526135656080830184612e7c565b9695505050505050565b60006020828403121561358157600080fd5b81516121c481612e4956fea26469706673582212202a270c6e100b2c526fafc2a561bd152c69e4ac9daef43f5bc96e354eb4440f8364736f6c634300080a0033

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.