ETH Price: $3,042.67 (+0.62%)
Gas: 2 Gwei

Token

Incubator (Incubator)
 

Overview

Max Total Supply

4,516 Incubator

Holders

1,710

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
3 Incubator
0x9723cc792c32dca2744690f99103d095ea149e82
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:
KillaCubsIncubator

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.19;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./StaticNFT.sol";

struct Wallet {
    uint16 balance;
    uint16 stakes;
    uint16 mints;
    uint16 privateMints;
    uint16 holderMints;
}

struct Token {
    address owner;
    uint16 linkedNext;
    uint16 linkedPrev;
    uint32 stakeTimestamp;
    uint8 generation;
    uint8 incubationPhase;
    uint16 bit;
}

interface IKillaCubs {
    function ownerOf(uint256) external view returns (address);

    function rightfulOwnerOf(uint256) external view returns (address);

    function getIncubationPhase(uint256 id) external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function resolveToken(uint256 id) external view returns (Token memory);

    function wallets(address) external view returns (Wallet memory);
}

interface IURIManager {
    function getTokenURI(
        uint256 id,
        Token memory token
    ) external view returns (string memory);
}

contract KillaCubsIncubator is
    Ownable,
    StaticNFT("Incubator", "Incubator")
{
    using Strings for uint256;
    using Strings for uint16;
    IKillaCubs public killacubsContract;

    constructor(address killacubs) {
        killacubsContract = IKillaCubs(killacubs);
    }

    modifier onlyCubs() {
        require(msg.sender == address(killacubsContract), "Not Allowed");
        _;
    }

    function add(address owner, uint256[] calldata ids) external onlyCubs {
        for (uint256 i = 0; i < ids.length; i++) {
            emit Transfer(address(0), owner, ids[i]);
        }
    }

    function add(
        address owner,
        uint256 start,
        uint256 count
    ) external onlyCubs {
        uint256 end = start + count;
        for (uint256 id = start; id <= end - 1; id++) {
            emit Transfer(address(0), owner, id);
        }
    }

    function remove(address owner, uint256[] calldata ids) external onlyCubs {
        for (uint256 i = 0; i < ids.length; i++) {
            emit Transfer(owner, address(0), ids[i]);
        }
    }

    function remove(
        address owner,
        uint256 start,
        uint256 count
    ) external onlyCubs {
        uint256 end = start + count;
        for (uint256 id = start; id < end; id++) {
            emit Transfer(owner, address(0), id);
        }
    }

    function getBalance(
        address owner
    ) internal view override returns (uint256) {
        return uint256(killacubsContract.wallets(owner).stakes);
    }

    function getOwner(uint256 token) internal view override returns (address) {
        address owner = killacubsContract.ownerOf(token);
        if (owner == address(killacubsContract))
            return killacubsContract.rightfulOwnerOf(token);
        return address(0);
    }

    function setBaseURI(string calldata uri) external onlyOwner {
        baseURI = uri;
    }

    function totalSupply() public view returns (uint256) {
        return killacubsContract.balanceOf(address(killacubsContract));
    }

    function tokenURI(
        uint256 id
    ) external view override returns (string memory) {
        if (getOwner(id) == address(0))
            return string(abi.encodePacked(baseURI, "burned"));

        Token memory token = killacubsContract.resolveToken(id);
        uint256 phase = killacubsContract.getIncubationPhase(id);

        return
            string(
                abi.encodePacked(
                    baseURI,
                    id.toString(),
                    "-",
                    phase.toString(),
                    "-",
                    token.bit.toString(),
                    token.generation > 0 ? "-remix" : "-initial"
                )
            );
    }
}

File 2 of 8 : StaticNFT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

