ETH Price: $2,491.46 (-0.84%)

Token

AlterEgo (EGO)
 

Overview

Max Total Supply

99 EGO

Holders

57

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
dsi.sismo.eth
Balance
1 EGO
0xb8688028c54efe7d6e27405616526b23c7ae6948
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:
AlterEgo

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 16 : AlterEgo.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";
import "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol";
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";


import "./ProxyRegistry.sol";

contract AlterEgo is ERC721, Ownable, VRFConsumerBaseV2 {
    using Counters for Counters.Counter;

    address proxyRegistryAddress;

    // Required by Chainlink
    VRFCoordinatorV2Interface COORDINATOR;
    LinkTokenInterface LINKTOKEN;

    uint64 immutable s_subscriptionId;

    bytes32 immutable keyHash;

    uint32 constant callbackGasLimit = 100000;

    uint16 constant requestConfirmations = 3;

    uint32 constant numWords =  1;

    uint256 public lambo_winner;

    Counters.Counter private _tokenSupply;

    uint256 public PRICE;
    uint256 public START_DATE;
    uint256 public MAX_SUPPLY;
    uint256 public constant RESERVED_WINNERS = 18;

    string private baseUri;

    modifier saleIsActive() {
        require(START_DATE != 0 && block.timestamp >= START_DATE, "Sale is not active yet");
        _;
    }

    constructor(
        address _vrfCoordinator,
        address _link,
        bytes32 _keyHash,
        uint64 _subscriptionId,
        address _proxyRegistryAddress,
        uint256 _price,
        uint256 _startDate,
        uint256 _maxSupply,
        string memory _baseUri
    ) ERC721("AlterEgo", "EGO") VRFConsumerBaseV2(_vrfCoordinator) {
        keyHash = _keyHash;
        s_subscriptionId = _subscriptionId;
        COORDINATOR = VRFCoordinatorV2Interface(_vrfCoordinator);
        LINKTOKEN = LinkTokenInterface(_link);

        proxyRegistryAddress = _proxyRegistryAddress;
        PRICE = _price;
        START_DATE = _startDate;
        MAX_SUPPLY = _maxSupply;
        baseUri = _baseUri;
    }

    function mint(uint256 numberOfTokens) public payable saleIsActive {
        require(numberOfTokens * PRICE == msg.value, "Ether value is not correct");
        require(_tokenSupply.current() + numberOfTokens <= MAX_SUPPLY - RESERVED_WINNERS, "Sold out!");

        for (uint256 i = 0; i < numberOfTokens; i++) {
            _safeMint(msg.sender, _tokenSupply.current());
            _tokenSupply.increment();
        }
    }

    function reserve(address[] calldata to) public onlyOwner {
        for (uint256 i = 0; i < to.length; i++) {
            _safeMint(to[i], _tokenSupply.current());
            _tokenSupply.increment();
        }
    }

    function totalSupply() public view returns (uint256) {
        return _tokenSupply.current();
    }

    function contractURI() public pure returns (string memory) {
        return "ipfs://bafybeicgcef6ox4lou6nx3x4un6zwnsh5cv36ae5er6vtjpzenlartsuou";
    }

    function _baseURI() internal view override returns (string memory) {
        return baseUri;
    }

    function setBaseURI(string memory _baseUri) public onlyOwner {
        baseUri = _baseUri;
    }

    function setPrice(uint256 _price) public onlyOwner {
        PRICE = _price;
    }

    function setStartDate(uint256 _startDate) public onlyOwner {
        START_DATE = _startDate;
    }

    function setMaxSupply(uint256 _maxSupply) public onlyOwner {
        MAX_SUPPLY = _maxSupply;
    }

    function walletOfOwner(address owner) public view returns (uint256[] memory) {
        uint256[] memory result = new uint256[](balanceOf(owner));
        uint256 i = 0;

        for (uint256 tokenId = 0; tokenId < _tokenSupply.current(); tokenId++) {
            if (_exists(tokenId) && ownerOf(tokenId) == owner) {
                result[i] = tokenId;
                i += 1;
            }
        }
        return result;
    }

    function withdraw(address payable to, uint256 amount) public onlyOwner {
        require(to != address(0x0), "Invalid address");
        to.transfer(amount);
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator) public view override returns (bool) {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    // Assumes the subscription is funded sufficiently.
    function selectWinner() public onlyOwner {
        // Will revert if subscription is not set and funded.
        COORDINATOR.requestRandomWords(
        keyHash,
        s_subscriptionId,
        requestConfirmations,
        callbackGasLimit,
        numWords
        );
    }
    
    function fulfillRandomWords(
        uint256, /* requestId */
        uint256[] memory randomWords
    ) internal override {
        lambo_winner = randomWords[0] % _tokenSupply.current();
    }

}

File 2 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 16 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 5 of 16 : VRFConsumerBaseV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness. It ensures 2 things:
 * @dev 1. The fulfillment came from the VRFCoordinator
 * @dev 2. The consumer contract implements fulfillRandomWords.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash). Create subscription, fund it
 * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
 * @dev subscription management functions).
 * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
 * @dev callbackGasLimit, numWords),
 * @dev see (VRFCoordinatorInterface for a description of the arguments).
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomWords method.
 *
 * @dev The randomness argument to fulfillRandomWords is a set of random words
 * @dev generated from your requestId and the blockHash of the request.
 *
 * @dev If your contract could have concurrent requests open, you can use the
 * @dev requestId returned from requestRandomWords to track which response is associated
 * @dev with which randomness request.
 * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ.
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request. It is for this reason that
 * @dev that you can signal to an oracle you'd like them to wait longer before
 * @dev responding to the request (however this is not enforced in the contract
 * @dev and so remains effective only in the case of unmodified oracle software).
 */
