ETH Price: $2,491.99 (-0.82%)

Token

KillaLabsRewards (KillaLabsRewards)
 

Overview

Max Total Supply

0 KillaLabsRewards

Holders

867

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
tbotts150.eth
Balance
1 KillaLabsRewards
0xe4890FB37F8e72f9794E175A0bf90A522cff3A73
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:
KillaLabsRewards

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./StaticNFT.sol";

interface ICrystals {
    function mint(address recipient, uint256[] calldata tiers) external;
}

contract KillaLabsRewards is Ownable, ReentrancyGuard, StaticNFT {
    using ECDSA for bytes32;
    using Strings for uint256;

    address public signer;
    address public immutable killaLabsAddress;
    ICrystals public crystalsContract;

    mapping(address => uint256) public claimCounters;

    error NotAllowed();
    error InvalidSignature();
    error WrongArraySize();

    constructor(address killaLabs)
        StaticNFT("KillaLabsRewards", "KillaLabsRewards")
    {
        killaLabsAddress = killaLabs;
    }

    /// @dev Called by the KillaLabs contract to distribute rewards
    function reward(
        address recipient,
        uint256[] calldata bears,
        uint256[] calldata tiers,
        bytes calldata signature
    ) external nonReentrant {
        if (msg.sender != killaLabsAddress) revert NotAllowed();
        if (tiers.length > 4) revert WrongArraySize();
        checkSignature(bears, tiers, signature);

        uint256 packedCounters = claimCounters[recipient];

        if (packedCounters == 0) {
            emit Transfer(address(0), recipient, uint160(recipient));
        }

        for (uint256 i = 0; i < 3; i++) {
            uint256 inc = tiers[i];
            if (inc == 0) continue;
            packedCounters += inc << (12 * i);
        }

        claimCounters[recipient] = packedCounters;

        crystalsContract.mint(recipient, tiers);
    }

    /// @notice Burn a soulbound token
    function burn() external {
        if (claimCounters[msg.sender] == 0) revert NotAllowed();
        delete claimCounters[msg.sender];
        emit Transfer(msg.sender, address(0), uint160(msg.sender));
    }

    /// @notice Sets the crystals contract
    function setCrystalsContract(address addr) external onlyOwner {
        crystalsContract = ICrystals(addr);
    }

    /// @notice Sets the signer wallet address
    function setSigner(address _signer) external onlyOwner {
        signer = _signer;
    }

    /// @notice Sets the base URI
    function setBaseURI(string calldata uri) external onlyOwner {
        baseURI = uri;
    }

    /// @dev Check if a signature is valid
    function checkSignature(
        uint256[] calldata bears,
        uint256[] calldata rewardIds,
        bytes calldata signature
    ) private view {
        if (
            signer !=
            ECDSA
                .toEthSignedMessageHash(
                    abi.encodePacked(bears.length, bears, rewardIds)
                )
                .recover(signature)
        ) revert InvalidSignature();
    }

    /// @dev used by StaticNFT base contract
    function getBalance(address _addr)
        internal
        view
        override
        returns (uint256)
    {
        return claimCounters[_addr] == 0 ? 0 : 1;
    }

    /// @dev used by StaticNFT base contract
    function getOwner(uint256 tokenId)
        internal
        view
        override
        returns (address)
    {
        address addr = address(uint160(tokenId));
        if (claimCounters[addr] == 0) return address(0);
        return addr;
    }

    /// @dev URI is different based on the claim counter and tier
    function tokenURI(uint256 tokenId)
        external
        view
        override
        returns (string memory)
    {
        address owner = address(uint160(tokenId));
        uint256 packedCounters = claimCounters[owner];
        if (packedCounters == 0) {
            return bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, "burned"))
                : "";
        }

        return
            bytes(baseURI).length > 0
                ? string(
                    abi.encodePacked(
                        baseURI,
                        (packedCounters & 0xfff).toString(),
                        "/",
                        ((packedCounters >> (12 * 1)) & 0xfff).toString(),
                        "/",
                        ((packedCounters >> (12 * 2)) & 0xfff).toString()
                    )
                )
                : "";
    }
}

File 2 of 12 : 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 12 : 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 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

