ETH Price: $3,899.49 (-0.37%)

Token

Satoshi Island Citizenship NFTs (CTZN)
 

Overview

Max Total Supply

5,617 CTZN

Holders

3,484

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
nyoropon.eth
Balance
1 CTZN
0x564b97df9e25d570312a8ddeb32f7027a52fc558
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:
SatoshiIslandCitizenshipNFTs

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 5000000 runs

Other Settings:
default evmVersion
File 1 of 23 : Collection.sol
pragma solidity 0.8.12;

import "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol";
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";

import {Authorizable} from "../lib/Authorizable.sol";
import {Coupon} from "./Coupon.sol";
import {IANS} from "../ans/IANS.sol";
import {IRevocable} from "../interfaces/IRevocable.sol";
import {ICollection} from "./ICollection.sol";

contract SatoshiIslandCitizenshipNFTs is
    ICollection,
    IRevocable,
    ERC721Burnable,
    ReentrancyGuard,
    Coupon,
    Authorizable,
    VRFConsumerBaseV2
{
    using Strings for uint256;

    struct VRF {
        uint64 subscriptionId;
        uint256 requestId;
        uint16 requestConfirmations;
        bytes32 keyHash;
        uint32 callbackGasLimit;
        uint256 randomWord;
        uint32 wordCount;
    }

    //compartmentalizing VRF and subscription
    VRF public vrf;
    VRFCoordinatorV2Interface public immutable coordinator;
    LinkTokenInterface public immutable linkToken;

    string private _termsAndConditions;

    //mapping of token owner to primary identity
    struct PrimaryIdentity {
        uint256 tokenId;
        uint256 unlockedAt;
    }
    mapping(address => PrimaryIdentity) private _primaryIdentities;

    //supply dynamics
    uint256 public constant maxSupply = 21_000;
    uint256 public totalSupply;

    //ANS configurations
    address public ANS;

    //metadata configurations
    string public baseURI;
    bool public permanentURI;

    //state of sale
    bool public active;

    event URIConfigured(string uri, uint256 timestamp);
    event ANSConfigured(address ans, uint256 timestamp);
    event WhitelistUpdated(string ipfsLink, uint256 timestamp);
    event PrimaryIdentityConfigured(address account, uint256 tokenId);
    event PrimaryIdentityRevoked(address account);
    event baseUriChanged(string baseUri);
    event baseUriSetPermanently(string baseUri);

    /// @dev initialization
    /// @param _name -> the name of the collection {ERC721}
    /// @param _symbol -> the symbol of the collection {ERC721}
    /// @param URI -> the base URI of the collection {ERC721}
    /// @param _TAC -> the terms and conditions ipfs link
    /// @param vrfCoordinatorAddress -> the vrf coordinator address to rely on {https://docs.chain.link/docs/vrf/v2/examples/get-a-random-number/}
    /// @param vrfSubscriptionId -> the vrf subscription id, required by the vrf coordinator {https://docs.chain.link/docs/vrf/v2/examples/get-a-random-number/}
    /// @param vrfKeyHash -> the vrf key hash (Max gas price), get values from https://vrf.chain.link/mainnet {https://docs.chain.link/docs/vrf/v2/introduction/}
    /// @param linkTokenAddress -> the token address of LINK, needed to setup the VRF integration [required by the VRF] {https://docs.chain.link/docs/vrf/v2/examples/get-a-random-number/}
    /// @param couponSigner -> the EOA of whitelist manager (coupons signer) {https://eips.ethereum.org/EIPS/eip-712}
    /// @param couponSignatureVersion -> the signature domain separator version, Signatures from different versions are not compatible {https://eips.ethereum.org/EIPS/eip-712}
    constructor(
        string memory _name,
        string memory _symbol,
        string memory URI,
        string memory _TAC,
        address vrfCoordinatorAddress,
        uint64 vrfSubscriptionId,
        bytes32 vrfKeyHash,
        address linkTokenAddress,
        address couponSigner,
        string memory couponSignatureVersion
    )
        ERC721(_name, _symbol)
        VRFConsumerBaseV2(vrfCoordinatorAddress)
        Coupon(couponSigner, _name, couponSignatureVersion)
    {
        // VRF integration setup
        coordinator = VRFCoordinatorV2Interface(vrfCoordinatorAddress);
        linkToken = LinkTokenInterface(linkTokenAddress);

        // VRF consumer configuration
        vrf.subscriptionId = vrfSubscriptionId;
        vrf.requestConfirmations = 3;
        vrf.keyHash = vrfKeyHash;
        vrf.callbackGasLimit = 100000;
        vrf.wordCount = 1;

        // Collection setup
        baseURI = URI;
        _termsAndConditions = _TAC;

        emit URIConfigured(URI, block.timestamp);
    }

    /// @dev functionality for enabling ANS configurations
    /// @param newANS -> the address of ANS endpoint
    /// @return successful -> confirmation of activity
    function setANS(address newANS)
        external
        onlyAuthorized
        returns (bool successful)
    {
        require(newANS != address(0), "must not be the zero address");

        ANS = newANS;
        emit ANSConfigured(newANS, block.timestamp);
        successful = true;
    }

    /// @dev functionality for setting the primary identity of a citizenship
    /// @param tokenId --> the token id of the citizenship
    /// @return successful -> confirmation of activity
    function setPrimary(uint256 tokenId) external returns (bool successful) {
        require(ownerOf(tokenId) == msg.sender, "must be owner of token id");

        _primaryIdentities[msg.sender].tokenId = tokenId;
        emit PrimaryIdentityConfigured(msg.sender, tokenId);
        successful = true;
    }

    /// @dev functionality for revoking the primary identity of a citizenship
    /// @return successful -> confirmation of activity
    function revokePrimary() external returns (bool successful) {
        require(
            _primaryIdentities[msg.sender].unlockedAt < block.timestamp,
            "must wait for primary lock to expire"
        );

        delete _primaryIdentities[msg.sender];
        emit PrimaryIdentityRevoked(msg.sender);
        successful = true;
    }

    /// @dev functionality for locking a primary identity of a citizenship
    /// @return successful -> confirmation of activity
    function lockPrimary(uint256 durationInSeconds)
        external
        returns (bool successful)
    {
        require(
            _primaryIdentities[msg.sender].tokenId != 0,
            "must set a primary identity"
        );

        uint256 lockDuration = block.timestamp + durationInSeconds;
        require(
            lockDuration > _primaryIdentities[msg.sender].unlockedAt,
            "must not shorten existing lock duration"
        );

        _primaryIdentities[msg.sender].unlockedAt = lockDuration;
        emit PrimaryIdentityRevoked(msg.sender);
        successful = true;
    }

    /// @dev persist the whitelist ipfs link as an event log (there will be multiple separate lists)
    /// @param ipfsLink -> the whitelist ipfs link
    function logWhitelist(string memory ipfsLink) external onlyOwner {
        emit WhitelistUpdated(ipfsLink, block.timestamp);
    }

    /// @dev functionality for minting tokens
    function mint(
        uint256 id,
        uint256 expiresAt,
        bytes memory signature
    ) external onlyWithCoupon(id, expiresAt, signature) nonReentrant {
        require(active, "sale must be configured");

        require(totalSupply < maxSupply, "Citizenship: exceeded max supply");

        uint256 tokenId = ((vrf.randomWord + id) % maxSupply) + 1;
        receipts[id] = tokenId;
        totalSupply++;

        _safeMint(msg.sender, tokenId);
    }

    /// @dev functionality for airdropping tokens
    ///      - SHOULD adhere to randomness logic
    /// @param ids -> the ids of whitelist coupons
    /// @return successful -> confirmation of activity
    function airdrop(uint256[] calldata ids, address[] calldata recipients)
        external
        onlyOwner
        returns (bool successful)
    {
        require(vrf.randomWord > 0, "Citizenship: randomness not ready");
        require(recipients.length == ids.length, "Citizenship: unmatched");

        uint256 counter = ids.length;
        totalSupply += counter;

        require(totalSupply <= maxSupply, "Citizenship: exceeded max supply");

        for (uint256 i = 0; i < counter; i++) {
            uint256 tokenId = ((vrf.randomWord + ids[i]) % maxSupply) + 1;
            _safeMint(recipients[i], tokenId);
        }

        successful = true;
    }

    /// @dev functionality for airdropping tokens by tokenId
    ///      - The randomness won't apply to this function
    /// @param tokenIds -> the tokenId list
    /// @return successful -> confirmation of activity
    function airdrop(uint256[] calldata tokenIds)
        external
        onlyOwner
        returns (bool successful)
    {
        uint256 counter = tokenIds.length;
        totalSupply += counter;

        require(totalSupply <= maxSupply, "Citizenship: exceeded max supply");

        for (uint256 i = 0; i < counter; i++) {
            _safeMint(msg.sender, tokenIds[i]);
        }

        successful = true;
    }

    function burn(uint256 tokenId) public override onlyAuthorized {
        //solhint-disable-next-line max-line-length
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: caller is not token owner or approved"
        );
        _burn(tokenId);
        totalSupply--;
    }

    /// @dev functionality for state of sale
    /// @param state -> the state of the sale {true to activate, false to deactivate}
    /// @return successful -> confirmation of activity
    function setSaleState(bool state)
        external
        onlyOwner
        returns (bool successful)
    {
        require(vrf.randomWord > 0, "randomness not ready");
        active = state;
        successful = true;
    }

    function setBaseURI(string calldata newBaseURI) external onlyOwner {
        require(permanentURI == false, "Citizenship: permanent uri");
        baseURI = newBaseURI;
    }

    function markUriAsPermanent() external onlyOwner {
        permanentURI = true;
    }

    /// @dev set the legal rights link, onlyOwner
    function updateTermsAndConditions(string calldata link) external onlyOwner {
        _termsAndConditions = link;
    }

    /// @dev functionality for generating random word for vrf
    function requestRandomWords() external onlyOwner {
        require(vrf.randomWord == 0, "Citizenship: randomness replay ");

        //reverts if subscription is not set and funded.
        vrf.requestId = coordinator.requestRandomWords(
            vrf.keyHash,
            vrf.subscriptionId,
            vrf.requestConfirmations,
            vrf.callbackGasLimit,
            vrf.wordCount
        );
    }

    /// @dev functionality that allows authorized revocation
    /// @param to -> the recipient of the token
    /// @param tokenId -> the token id to be revoked
    /// @return successful -> confirmation of activity
    function revoke(address to, uint256 tokenId)
        external
        onlyAuthorized
        returns (bool successful)
    {
        address tokenOwner = ownerOf(tokenId);
        super._transfer(tokenOwner, to, tokenId);
        emit Revoked(tokenOwner, to, tokenId);
        successful = true;
    }

    function safeTransferFromBatch(
        address from,
        address to,
        uint256[] memory tokenIds
    ) external {
        uint256 buffer = tokenIds.length;
        for (uint256 i; i < buffer; i++) {
            safeTransferFrom(from, to, tokenIds[i]);
        }
    }

    function getPrimaryIdentity(address account)
        external
        view
        returns (uint256)
    {
        return _primaryIdentities[account].tokenId;
    }

    function getPrimaryIdentityLock(address account)
        external
        view
        returns (uint256)
    {
        return _primaryIdentities[account].unlockedAt;
    }

    /// @dev returns the legal contract link
    function getTermsAndConditions() external view returns (string memory) {
        return _termsAndConditions;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        return string(abi.encodePacked(baseURI, tokenId.toString(), ".json"));
    }

    /// @dev unused function, inheritance graph
    /// @param . -> input argument not used
    /// @param randomWords -> randomness
    function fulfillRandomWords(uint256, uint256[] memory randomWords)
        internal
        override
    {
        vrf.randomWord = randomWords[0];
    }

    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override {
        //if token id is primary identity of sender, then the token can't be transferred,
        //unless the recipient is authorized (composability for future contract flexibility)
        //the sender must first revoke the token id to enable transferability of the token id
        if (!authorized[to]) {
            require(
                !_isPrimaryIdentity(from, tokenId),
                "must revoke token id from primary identity"
            );
        }
        // 1- Check if the ANS is configured, means the ANS contract is up serving requests
        // 2- Check if 2FA is enabled by the token owner
        // If 1 and 2 are satisfied we must make sure that the token owner
        // have approved the transfer of the token by {from} and not {msg.sender}
        // to make sure that transferFrom have to pass through the same process
        if (ANS != address(0)) {
            if (IANS(ANS).isAuthEnabled(from)) {
                //fetch request status and request index
                (bool successful, uint256 index) = IANS(ANS)
                    .isTokenTransferRequestApproved(
                        from,
                        address(this),
                        tokenId
                    );

                require(
                    successful,
                    "token transfer request must be approved by trustees"
                );
                // There's no Reentrancy risk because IANS is a contract owned by the same project
                IANS(ANS).clearRequest(from, index);
            }
        }
        // Transfer the asset
        super._transfer(from, to, tokenId);
    }

    // @dev fetch whether a token id is configured as primrary identity for an account
    /// @return successful -> confirmation of activity
    function _isPrimaryIdentity(address account, uint256 tokenId)
        private
        view
        returns (bool successful)
    {
        successful = _primaryIdentities[account].tokenId == tokenId;
    }
}