abstract contract VRFConsumerBaseV2 {
  error OnlyCoordinatorCanFulfill(address have, address want);
  address private immutable vrfCoordinator;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   */
  constructor(address _vrfCoordinator) {
    vrfCoordinator = _vrfCoordinator;
  }

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomWords the VRF output expanded to the requested number of words
   */
  function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual;

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
    if (msg.sender != vrfCoordinator) {
      revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
    }
    fulfillRandomWords(requestId, randomWords);
  }
}

File 6 of 16 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {
  function allowance(address owner, address spender) external view returns (uint256 remaining);

  function approve(address spender, uint256 value) external returns (bool success);

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

  function decimals() external view returns (uint8 decimalPlaces);

  function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);

  function increaseApproval(address spender, uint256 subtractedValue) external;

  function name() external view returns (string memory tokenName);

  function symbol() external view returns (string memory tokenSymbol);

  function totalSupply() external view returns (uint256 totalTokensIssued);

  function transfer(address to, uint256 value) external returns (bool success);

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  ) external returns (bool success);

  function transferFrom(
    address from,
    address to,
    uint256 value
  ) external returns (bool success);
}

File 7 of 16 : VRFCoordinatorV2Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface VRFCoordinatorV2Interface {
  /**
   * @notice Get configuration relevant for making requests
   * @return minimumRequestConfirmations global min for request confirmations
   * @return maxGasLimit global max for request gas limit
   * @return s_provingKeyHashes list of registered key hashes
   */
  function getRequestConfig()
    external
    view
    returns (
      uint16,
      uint32,
      bytes32[] memory
    );

  /**
   * @notice Request a set of random words.
   * @param keyHash - Corresponds to a particular oracle job which uses
   * that key for generating the VRF proof. Different keyHash's have different gas price
   * ceilings, so you can select a specific one to bound your maximum per request cost.
   * @param subId  - The ID of the VRF subscription. Must be funded
   * with the minimum subscription balance required for the selected keyHash.
   * @param minimumRequestConfirmations - How many blocks you'd like the
   * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
   * for why you may want to request more. The acceptable range is
   * [minimumRequestBlockConfirmations, 200].
   * @param callbackGasLimit - How much gas you'd like to receive in your
   * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
   * may be slightly less than this amount because of gas used calling the function
   * (argument decoding etc.), so you may need to request slightly more than you expect
   * to have inside fulfillRandomWords. The acceptable range is
   * [0, maxGasLimit]
   * @param numWords - The number of uint256 random values you'd like to receive
   * in your fulfillRandomWords callback. Note these numbers are expanded in a
   * secure way by the VRFCoordinator from a single random value supplied by the oracle.
   * @return requestId - A unique identifier of the request. Can be used to match
   * a request to a response in fulfillRandomWords.
   */
  function requestRandomWords(
    bytes32 keyHash,
    uint64 subId,
    uint16 minimumRequestConfirmations,
    uint32 callbackGasLimit,
    uint32 numWords
  ) external returns (uint256 requestId);

  /**
   * @notice Create a VRF subscription.
   * @return subId - A unique subscription id.
   * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
   * @dev Note to fund the subscription, use transferAndCall. For example
   * @dev  LINKTOKEN.transferAndCall(
   * @dev    address(COORDINATOR),
   * @dev    amount,
   * @dev    abi.encode(subId));
   */
  function createSubscription() external returns (uint64 subId);

  /**
   * @notice Get a VRF subscription.
   * @param subId - ID of the subscription
   * @return balance - LINK balance of the subscription in juels.
   * @return reqCount - number of requests for this subscription, determines fee tier.
   * @return owner - owner of the subscription.
   * @return consumers - list of consumer address which are able to use this subscription.
   */
  function getSubscription(uint64 subId)
    external
    view
    returns (
      uint96 balance,
      uint64 reqCount,
      address owner,
      address[] memory consumers
    );

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @param newOwner - proposed new owner of the subscription
   */
  function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @dev will revert if original owner of subId has
   * not requested that msg.sender become the new owner.
   */
  function acceptSubscriptionOwnerTransfer(uint64 subId) external;

  /**
   * @notice Add a consumer to a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - New consumer which can use the subscription
   */
  function addConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Remove a consumer from a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - Consumer to remove from the subscription
   */
  function removeConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Cancel a subscription
   * @param subId - ID of the subscription
   * @param to - Where to send the remaining LINK to
   */
  function cancelSubscription(uint64 subId, address to) external;
}