File 5 of 12 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 6 of 12 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 7 of 12 : 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 8 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 9 of 12 : 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 10 of 12 : 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 11 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 12 of 12 : 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":"killaLabs","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[],"name":"TransferNotAllowed","type":"error"},{"inputs":[],"name":"WrongArraySize","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":"","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":[],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimCounters","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crystalsContract","outputs":[{"internalType":"contract ICrystals","name":"","type":"address"}],"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":"killaLabsAddress","outputs":[{"internalType":"address","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256[]","name":"bears","type":"uint256[]"},{"internalType":"uint256[]","name":"tiers","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"reward","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":"address","name":"addr","type":"address"}],"name":"setCrystalsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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"}]

60a06040523480156200001157600080fd5b5060405162001a4b38038062001a4b83398101604081905262000034916200012a565b6040518060400160405280601081526020016f4b696c6c614c6162735265776172647360801b8152506040518060400160405280601081526020016f4b696c6c614c6162735265776172647360801b815250620000a06200009a620000d660201b60201c565b620000da565b600180556002620000b2838262000201565b506003620000c1828262000201565b5050506001600160a01b0316608052620002cd565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200013d57600080fd5b81516001600160a01b03811681146200015557600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018757607f821691505b602082108103620001a857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001fc57600081815260208120601f850160051c81016020861015620001d75750805b601f850160051c820191505b81811015620001f857828155600101620001e3565b5050505b505050565b81516001600160401b038111156200021d576200021d6200015c565b62000235816200022e845462000172565b84620001ae565b602080601f8311600181146200026d5760008415620002545750858301515b600019600386901b1c1916600185901b178555620001f8565b600085815260208120601f198616915b828110156200029e578886015182559484019460019091019084016200027d565b5085821015620002bd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805161175b620002f0600039600081816101c00152610603015261175b6000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80636c19e783116100de578063948be0b711610097578063b88d4fde11610071578063b88d4fde1461034b578063c87b56dd14610359578063e985e9c51461036c578063f2fde38b1461038257600080fd5b8063948be0b71461032257806395d89b4114610335578063a22cb4651461033d57600080fd5b80636c19e783146102a25780636e8f70cd146102b557806370a08231146102c8578063715018a6146102e95780637f60bc93146102f15780638da5cb5b1461031157600080fd5b806323b872dd1161014b5780635198acdc116101255780635198acdc1461026157806355f804b3146102745780636352211e146102875780636c0360eb1461029a57600080fd5b806323b872dd1461024b57806342842e0e1461024b57806344df8e701461025957600080fd5b806301ffc9a71461019357806303c86803146101bb57806306fdde03146101fa578063081812fc1461020f578063095ea7b314610223578063238ac93314610238575b600080fd5b6101a66101a1366004610f54565b610395565b60405190151581526020015b60405180910390f35b6101e27f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101b2565b6102026103e7565b6040516101b29190610fa9565b6101e261021d366004610fdc565b50600090565b610236610231366004611011565b610475565b005b6005546101e2906001600160a01b031681565b61023661023136600461103b565b61023661048e565b6006546101e2906001600160a01b031681565b6102366102823660046110b9565b6104fa565b6101e2610295366004610fdc565b610514565b610202610549565b6102366102b03660046110fb565b610556565b6102366102c33660046110fb565b610580565b6102db6102d63660046110fb565b6105aa565b6040519081526020016101b2565b6102366105dc565b6102db6102ff3660046110fb565b60076020526000908152604090205481565b6000546001600160a01b03166101e2565b61023661033036600461115b565b6105f0565b6102026107be565b610236610231366004611206565b610236610231366004611258565b610202610367366004610fdc565b6107cb565b6101a661037a366004611334565b600092915050565b6102366103903660046110fb565b6108b5565b60006301ffc9a760e01b6001600160e01b0319831614806103c657506380ac58cd60e01b6001600160e01b03198316145b806103e15750635b5e139f60e01b6001600160e01b03198316145b92915050565b600280546103f490611367565b80601f016020809104026020016040519081016040528092919081815260200182805461042090611367565b801561046d5780601f106104425761010080835404028352916020019161046d565b820191906000526020600020905b81548152906001019060200180831161045057829003601f168201915b505050505081565b604051638cd22d1960e01b815260040160405180910390fd5b3360009081526007602052604081205490036104bd57604051631eb49d6d60e11b815260040160405180910390fd5b336000818152600760205260408082208290555182907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4565b610502610933565b600461050f8284836113e7565b505050565b6000806105208361098d565b90506001600160a01b0381166103e157604051634a1850bf60e11b815260040160405180910390fd5b600480546103f490611367565b61055e610933565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610588610933565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166105d3576040516349e27cff60e01b815260040160405180910390fd5b6103e1826109b7565b6105e4610933565b6105ee60006109e8565b565b6105f8610a38565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461064157604051631eb49d6d60e11b815260040160405180910390fd5b6004831115610663576040516367acabb560e11b815260040160405180910390fd5b610671868686868686610a91565b6001600160a01b038716600090815260076020526040812054908190036106cb576040516001600160a01b0389169081906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45b60005b60038110156107305760008686838181106106eb576106eb6114a8565b90506020020135905080600003610702575061071e565b61070d82600c6114d4565b61071a9082901b846114f3565b9250505b8061072881611506565b9150506106ce565b506001600160a01b0380891660009081526007602052604090819020839055600654905163de836ebd60e01b815291169063de836ebd90610779908b908990899060040161151f565b600060405180830381600087803b15801561079357600080fd5b505af11580156107a7573d6000803e3d6000fd5b50505050506107b560018055565b50505050505050565b600380546103f490611367565b6001600160a01b0381166000908152600760205260408120546060918391908190036108465760006004805461080090611367565b90501161081c576040518060200160405280600081525061083e565b600460405160200161082e91906115dc565b6040516020818303038152906040525b949350505050565b60006004805461085590611367565b905011610871576040518060200160405280600081525061083e565b600461088082610fff16610b37565b610891600c84901c610fff16610b37565b6108a2601885901c610fff16610b37565b60405160200161082e94939291906115fe565b6108bd610933565b6001600160a01b0381166109275760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610930816109e8565b50565b6000546001600160a01b031633146105ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091e565b6001600160a01b038116600090815260076020526040812054829082036103e15750600092915050565b6001600160a01b038116600090815260076020526040812054156109dc5760016109df565b60005b60ff1692915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403610a8a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161091e565b6002600155565b610b0182828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051610afb9250610ae7915089908b9082908b908b9060200161168c565b604051602081830303815290604052610bca565b90610c05565b6005546001600160a01b03908116911614610b2f57604051638baa579f60e01b815260040160405180910390fd5b505050505050565b60606000610b4483610c29565b600101905060008167ffffffffffffffff811115610b6457610b64611242565b6040519080825280601f01601f191660200182016040528015610b8e576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610b9857509392505050565b6000610bd68251610b37565b82604051602001610be89291906116b4565b604051602081830303815290604052805190602001209050919050565b6000806000610c148585610d01565b91509150610c2181610d46565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610c685772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610c94576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610cb257662386f26fc10000830492506010015b6305f5e1008310610cca576305f5e100830492506008015b6127108310610cde57612710830492506004015b60648310610cf0576064830492506002015b600a83106103e15760010192915050565b6000808251604103610d375760208301516040840151606085015160001a610d2b87828585610e90565b94509450505050610d3f565b506000905060025b9250929050565b6000816004811115610d5a57610d5a61170f565b03610d625750565b6001816004811115610d7657610d7661170f565b03610dc35760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161091e565b6002816004811115610dd757610dd761170f565b03610e245760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161091e565b6003816004811115610e3857610e3861170f565b036109305760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161091e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610ec75750600090506003610f4b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610f1b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610f4457600060019250925050610f4b565b9150600090505b94509492505050565b600060208284031215610f6657600080fd5b81356001600160e01b031981168114610f7e57600080fd5b9392505050565b60005b83811015610fa0578181015183820152602001610f88565b50506000910152565b6020815260008251806020840152610fc8816040850160208701610f85565b601f01601f19169190910160400192915050565b600060208284031215610fee57600080fd5b5035919050565b80356001600160a01b038116811461100c57600080fd5b919050565b6000806040838503121561102457600080fd5b61102d83610ff5565b946020939093013593505050565b60008060006060848603121561105057600080fd5b61105984610ff5565b925061106760208501610ff5565b9150604084013590509250925092565b60008083601f84011261108957600080fd5b50813567ffffffffffffffff8111156110a157600080fd5b602083019150836020828501011115610d3f57600080fd5b600080602083850312156110cc57600080fd5b823567ffffffffffffffff8111156110e357600080fd5b6110ef85828601611077565b90969095509350505050565b60006020828403121561110d57600080fd5b610f7e82610ff5565b60008083601f84011261112857600080fd5b50813567ffffffffffffffff81111561114057600080fd5b6020830191508360208260051b8501011115610d3f57600080fd5b60008060008060008060006080888a03121561117657600080fd5b61117f88610ff5565b9650602088013567ffffffffffffffff8082111561119c57600080fd5b6111a88b838c01611116565b909850965060408a01359150808211156111c157600080fd5b6111cd8b838c01611116565b909650945060608a01359150808211156111e657600080fd5b506111f38a828b01611077565b989b979a50959850939692959293505050565b6000806040838503121561121957600080fd5b61122283610ff5565b91506020830135801515811461123757600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561126e57600080fd5b61127785610ff5565b935061128560208601610ff5565b925060408501359150606085013567ffffffffffffffff808211156112a957600080fd5b818701915087601f8301126112bd57600080fd5b8135818111156112cf576112cf611242565b604051601f8201601f19908116603f011681019083821181831017156112f7576112f7611242565b816040528281528a602084870101111561131057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561134757600080fd5b61135083610ff5565b915061135e60208401610ff5565b90509250929050565b600181811c9082168061137b57607f821691505b60208210810361139b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561050f57600081815260208120601f850160051c810160208610156113c85750805b601f850160051c820191505b81811015610b2f578281556001016113d4565b67ffffffffffffffff8311156113ff576113ff611242565b6114138361140d8354611367565b836113a1565b6000601f841160018114611447576000851561142f5750838201355b600019600387901b1c1916600186901b1783556114a1565b600083815260209020601f19861690835b828110156114785786850135825560209485019460019092019101611458565b50868210156114955760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156114ee576114ee6114be565b500290565b808201808211156103e1576103e16114be565b600060018201611518576115186114be565b5060010190565b6001600160a01b0384168152604060208201819052810182905260006001600160fb1b0383111561154f57600080fd5b8260051b8085606085013791909101606001949350505050565b6000815461157681611367565b6001828116801561158e57600181146115a3576115d2565b60ff19841687528215158302870194506115d2565b8560005260208060002060005b858110156115c95781548a8201529084019082016115b0565b50505082870194505b5050505092915050565b60006115e88284611569565b65189d5c9b995960d21b81526006019392505050565b600061160a8287611569565b855161161a818360208a01610f85565b602f60f81b9101818152855190919061163a816001850160208a01610f85565b60019201918201528351611655816002840160208801610f85565b016002019695505050505050565b60006001600160fb1b0383111561167957600080fd5b8260051b80838637939093019392505050565b85815260006116a96116a2602084018789611663565b8486611663565b979650505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a0000000000008152600083516116ec81601a850160208801610f85565b83519083019061170381601a840160208801610f85565b01601a01949350505050565b634e487b7160e01b600052602160045260246000fdfea26469706673582212200fb132a1a83b65ac986548f9f614dca9fd655e57140b6191018cd6b2f550108964736f6c634300081000330000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a88

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80636c19e783116100de578063948be0b711610097578063b88d4fde11610071578063b88d4fde1461034b578063c87b56dd14610359578063e985e9c51461036c578063f2fde38b1461038257600080fd5b8063948be0b71461032257806395d89b4114610335578063a22cb4651461033d57600080fd5b80636c19e783146102a25780636e8f70cd146102b557806370a08231146102c8578063715018a6146102e95780637f60bc93146102f15780638da5cb5b1461031157600080fd5b806323b872dd1161014b5780635198acdc116101255780635198acdc1461026157806355f804b3146102745780636352211e146102875780636c0360eb1461029a57600080fd5b806323b872dd1461024b57806342842e0e1461024b57806344df8e701461025957600080fd5b806301ffc9a71461019357806303c86803146101bb57806306fdde03146101fa578063081812fc1461020f578063095ea7b314610223578063238ac93314610238575b600080fd5b6101a66101a1366004610f54565b610395565b60405190151581526020015b60405180910390f35b6101e27f0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a8881565b6040516001600160a01b0390911681526020016101b2565b6102026103e7565b6040516101b29190610fa9565b6101e261021d366004610fdc565b50600090565b610236610231366004611011565b610475565b005b6005546101e2906001600160a01b031681565b61023661023136600461103b565b61023661048e565b6006546101e2906001600160a01b031681565b6102366102823660046110b9565b6104fa565b6101e2610295366004610fdc565b610514565b610202610549565b6102366102b03660046110fb565b610556565b6102366102c33660046110fb565b610580565b6102db6102d63660046110fb565b6105aa565b6040519081526020016101b2565b6102366105dc565b6102db6102ff3660046110fb565b60076020526000908152604090205481565b6000546001600160a01b03166101e2565b61023661033036600461115b565b6105f0565b6102026107be565b610236610231366004611206565b610236610231366004611258565b610202610367366004610fdc565b6107cb565b6101a661037a366004611334565b600092915050565b6102366103903660046110fb565b6108b5565b60006301ffc9a760e01b6001600160e01b0319831614806103c657506380ac58cd60e01b6001600160e01b03198316145b806103e15750635b5e139f60e01b6001600160e01b03198316145b92915050565b600280546103f490611367565b80601f016020809104026020016040519081016040528092919081815260200182805461042090611367565b801561046d5780601f106104425761010080835404028352916020019161046d565b820191906000526020600020905b81548152906001019060200180831161045057829003601f168201915b505050505081565b604051638cd22d1960e01b815260040160405180910390fd5b3360009081526007602052604081205490036104bd57604051631eb49d6d60e11b815260040160405180910390fd5b336000818152600760205260408082208290555182907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4565b610502610933565b600461050f8284836113e7565b505050565b6000806105208361098d565b90506001600160a01b0381166103e157604051634a1850bf60e11b815260040160405180910390fd5b600480546103f490611367565b61055e610933565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610588610933565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166105d3576040516349e27cff60e01b815260040160405180910390fd5b6103e1826109b7565b6105e4610933565b6105ee60006109e8565b565b6105f8610a38565b336001600160a01b037f0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a88161461064157604051631eb49d6d60e11b815260040160405180910390fd5b6004831115610663576040516367acabb560e11b815260040160405180910390fd5b610671868686868686610a91565b6001600160a01b038716600090815260076020526040812054908190036106cb576040516001600160a01b0389169081906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45b60005b60038110156107305760008686838181106106eb576106eb6114a8565b90506020020135905080600003610702575061071e565b61070d82600c6114d4565b61071a9082901b846114f3565b9250505b8061072881611506565b9150506106ce565b506001600160a01b0380891660009081526007602052604090819020839055600654905163de836ebd60e01b815291169063de836ebd90610779908b908990899060040161151f565b600060405180830381600087803b15801561079357600080fd5b505af11580156107a7573d6000803e3d6000fd5b50505050506107b560018055565b50505050505050565b600380546103f490611367565b6001600160a01b0381166000908152600760205260408120546060918391908190036108465760006004805461080090611367565b90501161081c576040518060200160405280600081525061083e565b600460405160200161082e91906115dc565b6040516020818303038152906040525b949350505050565b60006004805461085590611367565b905011610871576040518060200160405280600081525061083e565b600461088082610fff16610b37565b610891600c84901c610fff16610b37565b6108a2601885901c610fff16610b37565b60405160200161082e94939291906115fe565b6108bd610933565b6001600160a01b0381166109275760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610930816109e8565b50565b6000546001600160a01b031633146105ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091e565b6001600160a01b038116600090815260076020526040812054829082036103e15750600092915050565b6001600160a01b038116600090815260076020526040812054156109dc5760016109df565b60005b60ff1692915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403610a8a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161091e565b6002600155565b610b0182828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051610afb9250610ae7915089908b9082908b908b9060200161168c565b604051602081830303815290604052610bca565b90610c05565b6005546001600160a01b03908116911614610b2f57604051638baa579f60e01b815260040160405180910390fd5b505050505050565b60606000610b4483610c29565b600101905060008167ffffffffffffffff811115610b6457610b64611242565b6040519080825280601f01601f191660200182016040528015610b8e576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610b9857509392505050565b6000610bd68251610b37565b82604051602001610be89291906116b4565b604051602081830303815290604052805190602001209050919050565b6000806000610c148585610d01565b91509150610c2181610d46565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610c685772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610c94576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610cb257662386f26fc10000830492506010015b6305f5e1008310610cca576305f5e100830492506008015b6127108310610cde57612710830492506004015b60648310610cf0576064830492506002015b600a83106103e15760010192915050565b6000808251604103610d375760208301516040840151606085015160001a610d2b87828585610e90565b94509450505050610d3f565b506000905060025b9250929050565b6000816004811115610d5a57610d5a61170f565b03610d625750565b6001816004811115610d7657610d7661170f565b03610dc35760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161091e565b6002816004811115610dd757610dd761170f565b03610e245760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161091e565b6003816004811115610e3857610e3861170f565b036109305760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161091e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610ec75750600090506003610f4b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610f1b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610f4457600060019250925050610f4b565b9150600090505b94509492505050565b600060208284031215610f6657600080fd5b81356001600160e01b031981168114610f7e57600080fd5b9392505050565b60005b83811015610fa0578181015183820152602001610f88565b50506000910152565b6020815260008251806020840152610fc8816040850160208701610f85565b601f01601f19169190910160400192915050565b600060208284031215610fee57600080fd5b5035919050565b80356001600160a01b038116811461100c57600080fd5b919050565b6000806040838503121561102457600080fd5b61102d83610ff5565b946020939093013593505050565b60008060006060848603121561105057600080fd5b61105984610ff5565b925061106760208501610ff5565b9150604084013590509250925092565b60008083601f84011261108957600080fd5b50813567ffffffffffffffff8111156110a157600080fd5b602083019150836020828501011115610d3f57600080fd5b600080602083850312156110cc57600080fd5b823567ffffffffffffffff8111156110e357600080fd5b6110ef85828601611077565b90969095509350505050565b60006020828403121561110d57600080fd5b610f7e82610ff5565b60008083601f84011261112857600080fd5b50813567ffffffffffffffff81111561114057600080fd5b6020830191508360208260051b8501011115610d3f57600080fd5b60008060008060008060006080888a03121561117657600080fd5b61117f88610ff5565b9650602088013567ffffffffffffffff8082111561119c57600080fd5b6111a88b838c01611116565b909850965060408a01359150808211156111c157600080fd5b6111cd8b838c01611116565b909650945060608a01359150808211156111e657600080fd5b506111f38a828b01611077565b989b979a50959850939692959293505050565b6000806040838503121561121957600080fd5b61122283610ff5565b91506020830135801515811461123757600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561126e57600080fd5b61127785610ff5565b935061128560208601610ff5565b925060408501359150606085013567ffffffffffffffff808211156112a957600080fd5b818701915087601f8301126112bd57600080fd5b8135818111156112cf576112cf611242565b604051601f8201601f19908116603f011681019083821181831017156112f7576112f7611242565b816040528281528a602084870101111561131057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561134757600080fd5b61135083610ff5565b915061135e60208401610ff5565b90509250929050565b600181811c9082168061137b57607f821691505b60208210810361139b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561050f57600081815260208120601f850160051c810160208610156113c85750805b601f850160051c820191505b81811015610b2f578281556001016113d4565b67ffffffffffffffff8311156113ff576113ff611242565b6114138361140d8354611367565b836113a1565b6000601f841160018114611447576000851561142f5750838201355b600019600387901b1c1916600186901b1783556114a1565b600083815260209020601f19861690835b828110156114785786850135825560209485019460019092019101611458565b50868210156114955760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156114ee576114ee6114be565b500290565b808201808211156103e1576103e16114be565b600060018201611518576115186114be565b5060010190565b6001600160a01b0384168152604060208201819052810182905260006001600160fb1b0383111561154f57600080fd5b8260051b8085606085013791909101606001949350505050565b6000815461157681611367565b6001828116801561158e57600181146115a3576115d2565b60ff19841687528215158302870194506115d2565b8560005260208060002060005b858110156115c95781548a8201529084019082016115b0565b50505082870194505b5050505092915050565b60006115e88284611569565b65189d5c9b995960d21b81526006019392505050565b600061160a8287611569565b855161161a818360208a01610f85565b602f60f81b9101818152855190919061163a816001850160208a01610f85565b60019201918201528351611655816002840160208801610f85565b016002019695505050505050565b60006001600160fb1b0383111561167957600080fd5b8260051b80838637939093019392505050565b85815260006116a96116a2602084018789611663565b8486611663565b979650505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a0000000000008152600083516116ec81601a850160208801610f85565b83519083019061170381601a840160208801610f85565b01601a01949350505050565b634e487b7160e01b600052602160045260246000fdfea26469706673582212200fb132a1a83b65ac986548f9f614dca9fd655e57140b6191018cd6b2f550108964736f6c63430008100033

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

0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a88

-----Decoded View---------------
Arg [0] : killaLabs (address): 0x0a1730279B86a00C7214Abc624f19261F8Fd9a88

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000a1730279b86a00c7214abc624f19261f8fd9a88


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.