File 2 of 23 : Authorizable.sol
pragma solidity 0.8.12;

import "@openzeppelin/contracts/access/Ownable.sol";

contract Authorizable is Ownable {
    mapping(address => bool) public authorized;

    modifier onlyAuthorized() {
        require(
            authorized[msg.sender] || owner() == msg.sender,
            "Not authorized"
        );
        _;
    }

    function addAuthorized(address _toAdd) public onlyOwner {
        require(_toAdd != address(0), "Authorizable: Rejected null address");
        authorized[_toAdd] = true;
    }

    function removeAuthorized(address _toRemove) public onlyOwner {
        require(_toRemove != address(0), "Authorizable: Rejected null address");
        require(_toRemove != msg.sender, "Authorizable: Rejected self remove");
        authorized[_toRemove] = false;
    }
}

// @4's

File 3 of 23 : Coupon.sol
pragma solidity 0.8.12;

import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";

contract Coupon is EIP712 {
    address public immutable SIGNER;

    //tracking the receipts associated with token ids
    mapping(uint256 => uint256) public receipts;

    modifier onlyWithCoupon(
        uint256 id,
        uint256 expiresAt,
        bytes memory signature
    ) {
        require(receipts[id] == 0, "Coupon: already used");

        require(
            verifySignature(msg.sender, id, expiresAt, signature),
            "Coupon: Invalid signature"
        );

        require(expiresAt > block.timestamp, "Coupon: invalid expiration");
        _;
    }

    constructor(
        address signerAccount,
        string memory domainSeparator,
        string memory signatureVersion
    ) EIP712(domainSeparator, signatureVersion) {
        require(
            signerAccount != address(0),
            "Coupon: Rejected nullish signerAccount"
        );
        SIGNER = signerAccount;
    }

    function chainId() external view returns (uint256) {
        return block.chainid;
    }

    function isUsed(uint256 receiptId) external view returns (bool) {
        return receipts[receiptId] != 0;
    }

    function verifySignature(
        address account,
        uint256 id,
        uint256 expiresAt,
        bytes memory signature
    ) private view returns (bool) {
        bytes32 digest = _hashTypedDataV4(
            keccak256(
                abi.encode(
                    keccak256(
                        "CouponReceipt(address account,uint256 id,uint256 expiresAt)"
                    ),
                    account,
                    id,
                    expiresAt
                )
            )
        );

        return ECDSA.recover(digest, signature) == SIGNER;
    }
}

File 4 of 23 : IANS.sol
pragma solidity 0.8.12;

interface IANS {
    function isAuthEnabled(address account) external view returns (bool);
    function isProofValid(address account) external view returns (bool);

    function isTokenTransferRequestApproved(
        address account,
        address token,
        uint256 tokenId
    ) external view returns (bool, uint256);

    function clearRequest(address account, uint256 index)
        external
        returns (bool);
}

File 5 of 23 : ICollection.sol
pragma solidity 0.8.12;

interface ICollection {
    function getPrimaryIdentity(address account) external view returns (uint256);
    function getPrimaryIdentityLock(address account) external view returns (uint256);
}

File 6 of 23 : IRevocable.sol
pragma solidity 0.8.12;

interface IRevocable {
    function revoke(address to, uint256 tokenId) external returns (bool);
    event Revoked(address from, address to, uint256 tokenId);
}

File 7 of 23 : 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 8 of 23 : 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 9 of 23 : 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 10 of 23 : VRFConsumerBaseV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

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

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

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

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

File 11 of 23 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 23 : 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 14 of 23 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

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

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

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

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

  function increaseApproval(address spender, uint256 subtractedValue) external;

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

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

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

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

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

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

File 15 of 23 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        _burn(tokenId);
    }
}

