ETH Price: $2,614.81 (+7.41%)
 

Overview

TokenID

2407

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
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:
StreetMachineUnlocked

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";

// File: contracts/StreetMachineUnlocked.sol

/**
 * @title StreetMachineUnlocked contract
 * @dev Extends ERC721 Non-Fungible Token Standard basic implementation
 */
contract StreetMachineUnlocked is
    ERC721,
    ERC721Enumerable,
    Ownable,
    Pausable,
    ReentrancyGuard,
    VRFConsumerBase
{
    using SafeMath for uint256;

    // Constant variables
    // ------------------------------------------------------------------------
    uint256 public constant MAX_SUPPLY = 8000;
    address public constant nftContract =
        0xaaA7A35e442a77e37cDE2f445b359AAbF5AD0387;
    address public constant burnAddress =
        0x000000000000000000000000000000000000dEaD;

    // State variables
    // ------------------------------------------------------------------------
    string private _baseUri;
    string private _baseCid;
    bool public isRevealActive = false;
    uint256[] private revealedIds;
    uint256 private cidIndex = 0;

    // Sale mappings
    // ------------------------------------------------------------------------
    mapping(uint256 => string) public cids;
    mapping(uint256 => bool) public revealed;

    // Chainlink
    bytes32 internal keyHash;
    uint256 internal fee;
    uint256 public randomNumber;

    // Events
    event TokenRevealed(address _from, uint256 _tokenId, string _cid);

    // Modifiers
    // ------------------------------------------------------------------------
    modifier onlyRevealActive() {
        require(isRevealActive, "Reveal is not active");
        _;
    }

    modifier onlyEOA() {
        require(
            tx.origin == msg.sender,
            "Contract caller must be externally owned account"
        );
        _;
    }

    modifier revealCompliance(uint256 tokenId) {
        require(totalSupply() + 1 <= MAX_SUPPLY, "Exceeds max supply");
        require(!revealed[tokenId], "Already revealed");
        _;
    }

    // Constructor
    // ------------------------------------------------------------------------
    constructor(
        string memory name,
        string memory symbol,
        address _vrfCoordinator,
        address _link,
        bytes32 _keyHash,
        uint256 _fee
    ) VRFConsumerBase(_vrfCoordinator, _link) ERC721(name, symbol) {
        keyHash = _keyHash;
        fee = _fee;
    }

    // URI functions
    // ------------------------------------------------------------------------
    function setBaseURI(string memory baseUri) public onlyOwner {
        _baseUri = baseUri;
    }

    function setBaseCID(string memory baseCid) public onlyOwner {
        _baseCid = baseCid;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        _requireMinted(tokenId);

        if (revealed[tokenId] && bytes(cids[tokenId]).length > 0) {
            return string(abi.encodePacked(_baseUri, cids[tokenId]));
        }

        return string(abi.encodePacked(_baseUri, _baseCid, "/", tokenId));
    }

    // Operational functions
    // ------------------------------------------------------------------------
    function flipRevealActive() public onlyOwner {
        isRevealActive = !isRevealActive;
    }

    function setCids(string[] memory _cids) public onlyOwner {
        for (uint256 i = 0; i < _cids.length; i++) {
            cids[cidIndex] = _cids[i];
            cidIndex += 1;
        }
    }

    function emergencySetCid(uint256 tokenId, string memory cid)
        public
        onlyOwner
        returns (string memory)
    {
        return cids[tokenId] = cid;
    }

    function getCid(uint256 tokenId) public view returns (string memory) {
        return cids[tokenId];
    }

    function getRevealedIds() public view returns (uint256[] memory) {
        return revealedIds;
    }

    function tokensOfOwner(address owner)
        public
        view
        returns (uint256[] memory)
    {
        uint256[] memory _tokensOfOwner = new uint256[](
            ERC721.balanceOf(owner)
        );
        uint256 i;

        for (i = 0; i < ERC721.balanceOf(owner); i++) {
            _tokensOfOwner[i] = ERC721Enumerable.tokenOfOwnerByIndex(owner, i);
        }
        return (_tokensOfOwner);
    }

    // Override functions
    // ------------------------------------------------------------------------
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    // Chainlink
    // ------------------------------------------------------------------------
    function shuffle() public onlyOwner {
        require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK");
        requestRandomness(keyHash, fee);
    }

    function fulfillRandomness(bytes32 requestId, uint256 randomness)
        internal
        override
    {
        randomNumber = (randomness % 7999) + 1;
    }

    // Reveal functions
    // ------------------------------------------------------------------------

    function reveal(uint256 tokenId)
        public
        nonReentrant
        whenNotPaused
        onlyEOA
        onlyRevealActive
        revealCompliance(tokenId)
    {
        IERC721 nft = IERC721(nftContract);
        address tokenOwner = nft.ownerOf(tokenId);
        require(tokenOwner == msg.sender, "Not token owner");
        require(
            nft.isApprovedForAll(msg.sender, address(this)),
            "No permission to transfer"
        );
        nft.transferFrom(msg.sender, burnAddress, tokenId);

        uint256 sequenceId = (tokenId + randomNumber) % MAX_SUPPLY;
        _mint(_msgSender(), sequenceId);
        revealed[sequenceId] = true;
        revealedIds.push(sequenceId);

        emit TokenRevealed(msg.sender, sequenceId, cids[sequenceId]);
    }
}

File 2 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 19 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

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

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

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

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

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

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @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.
 * *****************************************************************************
 * @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, _link) 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), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (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. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @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 ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @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.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {
  /**
   * @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 VRFConsumerBase 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 randomness the VRF output
   */
  function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 private constant USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface internal immutable LINK;
  address private immutable vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 => uint256) /* keyHash */ /* nonce */
    private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(address _vrfCoordinator, address _link) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

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

pragma solidity ^0.8.0;

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

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

File 9 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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 an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 10 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 11 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

File 13 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // 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);
    }

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