File 8 of 16 : ProxyRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

contract OwnableDelegateProxy {}

/**
 * Used to delegate ownership of a contract to another address, to save on unneeded transactions to approve contract use for users
 */
contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 16 of 16 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_link","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint64","name":"_subscriptionId","type":"uint64"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_startDate","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"string","name":"_baseUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","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":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_WINNERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_DATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lambo_winner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"selectWinner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startDate","type":"uint256"}],"name":"setStartDate","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b506040516200298238038062002982833981016040819052620000349162000269565b6040805180820182526008815267416c74657245676f60c01b60208083019182528351808501909452600384526245474f60e81b9084015281518c939162000080916000919062000190565b5080516200009690600190602084019062000190565b505050620000b3620000ad6200013a60201b60201c565b6200013e565b6001600160a01b0390811660805260c08890526001600160401b03871660a052600880546001600160a01b03199081168c8416179091556009805482168b841617905560078054909116918716919091179055600c849055600d839055600e82905580516200012a90600f90602084019062000190565b5050505050505050505062000404565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200019e90620003c7565b90600052602060002090601f016020900481019282620001c257600085556200020d565b82601f10620001dd57805160ff19168380011785556200020d565b828001600101855582156200020d579182015b828111156200020d578251825591602001919060010190620001f0565b506200021b9291506200021f565b5090565b5b808211156200021b576000815560010162000220565b80516001600160a01b03811681146200024e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060008060008060006101208a8c0312156200028957600080fd5b620002948a62000236565b9850620002a460208b0162000236565b60408b015160608c015191995097506001600160401b038082168214620002ca57600080fd5b819750620002db60808d0162000236565b965060a08c0151955060c08c0151945060e08c015193506101008c01519150808211156200030857600080fd5b818c0191508c601f8301126200031d57600080fd5b81518181111562000332576200033262000253565b604051601f8201601f19908116603f011681019083821181831017156200035d576200035d62000253565b816040528281528f60208487010111156200037757600080fd5b600093505b828410156200039f5760208486010151602085830101526020840193506200037c565b82841115620003b2576000602084830101525b80955050505050509295985092959850929598565b600181811c90821680620003dc57607f821691505b60208210811415620003fe57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c0516125476200043b6000396000610a0301526000610a320152600081816108a501526108e701526125476000f3fe6080604052600436106101fe5760003560e01c8063715018a61161011d578063b6819114116100b0578063e8a3d4851161007f578063eabf889a11610064578063eabf889a146105a0578063f2fde38b146105b6578063f3fef3a3146105d657600080fd5b8063e8a3d4851461056b578063e985e9c51461058057600080fd5b8063b6819114146104f6578063b88d4fde1461050b578063c87b56dd1461052b578063d682ed861461054b57600080fd5b806391b7f5ed116100ec57806391b7f5ed1461048e57806395d89b41146104ae578063a0712d68146104c3578063a22cb465146104d657600080fd5b8063715018a61461042557806382d95df51461043a5780638d859f3e1461045a5780638da5cb5b1461047057600080fd5b806333a99e041161019557806355f804b31161016457806355f804b3146103a55780636352211e146103c55780636f8b44b0146103e557806370a082311461040557600080fd5b806333a99e041461032d578063372c65331461034257806342842e0e14610358578063438b63001461037857600080fd5b806318160ddd116101d157806318160ddd146102b45780631fe543e3146102d757806323b872dd146102f757806332cb6b0c1461031757600080fd5b806301ffc9a71461020357806306fdde0314610238578063081812fc1461025a578063095ea7b314610292575b600080fd5b34801561020f57600080fd5b5061022361021e366004611e8d565b6105f6565b60405190151581526020015b60405180910390f35b34801561024457600080fd5b5061024d610648565b60405161022f9190611f02565b34801561026657600080fd5b5061027a610275366004611f15565b6106da565b6040516001600160a01b03909116815260200161022f565b34801561029e57600080fd5b506102b26102ad366004611f43565b610774565b005b3480156102c057600080fd5b506102c961088a565b60405190815260200161022f565b3480156102e357600080fd5b506102b26102f2366004611fb6565b61089a565b34801561030357600080fd5b506102b2610312366004612068565b610922565b34801561032357600080fd5b506102c9600e5481565b34801561033957600080fd5b506102b26109a9565b34801561034e57600080fd5b506102c9600d5481565b34801561036457600080fd5b506102b2610373366004612068565b610ad8565b34801561038457600080fd5b506103986103933660046120a9565b610af3565b60405161022f91906120c6565b3480156103b157600080fd5b506102b26103c0366004612162565b610bdd565b3480156103d157600080fd5b5061027a6103e0366004611f15565b610c38565b3480156103f157600080fd5b506102b2610400366004611f15565b610cc3565b34801561041157600080fd5b506102c96104203660046120a9565b610d10565b34801561043157600080fd5b506102b2610daa565b34801561044657600080fd5b506102b2610455366004611f15565b610dfe565b34801561046657600080fd5b506102c9600c5481565b34801561047c57600080fd5b506006546001600160a01b031661027a565b34801561049a57600080fd5b506102b26104a9366004611f15565b610e4b565b3480156104ba57600080fd5b5061024d610e98565b6102b26104d1366004611f15565b610ea7565b3480156104e257600080fd5b506102b26104f13660046121ab565b611010565b34801561050257600080fd5b506102c9601281565b34801561051757600080fd5b506102b26105263660046121e9565b61101b565b34801561053757600080fd5b5061024d610546366004611f15565b6110a9565b34801561055757600080fd5b506102b2610566366004612269565b611192565b34801561057757600080fd5b5061024d611237565b34801561058c57600080fd5b5061022361059b3660046122de565b611257565b3480156105ac57600080fd5b506102c9600a5481565b3480156105c257600080fd5b506102b26105d13660046120a9565b611327565b3480156105e257600080fd5b506102b26105f1366004611f43565b6113f4565b60006001600160e01b031982166380ac58cd60e01b148061062757506001600160e01b03198216635b5e139f60e01b145b8061064257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106579061230c565b80601f01602080910402602001604051908101604052809291908181526020018280546106839061230c565b80156106d05780601f106106a5576101008083540402835291602001916106d0565b820191906000526020600020905b8154815290600101906020018083116106b357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107585760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061077f82610c38565b9050806001600160a01b0316836001600160a01b031614156107ed5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161074f565b336001600160a01b038216148061080957506108098133611257565b61087b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161074f565b61088583836114c8565b505050565b6000610895600b5490565b905090565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109145760405163073e64fd60e21b81523360048201526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016602482015260440161074f565b61091e8282611536565b5050565b61092c3382611565565b61099e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161074f565b610885838383611634565b6006546001600160a01b031633146109f15760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b6008546040516305d3b1d360e41b81527f0000000000000000000000000000000000000000000000000000000000000000600482015267ffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016602482015260036044820152620186a06064820152600160848201526001600160a01b0390911690635d3b1d309060a401602060405180830381600087803b158015610a9d57600080fd5b505af1158015610ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad59190612347565b50565b6108858383836040518060200160405280600081525061101b565b60606000610b0083610d10565b67ffffffffffffffff811115610b1857610b18611f6f565b604051908082528060200260200182016040528015610b41578160200160208202803683370190505b5090506000805b600b54811015610bd4576000818152600260205260409020546001600160a01b031615158015610b915750846001600160a01b0316610b8682610c38565b6001600160a01b0316145b15610bc25780838381518110610ba957610ba9612360565b6020908102919091010152610bbf60018361238c565b91505b80610bcc816123a4565b915050610b48565b50909392505050565b6006546001600160a01b03163314610c255760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b805161091e90600f906020840190611dde565b6000818152600260205260408120546001600160a01b0316806106425760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161074f565b6006546001600160a01b03163314610d0b5760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b600e55565b60006001600160a01b038216610d8e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161074f565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610df25760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b610dfc60006117e8565b565b6006546001600160a01b03163314610e465760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b600d55565b6006546001600160a01b03163314610e935760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b600c55565b6060600180546106579061230c565b600d5415801590610eba5750600d544210155b610f065760405162461bcd60e51b815260206004820152601660248201527f53616c65206973206e6f74206163746976652079657400000000000000000000604482015260640161074f565b34600c5482610f1591906123bf565b14610f625760405162461bcd60e51b815260206004820152601a60248201527f45746865722076616c7565206973206e6f7420636f7272656374000000000000604482015260640161074f565b6012600e54610f7191906123de565b81610f7b600b5490565b610f85919061238c565b1115610fd35760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f7574210000000000000000000000000000000000000000000000604482015260640161074f565b60005b8181101561091e57610ff033610feb600b5490565b61183a565b610ffe600b80546001019055565b80611008816123a4565b915050610fd6565b61091e338383611854565b6110253383611565565b6110975760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161074f565b6110a384848484611923565b50505050565b6000818152600260205260409020546060906001600160a01b03166111365760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161074f565b60006111406119a1565b90506000815111611160576040518060200160405280600081525061118b565b8061116a846119b0565b60405160200161117b9291906123f5565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146111da5760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b60005b81811015610885576112178383838181106111fa576111fa612360565b905060200201602081019061120f91906120a9565b600b5461183a565b611225600b80546001019055565b8061122f816123a4565b9150506111dd565b60606040518060800160405280604281526020016124f960429139905090565b60075460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156112a457600080fd5b505afa1580156112b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112dc9190612424565b6001600160a01b031614156112f5576001915050610642565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6006546001600160a01b0316331461136f5760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b6001600160a01b0381166113eb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161074f565b610ad5816117e8565b6006546001600160a01b0316331461143c5760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b6001600160a01b0382166114925760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015260640161074f565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610885573d6000803e3d6000fd5b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114fd82610c38565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600b548160008151811061154c5761154c612360565b602002602001015161155e9190612457565b600a555050565b6000818152600260205260408120546001600160a01b03166115de5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161074f565b60006115e983610c38565b9050806001600160a01b0316846001600160a01b031614806116245750836001600160a01b0316611619846106da565b6001600160a01b0316145b8061131f575061131f8185611257565b826001600160a01b031661164782610c38565b6001600160a01b0316146116c35760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161074f565b6001600160a01b0382166117255760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161074f565b6117306000826114c8565b6001600160a01b03831660009081526003602052604081208054600192906117599084906123de565b90915550506001600160a01b038216600090815260036020526040812080546001929061178790849061238c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61091e828260405180602001604052806000815250611ac6565b816001600160a01b0316836001600160a01b031614156118b65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161074f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61192e848484611634565b61193a84848484611b44565b6110a35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161074f565b6060600f80546106579061230c565b6060816119d45750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119fe57806119e8816123a4565b91506119f79050600a8361246b565b91506119d8565b60008167ffffffffffffffff811115611a1957611a19611f6f565b6040519080825280601f01601f191660200182016040528015611a43576020820181803683370190505b5090505b841561131f57611a586001836123de565b9150611a65600a86612457565b611a7090603061238c565b60f81b818381518110611a8557611a85612360565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611abf600a8661246b565b9450611a47565b611ad08383611c9c565b611add6000848484611b44565b6108855760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161074f565b60006001600160a01b0384163b15611c9157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b8890339089908890889060040161247f565b602060405180830381600087803b158015611ba257600080fd5b505af1925050508015611bd2575060408051601f3d908101601f19168201909252611bcf918101906124bb565b60015b611c77573d808015611c00576040519150601f19603f3d011682016040523d82523d6000602084013e611c05565b606091505b508051611c6f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161074f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061131f565b506001949350505050565b6001600160a01b038216611cf25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161074f565b6000818152600260205260409020546001600160a01b031615611d575760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161074f565b6001600160a01b0382166000908152600360205260408120805460019290611d8090849061238c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611dea9061230c565b90600052602060002090601f016020900481019282611e0c5760008555611e52565b82601f10611e2557805160ff1916838001178555611e52565b82800160010185558215611e52579182015b82811115611e52578251825591602001919060010190611e37565b50611e5e929150611e62565b5090565b5b80821115611e5e5760008155600101611e63565b6001600160e01b031981168114610ad557600080fd5b600060208284031215611e9f57600080fd5b813561118b81611e77565b60005b83811015611ec5578181015183820152602001611ead565b838111156110a35750506000910152565b60008151808452611eee816020860160208601611eaa565b601f01601f19169290920160200192915050565b60208152600061118b6020830184611ed6565b600060208284031215611f2757600080fd5b5035919050565b6001600160a01b0381168114610ad557600080fd5b60008060408385031215611f5657600080fd5b8235611f6181611f2e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611fae57611fae611f6f565b604052919050565b60008060408385031215611fc957600080fd5b8235915060208084013567ffffffffffffffff80821115611fe957600080fd5b818601915086601f830112611ffd57600080fd5b81358181111561200f5761200f611f6f565b8060051b9150612020848301611f85565b818152918301840191848101908984111561203a57600080fd5b938501935b838510156120585784358252938501939085019061203f565b8096505050505050509250929050565b60008060006060848603121561207d57600080fd5b833561208881611f2e565b9250602084013561209881611f2e565b929592945050506040919091013590565b6000602082840312156120bb57600080fd5b813561118b81611f2e565b6020808252825182820181905260009190848201906040850190845b818110156120fe578351835292840192918401916001016120e2565b50909695505050505050565b600067ffffffffffffffff83111561212457612124611f6f565b612137601f8401601f1916602001611f85565b905082815283838301111561214b57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561217457600080fd5b813567ffffffffffffffff81111561218b57600080fd5b8201601f8101841361219c57600080fd5b61131f8482356020840161210a565b600080604083850312156121be57600080fd5b82356121c981611f2e565b9150602083013580151581146121de57600080fd5b809150509250929050565b600080600080608085870312156121ff57600080fd5b843561220a81611f2e565b9350602085013561221a81611f2e565b925060408501359150606085013567ffffffffffffffff81111561223d57600080fd5b8501601f8101871361224e57600080fd5b61225d8782356020840161210a565b91505092959194509250565b6000806020838503121561227c57600080fd5b823567ffffffffffffffff8082111561229457600080fd5b818501915085601f8301126122a857600080fd5b8135818111156122b757600080fd5b8660208260051b85010111156122cc57600080fd5b60209290920196919550909350505050565b600080604083850312156122f157600080fd5b82356122fc81611f2e565b915060208301356121de81611f2e565b600181811c9082168061232057607f821691505b6020821081141561234157634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561235957600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561239f5761239f612376565b500190565b60006000198214156123b8576123b8612376565b5060010190565b60008160001904831182151516156123d9576123d9612376565b500290565b6000828210156123f0576123f0612376565b500390565b60008351612407818460208801611eaa565b83519083019061241b818360208801611eaa565b01949350505050565b60006020828403121561243657600080fd5b815161118b81611f2e565b634e487b7160e01b600052601260045260246000fd5b60008261246657612466612441565b500690565b60008261247a5761247a612441565b500490565b60006001600160a01b038087168352808616602084015250836040830152608060608301526124b16080830184611ed6565b9695505050505050565b6000602082840312156124cd57600080fd5b815161118b81611e7756fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572697066733a2f2f626166796265696367636566366f78346c6f75366e78337834756e367a776e7368356376333661653565723676746a707a656e6c61727473756f75a164736f6c6343000809000a000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000514910771af9ca656af840dff83e8264ecf986caff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f920000000000000000000000000000000000000000000000000000000000000004000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000000000000000000000000000000000000062153e6800000000000000000000000000000000000000000000000000000000000000de00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696176366f37356f647a357576326a7a6374656276357334636b63337873726935636479696b6e34683370776d34677a746c6162342f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101fe5760003560e01c8063715018a61161011d578063b6819114116100b0578063e8a3d4851161007f578063eabf889a11610064578063eabf889a146105a0578063f2fde38b146105b6578063f3fef3a3146105d657600080fd5b8063e8a3d4851461056b578063e985e9c51461058057600080fd5b8063b6819114146104f6578063b88d4fde1461050b578063c87b56dd1461052b578063d682ed861461054b57600080fd5b806391b7f5ed116100ec57806391b7f5ed1461048e57806395d89b41146104ae578063a0712d68146104c3578063a22cb465146104d657600080fd5b8063715018a61461042557806382d95df51461043a5780638d859f3e1461045a5780638da5cb5b1461047057600080fd5b806333a99e041161019557806355f804b31161016457806355f804b3146103a55780636352211e146103c55780636f8b44b0146103e557806370a082311461040557600080fd5b806333a99e041461032d578063372c65331461034257806342842e0e14610358578063438b63001461037857600080fd5b806318160ddd116101d157806318160ddd146102b45780631fe543e3146102d757806323b872dd146102f757806332cb6b0c1461031757600080fd5b806301ffc9a71461020357806306fdde0314610238578063081812fc1461025a578063095ea7b314610292575b600080fd5b34801561020f57600080fd5b5061022361021e366004611e8d565b6105f6565b60405190151581526020015b60405180910390f35b34801561024457600080fd5b5061024d610648565b60405161022f9190611f02565b34801561026657600080fd5b5061027a610275366004611f15565b6106da565b6040516001600160a01b03909116815260200161022f565b34801561029e57600080fd5b506102b26102ad366004611f43565b610774565b005b3480156102c057600080fd5b506102c961088a565b60405190815260200161022f565b3480156102e357600080fd5b506102b26102f2366004611fb6565b61089a565b34801561030357600080fd5b506102b2610312366004612068565b610922565b34801561032357600080fd5b506102c9600e5481565b34801561033957600080fd5b506102b26109a9565b34801561034e57600080fd5b506102c9600d5481565b34801561036457600080fd5b506102b2610373366004612068565b610ad8565b34801561038457600080fd5b506103986103933660046120a9565b610af3565b60405161022f91906120c6565b3480156103b157600080fd5b506102b26103c0366004612162565b610bdd565b3480156103d157600080fd5b5061027a6103e0366004611f15565b610c38565b3480156103f157600080fd5b506102b2610400366004611f15565b610cc3565b34801561041157600080fd5b506102c96104203660046120a9565b610d10565b34801561043157600080fd5b506102b2610daa565b34801561044657600080fd5b506102b2610455366004611f15565b610dfe565b34801561046657600080fd5b506102c9600c5481565b34801561047c57600080fd5b506006546001600160a01b031661027a565b34801561049a57600080fd5b506102b26104a9366004611f15565b610e4b565b3480156104ba57600080fd5b5061024d610e98565b6102b26104d1366004611f15565b610ea7565b3480156104e257600080fd5b506102b26104f13660046121ab565b611010565b34801561050257600080fd5b506102c9601281565b34801561051757600080fd5b506102b26105263660046121e9565b61101b565b34801561053757600080fd5b5061024d610546366004611f15565b6110a9565b34801561055757600080fd5b506102b2610566366004612269565b611192565b34801561057757600080fd5b5061024d611237565b34801561058c57600080fd5b5061022361059b3660046122de565b611257565b3480156105ac57600080fd5b506102c9600a5481565b3480156105c257600080fd5b506102b26105d13660046120a9565b611327565b3480156105e257600080fd5b506102b26105f1366004611f43565b6113f4565b60006001600160e01b031982166380ac58cd60e01b148061062757506001600160e01b03198216635b5e139f60e01b145b8061064257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106579061230c565b80601f01602080910402602001604051908101604052809291908181526020018280546106839061230c565b80156106d05780601f106106a5576101008083540402835291602001916106d0565b820191906000526020600020905b8154815290600101906020018083116106b357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107585760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061077f82610c38565b9050806001600160a01b0316836001600160a01b031614156107ed5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161074f565b336001600160a01b038216148061080957506108098133611257565b61087b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161074f565b61088583836114c8565b505050565b6000610895600b5490565b905090565b336001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990916146109145760405163073e64fd60e21b81523360048201526001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990916602482015260440161074f565b61091e8282611536565b5050565b61092c3382611565565b61099e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161074f565b610885838383611634565b6006546001600160a01b031633146109f15760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b6008546040516305d3b1d360e41b81527fff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92600482015267ffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000416602482015260036044820152620186a06064820152600160848201526001600160a01b0390911690635d3b1d309060a401602060405180830381600087803b158015610a9d57600080fd5b505af1158015610ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad59190612347565b50565b6108858383836040518060200160405280600081525061101b565b60606000610b0083610d10565b67ffffffffffffffff811115610b1857610b18611f6f565b604051908082528060200260200182016040528015610b41578160200160208202803683370190505b5090506000805b600b54811015610bd4576000818152600260205260409020546001600160a01b031615158015610b915750846001600160a01b0316610b8682610c38565b6001600160a01b0316145b15610bc25780838381518110610ba957610ba9612360565b6020908102919091010152610bbf60018361238c565b91505b80610bcc816123a4565b915050610b48565b50909392505050565b6006546001600160a01b03163314610c255760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b805161091e90600f906020840190611dde565b6000818152600260205260408120546001600160a01b0316806106425760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161074f565b6006546001600160a01b03163314610d0b5760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b600e55565b60006001600160a01b038216610d8e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161074f565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610df25760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b610dfc60006117e8565b565b6006546001600160a01b03163314610e465760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b600d55565b6006546001600160a01b03163314610e935760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b600c55565b6060600180546106579061230c565b600d5415801590610eba5750600d544210155b610f065760405162461bcd60e51b815260206004820152601660248201527f53616c65206973206e6f74206163746976652079657400000000000000000000604482015260640161074f565b34600c5482610f1591906123bf565b14610f625760405162461bcd60e51b815260206004820152601a60248201527f45746865722076616c7565206973206e6f7420636f7272656374000000000000604482015260640161074f565b6012600e54610f7191906123de565b81610f7b600b5490565b610f85919061238c565b1115610fd35760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f7574210000000000000000000000000000000000000000000000604482015260640161074f565b60005b8181101561091e57610ff033610feb600b5490565b61183a565b610ffe600b80546001019055565b80611008816123a4565b915050610fd6565b61091e338383611854565b6110253383611565565b6110975760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161074f565b6110a384848484611923565b50505050565b6000818152600260205260409020546060906001600160a01b03166111365760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161074f565b60006111406119a1565b90506000815111611160576040518060200160405280600081525061118b565b8061116a846119b0565b60405160200161117b9291906123f5565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146111da5760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b60005b81811015610885576112178383838181106111fa576111fa612360565b905060200201602081019061120f91906120a9565b600b5461183a565b611225600b80546001019055565b8061122f816123a4565b9150506111dd565b60606040518060800160405280604281526020016124f960429139905090565b60075460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156112a457600080fd5b505afa1580156112b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112dc9190612424565b6001600160a01b031614156112f5576001915050610642565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6006546001600160a01b0316331461136f5760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b6001600160a01b0381166113eb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161074f565b610ad5816117e8565b6006546001600160a01b0316331461143c5760405162461bcd60e51b815260206004820181905260248201526000805160206124d9833981519152604482015260640161074f565b6001600160a01b0382166114925760405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015260640161074f565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610885573d6000803e3d6000fd5b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114fd82610c38565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600b548160008151811061154c5761154c612360565b602002602001015161155e9190612457565b600a555050565b6000818152600260205260408120546001600160a01b03166115de5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161074f565b60006115e983610c38565b9050806001600160a01b0316846001600160a01b031614806116245750836001600160a01b0316611619846106da565b6001600160a01b0316145b8061131f575061131f8185611257565b826001600160a01b031661164782610c38565b6001600160a01b0316146116c35760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161074f565b6001600160a01b0382166117255760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161074f565b6117306000826114c8565b6001600160a01b03831660009081526003602052604081208054600192906117599084906123de565b90915550506001600160a01b038216600090815260036020526040812080546001929061178790849061238c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61091e828260405180602001604052806000815250611ac6565b816001600160a01b0316836001600160a01b031614156118b65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161074f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61192e848484611634565b61193a84848484611b44565b6110a35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161074f565b6060600f80546106579061230c565b6060816119d45750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119fe57806119e8816123a4565b91506119f79050600a8361246b565b91506119d8565b60008167ffffffffffffffff811115611a1957611a19611f6f565b6040519080825280601f01601f191660200182016040528015611a43576020820181803683370190505b5090505b841561131f57611a586001836123de565b9150611a65600a86612457565b611a7090603061238c565b60f81b818381518110611a8557611a85612360565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611abf600a8661246b565b9450611a47565b611ad08383611c9c565b611add6000848484611b44565b6108855760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161074f565b60006001600160a01b0384163b15611c9157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b8890339089908890889060040161247f565b602060405180830381600087803b158015611ba257600080fd5b505af1925050508015611bd2575060408051601f3d908101601f19168201909252611bcf918101906124bb565b60015b611c77573d808015611c00576040519150601f19603f3d011682016040523d82523d6000602084013e611c05565b606091505b508051611c6f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161074f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061131f565b506001949350505050565b6001600160a01b038216611cf25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161074f565b6000818152600260205260409020546001600160a01b031615611d575760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161074f565b6001600160a01b0382166000908152600360205260408120805460019290611d8090849061238c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611dea9061230c565b90600052602060002090601f016020900481019282611e0c5760008555611e52565b82601f10611e2557805160ff1916838001178555611e52565b82800160010185558215611e52579182015b82811115611e52578251825591602001919060010190611e37565b50611e5e929150611e62565b5090565b5b80821115611e5e5760008155600101611e63565b6001600160e01b031981168114610ad557600080fd5b600060208284031215611e9f57600080fd5b813561118b81611e77565b60005b83811015611ec5578181015183820152602001611ead565b838111156110a35750506000910152565b60008151808452611eee816020860160208601611eaa565b601f01601f19169290920160200192915050565b60208152600061118b6020830184611ed6565b600060208284031215611f2757600080fd5b5035919050565b6001600160a01b0381168114610ad557600080fd5b60008060408385031215611f5657600080fd5b8235611f6181611f2e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611fae57611fae611f6f565b604052919050565b60008060408385031215611fc957600080fd5b8235915060208084013567ffffffffffffffff80821115611fe957600080fd5b818601915086601f830112611ffd57600080fd5b81358181111561200f5761200f611f6f565b8060051b9150612020848301611f85565b818152918301840191848101908984111561203a57600080fd5b938501935b838510156120585784358252938501939085019061203f565b8096505050505050509250929050565b60008060006060848603121561207d57600080fd5b833561208881611f2e565b9250602084013561209881611f2e565b929592945050506040919091013590565b6000602082840312156120bb57600080fd5b813561118b81611f2e565b6020808252825182820181905260009190848201906040850190845b818110156120fe578351835292840192918401916001016120e2565b50909695505050505050565b600067ffffffffffffffff83111561212457612124611f6f565b612137601f8401601f1916602001611f85565b905082815283838301111561214b57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561217457600080fd5b813567ffffffffffffffff81111561218b57600080fd5b8201601f8101841361219c57600080fd5b61131f8482356020840161210a565b600080604083850312156121be57600080fd5b82356121c981611f2e565b9150602083013580151581146121de57600080fd5b809150509250929050565b600080600080608085870312156121ff57600080fd5b843561220a81611f2e565b9350602085013561221a81611f2e565b925060408501359150606085013567ffffffffffffffff81111561223d57600080fd5b8501601f8101871361224e57600080fd5b61225d8782356020840161210a565b91505092959194509250565b6000806020838503121561227c57600080fd5b823567ffffffffffffffff8082111561229457600080fd5b818501915085601f8301126122a857600080fd5b8135818111156122b757600080fd5b8660208260051b85010111156122cc57600080fd5b60209290920196919550909350505050565b600080604083850312156122f157600080fd5b82356122fc81611f2e565b915060208301356121de81611f2e565b600181811c9082168061232057607f821691505b6020821081141561234157634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561235957600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561239f5761239f612376565b500190565b60006000198214156123b8576123b8612376565b5060010190565b60008160001904831182151516156123d9576123d9612376565b500290565b6000828210156123f0576123f0612376565b500390565b60008351612407818460208801611eaa565b83519083019061241b818360208801611eaa565b01949350505050565b60006020828403121561243657600080fd5b815161118b81611f2e565b634e487b7160e01b600052601260045260246000fd5b60008261246657612466612441565b500690565b60008261247a5761247a612441565b500490565b60006001600160a01b038087168352808616602084015250836040830152608060608301526124b16080830184611ed6565b9695505050505050565b6000602082840312156124cd57600080fd5b815161118b81611e7756fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572697066733a2f2f626166796265696367636566366f78346c6f75366e78337834756e367a776e7368356376333661653565723676746a707a656e6c61727473756f75a164736f6c6343000809000a

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