File 16 of 23 : 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 17 of 23 : 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 18 of 23 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

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

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 5000000
  },
  "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":"string","name":"URI","type":"string"},{"internalType":"string","name":"_TAC","type":"string"},{"internalType":"address","name":"vrfCoordinatorAddress","type":"address"},{"internalType":"uint64","name":"vrfSubscriptionId","type":"uint64"},{"internalType":"bytes32","name":"vrfKeyHash","type":"bytes32"},{"internalType":"address","name":"linkTokenAddress","type":"address"},{"internalType":"address","name":"couponSigner","type":"address"},{"internalType":"string","name":"couponSignatureVersion","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"ans","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ANSConfigured","type":"event"},{"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"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"PrimaryIdentityConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"PrimaryIdentityRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Revoked","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":"string","name":"uri","type":"string"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"URIConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"ipfsLink","type":"string"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"WhitelistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseUri","type":"string"}],"name":"baseUriChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseUri","type":"string"}],"name":"baseUriSetPermanently","type":"event"},{"inputs":[],"name":"ANS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toAdd","type":"address"}],"name":"addAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"airdrop","outputs":[{"internalType":"bool","name":"successful","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"airdrop","outputs":[{"internalType":"bool","name":"successful","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"chainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"coordinator","outputs":[{"internalType":"contract VRFCoordinatorV2Interface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getPrimaryIdentity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getPrimaryIdentityLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTermsAndConditions","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"receiptId","type":"uint256"}],"name":"isUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"linkToken","outputs":[{"internalType":"contract LinkTokenInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"durationInSeconds","type":"uint256"}],"name":"lockPrimary","outputs":[{"internalType":"bool","name":"successful","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"ipfsLink","type":"string"}],"name":"logWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"markUriAsPermanent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"permanentURI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"receipts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toRemove","type":"address"}],"name":"removeAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"revoke","outputs":[{"internalType":"bool","name":"successful","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokePrimary","outputs":[{"internalType":"bool","name":"successful","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"safeTransferFromBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newANS","type":"address"}],"name":"setANS","outputs":[{"internalType":"bool","name":"successful","type":"bool"}],"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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setPrimary","outputs":[{"internalType":"bool","name":"successful","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setSaleState","outputs":[{"internalType":"bool","name":"successful","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"link","type":"string"}],"name":"updateTermsAndConditions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vrf","outputs":[{"internalType":"uint64","name":"subscriptionId","type":"uint64"},{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint16","name":"requestConfirmations","type":"uint16"},{"internalType":"bytes32","name":"keyHash","type":"bytes32"},{"internalType":"uint32","name":"callbackGasLimit","type":"uint32"},{"internalType":"uint256","name":"randomWord","type":"uint256"},{"internalType":"uint32","name":"wordCount","type":"uint32"}],"stateMutability":"view","type":"function"}]