File 14 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 15 of 19 : 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 19 : 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 17 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 18 of 19 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract VRFRequestIDBase {
  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  ) internal pure returns (uint256) {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_link","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_cid","type":"string"}],"name":"TokenRevealed","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","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":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cids","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"cid","type":"string"}],"name":"emergencySetCid","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipRevealActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getCid","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRevealedIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseCid","type":"string"}],"name":"setBaseCID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_cids","type":"string[]"}],"name":"setCids","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shuffle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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"}]

60c06040526000600f60006101000a81548160ff02191690831515021790555060006011553480156200003157600080fd5b506040516200529d3803806200529d83398181016040528101906200005791906200054c565b8383878781600090805190602001906200007392919062000224565b5080600190805190602001906200008c92919062000224565b505050620000af620000a36200015660201b60201c565b6200015e60201b60201c565b6000600a60146101000a81548160ff0219169083151502179055506001600b819055508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050505081601481905550806015819055505050505050506200068b565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002329062000655565b90600052602060002090601f016020900481019282620002565760008555620002a2565b82601f106200027157805160ff1916838001178555620002a2565b82800160010185558215620002a2579182015b82811115620002a157825182559160200191906001019062000284565b5b509050620002b19190620002b5565b5090565b5b80821115620002d0576000816000905550600101620002b6565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200033d82620002f2565b810181811067ffffffffffffffff821117156200035f576200035e62000303565b5b80604052505050565b600062000374620002d4565b905062000382828262000332565b919050565b600067ffffffffffffffff821115620003a557620003a462000303565b5b620003b082620002f2565b9050602081019050919050565b60005b83811015620003dd578082015181840152602081019050620003c0565b83811115620003ed576000848401525b50505050565b60006200040a620004048462000387565b62000368565b905082815260208101848484011115620004295762000428620002ed565b5b62000436848285620003bd565b509392505050565b600082601f830112620004565762000455620002e8565b5b815162000468848260208601620003f3565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200049e8262000471565b9050919050565b620004b08162000491565b8114620004bc57600080fd5b50565b600081519050620004d081620004a5565b92915050565b6000819050919050565b620004eb81620004d6565b8114620004f757600080fd5b50565b6000815190506200050b81620004e0565b92915050565b6000819050919050565b620005268162000511565b81146200053257600080fd5b50565b60008151905062000546816200051b565b92915050565b60008060008060008060c087890312156200056c576200056b620002de565b5b600087015167ffffffffffffffff8111156200058d576200058c620002e3565b5b6200059b89828a016200043e565b965050602087015167ffffffffffffffff811115620005bf57620005be620002e3565b5b620005cd89828a016200043e565b9550506040620005e089828a01620004bf565b9450506060620005f389828a01620004bf565b93505060806200060689828a01620004fa565b92505060a06200061989828a0162000535565b9150509295509295509295565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200066e57607f821691505b6020821081141562000685576200068462000626565b5b50919050565b60805160a051614bde620006bf600039600081816111410152611fdb015260008181610a940152611f9f0152614bde6000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80636352211e11610130578063a22cb465116100b8578063c87b56dd1161007c578063c87b56dd1461068b578063ccbac9f5146106bb578063d56d229d146106d9578063e985e9c5146106f7578063f2fde38b1461072757610232565b8063a22cb46514610611578063affaa64e1461062d578063b7662f7a14610637578063b88d4fde14610653578063c2ca0ac51461066f57610232565b8063715018a6116100ff578063715018a61461057f5780638462151c146105895780638da5cb5b146105b957806394985ddd146105d757806395d89b41146105f357610232565b80636352211e146104d1578063704fe7101461050157806370a082311461053157806370d5ae051461056157610232565b80632f745c59116101be57806342842e0e1161018257806342842e0e1461041b5780634f6ccce71461043757806355f804b3146104675780635c975abb1461048357806361a2bc01146104a157610232565b80632f745c591461036357806332cb6b0c146103935780633beaa6ab146103b157806341c7320e146103e157806342653706146103fd57610232565b8063081812fc11610205578063081812fc146102d3578063095ea7b31461030357806318160ddd1461031f57806323b872dd1461033d5780632520bf041461035957610232565b806301ffc9a714610237578063034554931461026757806306fdde0314610285578063072c8595146102a3575b600080fd5b610251600480360381019061024c9190612ef8565b610743565b60405161025e9190612f40565b60405180910390f35b61026f610755565b60405161027c9190612f40565b60405180910390f35b61028d610768565b60405161029a9190612ff4565b60405180910390f35b6102bd60048036038101906102b89190613181565b6107fa565b6040516102ca9190612ff4565b60405180910390f35b6102ed60048036038101906102e891906131dd565b6108bc565b6040516102fa919061324b565b60405180910390f35b61031d60048036038101906103189190613292565b610902565b005b610327610a1a565b60405161033491906132e1565b60405180910390f35b610357600480360381019061035291906132fc565b610a27565b005b610361610a87565b005b61037d60048036038101906103789190613292565b610b8d565b60405161038a91906132e1565b60405180910390f35b61039b610c32565b6040516103a891906132e1565b60405180910390f35b6103cb60048036038101906103c691906131dd565b610c38565b6040516103d89190612ff4565b60405180910390f35b6103fb60048036038101906103f6919061334f565b610cdd565b005b610405610cff565b6040516104129190613456565b60405180910390f35b610435600480360381019061043091906132fc565b610d57565b005b610451600480360381019061044c91906131dd565b610d77565b60405161045e91906132e1565b60405180910390f35b610481600480360381019061047c919061334f565b610de8565b005b61048b610e0a565b6040516104989190612f40565b60405180910390f35b6104bb60048036038101906104b691906131dd565b610e21565b6040516104c89190612f40565b60405180910390f35b6104eb60048036038101906104e691906131dd565b610e41565b6040516104f8919061324b565b60405180910390f35b61051b600480360381019061051691906131dd565b610ef3565b6040516105289190612ff4565b60405180910390f35b61054b60048036038101906105469190613478565b610f93565b60405161055891906132e1565b60405180910390f35b61056961104b565b604051610576919061324b565b60405180910390f35b610587611051565b005b6105a3600480360381019061059e9190613478565b611065565b6040516105b09190613456565b60405180910390f35b6105c1611115565b6040516105ce919061324b565b60405180910390f35b6105f160048036038101906105ec91906134db565b61113f565b005b6105fb6111db565b6040516106089190612ff4565b60405180910390f35b61062b60048036038101906106269190613547565b61126d565b005b610635611283565b005b610651600480360381019061064c919061366d565b6112b7565b005b61066d60048036038101906106689190613757565b611340565b005b610689600480360381019061068491906131dd565b6113a2565b005b6106a560048036038101906106a091906131dd565b61189f565b6040516106b29190612ff4565b60405180910390f35b6106c3611965565b6040516106d091906132e1565b60405180910390f35b6106e161196b565b6040516106ee919061324b565b60405180910390f35b610711600480360381019061070c91906137da565b611983565b60405161071e9190612f40565b60405180910390f35b610741600480360381019061073c9190613478565b611a17565b005b600061074e82611a9b565b9050919050565b600f60009054906101000a900460ff1681565b60606000805461077790613849565b80601f01602080910402602001604051908101604052809291908181526020018280546107a390613849565b80156107f05780601f106107c5576101008083540402835291602001916107f0565b820191906000526020600020905b8154815290600101906020018083116107d357829003601f168201915b5050505050905090565b6060610804611b15565b8160126000858152602001908152602001600020908051906020019061082b929190612de9565b805461083690613849565b80601f016020809104026020016040519081016040528092919081815260200182805461086290613849565b80156108af5780601f10610884576101008083540402835291602001916108af565b820191906000526020600020905b81548152906001019060200180831161089257829003601f168201915b5050505050905092915050565b60006108c782611b93565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061090d82610e41565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561097e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610975906138ed565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661099d611bde565b73ffffffffffffffffffffffffffffffffffffffff1614806109cc57506109cb816109c6611bde565b611983565b5b610a0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a029061397f565b60405180910390fd5b610a158383611be6565b505050565b6000600880549050905090565b610a38610a32611bde565b82611c9f565b610a77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6e90613a11565b60405180910390fd5b610a82838383611d34565b505050565b610a8f611b15565b6015547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610aeb919061324b565b60206040518083038186803b158015610b0357600080fd5b505afa158015610b17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3b9190613a46565b1015610b7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7390613abf565b60405180910390fd5b610b8a601454601554611f9b565b50565b6000610b9883610f93565b8210610bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd090613b51565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b611f4081565b6060601260008381526020019081526020016000208054610c5890613849565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8490613849565b8015610cd15780601f10610ca657610100808354040283529160200191610cd1565b820191906000526020600020905b815481529060010190602001808311610cb457829003601f168201915b50505050509050919050565b610ce5611b15565b80600e9080519060200190610cfb929190612de9565b5050565b60606010805480602002602001604051908101604052809291908181526020018280548015610d4d57602002820191906000526020600020905b815481526020019060010190808311610d39575b5050505050905090565b610d7283838360405180602001604052806000815250611340565b505050565b6000610d81610a1a565b8210610dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db990613be3565b60405180910390fd5b60088281548110610dd657610dd5613c03565b5b90600052602060002001549050919050565b610df0611b15565b80600d9080519060200190610e06929190612de9565b5050565b6000600a60149054906101000a900460ff16905090565b60136020528060005260406000206000915054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee190613c7e565b60405180910390fd5b80915050919050565b60126020528060005260406000206000915090508054610f1290613849565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3e90613849565b8015610f8b5780601f10610f6057610100808354040283529160200191610f8b565b820191906000526020600020905b815481529060010190602001808311610f6e57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611004576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffb90613d10565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61dead81565b611059611b15565b61106360006120fd565b565b6060600061107283610f93565b67ffffffffffffffff81111561108b5761108a613056565b5b6040519080825280602002602001820160405280156110b95781602001602082028036833780820191505090505b50905060005b6110c884610f93565b81101561110b576110d98482610b8d565b8282815181106110ec576110eb613c03565b5b602002602001018181525050808061110390613d5f565b9150506110bf565b8192505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c490613df4565b60405180910390fd5b6111d782826121c3565b5050565b6060600180546111ea90613849565b80601f016020809104026020016040519081016040528092919081815260200182805461121690613849565b80156112635780601f1061123857610100808354040283529160200191611263565b820191906000526020600020905b81548152906001019060200180831161124657829003601f168201915b5050505050905090565b61127f611278611bde565b83836121e7565b5050565b61128b611b15565b600f60009054906101000a900460ff1615600f60006101000a81548160ff021916908315150217905550565b6112bf611b15565b60005b815181101561133c578181815181106112de576112dd613c03565b5b6020026020010151601260006011548152602001908152602001600020908051906020019061130e929190612de9565b506001601160008282546113229190613e14565b92505081905550808061133490613d5f565b9150506112c2565b5050565b61135161134b611bde565b83611c9f565b611390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138790613a11565b60405180910390fd5b61139c84848484612354565b50505050565b6002600b5414156113e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113df90613eb6565b60405180910390fd5b6002600b819055506113f86123b0565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611466576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145d90613f48565b60405180910390fd5b600f60009054906101000a900460ff166114b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ac90613fb4565b60405180910390fd5b80611f4060016114c3610a1a565b6114cd9190613e14565b111561150e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150590614020565b60405180910390fd5b6013600082815260200190815260200160002060009054906101000a900460ff161561156f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115669061408c565b60405180910390fd5b600073aaa7a35e442a77e37cde2f445b359aabf5ad0387905060008173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004016115c391906132e1565b60206040518083038186803b1580156115db57600080fd5b505afa1580156115ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161391906140c1565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611683576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167a9061413a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b81526004016116be92919061415a565b60206040518083038186803b1580156116d657600080fd5b505afa1580156116ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170e9190614198565b61174d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174490614211565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead876040518463ffffffff1660e01b815260040161178c93929190614231565b600060405180830381600087803b1580156117a657600080fd5b505af11580156117ba573d6000803e3d6000fd5b505050506000611f40601654866117d19190613e14565b6117db9190614297565b90506117ee6117e8611bde565b826123fa565b60016013600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060108190806001815401808255809150506001900390600052602060002001600090919091909150557ff6a494b293d06a488a7ac6056eae946f562e3e8b006c6726e132051bdb3801ab3382601260008581526020019081526020016000206040516118889392919061435d565b60405180910390a1505050506001600b8190555050565b60606118aa82611b93565b6013600083815260200190815260200160002060009054906101000a900460ff1680156118f6575060006012600084815260200190815260200160002080546118f290613849565b9050115b1561193757600d60126000848152602001908152602001600020604051602001611921929190614425565b6040516020818303038152906040529050611960565b600d600e8360405160200161194e939291906144b6565b60405160208183030381529060405290505b919050565b60165481565b73aaa7a35e442a77e37cde2f445b359aabf5ad038781565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a1f611b15565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8690614568565b60405180910390fd5b611a98816120fd565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b0e5750611b0d826125d4565b5b9050919050565b611b1d611bde565b73ffffffffffffffffffffffffffffffffffffffff16611b3b611115565b73ffffffffffffffffffffffffffffffffffffffff1614611b91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b88906145d4565b60405180910390fd5b565b611b9c816126b6565b611bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd290613c7e565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c5983610e41565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611cab83610e41565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611ced5750611cec8185611983565b5b80611d2b57508373ffffffffffffffffffffffffffffffffffffffff16611d13846108bc565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d5482610e41565b73ffffffffffffffffffffffffffffffffffffffff1614611daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da190614666565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e11906146f8565b60405180910390fd5b611e25838383612722565b611e30600082611be6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e809190614718565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ed79190613e14565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611f96838383612732565b505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f00000000000000000000000000000000000000000000000000000000000000008486600060405160200161200f92919061475b565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161203c939291906147d9565b602060405180830381600087803b15801561205657600080fd5b505af115801561206a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208e9190614198565b5060006120b184600030600c600089815260200190815260200160002054612737565b90506001600c6000868152602001908152602001600020546120d39190613e14565b600c6000868152602001908152602001600020819055506120f48482612773565b91505092915050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001611f3f826121d39190614297565b6121dd9190613e14565b6016819055505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612256576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224d90614863565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123479190612f40565b60405180910390a3505050565b61235f848484611d34565b61236b848484846127a6565b6123aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a1906148f5565b60405180910390fd5b50505050565b6123b8610e0a565b156123f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ef90614961565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561246a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612461906149cd565b60405180910390fd5b612473816126b6565b156124b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124aa90614a39565b60405180910390fd5b6124bf60008383612722565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461250f9190613e14565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125d060008383612732565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061269f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806126af57506126ae8261293d565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61272d8383836129a7565b505050565b505050565b6000848484846040516020016127509493929190614a59565b6040516020818303038152906040528051906020012060001c9050949350505050565b60008282604051602001612788929190614abf565b60405160208183030381529060405280519060200120905092915050565b60006127c78473ffffffffffffffffffffffffffffffffffffffff16612abb565b15612930578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026127f0611bde565b8786866040518563ffffffff1660e01b81526004016128129493929190614aeb565b602060405180830381600087803b15801561282c57600080fd5b505af192505050801561285d57506040513d601f19601f8201168201806040525081019061285a9190614b4c565b60015b6128e0573d806000811461288d576040519150601f19603f3d011682016040523d82523d6000602084013e612892565b606091505b506000815114156128d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128cf906148f5565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612935565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6129b2838383612ade565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129f5576129f081612ae3565b612a34565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612a3357612a328382612b2c565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a7757612a7281612c99565b612ab6565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612ab557612ab48282612d6a565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612b3984610f93565b612b439190614718565b9050600060076000848152602001908152602001600020549050818114612c28576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612cad9190614718565b9050600060096000848152602001908152602001600020549050600060088381548110612cdd57612cdc613c03565b5b906000526020600020015490508060088381548110612cff57612cfe613c03565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612d4e57612d4d614b79565b5b6001900381819060005260206000200160009055905550505050565b6000612d7583610f93565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054612df590613849565b90600052602060002090601f016020900481019282612e175760008555612e5e565b82601f10612e3057805160ff1916838001178555612e5e565b82800160010185558215612e5e579182015b82811115612e5d578251825591602001919060010190612e42565b5b509050612e6b9190612e6f565b5090565b5b80821115612e88576000816000905550600101612e70565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612ed581612ea0565b8114612ee057600080fd5b50565b600081359050612ef281612ecc565b92915050565b600060208284031215612f0e57612f0d612e96565b5b6000612f1c84828501612ee3565b91505092915050565b60008115159050919050565b612f3a81612f25565b82525050565b6000602082019050612f556000830184612f31565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f95578082015181840152602081019050612f7a565b83811115612fa4576000848401525b50505050565b6000601f19601f8301169050919050565b6000612fc682612f5b565b612fd08185612f66565b9350612fe0818560208601612f77565b612fe981612faa565b840191505092915050565b6000602082019050818103600083015261300e8184612fbb565b905092915050565b6000819050919050565b61302981613016565b811461303457600080fd5b50565b60008135905061304681613020565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61308e82612faa565b810181811067ffffffffffffffff821117156130ad576130ac613056565b5b80604052505050565b60006130c0612e8c565b90506130cc8282613085565b919050565b600067ffffffffffffffff8211156130ec576130eb613056565b5b6130f582612faa565b9050602081019050919050565b82818337600083830152505050565b600061312461311f846130d1565b6130b6565b9050828152602081018484840111156131405761313f613051565b5b61314b848285613102565b509392505050565b600082601f8301126131685761316761304c565b5b8135613178848260208601613111565b91505092915050565b6000806040838503121561319857613197612e96565b5b60006131a685828601613037565b925050602083013567ffffffffffffffff8111156131c7576131c6612e9b565b5b6131d385828601613153565b9150509250929050565b6000602082840312156131f3576131f2612e96565b5b600061320184828501613037565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006132358261320a565b9050919050565b6132458161322a565b82525050565b6000602082019050613260600083018461323c565b92915050565b61326f8161322a565b811461327a57600080fd5b50565b60008135905061328c81613266565b92915050565b600080604083850312156132a9576132a8612e96565b5b60006132b78582860161327d565b92505060206132c885828601613037565b9150509250929050565b6132db81613016565b82525050565b60006020820190506132f660008301846132d2565b92915050565b60008060006060848603121561331557613314612e96565b5b60006133238682870161327d565b93505060206133348682870161327d565b925050604061334586828701613037565b9150509250925092565b60006020828403121561336557613364612e96565b5b600082013567ffffffffffffffff81111561338357613382612e9b565b5b61338f84828501613153565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6133cd81613016565b82525050565b60006133df83836133c4565b60208301905092915050565b6000602082019050919050565b600061340382613398565b61340d81856133a3565b9350613418836133b4565b8060005b8381101561344957815161343088826133d3565b975061343b836133eb565b92505060018101905061341c565b5085935050505092915050565b6000602082019050818103600083015261347081846133f8565b905092915050565b60006020828403121561348e5761348d612e96565b5b600061349c8482850161327d565b91505092915050565b6000819050919050565b6134b8816134a5565b81146134c357600080fd5b50565b6000813590506134d5816134af565b92915050565b600080604083850312156134f2576134f1612e96565b5b6000613500858286016134c6565b925050602061351185828601613037565b9150509250929050565b61352481612f25565b811461352f57600080fd5b50565b6000813590506135418161351b565b92915050565b6000806040838503121561355e5761355d612e96565b5b600061356c8582860161327d565b925050602061357d85828601613532565b9150509250929050565b600067ffffffffffffffff8211156135a2576135a1613056565b5b602082029050602081019050919050565b600080fd5b60006135cb6135c684613587565b6130b6565b905080838252602082019050602084028301858111156135ee576135ed6135b3565b5b835b8181101561363557803567ffffffffffffffff8111156136135761361261304c565b5b8086016136208982613153565b855260208501945050506020810190506135f0565b5050509392505050565b600082601f8301126136545761365361304c565b5b81356136648482602086016135b8565b91505092915050565b60006020828403121561368357613682612e96565b5b600082013567ffffffffffffffff8111156136a1576136a0612e9b565b5b6136ad8482850161363f565b91505092915050565b600067ffffffffffffffff8211156136d1576136d0613056565b5b6136da82612faa565b9050602081019050919050565b60006136fa6136f5846136b6565b6130b6565b90508281526020810184848401111561371657613715613051565b5b613721848285613102565b509392505050565b600082601f83011261373e5761373d61304c565b5b813561374e8482602086016136e7565b91505092915050565b6000806000806080858703121561377157613770612e96565b5b600061377f8782880161327d565b94505060206137908782880161327d565b93505060406137a187828801613037565b925050606085013567ffffffffffffffff8111156137c2576137c1612e9b565b5b6137ce87828801613729565b91505092959194509250565b600080604083850312156137f1576137f0612e96565b5b60006137ff8582860161327d565b92505060206138108582860161327d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061386157607f821691505b602082108114156138755761387461381a565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006138d7602183612f66565b91506138e28261387b565b604082019050919050565b60006020820190508181036000830152613906816138ca565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613969603e83612f66565b91506139748261390d565b604082019050919050565b600060208201905081810360008301526139988161395c565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006139fb602e83612f66565b9150613a068261399f565b604082019050919050565b60006020820190508181036000830152613a2a816139ee565b9050919050565b600081519050613a4081613020565b92915050565b600060208284031215613a5c57613a5b612e96565b5b6000613a6a84828501613a31565b91505092915050565b7f4e6f7420656e6f756768204c494e4b0000000000000000000000000000000000600082015250565b6000613aa9600f83612f66565b9150613ab482613a73565b602082019050919050565b60006020820190508181036000830152613ad881613a9c565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613b3b602b83612f66565b9150613b4682613adf565b604082019050919050565b60006020820190508181036000830152613b6a81613b2e565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613bcd602c83612f66565b9150613bd882613b71565b604082019050919050565b60006020820190508181036000830152613bfc81613bc0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613c68601883612f66565b9150613c7382613c32565b602082019050919050565b60006020820190508181036000830152613c9781613c5b565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613cfa602983612f66565b9150613d0582613c9e565b604082019050919050565b60006020820190508181036000830152613d2981613ced565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613d6a82613016565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613d9d57613d9c613d30565b5b600182019050919050565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b6000613dde601f83612f66565b9150613de982613da8565b602082019050919050565b60006020820190508181036000830152613e0d81613dd1565b9050919050565b6000613e1f82613016565b9150613e2a83613016565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613e5f57613e5e613d30565b5b828201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613ea0601f83612f66565b9150613eab82613e6a565b602082019050919050565b60006020820190508181036000830152613ecf81613e93565b9050919050565b7f436f6e74726163742063616c6c6572206d7573742062652065787465726e616c60008201527f6c79206f776e6564206163636f756e7400000000000000000000000000000000602082015250565b6000613f32603083612f66565b9150613f3d82613ed6565b604082019050919050565b60006020820190508181036000830152613f6181613f25565b9050919050565b7f52657665616c206973206e6f7420616374697665000000000000000000000000600082015250565b6000613f9e601483612f66565b9150613fa982613f68565b602082019050919050565b60006020820190508181036000830152613fcd81613f91565b9050919050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b600061400a601283612f66565b915061401582613fd4565b602082019050919050565b6000602082019050818103600083015261403981613ffd565b9050919050565b7f416c72656164792072657665616c656400000000000000000000000000000000600082015250565b6000614076601083612f66565b915061408182614040565b602082019050919050565b600060208201905081810360008301526140a581614069565b9050919050565b6000815190506140bb81613266565b92915050565b6000602082840312156140d7576140d6612e96565b5b60006140e5848285016140ac565b91505092915050565b7f4e6f7420746f6b656e206f776e65720000000000000000000000000000000000600082015250565b6000614124600f83612f66565b915061412f826140ee565b602082019050919050565b6000602082019050818103600083015261415381614117565b9050919050565b600060408201905061416f600083018561323c565b61417c602083018461323c565b9392505050565b6000815190506141928161351b565b92915050565b6000602082840312156141ae576141ad612e96565b5b60006141bc84828501614183565b91505092915050565b7f4e6f207065726d697373696f6e20746f207472616e7366657200000000000000600082015250565b60006141fb601983612f66565b9150614206826141c5565b602082019050919050565b6000602082019050818103600083015261422a816141ee565b9050919050565b6000606082019050614246600083018661323c565b614253602083018561323c565b61426060408301846132d2565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006142a282613016565b91506142ad83613016565b9250826142bd576142bc614268565b5b828206905092915050565b60008190508160005260206000209050919050565b600081546142ea81613849565b6142f48186612f66565b9450600182166000811461430f576001811461432157614354565b60ff1983168652602086019350614354565b61432a856142c8565b60005b8381101561434c5781548189015260018201915060208101905061432d565b808801955050505b50505092915050565b6000606082019050614372600083018661323c565b61437f60208301856132d2565b818103604083015261439181846142dd565b9050949350505050565b600081905092915050565b600081546143b381613849565b6143bd818661439b565b945060018216600081146143d857600181146143e95761441c565b60ff1983168652818601935061441c565b6143f2856142c8565b60005b83811015614414578154818901526001820191506020810190506143f5565b838801955050505b50505092915050565b600061443182856143a6565b915061443d82846143a6565b91508190509392505050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b600061447f60018361439b565b915061448a82614449565b600182019050919050565b6000819050919050565b6144b06144ab82613016565b614495565b82525050565b60006144c282866143a6565b91506144ce82856143a6565b91506144d982614472565b91506144e5828461449f565b602082019150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614552602683612f66565b915061455d826144f6565b604082019050919050565b6000602082019050818103600083015261458181614545565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145be602083612f66565b91506145c982614588565b602082019050919050565b600060208201905081810360008301526145ed816145b1565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614650602583612f66565b915061465b826145f4565b604082019050919050565b6000602082019050818103600083015261467f81614643565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006146e2602483612f66565b91506146ed82614686565b604082019050919050565b60006020820190508181036000830152614711816146d5565b9050919050565b600061472382613016565b915061472e83613016565b92508282101561474157614740613d30565b5b828203905092915050565b614755816134a5565b82525050565b6000604082019050614770600083018561474c565b61477d60208301846132d2565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006147ab82614784565b6147b5818561478f565b93506147c5818560208601612f77565b6147ce81612faa565b840191505092915050565b60006060820190506147ee600083018661323c565b6147fb60208301856132d2565b818103604083015261480d81846147a0565b9050949350505050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061484d601983612f66565b915061485882614817565b602082019050919050565b6000602082019050818103600083015261487c81614840565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006148df603283612f66565b91506148ea82614883565b604082019050919050565b6000602082019050818103600083015261490e816148d2565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061494b601083612f66565b915061495682614915565b602082019050919050565b6000602082019050818103600083015261497a8161493e565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006149b7602083612f66565b91506149c282614981565b602082019050919050565b600060208201905081810360008301526149e6816149aa565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614a23601c83612f66565b9150614a2e826149ed565b602082019050919050565b60006020820190508181036000830152614a5281614a16565b9050919050565b6000608082019050614a6e600083018761474c565b614a7b60208301866132d2565b614a88604083018561323c565b614a9560608301846132d2565b95945050505050565b6000819050919050565b614ab9614ab4826134a5565b614a9e565b82525050565b6000614acb8285614aa8565b602082019150614adb828461449f565b6020820191508190509392505050565b6000608082019050614b00600083018761323c565b614b0d602083018661323c565b614b1a60408301856132d2565b8181036060830152614b2c81846147a0565b905095945050505050565b600081519050614b4681612ecc565b92915050565b600060208284031215614b6257614b61612e96565b5b6000614b7084828501614b37565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122032785d6eed970ea1db2ffe3c8e3d65e92bcb1952758c95a020bde83d7978291864736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000000d5374726565744d616368696e6500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000353544d0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102325760003560e01c80636352211e11610130578063a22cb465116100b8578063c87b56dd1161007c578063c87b56dd1461068b578063ccbac9f5146106bb578063d56d229d146106d9578063e985e9c5146106f7578063f2fde38b1461072757610232565b8063a22cb46514610611578063affaa64e1461062d578063b7662f7a14610637578063b88d4fde14610653578063c2ca0ac51461066f57610232565b8063715018a6116100ff578063715018a61461057f5780638462151c146105895780638da5cb5b146105b957806394985ddd146105d757806395d89b41146105f357610232565b80636352211e146104d1578063704fe7101461050157806370a082311461053157806370d5ae051461056157610232565b80632f745c59116101be57806342842e0e1161018257806342842e0e1461041b5780634f6ccce71461043757806355f804b3146104675780635c975abb1461048357806361a2bc01146104a157610232565b80632f745c591461036357806332cb6b0c146103935780633beaa6ab146103b157806341c7320e146103e157806342653706146103fd57610232565b8063081812fc11610205578063081812fc146102d3578063095ea7b31461030357806318160ddd1461031f57806323b872dd1461033d5780632520bf041461035957610232565b806301ffc9a714610237578063034554931461026757806306fdde0314610285578063072c8595146102a3575b600080fd5b610251600480360381019061024c9190612ef8565b610743565b60405161025e9190612f40565b60405180910390f35b61026f610755565b60405161027c9190612f40565b60405180910390f35b61028d610768565b60405161029a9190612ff4565b60405180910390f35b6102bd60048036038101906102b89190613181565b6107fa565b6040516102ca9190612ff4565b60405180910390f35b6102ed60048036038101906102e891906131dd565b6108bc565b6040516102fa919061324b565b60405180910390f35b61031d60048036038101906103189190613292565b610902565b005b610327610a1a565b60405161033491906132e1565b60405180910390f35b610357600480360381019061035291906132fc565b610a27565b005b610361610a87565b005b61037d60048036038101906103789190613292565b610b8d565b60405161038a91906132e1565b60405180910390f35b61039b610c32565b6040516103a891906132e1565b60405180910390f35b6103cb60048036038101906103c691906131dd565b610c38565b6040516103d89190612ff4565b60405180910390f35b6103fb60048036038101906103f6919061334f565b610cdd565b005b610405610cff565b6040516104129190613456565b60405180910390f35b610435600480360381019061043091906132fc565b610d57565b005b610451600480360381019061044c91906131dd565b610d77565b60405161045e91906132e1565b60405180910390f35b610481600480360381019061047c919061334f565b610de8565b005b61048b610e0a565b6040516104989190612f40565b60405180910390f35b6104bb60048036038101906104b691906131dd565b610e21565b6040516104c89190612f40565b60405180910390f35b6104eb60048036038101906104e691906131dd565b610e41565b6040516104f8919061324b565b60405180910390f35b61051b600480360381019061051691906131dd565b610ef3565b6040516105289190612ff4565b60405180910390f35b61054b60048036038101906105469190613478565b610f93565b60405161055891906132e1565b60405180910390f35b61056961104b565b604051610576919061324b565b60405180910390f35b610587611051565b005b6105a3600480360381019061059e9190613478565b611065565b6040516105b09190613456565b60405180910390f35b6105c1611115565b6040516105ce919061324b565b60405180910390f35b6105f160048036038101906105ec91906134db565b61113f565b005b6105fb6111db565b6040516106089190612ff4565b60405180910390f35b61062b60048036038101906106269190613547565b61126d565b005b610635611283565b005b610651600480360381019061064c919061366d565b6112b7565b005b61066d60048036038101906106689190613757565b611340565b005b610689600480360381019061068491906131dd565b6113a2565b005b6106a560048036038101906106a091906131dd565b61189f565b6040516106b29190612ff4565b60405180910390f35b6106c3611965565b6040516106d091906132e1565b60405180910390f35b6106e161196b565b6040516106ee919061324b565b60405180910390f35b610711600480360381019061070c91906137da565b611983565b60405161071e9190612f40565b60405180910390f35b610741600480360381019061073c9190613478565b611a17565b005b600061074e82611a9b565b9050919050565b600f60009054906101000a900460ff1681565b60606000805461077790613849565b80601f01602080910402602001604051908101604052809291908181526020018280546107a390613849565b80156107f05780601f106107c5576101008083540402835291602001916107f0565b820191906000526020600020905b8154815290600101906020018083116107d357829003601f168201915b5050505050905090565b6060610804611b15565b8160126000858152602001908152602001600020908051906020019061082b929190612de9565b805461083690613849565b80601f016020809104026020016040519081016040528092919081815260200182805461086290613849565b80156108af5780601f10610884576101008083540402835291602001916108af565b820191906000526020600020905b81548152906001019060200180831161089257829003601f168201915b5050505050905092915050565b60006108c782611b93565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061090d82610e41565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561097e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610975906138ed565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661099d611bde565b73ffffffffffffffffffffffffffffffffffffffff1614806109cc57506109cb816109c6611bde565b611983565b5b610a0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a029061397f565b60405180910390fd5b610a158383611be6565b505050565b6000600880549050905090565b610a38610a32611bde565b82611c9f565b610a77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6e90613a11565b60405180910390fd5b610a82838383611d34565b505050565b610a8f611b15565b6015547f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610aeb919061324b565b60206040518083038186803b158015610b0357600080fd5b505afa158015610b17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3b9190613a46565b1015610b7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7390613abf565b60405180910390fd5b610b8a601454601554611f9b565b50565b6000610b9883610f93565b8210610bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd090613b51565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b611f4081565b6060601260008381526020019081526020016000208054610c5890613849565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8490613849565b8015610cd15780601f10610ca657610100808354040283529160200191610cd1565b820191906000526020600020905b815481529060010190602001808311610cb457829003601f168201915b50505050509050919050565b610ce5611b15565b80600e9080519060200190610cfb929190612de9565b5050565b60606010805480602002602001604051908101604052809291908181526020018280548015610d4d57602002820191906000526020600020905b815481526020019060010190808311610d39575b5050505050905090565b610d7283838360405180602001604052806000815250611340565b505050565b6000610d81610a1a565b8210610dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db990613be3565b60405180910390fd5b60088281548110610dd657610dd5613c03565b5b90600052602060002001549050919050565b610df0611b15565b80600d9080519060200190610e06929190612de9565b5050565b6000600a60149054906101000a900460ff16905090565b60136020528060005260406000206000915054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee190613c7e565b60405180910390fd5b80915050919050565b60126020528060005260406000206000915090508054610f1290613849565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3e90613849565b8015610f8b5780601f10610f6057610100808354040283529160200191610f8b565b820191906000526020600020905b815481529060010190602001808311610f6e57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611004576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffb90613d10565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61dead81565b611059611b15565b61106360006120fd565b565b6060600061107283610f93565b67ffffffffffffffff81111561108b5761108a613056565b5b6040519080825280602002602001820160405280156110b95781602001602082028036833780820191505090505b50905060005b6110c884610f93565b81101561110b576110d98482610b8d565b8282815181106110ec576110eb613c03565b5b602002602001018181525050808061110390613d5f565b9150506110bf565b8192505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c490613df4565b60405180910390fd5b6111d782826121c3565b5050565b6060600180546111ea90613849565b80601f016020809104026020016040519081016040528092919081815260200182805461121690613849565b80156112635780601f1061123857610100808354040283529160200191611263565b820191906000526020600020905b81548152906001019060200180831161124657829003601f168201915b5050505050905090565b61127f611278611bde565b83836121e7565b5050565b61128b611b15565b600f60009054906101000a900460ff1615600f60006101000a81548160ff021916908315150217905550565b6112bf611b15565b60005b815181101561133c578181815181106112de576112dd613c03565b5b6020026020010151601260006011548152602001908152602001600020908051906020019061130e929190612de9565b506001601160008282546113229190613e14565b92505081905550808061133490613d5f565b9150506112c2565b5050565b61135161134b611bde565b83611c9f565b611390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138790613a11565b60405180910390fd5b61139c84848484612354565b50505050565b6002600b5414156113e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113df90613eb6565b60405180910390fd5b6002600b819055506113f86123b0565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611466576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145d90613f48565b60405180910390fd5b600f60009054906101000a900460ff166114b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ac90613fb4565b60405180910390fd5b80611f4060016114c3610a1a565b6114cd9190613e14565b111561150e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150590614020565b60405180910390fd5b6013600082815260200190815260200160002060009054906101000a900460ff161561156f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115669061408c565b60405180910390fd5b600073aaa7a35e442a77e37cde2f445b359aabf5ad0387905060008173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004016115c391906132e1565b60206040518083038186803b1580156115db57600080fd5b505afa1580156115ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161391906140c1565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611683576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167a9061413a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b81526004016116be92919061415a565b60206040518083038186803b1580156116d657600080fd5b505afa1580156116ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170e9190614198565b61174d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174490614211565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead876040518463ffffffff1660e01b815260040161178c93929190614231565b600060405180830381600087803b1580156117a657600080fd5b505af11580156117ba573d6000803e3d6000fd5b505050506000611f40601654866117d19190613e14565b6117db9190614297565b90506117ee6117e8611bde565b826123fa565b60016013600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060108190806001815401808255809150506001900390600052602060002001600090919091909150557ff6a494b293d06a488a7ac6056eae946f562e3e8b006c6726e132051bdb3801ab3382601260008581526020019081526020016000206040516118889392919061435d565b60405180910390a1505050506001600b8190555050565b60606118aa82611b93565b6013600083815260200190815260200160002060009054906101000a900460ff1680156118f6575060006012600084815260200190815260200160002080546118f290613849565b9050115b1561193757600d60126000848152602001908152602001600020604051602001611921929190614425565b6040516020818303038152906040529050611960565b600d600e8360405160200161194e939291906144b6565b60405160208183030381529060405290505b919050565b60165481565b73aaa7a35e442a77e37cde2f445b359aabf5ad038781565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a1f611b15565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8690614568565b60405180910390fd5b611a98816120fd565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b0e5750611b0d826125d4565b5b9050919050565b611b1d611bde565b73ffffffffffffffffffffffffffffffffffffffff16611b3b611115565b73ffffffffffffffffffffffffffffffffffffffff1614611b91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b88906145d4565b60405180910390fd5b565b611b9c816126b6565b611bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd290613c7e565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c5983610e41565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611cab83610e41565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611ced5750611cec8185611983565b5b80611d2b57508373ffffffffffffffffffffffffffffffffffffffff16611d13846108bc565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d5482610e41565b73ffffffffffffffffffffffffffffffffffffffff1614611daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da190614666565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e11906146f8565b60405180910390fd5b611e25838383612722565b611e30600082611be6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e809190614718565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ed79190613e14565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611f96838383612732565b505050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79528486600060405160200161200f92919061475b565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161203c939291906147d9565b602060405180830381600087803b15801561205657600080fd5b505af115801561206a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208e9190614198565b5060006120b184600030600c600089815260200190815260200160002054612737565b90506001600c6000868152602001908152602001600020546120d39190613e14565b600c6000868152602001908152602001600020819055506120f48482612773565b91505092915050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001611f3f826121d39190614297565b6121dd9190613e14565b6016819055505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612256576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224d90614863565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123479190612f40565b60405180910390a3505050565b61235f848484611d34565b61236b848484846127a6565b6123aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a1906148f5565b60405180910390fd5b50505050565b6123b8610e0a565b156123f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ef90614961565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561246a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612461906149cd565b60405180910390fd5b612473816126b6565b156124b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124aa90614a39565b60405180910390fd5b6124bf60008383612722565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461250f9190613e14565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125d060008383612732565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061269f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806126af57506126ae8261293d565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61272d8383836129a7565b505050565b505050565b6000848484846040516020016127509493929190614a59565b6040516020818303038152906040528051906020012060001c9050949350505050565b60008282604051602001612788929190614abf565b60405160208183030381529060405280519060200120905092915050565b60006127c78473ffffffffffffffffffffffffffffffffffffffff16612abb565b15612930578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026127f0611bde565b8786866040518563ffffffff1660e01b81526004016128129493929190614aeb565b602060405180830381600087803b15801561282c57600080fd5b505af192505050801561285d57506040513d601f19601f8201168201806040525081019061285a9190614b4c565b60015b6128e0573d806000811461288d576040519150601f19603f3d011682016040523d82523d6000602084013e612892565b606091505b506000815114156128d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128cf906148f5565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612935565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6129b2838383612ade565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129f5576129f081612ae3565b612a34565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612a3357612a328382612b2c565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a7757612a7281612c99565b612ab6565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612ab557612ab48282612d6a565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612b3984610f93565b612b439190614718565b9050600060076000848152602001908152602001600020549050818114612c28576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612cad9190614718565b9050600060096000848152602001908152602001600020549050600060088381548110612cdd57612cdc613c03565b5b906000526020600020015490508060088381548110612cff57612cfe613c03565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612d4e57612d4d614b79565b5b6001900381819060005260206000200160009055905550505050565b6000612d7583610f93565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054612df590613849565b90600052602060002090601f016020900481019282612e175760008555612e5e565b82601f10612e3057805160ff1916838001178555612e5e565b82800160010185558215612e5e579182015b82811115612e5d578251825591602001919060010190612e42565b5b509050612e6b9190612e6f565b5090565b5b80821115612e88576000816000905550600101612e70565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612ed581612ea0565b8114612ee057600080fd5b50565b600081359050612ef281612ecc565b92915050565b600060208284031215612f0e57612f0d612e96565b5b6000612f1c84828501612ee3565b91505092915050565b60008115159050919050565b612f3a81612f25565b82525050565b6000602082019050612f556000830184612f31565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f95578082015181840152602081019050612f7a565b83811115612fa4576000848401525b50505050565b6000601f19601f8301169050919050565b6000612fc682612f5b565b612fd08185612f66565b9350612fe0818560208601612f77565b612fe981612faa565b840191505092915050565b6000602082019050818103600083015261300e8184612fbb565b905092915050565b6000819050919050565b61302981613016565b811461303457600080fd5b50565b60008135905061304681613020565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61308e82612faa565b810181811067ffffffffffffffff821117156130ad576130ac613056565b5b80604052505050565b60006130c0612e8c565b90506130cc8282613085565b919050565b600067ffffffffffffffff8211156130ec576130eb613056565b5b6130f582612faa565b9050602081019050919050565b82818337600083830152505050565b600061312461311f846130d1565b6130b6565b9050828152602081018484840111156131405761313f613051565b5b61314b848285613102565b509392505050565b600082601f8301126131685761316761304c565b5b8135613178848260208601613111565b91505092915050565b6000806040838503121561319857613197612e96565b5b60006131a685828601613037565b925050602083013567ffffffffffffffff8111156131c7576131c6612e9b565b5b6131d385828601613153565b9150509250929050565b6000602082840312156131f3576131f2612e96565b5b600061320184828501613037565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006132358261320a565b9050919050565b6132458161322a565b82525050565b6000602082019050613260600083018461323c565b92915050565b61326f8161322a565b811461327a57600080fd5b50565b60008135905061328c81613266565b92915050565b600080604083850312156132a9576132a8612e96565b5b60006132b78582860161327d565b92505060206132c885828601613037565b9150509250929050565b6132db81613016565b82525050565b60006020820190506132f660008301846132d2565b92915050565b60008060006060848603121561331557613314612e96565b5b60006133238682870161327d565b93505060206133348682870161327d565b925050604061334586828701613037565b9150509250925092565b60006020828403121561336557613364612e96565b5b600082013567ffffffffffffffff81111561338357613382612e9b565b5b61338f84828501613153565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6133cd81613016565b82525050565b60006133df83836133c4565b60208301905092915050565b6000602082019050919050565b600061340382613398565b61340d81856133a3565b9350613418836133b4565b8060005b8381101561344957815161343088826133d3565b975061343b836133eb565b92505060018101905061341c565b5085935050505092915050565b6000602082019050818103600083015261347081846133f8565b905092915050565b60006020828403121561348e5761348d612e96565b5b600061349c8482850161327d565b91505092915050565b6000819050919050565b6134b8816134a5565b81146134c357600080fd5b50565b6000813590506134d5816134af565b92915050565b600080604083850312156134f2576134f1612e96565b5b6000613500858286016134c6565b925050602061351185828601613037565b9150509250929050565b61352481612f25565b811461352f57600080fd5b50565b6000813590506135418161351b565b92915050565b6000806040838503121561355e5761355d612e96565b5b600061356c8582860161327d565b925050602061357d85828601613532565b9150509250929050565b600067ffffffffffffffff8211156135a2576135a1613056565b5b602082029050602081019050919050565b600080fd5b60006135cb6135c684613587565b6130b6565b905080838252602082019050602084028301858111156135ee576135ed6135b3565b5b835b8181101561363557803567ffffffffffffffff8111156136135761361261304c565b5b8086016136208982613153565b855260208501945050506020810190506135f0565b5050509392505050565b600082601f8301126136545761365361304c565b5b81356136648482602086016135b8565b91505092915050565b60006020828403121561368357613682612e96565b5b600082013567ffffffffffffffff8111156136a1576136a0612e9b565b5b6136ad8482850161363f565b91505092915050565b600067ffffffffffffffff8211156136d1576136d0613056565b5b6136da82612faa565b9050602081019050919050565b60006136fa6136f5846136b6565b6130b6565b90508281526020810184848401111561371657613715613051565b5b613721848285613102565b509392505050565b600082601f83011261373e5761373d61304c565b5b813561374e8482602086016136e7565b91505092915050565b6000806000806080858703121561377157613770612e96565b5b600061377f8782880161327d565b94505060206137908782880161327d565b93505060406137a187828801613037565b925050606085013567ffffffffffffffff8111156137c2576137c1612e9b565b5b6137ce87828801613729565b91505092959194509250565b600080604083850312156137f1576137f0612e96565b5b60006137ff8582860161327d565b92505060206138108582860161327d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061386157607f821691505b602082108114156138755761387461381a565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006138d7602183612f66565b91506138e28261387b565b604082019050919050565b60006020820190508181036000830152613906816138ca565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613969603e83612f66565b91506139748261390d565b604082019050919050565b600060208201905081810360008301526139988161395c565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006139fb602e83612f66565b9150613a068261399f565b604082019050919050565b60006020820190508181036000830152613a2a816139ee565b9050919050565b600081519050613a4081613020565b92915050565b600060208284031215613a5c57613a5b612e96565b5b6000613a6a84828501613a31565b91505092915050565b7f4e6f7420656e6f756768204c494e4b0000000000000000000000000000000000600082015250565b6000613aa9600f83612f66565b9150613ab482613a73565b602082019050919050565b60006020820190508181036000830152613ad881613a9c565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613b3b602b83612f66565b9150613b4682613adf565b604082019050919050565b60006020820190508181036000830152613b6a81613b2e565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613bcd602c83612f66565b9150613bd882613b71565b604082019050919050565b60006020820190508181036000830152613bfc81613bc0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613c68601883612f66565b9150613c7382613c32565b602082019050919050565b60006020820190508181036000830152613c9781613c5b565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613cfa602983612f66565b9150613d0582613c9e565b604082019050919050565b60006020820190508181036000830152613d2981613ced565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613d6a82613016565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613d9d57613d9c613d30565b5b600182019050919050565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b6000613dde601f83612f66565b9150613de982613da8565b602082019050919050565b60006020820190508181036000830152613e0d81613dd1565b9050919050565b6000613e1f82613016565b9150613e2a83613016565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613e5f57613e5e613d30565b5b828201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613ea0601f83612f66565b9150613eab82613e6a565b602082019050919050565b60006020820190508181036000830152613ecf81613e93565b9050919050565b7f436f6e74726163742063616c6c6572206d7573742062652065787465726e616c60008201527f6c79206f776e6564206163636f756e7400000000000000000000000000000000602082015250565b6000613f32603083612f66565b9150613f3d82613ed6565b604082019050919050565b60006020820190508181036000830152613f6181613f25565b9050919050565b7f52657665616c206973206e6f7420616374697665000000000000000000000000600082015250565b6000613f9e601483612f66565b9150613fa982613f68565b602082019050919050565b60006020820190508181036000830152613fcd81613f91565b9050919050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b600061400a601283612f66565b915061401582613fd4565b602082019050919050565b6000602082019050818103600083015261403981613ffd565b9050919050565b7f416c72656164792072657665616c656400000000000000000000000000000000600082015250565b6000614076601083612f66565b915061408182614040565b602082019050919050565b600060208201905081810360008301526140a581614069565b9050919050565b6000815190506140bb81613266565b92915050565b6000602082840312156140d7576140d6612e96565b5b60006140e5848285016140ac565b91505092915050565b7f4e6f7420746f6b656e206f776e65720000000000000000000000000000000000600082015250565b6000614124600f83612f66565b915061412f826140ee565b602082019050919050565b6000602082019050818103600083015261415381614117565b9050919050565b600060408201905061416f600083018561323c565b61417c602083018461323c565b9392505050565b6000815190506141928161351b565b92915050565b6000602082840312156141ae576141ad612e96565b5b60006141bc84828501614183565b91505092915050565b7f4e6f207065726d697373696f6e20746f207472616e7366657200000000000000600082015250565b60006141fb601983612f66565b9150614206826141c5565b602082019050919050565b6000602082019050818103600083015261422a816141ee565b9050919050565b6000606082019050614246600083018661323c565b614253602083018561323c565b61426060408301846132d2565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006142a282613016565b91506142ad83613016565b9250826142bd576142bc614268565b5b828206905092915050565b60008190508160005260206000209050919050565b600081546142ea81613849565b6142f48186612f66565b9450600182166000811461430f576001811461432157614354565b60ff1983168652602086019350614354565b61432a856142c8565b60005b8381101561434c5781548189015260018201915060208101905061432d565b808801955050505b50505092915050565b6000606082019050614372600083018661323c565b61437f60208301856132d2565b818103604083015261439181846142dd565b9050949350505050565b600081905092915050565b600081546143b381613849565b6143bd818661439b565b945060018216600081146143d857600181146143e95761441c565b60ff1983168652818601935061441c565b6143f2856142c8565b60005b83811015614414578154818901526001820191506020810190506143f5565b838801955050505b50505092915050565b600061443182856143a6565b915061443d82846143a6565b91508190509392505050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b600061447f60018361439b565b915061448a82614449565b600182019050919050565b6000819050919050565b6144b06144ab82613016565b614495565b82525050565b60006144c282866143a6565b91506144ce82856143a6565b91506144d982614472565b91506144e5828461449f565b602082019150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614552602683612f66565b915061455d826144f6565b604082019050919050565b6000602082019050818103600083015261458181614545565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145be602083612f66565b91506145c982614588565b602082019050919050565b600060208201905081810360008301526145ed816145b1565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614650602583612f66565b915061465b826145f4565b604082019050919050565b6000602082019050818103600083015261467f81614643565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006146e2602483612f66565b91506146ed82614686565b604082019050919050565b60006020820190508181036000830152614711816146d5565b9050919050565b600061472382613016565b915061472e83613016565b92508282101561474157614740613d30565b5b828203905092915050565b614755816134a5565b82525050565b6000604082019050614770600083018561474c565b61477d60208301846132d2565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006147ab82614784565b6147b5818561478f565b93506147c5818560208601612f77565b6147ce81612faa565b840191505092915050565b60006060820190506147ee600083018661323c565b6147fb60208301856132d2565b818103604083015261480d81846147a0565b9050949350505050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061484d601983612f66565b915061485882614817565b602082019050919050565b6000602082019050818103600083015261487c81614840565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006148df603283612f66565b91506148ea82614883565b604082019050919050565b6000602082019050818103600083015261490e816148d2565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061494b601083612f66565b915061495682614915565b602082019050919050565b6000602082019050818103600083015261497a8161493e565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006149b7602083612f66565b91506149c282614981565b602082019050919050565b600060208201905081810360008301526149e6816149aa565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614a23601c83612f66565b9150614a2e826149ed565b602082019050919050565b60006020820190508181036000830152614a5281614a16565b9050919050565b6000608082019050614a6e600083018761474c565b614a7b60208301866132d2565b614a88604083018561323c565b614a9560608301846132d2565b95945050505050565b6000819050919050565b614ab9614ab4826134a5565b614a9e565b82525050565b6000614acb8285614aa8565b602082019150614adb828461449f565b6020820191508190509392505050565b6000608082019050614b00600083018761323c565b614b0d602083018661323c565b614b1a60408301856132d2565b8181036060830152614b2c81846147a0565b905095945050505050565b600081519050614b4681612ecc565b92915050565b600060208284031215614b6257614b61612e96565b5b6000614b7084828501614b37565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122032785d6eed970ea1db2ffe3c8e3d65e92bcb1952758c95a020bde83d7978291864736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000000d5374726565744d616368696e6500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000353544d0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): StreetMachine
Arg [1] : symbol (string): STM
Arg [2] : _vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [3] : _link (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [4] : _keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [5] : _fee (uint256): 2000000000000000000

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [3] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [4] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [5] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [7] : 5374726565744d616368696e6500000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 53544d0000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ 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.