abstract contract StaticNFT is IERC721 {
    using Strings for uint256;

    string public name;
    string public symbol;
    string public baseURI;

    error TransferNotAllowed();
    error InvalidOwner();
    error NonExistentToken();

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    function getBalance(address) internal view virtual returns (uint256);

    function getOwner(uint256) internal view virtual returns (address);

    function balanceOf(address owner) external view override returns (uint256) {
        if (owner == address(0)) revert InvalidOwner();
        return getBalance(owner);
    }

    function ownerOf(uint256 tokenId) external view override returns (address) {
        address owner = getOwner(tokenId);
        if (owner == address(0)) revert NonExistentToken();
        return owner;
    }

    function safeTransferFrom(
        address,
        address,
        uint256,
        bytes memory
    ) external pure override {
        revert TransferNotAllowed();
    }

    function safeTransferFrom(
        address,
        address,
        uint256
    ) external pure override {
        revert TransferNotAllowed();
    }

    function transferFrom(
        address,
        address,
        uint256
    ) external pure override {
        revert TransferNotAllowed();
    }

    function approve(address, uint256) external pure override {
        revert TransferNotAllowed();
    }

    function setApprovalForAll(address, bool) external pure override {
        revert TransferNotAllowed();
    }

    function getApproved(uint256) external pure override returns (address) {
        return address(0);
    }

    function isApprovedForAll(address, address)
        external
        pure
        override
        returns (bool)
    {
        return false;
    }

    function tokenURI(uint256 tokenId)
        external
        view
        virtual
        returns (string memory)
    {
        if (getOwner(tokenId) == address(0)) revert NonExistentToken();
        return
            bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, tokenId.toString()))
                : "";
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata;
    }
}