6101c06040523480156200001257600080fd5b5060405162004f1838038062004f18833981016040819052620000359162000473565b85828b8381818f8f816000908051906020019062000055929190620002be565b5080516200006b906001906020840190620002be565b5050600160065550815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c05261012052505050506001600160a01b0383166200016e5760405162461bcd60e51b815260206004820152602660248201527f436f75706f6e3a2052656a6563746564206e756c6c697368207369676e65724160448201526518d8dbdd5b9d60d21b606482015260840160405180910390fd5b50506001600160a01b03166101405262000188336200026c565b6001600160a01b03908116610160528681166101805283166101a052600a80546001600160401b0387166001600160401b0319909116179055600c805461ffff19166003179055600d849055600e805463ffffffff19908116620186a01790915560108054909116600117905587516200020a9060159060208b0190620002be565b508651620002209060119060208a0190620002be565b507f4f15962aa0416af610b5e9abb022a446804a9290cd0d48fbca902708f36aa7a6884260405162000254929190620005aa565b60405180910390a15050505050505050505062000624565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002cc90620005e7565b90600052602060002090601f016020900481019282620002f057600085556200033b565b82601f106200030b57805160ff19168380011785556200033b565b828001600101855582156200033b579182015b828111156200033b5782518255916020019190600101906200031e565b50620003499291506200034d565b5090565b5b808211156200034957600081556001016200034e565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003975781810151838201526020016200037d565b83811115620003a7576000848401525b50505050565b600082601f830112620003bf57600080fd5b81516001600160401b0380821115620003dc57620003dc62000364565b604051601f8301601f19908116603f0116810190828211818310171562000407576200040762000364565b816040528381528660208588010111156200042157600080fd5b620004348460208301602089016200037a565b9695505050505050565b80516001600160a01b03811681146200045657600080fd5b919050565b80516001600160401b03811681146200045657600080fd5b6000806000806000806000806000806101408b8d0312156200049457600080fd5b8a516001600160401b0380821115620004ac57600080fd5b620004ba8e838f01620003ad565b9b5060208d0151915080821115620004d157600080fd5b620004df8e838f01620003ad565b9a5060408d0151915080821115620004f657600080fd5b620005048e838f01620003ad565b995060608d01519150808211156200051b57600080fd5b620005298e838f01620003ad565b98506200053960808e016200043e565b97506200054960a08e016200045b565b965060c08d015195506200056060e08e016200043e565b9450620005716101008e016200043e565b93506101208d01519150808211156200058957600080fd5b50620005988d828e01620003ad565b9150509295989b9194979a5092959850565b6040815260008351806040840152620005cb8160608501602088016200037a565b602083019390935250601f91909101601f191601606001919050565b600181811c90821680620005fc57607f821691505b602082108114156200061e57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a051614863620006b560003960006105eb01526000818161040501526122ca015260008181611007015261106f0152600081816106120152612654015260006136b101526000613700015260006136db015260006136340152600061365e0152600061368801526148636000f3fe608060405234801561001057600080fd5b506004361061034c5760003560e01c80635f11fd03116101bd578063b88d4fde116100f9578063e0c86289116100a2578063eac449d91161007c578063eac449d914610817578063f2fde38b1461082a578063faa982541461083d578063fe4602011461087357600080fd5b8063e0c86289146107a6578063e0eb4261146107ae578063e985e9c5146107ce57600080fd5b8063c87b56dd116100d3578063c87b56dd14610777578063cf1c316a1461078a578063d5abeb011461079d57600080fd5b8063b88d4fde1461072e578063b918161114610741578063c4e370951461076457600080fd5b80637d9c225d1161016657806395d89b411161014057806395d89b41146106d457806399456dac146106dc5780639a8a059214610715578063a22cb4651461071b57600080fd5b80637d9c225d14610690578063834fb0d5146106a35780638da5cb5b146106b657600080fd5b80636c0360eb116101975780636c0360eb1461066d57806370a0823114610675578063715018a61461068857600080fd5b80635f11fd03146106345780636352211e146106475780636673c4c21461065a57600080fd5b80631fe543e31161028c57806342842e0e11610235578063487112731161020f57806348711273146105cb57806355f804b3146105d357806357970e93146105e6578063582abd121461060d57600080fd5b806342842e0e1461059257806342966c68146105a5578063485d7d94146105b857600080fd5b8063336ccba511610266578063336ccba51461054a57806338aa38151461056c57806338e74feb1461057f57600080fd5b80631fe543e31461051757806323b872dd1461052a57806331b54a151461053d57600080fd5b80630a009097116102f95780630f7ee1ec116102d35780630f7ee1ec146104ba57806317428b4e146104e857806318160ddd146104fb5780631de813231461050457600080fd5b80630a009097146104005780630a2ae209146104275780630c9490431461042f57600080fd5b8063081812fc1161032a578063081812fc146103a057806308dc9f42146103d8578063095ea7b3146103ed57600080fd5b806301ffc9a71461035157806302fb0c5e1461037957806306fdde031461038b575b600080fd5b61036461035f366004613dac565b61087b565b60405190151581526020015b60405180910390f35b60165461036490610100900460ff1681565b610393610960565b6040516103709190613e46565b6103b36103ae366004613e59565b6109f2565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610370565b6103eb6103e6366004613f86565b610a26565b005b6103eb6103fb366004613fff565b610d3c565b6103b37f000000000000000000000000000000000000000000000000000000000000000081565b6103eb610ec9565b600a54600b54600c54600d54600e54600f546010546104689667ffffffffffffffff16959461ffff16939263ffffffff90811692911687565b6040805167ffffffffffffffff9098168852602088019690965261ffff90941694860194909452606085019190915263ffffffff908116608085015260a08401929092521660c082015260e001610370565b6104da6104c8366004613e59565b60076020526000908152604090205481565b604051908152602001610370565b6103646104f636600461406e565b610efe565b6104da60135481565b6103eb6105123660046140b0565b610fdb565b6103eb6105253660046141a2565b610fef565b6103eb6105383660046141e9565b6110aa565b6016546103649060ff1681565b610364610558366004613e59565b600090815260076020526040902054151590565b6103eb61057a366004614225565b61114c565b61036461058d366004613e59565b611196565b6103eb6105a03660046141e9565b611273565b6103eb6105b3366004613e59565b61128e565b6103eb6105c6366004614279565b6113fb565b610364611598565b6103eb6105e13660046140b0565b61168a565b6103b37f000000000000000000000000000000000000000000000000000000000000000081565b6103b37f000000000000000000000000000000000000000000000000000000000000000081565b6103eb610642366004614294565b61170b565b6103b3610655366004613e59565b61174f565b6103646106683660046142dd565b6117db565b610393611a06565b6104da610683366004614279565b611a94565b6103eb611b62565b61036461069e366004613e59565b611b76565b6103646106b1366004614279565b611cee565b60085473ffffffffffffffffffffffffffffffffffffffff166103b3565b610393611e9a565b6104da6106ea366004614279565b73ffffffffffffffffffffffffffffffffffffffff1660009081526012602052604090206001015490565b466104da565b6103eb610729366004614357565b611ea9565b6103eb61073c36600461438e565b611eb4565b61036461074f366004614279565b60096020526000908152604090205460ff1681565b6103646107723660046143f6565b611f5c565b610393610785366004613e59565b61200a565b6103eb610798366004614279565b6120f0565b6104da61520881565b6103eb6121ea565b6014546103b39073ffffffffffffffffffffffffffffffffffffffff1681565b6103646107dc366004614413565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b610364610825366004613fff565b612351565b6103eb610838366004614279565b612482565b6104da61084b366004614279565b73ffffffffffffffffffffffffffffffffffffffff1660009081526012602052604090205490565b610393612539565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061090e57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061095a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606000805461096f90614446565b80601f016020809104026020016040519081016040528092919081815260200182805461099b90614446565b80156109e85780601f106109bd576101008083540402835291602001916109e8565b820191906000526020600020905b8154815290600101906020018083116109cb57829003601f168201915b5050505050905090565b60006109fd82612548565b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60008381526007602052604090205483908390839015610aa7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f436f75706f6e3a20616c7265616479207573656400000000000000000000000060448201526064015b60405180910390fd5b610ab3338484846125d3565b610b19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f436f75706f6e3a20496e76616c6964207369676e6174757265000000000000006044820152606401610a9e565b428211610b82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f436f75706f6e3a20696e76616c69642065787069726174696f6e0000000000006044820152606401610a9e565b60026006541415610bef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a9e565b6002600655601654610100900460ff16610c65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f73616c65206d75737420626520636f6e666967757265640000000000000000006044820152606401610a9e565b61520860135410610cd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f436974697a656e736869703a206578636565646564206d617820737570706c796044820152606401610a9e565b600061520887600a60050154610ce891906144c9565b610cf29190614510565b610cfd9060016144c9565b60008881526007602052604081208290556013805492935090610d1f83614524565b9190505550610d2e33826126b6565b505060016006555050505050565b6000610d478261174f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e2e5750610e2e81336107dc565b610eba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610a9e565b610ec483836126d0565b505050565b610ed1612770565b601680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000610f08612770565b6013805483918291600090610f1e9084906144c9565b90915550506013546152081015610f91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f436974697a656e736869703a206578636565646564206d617820737570706c796044820152606401610a9e565b60005b81811015610fd057610fbe33868684818110610fb257610fb261455d565b905060200201356126b6565b80610fc881614524565b915050610f94565b506001949350505050565b610fe3612770565b610ec460118383613cc7565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461109c576040517f1cf993f400000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000166024820152604401610a9e565b6110a682826127f1565b5050565b6110b5335b82612816565b611141576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610a9e565b610ec48383836128d5565b805160005b8181101561118f5761117d85858584815181106111705761117061455d565b6020026020010151611273565b8061118781614524565b915050611151565b5050505050565b6000336111a28361174f565b73ffffffffffffffffffffffffffffffffffffffff161461121f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6d757374206265206f776e6572206f6620746f6b656e206964000000000000006044820152606401610a9e565b33600081815260126020908152604091829020859055815192835282018490527f881742cbc8684544a7437dd11356259786adcd4db671a4bceb699ef70a06cb3091015b60405180910390a1506001919050565b610ec483838360405180602001604052806000815250611eb4565b3360009081526009602052604090205460ff16806112df5750336112c760085473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16145b611345576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f7420617574686f72697a65640000000000000000000000000000000000006044820152606401610a9e565b61134e336110af565b6113da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610a9e565b6113e381612c4f565b601380549060006113f38361458c565b919050555050565b611403612770565b73ffffffffffffffffffffffffffffffffffffffff81166114a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f417574686f72697a61626c653a2052656a6563746564206e756c6c206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b73ffffffffffffffffffffffffffffffffffffffff811633141561154c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f417574686f72697a61626c653a2052656a65637465642073656c662072656d6f60448201527f76650000000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b73ffffffffffffffffffffffffffffffffffffffff16600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b336000908152601260205260408120600101544211611638576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f6d757374207761697420666f72207072696d617279206c6f636b20746f20657860448201527f70697265000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b3360008181526012602090815260408083208381556001019290925590519182527f2a39e84c575c2761919614d5d432da7c4df6951599909bfcba397beefe777d7b910160405180910390a150600190565b611692612770565b60165460ff16156116ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f436974697a656e736869703a207065726d616e656e74207572690000000000006044820152606401610a9e565b610ec460158383613cc7565b611713612770565b7f824645e3984ae8bfe88a8461272153eaef53be5ea9831db3fe59c026b9f41b4b81426040516117449291906145c1565b60405180910390a150565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff168061095a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a9e565b60006117e5612770565b600f54611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f436974697a656e736869703a2072616e646f6d6e657373206e6f74207265616460448201527f79000000000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b8184146118dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f436974697a656e736869703a20756e6d617463686564000000000000000000006044820152606401610a9e565b60138054859182916000906118f39084906144c9565b90915550506013546152081015611966576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f436974697a656e736869703a206578636565646564206d617820737570706c796044820152606401610a9e565b60005b818110156119f95760006152088888848181106119885761198861455d565b90506020020135600a6005015461199f91906144c9565b6119a99190614510565b6119b49060016144c9565b90506119e68686848181106119cb576119cb61455d565b90506020020160208101906119e09190614279565b826126b6565b50806119f181614524565b915050611969565b5060019695505050505050565b60158054611a1390614446565b80601f0160208091040260200160405190810160405280929190818152602001828054611a3f90614446565b8015611a8c5780601f10611a6157610100808354040283529160200191611a8c565b820191906000526020600020905b815481529060010190602001808311611a6f57829003601f168201915b505050505081565b600073ffffffffffffffffffffffffffffffffffffffff8216611b39576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610a9e565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b611b6a612770565b611b746000612d1c565b565b33600090815260126020526040812054611bec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6d757374207365742061207072696d617279206964656e7469747900000000006044820152606401610a9e565b6000611bf883426144c9565b336000908152601260205260409020600101549091508111611c9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f6d757374206e6f742073686f7274656e206578697374696e67206c6f636b206460448201527f75726174696f6e000000000000000000000000000000000000000000000000006064820152608401610a9e565b3360008181526012602090815260409182902060010184905590519182527f2a39e84c575c2761919614d5d432da7c4df6951599909bfcba397beefe777d7b910160405180910390a150600192915050565b3360009081526009602052604081205460ff1680611d3f575033611d2760085473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16145b611da5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f7420617574686f72697a65640000000000000000000000000000000000006044820152606401610a9e565b73ffffffffffffffffffffffffffffffffffffffff8216611e22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6d757374206e6f7420626520746865207a65726f2061646472657373000000006044820152606401610a9e565b601480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155604080519182524260208301527faf170a2161e9179a6d082a6d01b727e91308b1b890768aabd6e208e479f129039101611263565b60606001805461096f90614446565b6110a6338383612d93565b611ebe3383612816565b611f4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610a9e565b611f5684848484612ec1565b50505050565b6000611f66612770565b600f54611fcf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f72616e646f6d6e657373206e6f742072656164790000000000000000000000006044820152606401610a9e565b5060168054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055600190565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff166120be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a9e565b60156120c983612f64565b6040516020016120da9291906145ff565b6040516020818303038152906040529050919050565b6120f8612770565b73ffffffffffffffffffffffffffffffffffffffff811661219b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f417574686f72697a61626c653a2052656a6563746564206e756c6c206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b73ffffffffffffffffffffffffffffffffffffffff16600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6121f2612770565b600f541561225c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f436974697a656e736869703a2072616e646f6d6e657373207265706c617920006044820152606401610a9e565b600d54600a54600c54600e546010546040517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481019590955267ffffffffffffffff909316602485015261ffff909116604484015263ffffffff90811660648401521660848201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690635d3b1d309060a4016020604051808303816000875af1158015612328573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061234c9190614709565b600b55565b3360009081526009602052604081205460ff16806123a257503361238a60085473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16145b612408576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f7420617574686f72697a65640000000000000000000000000000000000006044820152606401610a9e565b60006124138361174f565b9050612420818585613096565b6040805173ffffffffffffffffffffffffffffffffffffffff8084168252861660208201529081018490527f1b0d5fb22a7bd6488427342953b1f43743eda17130144de1ea68a9058355d3fb9060600160405180910390a15060019392505050565b61248a612770565b73ffffffffffffffffffffffffffffffffffffffff811661252d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a9e565b61253681612d1c565b50565b60606011805461096f90614446565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16612536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a9e565b604080517f0d4a9bc6dd0ff3e07f3d41b32097a5bc6b0c3d59b2d79e485b8eccd59ace020c602082015273ffffffffffffffffffffffffffffffffffffffff861691810191909152606081018490526080810183905260009081906126509060a001604051602081830303815290604052805190602001206132fd565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166126938285613366565b73ffffffffffffffffffffffffffffffffffffffff16149150505b949350505050565b6110a682826040518060200160405280600081525061338a565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061272a8261174f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60085473ffffffffffffffffffffffffffffffffffffffff163314611b74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b806000815181106128045761280461455d565b6020908102919091010151600f555050565b6000806128228361174f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612890575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b806126ae57508373ffffffffffffffffffffffffffffffffffffffff166128b6846109f2565b73ffffffffffffffffffffffffffffffffffffffff1614949350505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526009602052604090205460ff166129b75773ffffffffffffffffffffffffffffffffffffffff83166000908152601260205260409020548114156129b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f6d757374207265766f6b6520746f6b656e2069642066726f6d207072696d617260448201527f79206964656e74697479000000000000000000000000000000000000000000006064820152608401610a9e565b60145473ffffffffffffffffffffffffffffffffffffffff1615612c44576014546040517fda33f0ff00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301529091169063da33f0ff90602401602060405180830381865afa158015612a45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a699190614722565b15612c44576014546040517f10da624200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301523060248301526044820184905260009283929116906310da6242906064016040805180830381865afa158015612aee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b12919061473f565b9150915081612ba3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f746f6b656e207472616e736665722072657175657374206d757374206265206160448201527f7070726f766564206279207472757374656573000000000000000000000000006064820152608401610a9e565b6014546040517f7f4f2e9f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301526024820184905290911690637f4f2e9f906044016020604051808303816000875af1158015612c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c409190614722565b5050505b610ec4838383613096565b6000612c5a8261174f565b9050612c676000836126d0565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290612c9d90849061476d565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a9e565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ecc8484846128d5565b612ed88484848461342d565b611f56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a9e565b606081612fa457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612fce5780612fb881614524565b9150612fc79050600a83614784565b9150612fa8565b60008167ffffffffffffffff811115612fe957612fe9613e72565b6040519080825280601f01601f191660200182016040528015613013576020820181803683370190505b5090505b84156126ae5761302860018361476d565b9150613035600a86614510565b6130409060306144c9565b60f81b8183815181106130555761305561455d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061308f600a86614784565b9450613017565b8273ffffffffffffffffffffffffffffffffffffffff166130b68261174f565b73ffffffffffffffffffffffffffffffffffffffff1614613159576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a9e565b73ffffffffffffffffffffffffffffffffffffffff82166131fb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b6132066000826126d0565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260036020526040812080546001929061323c90849061476d565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906132779084906144c9565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061095a61330a61361a565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000613375858561374e565b9150915061338281613794565b509392505050565b61339483836139ed565b6133a1600084848461342d565b610ec4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a9e565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613612576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906134a4903390899088908890600401614798565b6020604051808303816000875af19250505080156134fd575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526134fa918101906147e1565b60015b6135c7573d80801561352b576040519150601f19603f3d011682016040523d82523d6000602084013e613530565b606091505b5080516135bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a9e565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506126ae565b5060016126ae565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614801561368057507f000000000000000000000000000000000000000000000000000000000000000046145b156136aa57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000808251604114156137855760208301516040840151606085015160001a61377987828585613baf565b9450945050505061378d565b506000905060025b9250929050565b60008160048111156137a8576137a86147fe565b14156137b15750565b60018160048111156137c5576137c56147fe565b141561382d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a9e565b6002816004811115613841576138416147fe565b14156138a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a9e565b60038160048111156138bd576138bd6147fe565b141561394b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b600481600481111561395f5761395f6147fe565b1415612536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b73ffffffffffffffffffffffffffffffffffffffff8216613a6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a9e565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615613af6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a9e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290613b2c9084906144c9565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613be65750600090506003613cbe565b8460ff16601b14158015613bfe57508460ff16601c14155b15613c0f5750600090506004613cbe565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613c63573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116613cb757600060019250925050613cbe565b9150600090505b94509492505050565b828054613cd390614446565b90600052602060002090601f016020900481019282613cf55760008555613d59565b82601f10613d2c578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613d59565b82800160010185558215613d59579182015b82811115613d59578235825591602001919060010190613d3e565b50613d65929150613d69565b5090565b5b80821115613d655760008155600101613d6a565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461253657600080fd5b600060208284031215613dbe57600080fd5b8135613dc981613d7e565b9392505050565b60005b83811015613deb578181015183820152602001613dd3565b83811115611f565750506000910152565b60008151808452613e14816020860160208601613dd0565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000613dc96020830184613dfc565b600060208284031215613e6b57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613ee857613ee8613e72565b604052919050565b600067ffffffffffffffff831115613f0a57613f0a613e72565b613f3b60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613ea1565b9050828152838383011115613f4f57600080fd5b828260208301376000602084830101529392505050565b600082601f830112613f7757600080fd5b613dc983833560208501613ef0565b600080600060608486031215613f9b57600080fd5b8335925060208401359150604084013567ffffffffffffffff811115613fc057600080fd5b613fcc86828701613f66565b9150509250925092565b803573ffffffffffffffffffffffffffffffffffffffff81168114613ffa57600080fd5b919050565b6000806040838503121561401257600080fd5b61401b83613fd6565b946020939093013593505050565b60008083601f84011261403b57600080fd5b50813567ffffffffffffffff81111561405357600080fd5b6020830191508360208260051b850101111561378d57600080fd5b6000806020838503121561408157600080fd5b823567ffffffffffffffff81111561409857600080fd5b6140a485828601614029565b90969095509350505050565b600080602083850312156140c357600080fd5b823567ffffffffffffffff808211156140db57600080fd5b818501915085601f8301126140ef57600080fd5b8135818111156140fe57600080fd5b86602082850101111561411057600080fd5b60209290920196919550909350505050565b600082601f83011261413357600080fd5b8135602067ffffffffffffffff82111561414f5761414f613e72565b8160051b61415e828201613ea1565b928352848101820192828101908785111561417857600080fd5b83870192505b848310156141975782358252918301919083019061417e565b979650505050505050565b600080604083850312156141b557600080fd5b82359150602083013567ffffffffffffffff8111156141d357600080fd5b6141df85828601614122565b9150509250929050565b6000806000606084860312156141fe57600080fd5b61420784613fd6565b925061421560208501613fd6565b9150604084013590509250925092565b60008060006060848603121561423a57600080fd5b61424384613fd6565b925061425160208501613fd6565b9150604084013567ffffffffffffffff81111561426d57600080fd5b613fcc86828701614122565b60006020828403121561428b57600080fd5b613dc982613fd6565b6000602082840312156142a657600080fd5b813567ffffffffffffffff8111156142bd57600080fd5b8201601f810184136142ce57600080fd5b6126ae84823560208401613ef0565b600080600080604085870312156142f357600080fd5b843567ffffffffffffffff8082111561430b57600080fd5b61431788838901614029565b9096509450602087013591508082111561433057600080fd5b5061433d87828801614029565b95989497509550505050565b801515811461253657600080fd5b6000806040838503121561436a57600080fd5b61437383613fd6565b9150602083013561438381614349565b809150509250929050565b600080600080608085870312156143a457600080fd5b6143ad85613fd6565b93506143bb60208601613fd6565b925060408501359150606085013567ffffffffffffffff8111156143de57600080fd5b6143ea87828801613f66565b91505092959194509250565b60006020828403121561440857600080fd5b8135613dc981614349565b6000806040838503121561442657600080fd5b61442f83613fd6565b915061443d60208401613fd6565b90509250929050565b600181811c9082168061445a57607f821691505b60208210811415614494577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156144dc576144dc61449a565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261451f5761451f6144e1565b500690565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156145565761455661449a565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008161459b5761459b61449a565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b6040815260006145d46040830185613dfc565b90508260208301529392505050565b600081516145f5818560208601613dd0565b9290920192915050565b600080845481600182811c91508083168061461b57607f831692505b6020808410821415614654577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156146685760018114614697576146c4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506146c4565b60008b81526020902060005b868110156146bc5781548b8201529085019083016146a3565b505084890196505b5050505050506147006146d782866145e3565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006020828403121561471b57600080fd5b5051919050565b60006020828403121561473457600080fd5b8151613dc981614349565b6000806040838503121561475257600080fd5b825161475d81614349565b6020939093015192949293505050565b60008282101561477f5761477f61449a565b500390565b600082614793576147936144e1565b500490565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526147d76080830184613dfc565b9695505050505050565b6000602082840312156147f357600080fd5b8151613dc981613d7e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220198139d1698f4eb2beb4e8847f60690d9f01311432a206ebaabdbf4bad593e5364736f6c634300080c00330000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990900000000000000000000000000000000000000000000000000000000000001e9ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000008c241f1d51307c25a33e6951c7e8e3a3536597da0000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000001f5361746f7368692049736c616e6420436974697a656e73686970204e46547300000000000000000000000000000000000000000000000000000000000000000443545a4e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d62546b4558574c42444b527a5657475778313943746e6d72574870733369614b337137416162636d796e33612f000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5a54456341586a6a423263487467483446483339656d525a547275545043356264715567556d767963697733000000000000000000000000000000000000000000000000000000000000000000000000000000000000013100000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061034c5760003560e01c80635f11fd03116101bd578063b88d4fde116100f9578063e0c86289116100a2578063eac449d91161007c578063eac449d914610817578063f2fde38b1461082a578063faa982541461083d578063fe4602011461087357600080fd5b8063e0c86289146107a6578063e0eb4261146107ae578063e985e9c5146107ce57600080fd5b8063c87b56dd116100d3578063c87b56dd14610777578063cf1c316a1461078a578063d5abeb011461079d57600080fd5b8063b88d4fde1461072e578063b918161114610741578063c4e370951461076457600080fd5b80637d9c225d1161016657806395d89b411161014057806395d89b41146106d457806399456dac146106dc5780639a8a059214610715578063a22cb4651461071b57600080fd5b80637d9c225d14610690578063834fb0d5146106a35780638da5cb5b146106b657600080fd5b80636c0360eb116101975780636c0360eb1461066d57806370a0823114610675578063715018a61461068857600080fd5b80635f11fd03146106345780636352211e146106475780636673c4c21461065a57600080fd5b80631fe543e31161028c57806342842e0e11610235578063487112731161020f57806348711273146105cb57806355f804b3146105d357806357970e93146105e6578063582abd121461060d57600080fd5b806342842e0e1461059257806342966c68146105a5578063485d7d94146105b857600080fd5b8063336ccba511610266578063336ccba51461054a57806338aa38151461056c57806338e74feb1461057f57600080fd5b80631fe543e31461051757806323b872dd1461052a57806331b54a151461053d57600080fd5b80630a009097116102f95780630f7ee1ec116102d35780630f7ee1ec146104ba57806317428b4e146104e857806318160ddd146104fb5780631de813231461050457600080fd5b80630a009097146104005780630a2ae209146104275780630c9490431461042f57600080fd5b8063081812fc1161032a578063081812fc146103a057806308dc9f42146103d8578063095ea7b3146103ed57600080fd5b806301ffc9a71461035157806302fb0c5e1461037957806306fdde031461038b575b600080fd5b61036461035f366004613dac565b61087b565b60405190151581526020015b60405180910390f35b60165461036490610100900460ff1681565b610393610960565b6040516103709190613e46565b6103b36103ae366004613e59565b6109f2565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610370565b6103eb6103e6366004613f86565b610a26565b005b6103eb6103fb366004613fff565b610d3c565b6103b37f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990981565b6103eb610ec9565b600a54600b54600c54600d54600e54600f546010546104689667ffffffffffffffff16959461ffff16939263ffffffff90811692911687565b6040805167ffffffffffffffff9098168852602088019690965261ffff90941694860194909452606085019190915263ffffffff908116608085015260a08401929092521660c082015260e001610370565b6104da6104c8366004613e59565b60076020526000908152604090205481565b604051908152602001610370565b6103646104f636600461406e565b610efe565b6104da60135481565b6103eb6105123660046140b0565b610fdb565b6103eb6105253660046141a2565b610fef565b6103eb6105383660046141e9565b6110aa565b6016546103649060ff1681565b610364610558366004613e59565b600090815260076020526040902054151590565b6103eb61057a366004614225565b61114c565b61036461058d366004613e59565b611196565b6103eb6105a03660046141e9565b611273565b6103eb6105b3366004613e59565b61128e565b6103eb6105c6366004614279565b6113fb565b610364611598565b6103eb6105e13660046140b0565b61168a565b6103b37f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca81565b6103b37f0000000000000000000000008c241f1d51307c25a33e6951c7e8e3a3536597da81565b6103eb610642366004614294565b61170b565b6103b3610655366004613e59565b61174f565b6103646106683660046142dd565b6117db565b610393611a06565b6104da610683366004614279565b611a94565b6103eb611b62565b61036461069e366004613e59565b611b76565b6103646106b1366004614279565b611cee565b60085473ffffffffffffffffffffffffffffffffffffffff166103b3565b610393611e9a565b6104da6106ea366004614279565b73ffffffffffffffffffffffffffffffffffffffff1660009081526012602052604090206001015490565b466104da565b6103eb610729366004614357565b611ea9565b6103eb61073c36600461438e565b611eb4565b61036461074f366004614279565b60096020526000908152604090205460ff1681565b6103646107723660046143f6565b611f5c565b610393610785366004613e59565b61200a565b6103eb610798366004614279565b6120f0565b6104da61520881565b6103eb6121ea565b6014546103b39073ffffffffffffffffffffffffffffffffffffffff1681565b6103646107dc366004614413565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b610364610825366004613fff565b612351565b6103eb610838366004614279565b612482565b6104da61084b366004614279565b73ffffffffffffffffffffffffffffffffffffffff1660009081526012602052604090205490565b610393612539565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061090e57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061095a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606000805461096f90614446565b80601f016020809104026020016040519081016040528092919081815260200182805461099b90614446565b80156109e85780601f106109bd576101008083540402835291602001916109e8565b820191906000526020600020905b8154815290600101906020018083116109cb57829003601f168201915b5050505050905090565b60006109fd82612548565b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60008381526007602052604090205483908390839015610aa7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f436f75706f6e3a20616c7265616479207573656400000000000000000000000060448201526064015b60405180910390fd5b610ab3338484846125d3565b610b19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f436f75706f6e3a20496e76616c6964207369676e6174757265000000000000006044820152606401610a9e565b428211610b82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f436f75706f6e3a20696e76616c69642065787069726174696f6e0000000000006044820152606401610a9e565b60026006541415610bef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a9e565b6002600655601654610100900460ff16610c65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f73616c65206d75737420626520636f6e666967757265640000000000000000006044820152606401610a9e565b61520860135410610cd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f436974697a656e736869703a206578636565646564206d617820737570706c796044820152606401610a9e565b600061520887600a60050154610ce891906144c9565b610cf29190614510565b610cfd9060016144c9565b60008881526007602052604081208290556013805492935090610d1f83614524565b9190505550610d2e33826126b6565b505060016006555050505050565b6000610d478261174f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e2e5750610e2e81336107dc565b610eba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610a9e565b610ec483836126d0565b505050565b610ed1612770565b601680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000610f08612770565b6013805483918291600090610f1e9084906144c9565b90915550506013546152081015610f91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f436974697a656e736869703a206578636565646564206d617820737570706c796044820152606401610a9e565b60005b81811015610fd057610fbe33868684818110610fb257610fb261455d565b905060200201356126b6565b80610fc881614524565b915050610f94565b506001949350505050565b610fe3612770565b610ec460118383613cc7565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909161461109c576040517f1cf993f400000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909166024820152604401610a9e565b6110a682826127f1565b5050565b6110b5335b82612816565b611141576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610a9e565b610ec48383836128d5565b805160005b8181101561118f5761117d85858584815181106111705761117061455d565b6020026020010151611273565b8061118781614524565b915050611151565b5050505050565b6000336111a28361174f565b73ffffffffffffffffffffffffffffffffffffffff161461121f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6d757374206265206f776e6572206f6620746f6b656e206964000000000000006044820152606401610a9e565b33600081815260126020908152604091829020859055815192835282018490527f881742cbc8684544a7437dd11356259786adcd4db671a4bceb699ef70a06cb3091015b60405180910390a1506001919050565b610ec483838360405180602001604052806000815250611eb4565b3360009081526009602052604090205460ff16806112df5750336112c760085473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16145b611345576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f7420617574686f72697a65640000000000000000000000000000000000006044820152606401610a9e565b61134e336110af565b6113da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401610a9e565b6113e381612c4f565b601380549060006113f38361458c565b919050555050565b611403612770565b73ffffffffffffffffffffffffffffffffffffffff81166114a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f417574686f72697a61626c653a2052656a6563746564206e756c6c206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b73ffffffffffffffffffffffffffffffffffffffff811633141561154c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f417574686f72697a61626c653a2052656a65637465642073656c662072656d6f60448201527f76650000000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b73ffffffffffffffffffffffffffffffffffffffff16600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b336000908152601260205260408120600101544211611638576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f6d757374207761697420666f72207072696d617279206c6f636b20746f20657860448201527f70697265000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b3360008181526012602090815260408083208381556001019290925590519182527f2a39e84c575c2761919614d5d432da7c4df6951599909bfcba397beefe777d7b910160405180910390a150600190565b611692612770565b60165460ff16156116ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f436974697a656e736869703a207065726d616e656e74207572690000000000006044820152606401610a9e565b610ec460158383613cc7565b611713612770565b7f824645e3984ae8bfe88a8461272153eaef53be5ea9831db3fe59c026b9f41b4b81426040516117449291906145c1565b60405180910390a150565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff168061095a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a9e565b60006117e5612770565b600f54611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f436974697a656e736869703a2072616e646f6d6e657373206e6f74207265616460448201527f79000000000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b8184146118dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f436974697a656e736869703a20756e6d617463686564000000000000000000006044820152606401610a9e565b60138054859182916000906118f39084906144c9565b90915550506013546152081015611966576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f436974697a656e736869703a206578636565646564206d617820737570706c796044820152606401610a9e565b60005b818110156119f95760006152088888848181106119885761198861455d565b90506020020135600a6005015461199f91906144c9565b6119a99190614510565b6119b49060016144c9565b90506119e68686848181106119cb576119cb61455d565b90506020020160208101906119e09190614279565b826126b6565b50806119f181614524565b915050611969565b5060019695505050505050565b60158054611a1390614446565b80601f0160208091040260200160405190810160405280929190818152602001828054611a3f90614446565b8015611a8c5780601f10611a6157610100808354040283529160200191611a8c565b820191906000526020600020905b815481529060010190602001808311611a6f57829003601f168201915b505050505081565b600073ffffffffffffffffffffffffffffffffffffffff8216611b39576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610a9e565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b611b6a612770565b611b746000612d1c565b565b33600090815260126020526040812054611bec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6d757374207365742061207072696d617279206964656e7469747900000000006044820152606401610a9e565b6000611bf883426144c9565b336000908152601260205260409020600101549091508111611c9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f6d757374206e6f742073686f7274656e206578697374696e67206c6f636b206460448201527f75726174696f6e000000000000000000000000000000000000000000000000006064820152608401610a9e565b3360008181526012602090815260409182902060010184905590519182527f2a39e84c575c2761919614d5d432da7c4df6951599909bfcba397beefe777d7b910160405180910390a150600192915050565b3360009081526009602052604081205460ff1680611d3f575033611d2760085473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16145b611da5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f7420617574686f72697a65640000000000000000000000000000000000006044820152606401610a9e565b73ffffffffffffffffffffffffffffffffffffffff8216611e22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6d757374206e6f7420626520746865207a65726f2061646472657373000000006044820152606401610a9e565b601480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155604080519182524260208301527faf170a2161e9179a6d082a6d01b727e91308b1b890768aabd6e208e479f129039101611263565b60606001805461096f90614446565b6110a6338383612d93565b611ebe3383612816565b611f4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610a9e565b611f5684848484612ec1565b50505050565b6000611f66612770565b600f54611fcf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f72616e646f6d6e657373206e6f742072656164790000000000000000000000006044820152606401610a9e565b5060168054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055600190565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff166120be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a9e565b60156120c983612f64565b6040516020016120da9291906145ff565b6040516020818303038152906040529050919050565b6120f8612770565b73ffffffffffffffffffffffffffffffffffffffff811661219b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f417574686f72697a61626c653a2052656a6563746564206e756c6c206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b73ffffffffffffffffffffffffffffffffffffffff16600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6121f2612770565b600f541561225c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f436974697a656e736869703a2072616e646f6d6e657373207265706c617920006044820152606401610a9e565b600d54600a54600c54600e546010546040517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481019590955267ffffffffffffffff909316602485015261ffff909116604484015263ffffffff90811660648401521660848201527f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff1690635d3b1d309060a4016020604051808303816000875af1158015612328573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061234c9190614709565b600b55565b3360009081526009602052604081205460ff16806123a257503361238a60085473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16145b612408576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f7420617574686f72697a65640000000000000000000000000000000000006044820152606401610a9e565b60006124138361174f565b9050612420818585613096565b6040805173ffffffffffffffffffffffffffffffffffffffff8084168252861660208201529081018490527f1b0d5fb22a7bd6488427342953b1f43743eda17130144de1ea68a9058355d3fb9060600160405180910390a15060019392505050565b61248a612770565b73ffffffffffffffffffffffffffffffffffffffff811661252d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a9e565b61253681612d1c565b50565b60606011805461096f90614446565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16612536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a9e565b604080517f0d4a9bc6dd0ff3e07f3d41b32097a5bc6b0c3d59b2d79e485b8eccd59ace020c602082015273ffffffffffffffffffffffffffffffffffffffff861691810191909152606081018490526080810183905260009081906126509060a001604051602081830303815290604052805190602001206132fd565b90507f0000000000000000000000008c241f1d51307c25a33e6951c7e8e3a3536597da73ffffffffffffffffffffffffffffffffffffffff166126938285613366565b73ffffffffffffffffffffffffffffffffffffffff16149150505b949350505050565b6110a682826040518060200160405280600081525061338a565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061272a8261174f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60085473ffffffffffffffffffffffffffffffffffffffff163314611b74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9e565b806000815181106128045761280461455d565b6020908102919091010151600f555050565b6000806128228361174f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612890575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b806126ae57508373ffffffffffffffffffffffffffffffffffffffff166128b6846109f2565b73ffffffffffffffffffffffffffffffffffffffff1614949350505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526009602052604090205460ff166129b75773ffffffffffffffffffffffffffffffffffffffff83166000908152601260205260409020548114156129b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f6d757374207265766f6b6520746f6b656e2069642066726f6d207072696d617260448201527f79206964656e74697479000000000000000000000000000000000000000000006064820152608401610a9e565b60145473ffffffffffffffffffffffffffffffffffffffff1615612c44576014546040517fda33f0ff00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301529091169063da33f0ff90602401602060405180830381865afa158015612a45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a699190614722565b15612c44576014546040517f10da624200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301523060248301526044820184905260009283929116906310da6242906064016040805180830381865afa158015612aee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b12919061473f565b9150915081612ba3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f746f6b656e207472616e736665722072657175657374206d757374206265206160448201527f7070726f766564206279207472757374656573000000000000000000000000006064820152608401610a9e565b6014546040517f7f4f2e9f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301526024820184905290911690637f4f2e9f906044016020604051808303816000875af1158015612c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c409190614722565b5050505b610ec4838383613096565b6000612c5a8261174f565b9050612c676000836126d0565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290612c9d90849061476d565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a9e565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ecc8484846128d5565b612ed88484848461342d565b611f56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a9e565b606081612fa457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612fce5780612fb881614524565b9150612fc79050600a83614784565b9150612fa8565b60008167ffffffffffffffff811115612fe957612fe9613e72565b6040519080825280601f01601f191660200182016040528015613013576020820181803683370190505b5090505b84156126ae5761302860018361476d565b9150613035600a86614510565b6130409060306144c9565b60f81b8183815181106130555761305561455d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061308f600a86614784565b9450613017565b8273ffffffffffffffffffffffffffffffffffffffff166130b68261174f565b73ffffffffffffffffffffffffffffffffffffffff1614613159576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a9e565b73ffffffffffffffffffffffffffffffffffffffff82166131fb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b6132066000826126d0565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260036020526040812080546001929061323c90849061476d565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906132779084906144c9565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061095a61330a61361a565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000613375858561374e565b9150915061338281613794565b509392505050565b61339483836139ed565b6133a1600084848461342d565b610ec4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a9e565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613612576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906134a4903390899088908890600401614798565b6020604051808303816000875af19250505080156134fd575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526134fa918101906147e1565b60015b6135c7573d80801561352b576040519150601f19603f3d011682016040523d82523d6000602084013e613530565b606091505b5080516135bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a9e565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506126ae565b5060016126ae565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000090c70dc9f3fda4a1d78a2b7d90ca0870883557171614801561368057507f000000000000000000000000000000000000000000000000000000000000000146145b156136aa57507fe0374ff80e8fae8ca7be682ef1d088187bdc73ddca7693a643895cd42f0d0ff490565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f0ad1bf4d55b60300cb2bddfca99b963dbe5aeafd632307b14df77134482450aa828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000808251604114156137855760208301516040840151606085015160001a61377987828585613baf565b9450945050505061378d565b506000905060025b9250929050565b60008160048111156137a8576137a86147fe565b14156137b15750565b60018160048111156137c5576137c56147fe565b141561382d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a9e565b6002816004811115613841576138416147fe565b14156138a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a9e565b60038160048111156138bd576138bd6147fe565b141561394b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b600481600481111561395f5761395f6147fe565b1415612536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610a9e565b73ffffffffffffffffffffffffffffffffffffffff8216613a6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a9e565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615613af6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a9e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290613b2c9084906144c9565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613be65750600090506003613cbe565b8460ff16601b14158015613bfe57508460ff16601c14155b15613c0f5750600090506004613cbe565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613c63573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116613cb757600060019250925050613cbe565b9150600090505b94509492505050565b828054613cd390614446565b90600052602060002090601f016020900481019282613cf55760008555613d59565b82601f10613d2c578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613d59565b82800160010185558215613d59579182015b82811115613d59578235825591602001919060010190613d3e565b50613d65929150613d69565b5090565b5b80821115613d655760008155600101613d6a565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461253657600080fd5b600060208284031215613dbe57600080fd5b8135613dc981613d7e565b9392505050565b60005b83811015613deb578181015183820152602001613dd3565b83811115611f565750506000910152565b60008151808452613e14816020860160208601613dd0565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000613dc96020830184613dfc565b600060208284031215613e6b57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613ee857613ee8613e72565b604052919050565b600067ffffffffffffffff831115613f0a57613f0a613e72565b613f3b60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613ea1565b9050828152838383011115613f4f57600080fd5b828260208301376000602084830101529392505050565b600082601f830112613f7757600080fd5b613dc983833560208501613ef0565b600080600060608486031215613f9b57600080fd5b8335925060208401359150604084013567ffffffffffffffff811115613fc057600080fd5b613fcc86828701613f66565b9150509250925092565b803573ffffffffffffffffffffffffffffffffffffffff81168114613ffa57600080fd5b919050565b6000806040838503121561401257600080fd5b61401b83613fd6565b946020939093013593505050565b60008083601f84011261403b57600080fd5b50813567ffffffffffffffff81111561405357600080fd5b6020830191508360208260051b850101111561378d57600080fd5b6000806020838503121561408157600080fd5b823567ffffffffffffffff81111561409857600080fd5b6140a485828601614029565b90969095509350505050565b600080602083850312156140c357600080fd5b823567ffffffffffffffff808211156140db57600080fd5b818501915085601f8301126140ef57600080fd5b8135818111156140fe57600080fd5b86602082850101111561411057600080fd5b60209290920196919550909350505050565b600082601f83011261413357600080fd5b8135602067ffffffffffffffff82111561414f5761414f613e72565b8160051b61415e828201613ea1565b928352848101820192828101908785111561417857600080fd5b83870192505b848310156141975782358252918301919083019061417e565b979650505050505050565b600080604083850312156141b557600080fd5b82359150602083013567ffffffffffffffff8111156141d357600080fd5b6141df85828601614122565b9150509250929050565b6000806000606084860312156141fe57600080fd5b61420784613fd6565b925061421560208501613fd6565b9150604084013590509250925092565b60008060006060848603121561423a57600080fd5b61424384613fd6565b925061425160208501613fd6565b9150604084013567ffffffffffffffff81111561426d57600080fd5b613fcc86828701614122565b60006020828403121561428b57600080fd5b613dc982613fd6565b6000602082840312156142a657600080fd5b813567ffffffffffffffff8111156142bd57600080fd5b8201601f810184136142ce57600080fd5b6126ae84823560208401613ef0565b600080600080604085870312156142f357600080fd5b843567ffffffffffffffff8082111561430b57600080fd5b61431788838901614029565b9096509450602087013591508082111561433057600080fd5b5061433d87828801614029565b95989497509550505050565b801515811461253657600080fd5b6000806040838503121561436a57600080fd5b61437383613fd6565b9150602083013561438381614349565b809150509250929050565b600080600080608085870312156143a457600080fd5b6143ad85613fd6565b93506143bb60208601613fd6565b925060408501359150606085013567ffffffffffffffff8111156143de57600080fd5b6143ea87828801613f66565b91505092959194509250565b60006020828403121561440857600080fd5b8135613dc981614349565b6000806040838503121561442657600080fd5b61442f83613fd6565b915061443d60208401613fd6565b90509250929050565b600181811c9082168061445a57607f821691505b60208210811415614494577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156144dc576144dc61449a565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261451f5761451f6144e1565b500690565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156145565761455661449a565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008161459b5761459b61449a565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b6040815260006145d46040830185613dfc565b90508260208301529392505050565b600081516145f5818560208601613dd0565b9290920192915050565b600080845481600182811c91508083168061461b57607f831692505b6020808410821415614654577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156146685760018114614697576146c4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506146c4565b60008b81526020902060005b868110156146bc5781548b8201529085019083016146a3565b505084890196505b5050505050506147006146d782866145e3565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006020828403121561471b57600080fd5b5051919050565b60006020828403121561473457600080fd5b8151613dc981614349565b6000806040838503121561475257600080fd5b825161475d81614349565b6020939093015192949293505050565b60008282101561477f5761477f61449a565b500390565b600082614793576147936144e1565b500490565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526147d76080830184613dfc565b9695505050505050565b6000602082840312156147f357600080fd5b8151613dc981613d7e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220198139d1698f4eb2beb4e8847f60690d9f01311432a206ebaabdbf4bad593e5364736f6c634300080c0033

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