000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000514910771af9ca656af840dff83e8264ecf986caff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f920000000000000000000000000000000000000000000000000000000000000004000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000000000000000000000000000000000000062153e6800000000000000000000000000000000000000000000000000000000000000de00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696176366f37356f647a357576326a7a6374656276357334636b63337873726935636479696b6e34683370776d34677a746c6162342f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _vrfCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [1] : _link (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [2] : _keyHash (bytes32): 0xff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92
Arg [3] : _subscriptionId (uint64): 4
Arg [4] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [5] : _price (uint256): 2000000000000000000
Arg [6] : _startDate (uint256): 1645559400
Arg [7] : _maxSupply (uint256): 222
Arg [8] : _baseUri (string): ipfs://bafybeiav6o75odz5uv2jzctebv5s4ckc3xsri5cdyikn4h3pwm4gztlab4/

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [1] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [2] : ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [5] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [6] : 0000000000000000000000000000000000000000000000000000000062153e68
Arg [7] : 00000000000000000000000000000000000000000000000000000000000000de
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [10] : 697066733a2f2f626166796265696176366f37356f647a357576326a7a637465
Arg [11] : 6276357334636b63337873726935636479696b6e34683370776d34677a746c61
Arg [12] : 62342f0000000000000000000000000000000000000000000000000000000000


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.