File 3 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 4 of 8 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 5 of 8 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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`.
     *
     * 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;

    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

pragma solidity ^0.8.0;

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

File 7 of 8 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"killacubs","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"TransferNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"killacubsContract","outputs":[{"internalType":"contract IKillaCubs","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","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":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620018f8380380620018f883398101604081905262000034916200012d565b6040518060400160405280600981526020016824b731bab130ba37b960b91b8152506040518060400160405280600981526020016824b731bab130ba37b960b91b815250620000926200008c620000d960201b60201c565b620000dd565b6001620000a0838262000204565b506002620000af828262000204565b5050600480546001600160a01b0319166001600160a01b03939093169290921790915550620002d0565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200014057600080fd5b81516001600160a01b03811681146200015857600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018a57607f821691505b602082108103620001ab57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001ff57600081815260208120601f850160051c81016020861015620001da5750805b601f850160051c820191505b81811015620001fb57828155600101620001e6565b5050505b505050565b81516001600160401b038111156200022057620002206200015f565b620002388162000231845462000175565b84620001b1565b602080601f831160018114620002705760008415620002575750858301515b600019600386901b1c1916600185901b178555620001fb565b600085815260208120601f198616915b82811015620002a15788860151825594840194600190910190840162000280565b5085821015620002c05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61161880620002e06000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80636c0360eb116100c3578063b88d4fde1161007c578063b88d4fde146102a8578063c87b56dd146102b6578063cccc9a92146102c9578063e985e9c5146102dc578063ed475a27146102f2578063f2fde38b1461030557600080fd5b80636c0360eb1461025e57806370a0823114610266578063715018a6146102795780638da5cb5b1461028157806395d89b4114610292578063a22cb4651461029a57600080fd5b8063344472a011610115578063344472a0146101ff57806342842e0e146101f15780635101e12814610212578063549055c91461022557806355f804b3146102385780636352211e1461024b57600080fd5b806301ffc9a71461015d57806306fdde0314610185578063081812fc1461019a578063095ea7b3146101c657806318160ddd146101db57806323b872dd146101f1575b600080fd5b61017061016b366004610d46565b610318565b60405190151581526020015b60405180910390f35b61018d61036a565b60405161017c9190610d94565b6101ae6101a8366004610dc7565b50600090565b6040516001600160a01b03909116815260200161017c565b6101d96101d4366004610df5565b6103f8565b005b6101e3610411565b60405190815260200161017c565b6101d96101d4366004610e21565b6101d961020d366004610e62565b610486565b6101d9610220366004610e62565b610510565b6101d9610233366004610e97565b610593565b6101d9610246366004610f1f565b610628565b6101ae610259366004610dc7565b610642565b61018d610677565b6101e3610274366004610f91565b610684565b6101d96106b6565b6000546001600160a01b03166101ae565b61018d6106ca565b6101d96101d4366004610fae565b6101d96101d436600461105c565b61018d6102c4366004610dc7565b6106d7565b6101d96102d7366004610e97565b6108a3565b6101706102ea366004611120565b600092915050565b6004546101ae906001600160a01b031681565b6101d9610313366004610f91565b610932565b60006301ffc9a760e01b6001600160e01b03198316148061034957506380ac58cd60e01b6001600160e01b03198316145b806103645750635b5e139f60e01b6001600160e01b03198316145b92915050565b600180546103779061114e565b80601f01602080910402602001604051908101604052809291908181526020018280546103a39061114e565b80156103f05780601f106103c5576101008083540402835291602001916103f0565b820191906000526020600020905b8154815290600101906020018083116103d357829003601f168201915b505050505081565b604051638cd22d1960e01b815260040160405180910390fd5b600480546040516370a0823160e01b81526001600160a01b03909116918101829052600091906370a0823190602401602060405180830381865afa15801561045d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104819190611188565b905090565b6004546001600160a01b031633146104b95760405162461bcd60e51b81526004016104b0906111a1565b60405180910390fd5b60006104c582846111dc565b9050825b818110156105095760405181906000906001600160a01b038816906000805160206115c3833981519152908390a480610501816111ef565b9150506104c9565b5050505050565b6004546001600160a01b0316331461053a5760405162461bcd60e51b81526004016104b0906111a1565b600061054682846111dc565b9050825b610555600183611208565b81116105095760405181906001600160a01b038716906000906000805160206115c3833981519152908290a48061058b816111ef565b91505061054a565b6004546001600160a01b031633146105bd5760405162461bcd60e51b81526004016104b0906111a1565b60005b81811015610622578282828181106105da576105da61121b565b9050602002013560006001600160a01b0316856001600160a01b03166000805160206115c383398151915260405160405180910390a48061061a816111ef565b9150506105c0565b50505050565b6106306109ab565b600361063d82848361127f565b505050565b60008061064e83610a05565b90506001600160a01b03811661036457604051634a1850bf60e11b815260040160405180910390fd5b600380546103779061114e565b60006001600160a01b0382166106ad576040516349e27cff60e01b815260040160405180910390fd5b61036482610b09565b6106be6109ab565b6106c86000610b8b565b565b600280546103779061114e565b606060006106e483610a05565b6001600160a01b03160361071a57600360405160200161070491906113b2565b6040516020818303038152906040529050919050565b6004805460405163c8f8a39960e01b81529182018490526000916001600160a01b039091169063c8f8a3999060240160e060405180830381865afa158015610766573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078a91906113fc565b60048054604051633df42b8560e11b81529182018690529192506000916001600160a01b031690637be8570a90602401602060405180830381865afa1580156107d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fb9190611188565b9050600361080885610bdb565b61081183610bdb565b6108228560c0015161ffff16610bdb565b6000866080015160ff161161085757604051806040016040528060088152602001670b5a5b9a5d1a585b60c21b815250610877565b6040518060400160405280600681526020016505ae4cadad2f60d31b8152505b60405160200161088b95949392919061149b565b60405160208183030381529060405292505050919050565b6004546001600160a01b031633146108cd5760405162461bcd60e51b81526004016104b0906111a1565b60005b81811015610622578282828181106108ea576108ea61121b565b90506020020135846001600160a01b031660006001600160a01b03166000805160206115c383398151915260405160405180910390a48061092a816111ef565b9150506108d0565b61093a6109ab565b6001600160a01b03811661099f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b0565b6109a881610b8b565b50565b6000546001600160a01b031633146106c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104b0565b600480546040516331a9108f60e11b815291820183905260009182916001600160a01b031690636352211e90602401602060405180830381865afa158015610a51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a759190611517565b6004549091506001600160a01b0390811690821603610b005760048054604051632b3aa3af60e21b81529182018590526001600160a01b03169063acea8ebc90602401602060405180830381865afa158015610ad5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af99190611517565b9392505050565b50600092915050565b600480546040516389b08f1160e01b81526001600160a01b0384811693820193909352600092909116906389b08f119060240160a060405180830381865afa158015610b59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7d9190611534565b6020015161ffff1692915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60606000610be883610c6e565b600101905060008167ffffffffffffffff811115610c0857610c08610fec565b6040519080825280601f01601f191660200182016040528015610c32576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610c3c57509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610cad5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610cd9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610cf757662386f26fc10000830492506010015b6305f5e1008310610d0f576305f5e100830492506008015b6127108310610d2357612710830492506004015b60648310610d35576064830492506002015b600a83106103645760010192915050565b600060208284031215610d5857600080fd5b81356001600160e01b031981168114610af957600080fd5b60005b83811015610d8b578181015183820152602001610d73565b50506000910152565b6020815260008251806020840152610db3816040850160208701610d70565b601f01601f19169190910160400192915050565b600060208284031215610dd957600080fd5b5035919050565b6001600160a01b03811681146109a857600080fd5b60008060408385031215610e0857600080fd5b8235610e1381610de0565b946020939093013593505050565b600080600060608486031215610e3657600080fd5b8335610e4181610de0565b92506020840135610e5181610de0565b929592945050506040919091013590565b600080600060608486031215610e7757600080fd5b8335610e8281610de0565b95602085013595506040909401359392505050565b600080600060408486031215610eac57600080fd5b8335610eb781610de0565b9250602084013567ffffffffffffffff80821115610ed457600080fd5b818601915086601f830112610ee857600080fd5b813581811115610ef757600080fd5b8760208260051b8501011115610f0c57600080fd5b6020830194508093505050509250925092565b60008060208385031215610f3257600080fd5b823567ffffffffffffffff80821115610f4a57600080fd5b818501915085601f830112610f5e57600080fd5b813581811115610f6d57600080fd5b866020828501011115610f7f57600080fd5b60209290920196919550909350505050565b600060208284031215610fa357600080fd5b8135610af981610de0565b60008060408385031215610fc157600080fd5b8235610fcc81610de0565b915060208301358015158114610fe157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff8111828210171561102557611025610fec565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561105457611054610fec565b604052919050565b6000806000806080858703121561107257600080fd5b843561107d81610de0565b935060208581013561108e81610de0565b935060408601359250606086013567ffffffffffffffff808211156110b257600080fd5b818801915088601f8301126110c657600080fd5b8135818111156110d8576110d8610fec565b6110ea601f8201601f1916850161102b565b9150808252898482850101111561110057600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561113357600080fd5b823561113e81610de0565b91506020830135610fe181610de0565b600181811c9082168061116257607f821691505b60208210810361118257634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561119a57600080fd5b5051919050565b6020808252600b908201526a139bdd08105b1b1bddd95960aa1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610364576103646111c6565b600060018201611201576112016111c6565b5060010190565b81810381811115610364576103646111c6565b634e487b7160e01b600052603260045260246000fd5b601f82111561063d57600081815260208120601f850160051c810160208610156112585750805b601f850160051c820191505b8181101561127757828155600101611264565b505050505050565b67ffffffffffffffff83111561129757611297610fec565b6112ab836112a5835461114e565b83611231565b6000601f8411600181146112df57600085156112c75750838201355b600019600387901b1c1916600186901b178355610509565b600083815260209020601f19861690835b8281101561131057868501358255602094850194600190920191016112f0565b508682101561132d5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000815461134c8161114e565b600182811680156113645760018114611379576113a8565b60ff19841687528215158302870194506113a8565b8560005260208060002060005b8581101561139f5781548a820152908401908201611386565b50505082870194505b5050505092915050565b60006113be828461133f565b65189d5c9b995960d21b81526006019392505050565b805161ffff811681146113e657600080fd5b919050565b805160ff811681146113e657600080fd5b600060e0828403121561140e57600080fd5b611416611002565b825161142181610de0565b815261142f602084016113d4565b6020820152611440604084016113d4565b6040820152606083015163ffffffff8116811461145c57600080fd5b606082015261146d608084016113eb565b608082015261147e60a084016113eb565b60a082015261148f60c084016113d4565b60c08201529392505050565b60006114a7828861133f565b86516114b7818360208b01610d70565b602d60f81b910181815286519091906114d7816001850160208b01610d70565b600192019182015284516114f2816002840160208901610d70565b8451910190611508816002840160208801610d70565b01600201979650505050505050565b60006020828403121561152957600080fd5b8151610af981610de0565b600060a0828403121561154657600080fd5b60405160a0810181811067ffffffffffffffff8211171561156957611569610fec565b604052611575836113d4565b8152611583602084016113d4565b6020820152611594604084016113d4565b60408201526115a5606084016113d4565b60608201526115b6608084016113d4565b6080820152939250505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207aef07d9c4959cdad99324b8ef1a3d190459dc14e90fa0ed99be07cbb17e59f264736f6c63430008130033000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d8127

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c80636c0360eb116100c3578063b88d4fde1161007c578063b88d4fde146102a8578063c87b56dd146102b6578063cccc9a92146102c9578063e985e9c5146102dc578063ed475a27146102f2578063f2fde38b1461030557600080fd5b80636c0360eb1461025e57806370a0823114610266578063715018a6146102795780638da5cb5b1461028157806395d89b4114610292578063a22cb4651461029a57600080fd5b8063344472a011610115578063344472a0146101ff57806342842e0e146101f15780635101e12814610212578063549055c91461022557806355f804b3146102385780636352211e1461024b57600080fd5b806301ffc9a71461015d57806306fdde0314610185578063081812fc1461019a578063095ea7b3146101c657806318160ddd146101db57806323b872dd146101f1575b600080fd5b61017061016b366004610d46565b610318565b60405190151581526020015b60405180910390f35b61018d61036a565b60405161017c9190610d94565b6101ae6101a8366004610dc7565b50600090565b6040516001600160a01b03909116815260200161017c565b6101d96101d4366004610df5565b6103f8565b005b6101e3610411565b60405190815260200161017c565b6101d96101d4366004610e21565b6101d961020d366004610e62565b610486565b6101d9610220366004610e62565b610510565b6101d9610233366004610e97565b610593565b6101d9610246366004610f1f565b610628565b6101ae610259366004610dc7565b610642565b61018d610677565b6101e3610274366004610f91565b610684565b6101d96106b6565b6000546001600160a01b03166101ae565b61018d6106ca565b6101d96101d4366004610fae565b6101d96101d436600461105c565b61018d6102c4366004610dc7565b6106d7565b6101d96102d7366004610e97565b6108a3565b6101706102ea366004611120565b600092915050565b6004546101ae906001600160a01b031681565b6101d9610313366004610f91565b610932565b60006301ffc9a760e01b6001600160e01b03198316148061034957506380ac58cd60e01b6001600160e01b03198316145b806103645750635b5e139f60e01b6001600160e01b03198316145b92915050565b600180546103779061114e565b80601f01602080910402602001604051908101604052809291908181526020018280546103a39061114e565b80156103f05780601f106103c5576101008083540402835291602001916103f0565b820191906000526020600020905b8154815290600101906020018083116103d357829003601f168201915b505050505081565b604051638cd22d1960e01b815260040160405180910390fd5b600480546040516370a0823160e01b81526001600160a01b03909116918101829052600091906370a0823190602401602060405180830381865afa15801561045d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104819190611188565b905090565b6004546001600160a01b031633146104b95760405162461bcd60e51b81526004016104b0906111a1565b60405180910390fd5b60006104c582846111dc565b9050825b818110156105095760405181906000906001600160a01b038816906000805160206115c3833981519152908390a480610501816111ef565b9150506104c9565b5050505050565b6004546001600160a01b0316331461053a5760405162461bcd60e51b81526004016104b0906111a1565b600061054682846111dc565b9050825b610555600183611208565b81116105095760405181906001600160a01b038716906000906000805160206115c3833981519152908290a48061058b816111ef565b91505061054a565b6004546001600160a01b031633146105bd5760405162461bcd60e51b81526004016104b0906111a1565b60005b81811015610622578282828181106105da576105da61121b565b9050602002013560006001600160a01b0316856001600160a01b03166000805160206115c383398151915260405160405180910390a48061061a816111ef565b9150506105c0565b50505050565b6106306109ab565b600361063d82848361127f565b505050565b60008061064e83610a05565b90506001600160a01b03811661036457604051634a1850bf60e11b815260040160405180910390fd5b600380546103779061114e565b60006001600160a01b0382166106ad576040516349e27cff60e01b815260040160405180910390fd5b61036482610b09565b6106be6109ab565b6106c86000610b8b565b565b600280546103779061114e565b606060006106e483610a05565b6001600160a01b03160361071a57600360405160200161070491906113b2565b6040516020818303038152906040529050919050565b6004805460405163c8f8a39960e01b81529182018490526000916001600160a01b039091169063c8f8a3999060240160e060405180830381865afa158015610766573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078a91906113fc565b60048054604051633df42b8560e11b81529182018690529192506000916001600160a01b031690637be8570a90602401602060405180830381865afa1580156107d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fb9190611188565b9050600361080885610bdb565b61081183610bdb565b6108228560c0015161ffff16610bdb565b6000866080015160ff161161085757604051806040016040528060088152602001670b5a5b9a5d1a585b60c21b815250610877565b6040518060400160405280600681526020016505ae4cadad2f60d31b8152505b60405160200161088b95949392919061149b565b60405160208183030381529060405292505050919050565b6004546001600160a01b031633146108cd5760405162461bcd60e51b81526004016104b0906111a1565b60005b81811015610622578282828181106108ea576108ea61121b565b90506020020135846001600160a01b031660006001600160a01b03166000805160206115c383398151915260405160405180910390a48061092a816111ef565b9150506108d0565b61093a6109ab565b6001600160a01b03811661099f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b0565b6109a881610b8b565b50565b6000546001600160a01b031633146106c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104b0565b600480546040516331a9108f60e11b815291820183905260009182916001600160a01b031690636352211e90602401602060405180830381865afa158015610a51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a759190611517565b6004549091506001600160a01b0390811690821603610b005760048054604051632b3aa3af60e21b81529182018590526001600160a01b03169063acea8ebc90602401602060405180830381865afa158015610ad5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af99190611517565b9392505050565b50600092915050565b600480546040516389b08f1160e01b81526001600160a01b0384811693820193909352600092909116906389b08f119060240160a060405180830381865afa158015610b59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7d9190611534565b6020015161ffff1692915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60606000610be883610c6e565b600101905060008167ffffffffffffffff811115610c0857610c08610fec565b6040519080825280601f01601f191660200182016040528015610c32576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610c3c57509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610cad5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610cd9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610cf757662386f26fc10000830492506010015b6305f5e1008310610d0f576305f5e100830492506008015b6127108310610d2357612710830492506004015b60648310610d35576064830492506002015b600a83106103645760010192915050565b600060208284031215610d5857600080fd5b81356001600160e01b031981168114610af957600080fd5b60005b83811015610d8b578181015183820152602001610d73565b50506000910152565b6020815260008251806020840152610db3816040850160208701610d70565b601f01601f19169190910160400192915050565b600060208284031215610dd957600080fd5b5035919050565b6001600160a01b03811681146109a857600080fd5b60008060408385031215610e0857600080fd5b8235610e1381610de0565b946020939093013593505050565b600080600060608486031215610e3657600080fd5b8335610e4181610de0565b92506020840135610e5181610de0565b929592945050506040919091013590565b600080600060608486031215610e7757600080fd5b8335610e8281610de0565b95602085013595506040909401359392505050565b600080600060408486031215610eac57600080fd5b8335610eb781610de0565b9250602084013567ffffffffffffffff80821115610ed457600080fd5b818601915086601f830112610ee857600080fd5b813581811115610ef757600080fd5b8760208260051b8501011115610f0c57600080fd5b6020830194508093505050509250925092565b60008060208385031215610f3257600080fd5b823567ffffffffffffffff80821115610f4a57600080fd5b818501915085601f830112610f5e57600080fd5b813581811115610f6d57600080fd5b866020828501011115610f7f57600080fd5b60209290920196919550909350505050565b600060208284031215610fa357600080fd5b8135610af981610de0565b60008060408385031215610fc157600080fd5b8235610fcc81610de0565b915060208301358015158114610fe157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff8111828210171561102557611025610fec565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561105457611054610fec565b604052919050565b6000806000806080858703121561107257600080fd5b843561107d81610de0565b935060208581013561108e81610de0565b935060408601359250606086013567ffffffffffffffff808211156110b257600080fd5b818801915088601f8301126110c657600080fd5b8135818111156110d8576110d8610fec565b6110ea601f8201601f1916850161102b565b9150808252898482850101111561110057600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561113357600080fd5b823561113e81610de0565b91506020830135610fe181610de0565b600181811c9082168061116257607f821691505b60208210810361118257634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561119a57600080fd5b5051919050565b6020808252600b908201526a139bdd08105b1b1bddd95960aa1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610364576103646111c6565b600060018201611201576112016111c6565b5060010190565b81810381811115610364576103646111c6565b634e487b7160e01b600052603260045260246000fd5b601f82111561063d57600081815260208120601f850160051c810160208610156112585750805b601f850160051c820191505b8181101561127757828155600101611264565b505050505050565b67ffffffffffffffff83111561129757611297610fec565b6112ab836112a5835461114e565b83611231565b6000601f8411600181146112df57600085156112c75750838201355b600019600387901b1c1916600186901b178355610509565b600083815260209020601f19861690835b8281101561131057868501358255602094850194600190920191016112f0565b508682101561132d5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000815461134c8161114e565b600182811680156113645760018114611379576113a8565b60ff19841687528215158302870194506113a8565b8560005260208060002060005b8581101561139f5781548a820152908401908201611386565b50505082870194505b5050505092915050565b60006113be828461133f565b65189d5c9b995960d21b81526006019392505050565b805161ffff811681146113e657600080fd5b919050565b805160ff811681146113e657600080fd5b600060e0828403121561140e57600080fd5b611416611002565b825161142181610de0565b815261142f602084016113d4565b6020820152611440604084016113d4565b6040820152606083015163ffffffff8116811461145c57600080fd5b606082015261146d608084016113eb565b608082015261147e60a084016113eb565b60a082015261148f60c084016113d4565b60c08201529392505050565b60006114a7828861133f565b86516114b7818360208b01610d70565b602d60f81b910181815286519091906114d7816001850160208b01610d70565b600192019182015284516114f2816002840160208901610d70565b8451910190611508816002840160208801610d70565b01600201979650505050505050565b60006020828403121561152957600080fd5b8151610af981610de0565b600060a0828403121561154657600080fd5b60405160a0810181811067ffffffffffffffff8211171561156957611569610fec565b604052611575836113d4565b8152611583602084016113d4565b6020820152611594604084016113d4565b60408201526115a5606084016113d4565b60608201526115b6608084016113d4565b6080820152939250505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207aef07d9c4959cdad99324b8ef1a3d190459dc14e90fa0ed99be07cbb17e59f264736f6c63430008130033

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

000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d8127

-----Decoded View---------------
Arg [0] : killacubs (address): 0xAC395C4f5730C8d9246a46004E9Ee9D06B8D8127

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ac395c4f5730c8d9246a46004e9ee9d06b8d8127


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.