0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990900000000000000000000000000000000000000000000000000000000000001e9ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000008c241f1d51307c25a33e6951c7e8e3a3536597da0000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000001f5361746f7368692049736c616e6420436974697a656e73686970204e46547300000000000000000000000000000000000000000000000000000000000000000443545a4e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d62546b4558574c42444b527a5657475778313943746e6d72574870733369614b337137416162636d796e33612f000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5a54456341586a6a423263487467483446483339656d525a547275545043356264715567556d767963697733000000000000000000000000000000000000000000000000000000000000000000000000000000000000013100000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Satoshi Island Citizenship NFTs
Arg [1] : _symbol (string): CTZN
Arg [2] : URI (string): ipfs://QmbTkEXWLBDKRzVWGWx19CtnmrWHps3iaK3q7Aabcmyn3a/
Arg [3] : _TAC (string): ipfs://QmZTEcAXjjB2cHtgH4FH39emRZTruTPC5bdqUgUmvyciw3
Arg [4] : vrfCoordinatorAddress (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [5] : vrfSubscriptionId (uint64): 489
Arg [6] : vrfKeyHash (bytes32): 0xff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92
Arg [7] : linkTokenAddress (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [8] : couponSigner (address): 0x8C241f1D51307c25a33E6951c7e8E3a3536597Da
Arg [9] : couponSignatureVersion (string): 1

-----Encoded View---------------
22 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [4] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001e9
Arg [6] : ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92
Arg [7] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [8] : 0000000000000000000000008c241f1d51307c25a33e6951c7e8e3a3536597da
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [10] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [11] : 5361746f7368692049736c616e6420436974697a656e73686970204e46547300
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [13] : 43545a4e00000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [15] : 697066733a2f2f516d62546b4558574c42444b527a5657475778313943746e6d
Arg [16] : 72574870733369614b337137416162636d796e33612f00000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [18] : 697066733a2f2f516d5a54456341586a6a423263487467483446483339656d52
Arg [19] : 5a547275545043356264715567556d7679636977330000000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [21] : 3100000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.