ETH Price: $3,484.92 (+3.36%)
Gas: 3 Gwei

Token

Loveless City Metropass ($LOVE)
 

Overview

Max Total Supply

3,333 $LOVE

Holders

783

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
resaang.eth
Balance
1 $LOVE
0xb011ab6f339acf72996828e5ceffa4a9556fc78d
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The Loveless City MetroPass is your key to citizenship! Holders will enjoy a variety of utilities and opportunities, including $love.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
LovelessCityMetropass

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.7;

import "./utils/ERC721Enumerable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
                                                                    
/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension and Enumerable extension.
*/
contract LovelessCityMetropass is Context, VRFConsumerBase, ERC721Enumerable, Ownable, ReentrancyGuard  {
  using Strings for uint256;
  using ECDSA for bytes32;

  /// Provenance hash
  string public PROVENANCE_HASH;

  /// Base URI
  string private _metropassBaseURI;

  /// Starting Index
  uint256 public startingIndex;

  /// Max number of NFTs and restrictions per wallet
  uint256 public constant MAX_SUPPLY = 3333;
  uint256 public constant TEAM_TOKENS = 66;
  uint256 private _maxPerWallet;
  uint256 public tokenPrice;

  /// Sale settings
  bool public saleIsActive;
  bool public metadataFinalised;
  bool public revealed;
  bool public whitelistOnly;
  bool private startingIndexSet;

  /// Address to validate WL
  address public signerAddress;
  address public constant TEAM_WALLET = 0xf71a729fd5C58Fa1096CcE576690d0cd4dEB4eb8;

  /// Royalty info
  address public royaltyAddress;
  uint256 private ROYALTY_SIZE = 1000;
  uint256 private ROYALTY_DENOMINATOR = 10000;
  mapping(uint256 => address) private _royaltyReceivers;

  /// Stores the number of minted tokens by user
  mapping(address => uint256) public _mintedByAddress;

  /// VRF chainlink
  bytes32 internal keyHash;
  uint256 internal fee;

  /// Contract Events
  event TokensMinted(address indexed mintedBy,uint256 indexed tokensNumber);
  event StartingIndexFinalized(uint256 indexed startingIndex);
  event BaseUriUpdated(string oldBaseUri,string newBaseUri);

  constructor(address _royaltyAddress, address _signer, string memory _baseURI)
  ERC721("Loveless City Metropass", "$LOVE")
  VRFConsumerBase(
    0xf0d54349aDdcf704F77AE15b96510dEA15cb7952, // VRF Coordinator
    0x514910771AF9Ca656af840dff83E8264EcF986CA // LINK Token
  )
  {
    royaltyAddress = _royaltyAddress;
    signerAddress = _signer;

    keyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;
    fee = 2 * 10 ** 18;

    _metropassBaseURI = _baseURI;

    _maxPerWallet = 1;
    tokenPrice = 0.1111 ether;
    whitelistOnly = true;
  }

  /// Public function to purchase $LOVE tokens
  function purchase(uint256 tokensNumber, bytes calldata signature) public payable {
    require(tokensNumber > 0, "Wrong amount requested");
    require(totalSupply() + tokensNumber <= MAX_SUPPLY, "You tried to mint more than the max allowed");

    if (_msgSender() != owner()) {
      require(saleIsActive, "The mint is not active");
      require(_mintedByAddress[_msgSender()] + tokensNumber <= _maxPerWallet, "You have hit the max tokens per wallet");
      require(tokensNumber * tokenPrice == msg.value, "You have not sent enough ETH");
      _mintedByAddress[_msgSender()] += tokensNumber;
    }

    if (whitelistOnly && _msgSender() != owner()) {
      require(_validateSignature(signature, _msgSender()), "Your wallet is not whitelisted");
    }

    for(uint256 i = 0; i < tokensNumber; i++) {
      _safeMint(_msgSender(), totalSupply());
    }
    emit TokensMinted(_msgSender(), tokensNumber);
  }

  /// Public function to validate whether user witelisted agains contract
  function checkIfWhitelisted(bytes calldata signature, address caller) public view returns (bool) {
      return (_validateSignature(signature, caller));
  }

  /// Internal function to validate whether user witelisted
  function _validateSignature(bytes calldata signature, address caller) internal view returns (bool) {
    bytes32 dataHash = keccak256(abi.encodePacked(caller));
    bytes32 message = ECDSA.toEthSignedMessageHash(dataHash);

    address receivedAddress = ECDSA.recover(message, signature);
    return (receivedAddress != address(0) && receivedAddress == signerAddress);
  }

  /// EIP-2981: NFT Royalty Standard
  function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) {
    uint256 amount = _salePrice * ROYALTY_SIZE / ROYALTY_DENOMINATOR;
    address royaltyReceiver = _royaltyReceivers[_tokenId] != address(0) ? _royaltyReceivers[_tokenId] : royaltyAddress;
    return (royaltyReceiver, amount);
  }

  /// EIP-2981: NFT Royalty Standard
  function addRoyaltyReceiverForTokenId(address receiver, uint256 tokenId) public onlyOwner {
    _royaltyReceivers[tokenId] = receiver;
  }

  /// EIP-2981: NFT Royalty Standard
  function updateSaleStatus(bool status) public onlyOwner {
    saleIsActive = status;
  }

  /// Callback function used by VRF Coordinator
  function fulfillRandomness(bytes32, uint256 randomness) internal override {
      startingIndex = (randomness % MAX_SUPPLY);
      startingIndexSet = true;
      emit StartingIndexFinalized(startingIndex);
  }
  /// Public function that returns token URI
  function tokenURI(uint256 tokenId) external view virtual override returns (string memory) {
    require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
    if (!revealed) return _metropassBaseURI;
    return string(abi.encodePacked(_metropassBaseURI, tokenId.toString(), ".json"));
  }

  /*
  * ADMIN FUNCTIONS
  */
  
  /// Function to mint 66 tokens for the team
  function teamMint() public onlyOwner {
    require(totalSupply() + TEAM_TOKENS <= MAX_SUPPLY, "You tried to mint more than the max allowed");

     for(uint256 i = 0; i < TEAM_TOKENS; i++) {
      _safeMint(TEAM_WALLET, totalSupply());
    }
    emit TokensMinted(TEAM_WALLET, TEAM_TOKENS);
  }

  /// Updates token sale price
  function updateTokenPrice(uint256 _newPrice) public onlyOwner {
    require(!saleIsActive, "Pause sale before price update");
    tokenPrice = _newPrice;
  }

  /// Sets provenance hash
  function setProvenanceHash(string memory provenanceHash) public onlyOwner {
    require(bytes(PROVENANCE_HASH).length == 0, "Provenance hash has already been set");
    PROVENANCE_HASH = provenanceHash;
  }

  /// Sets base URI
  function setBaseURI(string memory newBaseURI) public onlyOwner {
    require(!metadataFinalised, "Metadata already finalised");

    string memory currentURI = _metropassBaseURI;
    _metropassBaseURI = newBaseURI;
    emit BaseUriUpdated(currentURI, newBaseURI);
  }
  
  /// Finalises Starting Index for the collection
  function finalizeStartingIndex() public onlyOwner returns (bytes32 requestId) {
    require(!startingIndexSet, 'startingIndex already set');

    require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK - fill contract with faucet");
    return requestRandomness(keyHash, fee);
  }

  /// Freezes metadata, i.e. makes it impossible to change baseURI
  function finalizeMetadata() public onlyOwner {
    require(!metadataFinalised, "Metadata already finalised");
    metadataFinalised = true;
  }

  /// Reveals metadata, after calling returns not just baseURI, but baseURI + Token ID
  function revealMetadata() public onlyOwner {
    revealed = true;
  }

  /// Updates limit for mint per wallet (by deafult it's 1)
  function updateMaxToMint(uint256 _max) public onlyOwner {
    _maxPerWallet = _max;
  }

  /// Allows to switch between public sale and whitelist-only sale (by default whitelist-only)
  function triggerWhitelist(bool _whitelistOnly) public onlyOwner {
    whitelistOnly = _whitelistOnly;
  }

  /// Withdraws collected ether from the contract to the owner address
  function withdraw() external onlyOwner {
    uint256 balance = address(this).balance;
    payable(owner()).transfer(balance);
  }
}

File 2 of 17 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "./ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account but rips out the core of the gas-wasting processing that comes from OpenZeppelin.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

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

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

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

        uint count;
        for(uint i; i < _owners.length; i++){
            if(owner == _owners[i]){
                if(count == index) return i;
                else count++;
            }
        }

        revert("ERC721Enumerable: owner index out of bounds");
    }
}

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

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {
  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBase expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual;

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

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

  LinkTokenInterface internal immutable LINK;
  address private immutable vrfCoordinator;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 17 : 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 6 of 17 : 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 7 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

    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) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        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.
            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 if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } 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 8 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

library Address {
    function isContract(address account) internal view returns (bool) {
        uint size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;
    
    string private _name;
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

    mapping(uint256 => address) private _tokenApprovals;
    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 (uint) 
    {
        require(owner != address(0), "ERC721: balance query for the zero address");

        uint count;
        for( uint i; i < _owners.length; ++i ){
          if( owner == _owners[i] )
            ++count;
        }
        return count;
    }

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

        emit Transfer(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);
        _owners[tokenId] = address(0);

        emit Transfer(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 of token that is not own"
        );
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 9 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 12 of 17 : 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 13 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 16 of 17 : 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 17 of 17 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oldBaseUri","type":"string"},{"indexed":false,"internalType":"string","name":"newBaseUri","type":"string"}],"name":"BaseUriUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"startingIndex","type":"uint256"}],"name":"StartingIndexFinalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mintedBy","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokensNumber","type":"uint256"}],"name":"TokensMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_WALLET","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_mintedByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"addRoyaltyReceiverForTokenId","outputs":[],"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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"caller","type":"address"}],"name":"checkIfWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalizeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeStartingIndex","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataFinalised","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensNumber","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"bool","name":"_whitelistOnly","type":"bool"}],"name":"triggerWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"updateMaxToMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"updateSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"updateTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526103e8600f556127106010553480156200001d57600080fd5b50604051620037f4380380620037f48339810160408190526200004091620002f3565b604080518082018252601781527f4c6f76656c6573732043697479204d6574726f70617373000000000000000000602080830191825283518085019094526005845264244c4f564560d81b908401527ff0d54349addcf704f77ae15b96510dea15cb795200000000000000000000000060a0527f514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000006080528151919291620000ea9160019162000230565b5080516200010090600290602084019062000230565b5050506200011d62000117620001da60201b60201c565b620001de565b6001600755600e80546001600160a01b0319166001600160a01b0385811691909117909155600d8054600160281b600160c81b03191665010000000000928516929092029190911790557faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445601355671bc16d674ec800006014558051620001ac90600990602084019062000230565b50506001600b55505067018ab4dc828bc000600c55600d805463ff000000191663010000001790556200044a565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200023e90620003f7565b90600052602060002090601f016020900481019282620002625760008555620002ad565b82601f106200027d57805160ff1916838001178555620002ad565b82800160010185558215620002ad579182015b82811115620002ad57825182559160200191906001019062000290565b50620002bb929150620002bf565b5090565b5b80821115620002bb5760008155600101620002c0565b80516001600160a01b0381168114620002ee57600080fd5b919050565b6000806000606084860312156200030957600080fd5b6200031484620002d6565b9250602062000325818601620002d6565b60408601519093506001600160401b03808211156200034357600080fd5b818701915087601f8301126200035857600080fd5b8151818111156200036d576200036d62000434565b604051601f8201601f19908116603f0116810190838211818310171562000398576200039862000434565b816040528281528a86848701011115620003b157600080fd5b600093505b82841015620003d55784840186015181850187015292850192620003b6565b82841115620003e75760008684830101525b8096505050505050509250925092565b600181811c908216806200040c57607f821691505b602082108114156200042e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c6133706200048460003960008181611407015261205b0152600081816112c8015261202c01526133706000f3fe6080604052600436106102935760003560e01c8063715018a61161015a578063b88d4fde116100c1578063e985e9c51161007a578063e985e9c5146107d8578063e9b5b66214610821578063eb8d244414610834578063f2fde38b1461084e578063f4a560a51461086e578063ff1b65561461088357600080fd5b8063b88d4fde14610720578063ba7a86b814610740578063c87b56dd14610755578063cb774d4714610775578063cd6a3ea51461078b578063cdfa59a9146107ab57600080fd5b80639182a9df116101135780639182a9df1461067657806394985ddd1461068b57806395d89b41146106ab578063a22cb465146106c0578063ad2f852a146106e0578063aec06a281461070057600080fd5b8063715018a6146105e457806374df39c9146105f95780637c86bcb81461060e5780637ff9b5961461062d57806381ff4d0b146106435780638da5cb5b1461065857600080fd5b806332cb6b0c116101fe57806355f804b3116101b757806355f804b31461051b578063593472571461053b5780635b7633d01461055b5780636352211e14610584578063676c0d77146105a457806370a08231146105c457600080fd5b806332cb6b0c1461046f5780633ccfd60b1461048557806342842e0e1461049a5780634b4687b5146104ba5780634f6ccce7146104db57806351830227146104fb57600080fd5b80631096952311610250578063109695231461038957806318160ddd146103a957806323b872dd146103c85780632a55205a146103e85780632b905bf6146104275780632f745c591461044f57600080fd5b806301ffc9a71461029857806306fdde03146102cd57806307683295146102ef578063081812fc14610311578063095ea7b3146103495780630a08894914610369575b600080fd5b3480156102a457600080fd5b506102b86102b3366004612d4e565b610898565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e26108c3565b6040516102c4919061300a565b3480156102fb57600080fd5b5061030f61030a366004612e25565b610955565b005b34801561031d57600080fd5b5061033161032c366004612e25565b61098d565b6040516001600160a01b0390911681526020016102c4565b34801561035557600080fd5b5061030f610364366004612cc8565b610a15565b34801561037557600080fd5b5061030f610384366004612cf2565b610b2b565b34801561039557600080fd5b5061030f6103a4366004612ddc565b610b68565b3480156103b557600080fd5b506003545b6040519081526020016102c4565b3480156103d457600080fd5b5061030f6103e3366004612bd9565b610c11565b3480156103f457600080fd5b50610408610403366004612d2c565b610c42565b604080516001600160a01b0390931683526020830191909152016102c4565b34801561043357600080fd5b5061033173f71a729fd5c58fa1096cce576690d0cd4deb4eb881565b34801561045b57600080fd5b506103ba61046a366004612cc8565b610cba565b34801561047b57600080fd5b506103ba610d0581565b34801561049157600080fd5b5061030f610d6d565b3480156104a657600080fd5b5061030f6104b5366004612bd9565b610de2565b3480156104c657600080fd5b50600d546102b8906301000000900460ff1681565b3480156104e757600080fd5b506103ba6104f6366004612e25565b610dfd565b34801561050757600080fd5b50600d546102b89062010000900460ff1681565b34801561052757600080fd5b5061030f610536366004612ddc565b610e6a565b34801561054757600080fd5b5061030f610556366004612cf2565b610fce565b34801561056757600080fd5b50600d54610331906501000000000090046001600160a01b031681565b34801561059057600080fd5b5061033161059f366004612e25565b611016565b3480156105b057600080fd5b5061030f6105bf366004612e25565b6110a2565b3480156105d057600080fd5b506103ba6105df366004612b84565b611124565b3480156105f057600080fd5b5061030f6111f2565b34801561060557600080fd5b506103ba611228565b34801561061a57600080fd5b50600d546102b890610100900460ff1681565b34801561063957600080fd5b506103ba600c5481565b34801561064f57600080fd5b506103ba604281565b34801561066457600080fd5b506006546001600160a01b0316610331565b34801561068257600080fd5b5061030f6113bf565b34801561069757600080fd5b5061030f6106a6366004612d2c565b6113fc565b3480156106b757600080fd5b506102e261147e565b3480156106cc57600080fd5b5061030f6106db366004612c91565b61148d565b3480156106ec57600080fd5b50600e54610331906001600160a01b031681565b34801561070c57600080fd5b506102b861071b366004612d88565b611552565b34801561072c57600080fd5b5061030f61073b366004612c15565b611567565b34801561074c57600080fd5b5061030f61159f565b34801561076157600080fd5b506102e2610770366004612e25565b611688565b34801561078157600080fd5b506103ba600a5481565b34801561079757600080fd5b5061030f6107a6366004612cc8565b6117cb565b3480156107b757600080fd5b506103ba6107c6366004612b84565b60126020526000908152604090205481565b3480156107e457600080fd5b506102b86107f3366004612ba6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61030f61082f366004612e57565b611823565b34801561084057600080fd5b50600d546102b89060ff1681565b34801561085a57600080fd5b5061030f610869366004612b84565b611ad6565b34801561087a57600080fd5b5061030f611b71565b34801561088f57600080fd5b506102e2611c04565b60006001600160e01b0319821663780e9d6360e01b14806108bd57506108bd82611c92565b92915050565b6060600180546108d29061323e565b80601f01602080910402602001604051908101604052809291908181526020018280546108fe9061323e565b801561094b5780601f106109205761010080835404028352916020019161094b565b820191906000526020600020905b81548152906001019060200180831161092e57829003601f168201915b5050505050905090565b6006546001600160a01b031633146109885760405162461bcd60e51b815260040161097f9061312a565b60405180910390fd5b600b55565b600061099882611ce2565b6109f95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161097f565b506000908152600460205260409020546001600160a01b031690565b6000610a2082611016565b9050806001600160a01b0316836001600160a01b03161415610a8e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161097f565b336001600160a01b0382161480610aaa5750610aaa81336107f3565b610b1c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161097f565b610b268383611d2c565b505050565b6006546001600160a01b03163314610b555760405162461bcd60e51b815260040161097f9061312a565b600d805460ff1916911515919091179055565b6006546001600160a01b03163314610b925760405162461bcd60e51b815260040161097f9061312a565b60088054610b9f9061323e565b159050610bfa5760405162461bcd60e51b8152602060048201526024808201527f50726f76656e616e636520686173682068617320616c7265616479206265656e604482015263081cd95d60e21b606482015260840161097f565b8051610c0d906008906020840190612a20565b5050565b610c1b3382611d9a565b610c375760405162461bcd60e51b815260040161097f9061315f565b610b26838383611e80565b6000806000601054600f5485610c5891906131dc565b610c6291906131c8565b600086815260116020526040812054919250906001600160a01b0316610c9357600e546001600160a01b0316610cac565b6000868152601160205260409020546001600160a01b03165b9350909150505b9250929050565b6000610cc583611124565b8210610ce35760405162461bcd60e51b815260040161097f90613042565b6000805b600354811015610d545760038181548110610d0457610d046132ea565b6000918252602090912001546001600160a01b0386811691161415610d425783821415610d345791506108bd9050565b81610d3e81613279565b9250505b80610d4c81613279565b915050610ce7565b5060405162461bcd60e51b815260040161097f90613042565b6006546001600160a01b03163314610d975760405162461bcd60e51b815260040161097f9061312a565b47610daa6006546001600160a01b031690565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015610c0d573d6000803e3d6000fd5b610b2683838360405180602001604052806000815250611567565b6003546000908210610e665760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161097f565b5090565b6006546001600160a01b03163314610e945760405162461bcd60e51b815260040161097f9061312a565b600d54610100900460ff1615610eec5760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c69736564000000000000604482015260640161097f565b600060098054610efb9061323e565b80601f0160208091040260200160405190810160405280929190818152602001828054610f279061323e565b8015610f745780601f10610f4957610100808354040283529160200191610f74565b820191906000526020600020905b815481529060010190602001808311610f5757829003601f168201915b50508551939450610f9093600993506020870192509050612a20565b507f99562a81a2bc5868cd8c30b7b2964f5e52ec358ace402063ecd18a505f5d08008183604051610fc292919061301d565b60405180910390a15050565b6006546001600160a01b03163314610ff85760405162461bcd60e51b815260040161097f9061312a565b600d805491151563010000000263ff00000019909216919091179055565b6000806003838154811061102c5761102c6132ea565b6000918252602090912001546001600160a01b03169050806108bd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161097f565b6006546001600160a01b031633146110cc5760405162461bcd60e51b815260040161097f9061312a565b600d5460ff161561111f5760405162461bcd60e51b815260206004820152601e60248201527f50617573652073616c65206265666f7265207072696365207570646174650000604482015260640161097f565b600c55565b60006001600160a01b03821661118f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161097f565b6000805b6003548110156111eb57600381815481106111b0576111b06132ea565b6000918252602090912001546001600160a01b03858116911614156111db576111d882613279565b91505b6111e481613279565b9050611193565b5092915050565b6006546001600160a01b0316331461121c5760405162461bcd60e51b815260040161097f9061312a565b6112266000611fd6565b565b6006546000906001600160a01b031633146112555760405162461bcd60e51b815260040161097f9061312a565b600d54640100000000900460ff16156112b05760405162461bcd60e51b815260206004820152601960248201527f7374617274696e67496e64657820616c72656164792073657400000000000000604482015260640161097f565b6014546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561131257600080fd5b505afa158015611326573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134a9190612e3e565b10156113ac5760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b606482015260840161097f565b6113ba601354601454612028565b905090565b6006546001600160a01b031633146113e95760405162461bcd60e51b815260040161097f9061312a565b600d805462ff0000191662010000179055565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114745760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015260640161097f565b610c0d82826121ae565b6060600280546108d29061323e565b6001600160a01b0382163314156114e65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161097f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061155f848484612201565b949350505050565b6115713383611d9a565b61158d5760405162461bcd60e51b815260040161097f9061315f565b611599848484846122fe565b50505050565b6006546001600160a01b031633146115c95760405162461bcd60e51b815260040161097f9061312a565b610d0560426115d760035490565b6115e191906131b0565b11156115ff5760405162461bcd60e51b815260040161097f906130df565b60005b60428110156116435761163173f71a729fd5c58fa1096cce576690d0cd4deb4eb861162c60035490565b612331565b8061163b81613279565b915050611602565b5060405160429073f71a729fd5c58fa1096cce576690d0cd4deb4eb8907f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427390600090a3565b606061169382611ce2565b6116f75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161097f565b600d5462010000900460ff1661179957600980546117149061323e565b80601f01602080910402602001604051908101604052809291908181526020018280546117409061323e565b801561178d5780601f106117625761010080835404028352916020019161178d565b820191906000526020600020905b81548152906001019060200180831161177057829003601f168201915b50505050509050919050565b60096117a48361234b565b6040516020016117b5929190612eeb565b6040516020818303038152906040529050919050565b6006546001600160a01b031633146117f55760405162461bcd60e51b815260040161097f9061312a565b600090815260116020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6000831161186c5760405162461bcd60e51b815260206004820152601660248201527515dc9bdb99c8185b5bdd5b9d081c995c5d595cdd195960521b604482015260640161097f565b610d058361187960035490565b61188391906131b0565b11156118a15760405162461bcd60e51b815260040161097f906130df565b6006546001600160a01b031633146119fa57600d5460ff166118fe5760405162461bcd60e51b8152602060048201526016602482015275546865206d696e74206973206e6f742061637469766560501b604482015260640161097f565b600b543360009081526012602052604090205461191c9085906131b0565b11156119795760405162461bcd60e51b815260206004820152602660248201527f596f7520686176652068697420746865206d617820746f6b656e7320706572206044820152651dd85b1b195d60d21b606482015260840161097f565b34600c548461198891906131dc565b146119d55760405162461bcd60e51b815260206004820152601c60248201527f596f752068617665206e6f742073656e7420656e6f7567682045544800000000604482015260640161097f565b33600090815260126020526040812080548592906119f49084906131b0565b90915550505b600d546301000000900460ff168015611a1e57506006546001600160a01b03163314155b15611a7a57611a2e828233612201565b611a7a5760405162461bcd60e51b815260206004820152601e60248201527f596f75722077616c6c6574206973206e6f742077686974656c69737465640000604482015260640161097f565b60005b83811015611aa357611a9133600354612331565b80611a9b81613279565b915050611a7d565b50604051839033907f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427390600090a3505050565b6006546001600160a01b03163314611b005760405162461bcd60e51b815260040161097f9061312a565b6001600160a01b038116611b655760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161097f565b611b6e81611fd6565b50565b6006546001600160a01b03163314611b9b5760405162461bcd60e51b815260040161097f9061312a565b600d54610100900460ff1615611bf35760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c69736564000000000000604482015260640161097f565b600d805461ff001916610100179055565b60088054611c119061323e565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3d9061323e565b8015611c8a5780601f10611c5f57610100808354040283529160200191611c8a565b820191906000526020600020905b815481529060010190602001808311611c6d57829003601f168201915b505050505081565b60006001600160e01b031982166380ac58cd60e01b1480611cc357506001600160e01b03198216635b5e139f60e01b145b806108bd57506301ffc9a760e01b6001600160e01b03198316146108bd565b600354600090821080156108bd575060006001600160a01b031660038381548110611d0f57611d0f6132ea565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d6182611016565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611da582611ce2565b611e065760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161097f565b6000611e1183611016565b9050806001600160a01b0316846001600160a01b03161480611e4c5750836001600160a01b0316611e418461098d565b6001600160a01b0316145b8061155f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661155f565b826001600160a01b0316611e9382611016565b6001600160a01b031614611efb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161097f565b6001600160a01b038216611f5d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161097f565b611f68600082611d2c565b8160038281548110611f7c57611f7c6132ea565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612098929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016120c593929190612fe3565b602060405180830381600087803b1580156120df57600080fd5b505af11580156120f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121179190612d0f565b5060008381526020818152604080832054815180840188905280830185905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120868452929091526121719060016131b0565b600085815260208181526040918290209290925580518083018790528082018490528151808203830181526060909101909152805191012061155f565b6121ba610d0582613294565b600a819055600d805464ff0000000019166401000000001790556040517fb4c3e909614f71d1da833a0978ffd333d79402c765cd011e506630c3fe1001f890600090a25050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006054840152607080840182905284518085039091018152609090930190935281519101206000919060006122c38288888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061244992505050565b90506001600160a01b038116158015906122f35750600d546001600160a01b038281166501000000000090920416145b979650505050505050565b612309848484611e80565b6123158484848461246d565b6115995760405162461bcd60e51b815260040161097f9061308d565b610c0d828260405180602001604052806000815250612577565b60608161236f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612399578061238381613279565b91506123929050600a836131c8565b9150612373565b60008167ffffffffffffffff8111156123b4576123b4613300565b6040519080825280601f01601f1916602001820160405280156123de576020820181803683370190505b5090505b841561155f576123f36001836131fb565b9150612400600a86613294565b61240b9060306131b0565b60f81b818381518110612420576124206132ea565b60200101906001600160f81b031916908160001a905350612442600a866131c8565b94506123e2565b600080600061245885856125aa565b9150915061246581612617565b509392505050565b60006001600160a01b0384163b1561256f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124b1903390899088908890600401612fa6565b602060405180830381600087803b1580156124cb57600080fd5b505af19250505080156124fb575060408051601f3d908101601f191682019092526124f891810190612d6b565b60015b612555573d808015612529576040519150601f19603f3d011682016040523d82523d6000602084013e61252e565b606091505b50805161254d5760405162461bcd60e51b815260040161097f9061308d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061155f565b50600161155f565b61258183836127d2565b61258e600084848461246d565b610b265760405162461bcd60e51b815260040161097f9061308d565b6000808251604114156125e15760208301516040840151606085015160001a6125d5878285856128fa565b94509450505050610cb3565b82516040141561260b57602083015160408401516126008683836129e7565b935093505050610cb3565b50600090506002610cb3565b600081600481111561262b5761262b6132d4565b14156126345750565b6001816004811115612648576126486132d4565b14156126965760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161097f565b60028160048111156126aa576126aa6132d4565b14156126f85760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161097f565b600381600481111561270c5761270c6132d4565b14156127655760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161097f565b6004816004811115612779576127796132d4565b1415611b6e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161097f565b6001600160a01b0382166128285760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161097f565b61283181611ce2565b1561287e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161097f565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561293157506000905060036129de565b8460ff16601b1415801561294957508460ff16601c14155b1561295a57506000905060046129de565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129ae573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166129d7576000600192509250506129de565b9150600090505b94509492505050565b6000806001600160ff1b03831681612a0460ff86901c601b6131b0565b9050612a12878288856128fa565b935093505050935093915050565b828054612a2c9061323e565b90600052602060002090601f016020900481019282612a4e5760008555612a94565b82601f10612a6757805160ff1916838001178555612a94565b82800160010185558215612a94579182015b82811115612a94578251825591602001919060010190612a79565b50610e669291505b80821115610e665760008155600101612a9c565b600067ffffffffffffffff80841115612acb57612acb613300565b604051601f8501601f19908116603f01168101908282118183101715612af357612af3613300565b81604052809350858152868686011115612b0c57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612b3d57600080fd5b919050565b60008083601f840112612b5457600080fd5b50813567ffffffffffffffff811115612b6c57600080fd5b602083019150836020828501011115610cb357600080fd5b600060208284031215612b9657600080fd5b612b9f82612b26565b9392505050565b60008060408385031215612bb957600080fd5b612bc283612b26565b9150612bd060208401612b26565b90509250929050565b600080600060608486031215612bee57600080fd5b612bf784612b26565b9250612c0560208501612b26565b9150604084013590509250925092565b60008060008060808587031215612c2b57600080fd5b612c3485612b26565b9350612c4260208601612b26565b925060408501359150606085013567ffffffffffffffff811115612c6557600080fd5b8501601f81018713612c7657600080fd5b612c8587823560208401612ab0565b91505092959194509250565b60008060408385031215612ca457600080fd5b612cad83612b26565b91506020830135612cbd81613316565b809150509250929050565b60008060408385031215612cdb57600080fd5b612ce483612b26565b946020939093013593505050565b600060208284031215612d0457600080fd5b8135612b9f81613316565b600060208284031215612d2157600080fd5b8151612b9f81613316565b60008060408385031215612d3f57600080fd5b50508035926020909101359150565b600060208284031215612d6057600080fd5b8135612b9f81613324565b600060208284031215612d7d57600080fd5b8151612b9f81613324565b600080600060408486031215612d9d57600080fd5b833567ffffffffffffffff811115612db457600080fd5b612dc086828701612b42565b9094509250612dd3905060208501612b26565b90509250925092565b600060208284031215612dee57600080fd5b813567ffffffffffffffff811115612e0557600080fd5b8201601f81018413612e1657600080fd5b61155f84823560208401612ab0565b600060208284031215612e3757600080fd5b5035919050565b600060208284031215612e5057600080fd5b5051919050565b600080600060408486031215612e6c57600080fd5b83359250602084013567ffffffffffffffff811115612e8a57600080fd5b612e9686828701612b42565b9497909650939450505050565b60008151808452612ebb816020860160208601613212565b601f01601f19169290920160200192915050565b60008151612ee1818560208601613212565b9290920192915050565b600080845481600182811c915080831680612f0757607f831692505b6020808410821415612f2757634e487b7160e01b86526022600452602486fd5b818015612f3b5760018114612f4c57612f79565b60ff19861689528489019650612f79565b60008b81526020902060005b86811015612f715781548b820152908501908301612f58565b505084890196505b505050505050612f9d612f8c8286612ecf565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612fd990830184612ea3565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000612f9d6060830184612ea3565b602081526000612b9f6020830184612ea3565b6040815260006130306040830185612ea3565b8281036020840152612f9d8185612ea3565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602b908201527f596f7520747269656420746f206d696e74206d6f7265207468616e207468652060408201526a1b585e08185b1b1bddd95960aa1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156131c3576131c36132a8565b500190565b6000826131d7576131d76132be565b500490565b60008160001904831182151516156131f6576131f66132a8565b500290565b60008282101561320d5761320d6132a8565b500390565b60005b8381101561322d578181015183820152602001613215565b838111156115995750506000910152565b600181811c9082168061325257607f821691505b6020821081141561327357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561328d5761328d6132a8565b5060010190565b6000826132a3576132a36132be565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611b6e57600080fd5b6001600160e01b031981168114611b6e57600080fdfea26469706673582212200bd17178e3cf0b1b357f26adacef416abd4eb3466de2a4e2fc9f8eb733b0d63c64736f6c63430008070033000000000000000000000000f71a729fd5c58fa1096cce576690d0cd4deb4eb80000000000000000000000003f2c152b91d1ca6ab86a94f113e778aa2ee8dffc00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5647736248556747326a47474347445454584d6e74714475555874784a7061675673424239763633636367480000000000000000000000

Deployed Bytecode

0x6080604052600436106102935760003560e01c8063715018a61161015a578063b88d4fde116100c1578063e985e9c51161007a578063e985e9c5146107d8578063e9b5b66214610821578063eb8d244414610834578063f2fde38b1461084e578063f4a560a51461086e578063ff1b65561461088357600080fd5b8063b88d4fde14610720578063ba7a86b814610740578063c87b56dd14610755578063cb774d4714610775578063cd6a3ea51461078b578063cdfa59a9146107ab57600080fd5b80639182a9df116101135780639182a9df1461067657806394985ddd1461068b57806395d89b41146106ab578063a22cb465146106c0578063ad2f852a146106e0578063aec06a281461070057600080fd5b8063715018a6146105e457806374df39c9146105f95780637c86bcb81461060e5780637ff9b5961461062d57806381ff4d0b146106435780638da5cb5b1461065857600080fd5b806332cb6b0c116101fe57806355f804b3116101b757806355f804b31461051b578063593472571461053b5780635b7633d01461055b5780636352211e14610584578063676c0d77146105a457806370a08231146105c457600080fd5b806332cb6b0c1461046f5780633ccfd60b1461048557806342842e0e1461049a5780634b4687b5146104ba5780634f6ccce7146104db57806351830227146104fb57600080fd5b80631096952311610250578063109695231461038957806318160ddd146103a957806323b872dd146103c85780632a55205a146103e85780632b905bf6146104275780632f745c591461044f57600080fd5b806301ffc9a71461029857806306fdde03146102cd57806307683295146102ef578063081812fc14610311578063095ea7b3146103495780630a08894914610369575b600080fd5b3480156102a457600080fd5b506102b86102b3366004612d4e565b610898565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e26108c3565b6040516102c4919061300a565b3480156102fb57600080fd5b5061030f61030a366004612e25565b610955565b005b34801561031d57600080fd5b5061033161032c366004612e25565b61098d565b6040516001600160a01b0390911681526020016102c4565b34801561035557600080fd5b5061030f610364366004612cc8565b610a15565b34801561037557600080fd5b5061030f610384366004612cf2565b610b2b565b34801561039557600080fd5b5061030f6103a4366004612ddc565b610b68565b3480156103b557600080fd5b506003545b6040519081526020016102c4565b3480156103d457600080fd5b5061030f6103e3366004612bd9565b610c11565b3480156103f457600080fd5b50610408610403366004612d2c565b610c42565b604080516001600160a01b0390931683526020830191909152016102c4565b34801561043357600080fd5b5061033173f71a729fd5c58fa1096cce576690d0cd4deb4eb881565b34801561045b57600080fd5b506103ba61046a366004612cc8565b610cba565b34801561047b57600080fd5b506103ba610d0581565b34801561049157600080fd5b5061030f610d6d565b3480156104a657600080fd5b5061030f6104b5366004612bd9565b610de2565b3480156104c657600080fd5b50600d546102b8906301000000900460ff1681565b3480156104e757600080fd5b506103ba6104f6366004612e25565b610dfd565b34801561050757600080fd5b50600d546102b89062010000900460ff1681565b34801561052757600080fd5b5061030f610536366004612ddc565b610e6a565b34801561054757600080fd5b5061030f610556366004612cf2565b610fce565b34801561056757600080fd5b50600d54610331906501000000000090046001600160a01b031681565b34801561059057600080fd5b5061033161059f366004612e25565b611016565b3480156105b057600080fd5b5061030f6105bf366004612e25565b6110a2565b3480156105d057600080fd5b506103ba6105df366004612b84565b611124565b3480156105f057600080fd5b5061030f6111f2565b34801561060557600080fd5b506103ba611228565b34801561061a57600080fd5b50600d546102b890610100900460ff1681565b34801561063957600080fd5b506103ba600c5481565b34801561064f57600080fd5b506103ba604281565b34801561066457600080fd5b506006546001600160a01b0316610331565b34801561068257600080fd5b5061030f6113bf565b34801561069757600080fd5b5061030f6106a6366004612d2c565b6113fc565b3480156106b757600080fd5b506102e261147e565b3480156106cc57600080fd5b5061030f6106db366004612c91565b61148d565b3480156106ec57600080fd5b50600e54610331906001600160a01b031681565b34801561070c57600080fd5b506102b861071b366004612d88565b611552565b34801561072c57600080fd5b5061030f61073b366004612c15565b611567565b34801561074c57600080fd5b5061030f61159f565b34801561076157600080fd5b506102e2610770366004612e25565b611688565b34801561078157600080fd5b506103ba600a5481565b34801561079757600080fd5b5061030f6107a6366004612cc8565b6117cb565b3480156107b757600080fd5b506103ba6107c6366004612b84565b60126020526000908152604090205481565b3480156107e457600080fd5b506102b86107f3366004612ba6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61030f61082f366004612e57565b611823565b34801561084057600080fd5b50600d546102b89060ff1681565b34801561085a57600080fd5b5061030f610869366004612b84565b611ad6565b34801561087a57600080fd5b5061030f611b71565b34801561088f57600080fd5b506102e2611c04565b60006001600160e01b0319821663780e9d6360e01b14806108bd57506108bd82611c92565b92915050565b6060600180546108d29061323e565b80601f01602080910402602001604051908101604052809291908181526020018280546108fe9061323e565b801561094b5780601f106109205761010080835404028352916020019161094b565b820191906000526020600020905b81548152906001019060200180831161092e57829003601f168201915b5050505050905090565b6006546001600160a01b031633146109885760405162461bcd60e51b815260040161097f9061312a565b60405180910390fd5b600b55565b600061099882611ce2565b6109f95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161097f565b506000908152600460205260409020546001600160a01b031690565b6000610a2082611016565b9050806001600160a01b0316836001600160a01b03161415610a8e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161097f565b336001600160a01b0382161480610aaa5750610aaa81336107f3565b610b1c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161097f565b610b268383611d2c565b505050565b6006546001600160a01b03163314610b555760405162461bcd60e51b815260040161097f9061312a565b600d805460ff1916911515919091179055565b6006546001600160a01b03163314610b925760405162461bcd60e51b815260040161097f9061312a565b60088054610b9f9061323e565b159050610bfa5760405162461bcd60e51b8152602060048201526024808201527f50726f76656e616e636520686173682068617320616c7265616479206265656e604482015263081cd95d60e21b606482015260840161097f565b8051610c0d906008906020840190612a20565b5050565b610c1b3382611d9a565b610c375760405162461bcd60e51b815260040161097f9061315f565b610b26838383611e80565b6000806000601054600f5485610c5891906131dc565b610c6291906131c8565b600086815260116020526040812054919250906001600160a01b0316610c9357600e546001600160a01b0316610cac565b6000868152601160205260409020546001600160a01b03165b9350909150505b9250929050565b6000610cc583611124565b8210610ce35760405162461bcd60e51b815260040161097f90613042565b6000805b600354811015610d545760038181548110610d0457610d046132ea565b6000918252602090912001546001600160a01b0386811691161415610d425783821415610d345791506108bd9050565b81610d3e81613279565b9250505b80610d4c81613279565b915050610ce7565b5060405162461bcd60e51b815260040161097f90613042565b6006546001600160a01b03163314610d975760405162461bcd60e51b815260040161097f9061312a565b47610daa6006546001600160a01b031690565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015610c0d573d6000803e3d6000fd5b610b2683838360405180602001604052806000815250611567565b6003546000908210610e665760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161097f565b5090565b6006546001600160a01b03163314610e945760405162461bcd60e51b815260040161097f9061312a565b600d54610100900460ff1615610eec5760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c69736564000000000000604482015260640161097f565b600060098054610efb9061323e565b80601f0160208091040260200160405190810160405280929190818152602001828054610f279061323e565b8015610f745780601f10610f4957610100808354040283529160200191610f74565b820191906000526020600020905b815481529060010190602001808311610f5757829003601f168201915b50508551939450610f9093600993506020870192509050612a20565b507f99562a81a2bc5868cd8c30b7b2964f5e52ec358ace402063ecd18a505f5d08008183604051610fc292919061301d565b60405180910390a15050565b6006546001600160a01b03163314610ff85760405162461bcd60e51b815260040161097f9061312a565b600d805491151563010000000263ff00000019909216919091179055565b6000806003838154811061102c5761102c6132ea565b6000918252602090912001546001600160a01b03169050806108bd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161097f565b6006546001600160a01b031633146110cc5760405162461bcd60e51b815260040161097f9061312a565b600d5460ff161561111f5760405162461bcd60e51b815260206004820152601e60248201527f50617573652073616c65206265666f7265207072696365207570646174650000604482015260640161097f565b600c55565b60006001600160a01b03821661118f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161097f565b6000805b6003548110156111eb57600381815481106111b0576111b06132ea565b6000918252602090912001546001600160a01b03858116911614156111db576111d882613279565b91505b6111e481613279565b9050611193565b5092915050565b6006546001600160a01b0316331461121c5760405162461bcd60e51b815260040161097f9061312a565b6112266000611fd6565b565b6006546000906001600160a01b031633146112555760405162461bcd60e51b815260040161097f9061312a565b600d54640100000000900460ff16156112b05760405162461bcd60e51b815260206004820152601960248201527f7374617274696e67496e64657820616c72656164792073657400000000000000604482015260640161097f565b6014546040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b15801561131257600080fd5b505afa158015611326573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134a9190612e3e565b10156113ac5760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b606482015260840161097f565b6113ba601354601454612028565b905090565b6006546001600160a01b031633146113e95760405162461bcd60e51b815260040161097f9061312a565b600d805462ff0000191662010000179055565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146114745760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604482015260640161097f565b610c0d82826121ae565b6060600280546108d29061323e565b6001600160a01b0382163314156114e65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161097f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061155f848484612201565b949350505050565b6115713383611d9a565b61158d5760405162461bcd60e51b815260040161097f9061315f565b611599848484846122fe565b50505050565b6006546001600160a01b031633146115c95760405162461bcd60e51b815260040161097f9061312a565b610d0560426115d760035490565b6115e191906131b0565b11156115ff5760405162461bcd60e51b815260040161097f906130df565b60005b60428110156116435761163173f71a729fd5c58fa1096cce576690d0cd4deb4eb861162c60035490565b612331565b8061163b81613279565b915050611602565b5060405160429073f71a729fd5c58fa1096cce576690d0cd4deb4eb8907f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427390600090a3565b606061169382611ce2565b6116f75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161097f565b600d5462010000900460ff1661179957600980546117149061323e565b80601f01602080910402602001604051908101604052809291908181526020018280546117409061323e565b801561178d5780601f106117625761010080835404028352916020019161178d565b820191906000526020600020905b81548152906001019060200180831161177057829003601f168201915b50505050509050919050565b60096117a48361234b565b6040516020016117b5929190612eeb565b6040516020818303038152906040529050919050565b6006546001600160a01b031633146117f55760405162461bcd60e51b815260040161097f9061312a565b600090815260116020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6000831161186c5760405162461bcd60e51b815260206004820152601660248201527515dc9bdb99c8185b5bdd5b9d081c995c5d595cdd195960521b604482015260640161097f565b610d058361187960035490565b61188391906131b0565b11156118a15760405162461bcd60e51b815260040161097f906130df565b6006546001600160a01b031633146119fa57600d5460ff166118fe5760405162461bcd60e51b8152602060048201526016602482015275546865206d696e74206973206e6f742061637469766560501b604482015260640161097f565b600b543360009081526012602052604090205461191c9085906131b0565b11156119795760405162461bcd60e51b815260206004820152602660248201527f596f7520686176652068697420746865206d617820746f6b656e7320706572206044820152651dd85b1b195d60d21b606482015260840161097f565b34600c548461198891906131dc565b146119d55760405162461bcd60e51b815260206004820152601c60248201527f596f752068617665206e6f742073656e7420656e6f7567682045544800000000604482015260640161097f565b33600090815260126020526040812080548592906119f49084906131b0565b90915550505b600d546301000000900460ff168015611a1e57506006546001600160a01b03163314155b15611a7a57611a2e828233612201565b611a7a5760405162461bcd60e51b815260206004820152601e60248201527f596f75722077616c6c6574206973206e6f742077686974656c69737465640000604482015260640161097f565b60005b83811015611aa357611a9133600354612331565b80611a9b81613279565b915050611a7d565b50604051839033907f3f2c9d57c068687834f0de942a9babb9e5acab57d516d3480a3c16ee165a427390600090a3505050565b6006546001600160a01b03163314611b005760405162461bcd60e51b815260040161097f9061312a565b6001600160a01b038116611b655760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161097f565b611b6e81611fd6565b50565b6006546001600160a01b03163314611b9b5760405162461bcd60e51b815260040161097f9061312a565b600d54610100900460ff1615611bf35760405162461bcd60e51b815260206004820152601a60248201527f4d6574616461746120616c72656164792066696e616c69736564000000000000604482015260640161097f565b600d805461ff001916610100179055565b60088054611c119061323e565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3d9061323e565b8015611c8a5780601f10611c5f57610100808354040283529160200191611c8a565b820191906000526020600020905b815481529060010190602001808311611c6d57829003601f168201915b505050505081565b60006001600160e01b031982166380ac58cd60e01b1480611cc357506001600160e01b03198216635b5e139f60e01b145b806108bd57506301ffc9a760e01b6001600160e01b03198316146108bd565b600354600090821080156108bd575060006001600160a01b031660038381548110611d0f57611d0f6132ea565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d6182611016565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611da582611ce2565b611e065760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161097f565b6000611e1183611016565b9050806001600160a01b0316846001600160a01b03161480611e4c5750836001600160a01b0316611e418461098d565b6001600160a01b0316145b8061155f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661155f565b826001600160a01b0316611e9382611016565b6001600160a01b031614611efb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161097f565b6001600160a01b038216611f5d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161097f565b611f68600082611d2c565b8160038281548110611f7c57611f7c6132ea565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612098929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016120c593929190612fe3565b602060405180830381600087803b1580156120df57600080fd5b505af11580156120f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121179190612d0f565b5060008381526020818152604080832054815180840188905280830185905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120868452929091526121719060016131b0565b600085815260208181526040918290209290925580518083018790528082018490528151808203830181526060909101909152805191012061155f565b6121ba610d0582613294565b600a819055600d805464ff0000000019166401000000001790556040517fb4c3e909614f71d1da833a0978ffd333d79402c765cd011e506630c3fe1001f890600090a25050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006054840152607080840182905284518085039091018152609090930190935281519101206000919060006122c38288888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061244992505050565b90506001600160a01b038116158015906122f35750600d546001600160a01b038281166501000000000090920416145b979650505050505050565b612309848484611e80565b6123158484848461246d565b6115995760405162461bcd60e51b815260040161097f9061308d565b610c0d828260405180602001604052806000815250612577565b60608161236f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612399578061238381613279565b91506123929050600a836131c8565b9150612373565b60008167ffffffffffffffff8111156123b4576123b4613300565b6040519080825280601f01601f1916602001820160405280156123de576020820181803683370190505b5090505b841561155f576123f36001836131fb565b9150612400600a86613294565b61240b9060306131b0565b60f81b818381518110612420576124206132ea565b60200101906001600160f81b031916908160001a905350612442600a866131c8565b94506123e2565b600080600061245885856125aa565b9150915061246581612617565b509392505050565b60006001600160a01b0384163b1561256f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124b1903390899088908890600401612fa6565b602060405180830381600087803b1580156124cb57600080fd5b505af19250505080156124fb575060408051601f3d908101601f191682019092526124f891810190612d6b565b60015b612555573d808015612529576040519150601f19603f3d011682016040523d82523d6000602084013e61252e565b606091505b50805161254d5760405162461bcd60e51b815260040161097f9061308d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061155f565b50600161155f565b61258183836127d2565b61258e600084848461246d565b610b265760405162461bcd60e51b815260040161097f9061308d565b6000808251604114156125e15760208301516040840151606085015160001a6125d5878285856128fa565b94509450505050610cb3565b82516040141561260b57602083015160408401516126008683836129e7565b935093505050610cb3565b50600090506002610cb3565b600081600481111561262b5761262b6132d4565b14156126345750565b6001816004811115612648576126486132d4565b14156126965760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161097f565b60028160048111156126aa576126aa6132d4565b14156126f85760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161097f565b600381600481111561270c5761270c6132d4565b14156127655760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161097f565b6004816004811115612779576127796132d4565b1415611b6e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161097f565b6001600160a01b0382166128285760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161097f565b61283181611ce2565b1561287e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161097f565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561293157506000905060036129de565b8460ff16601b1415801561294957508460ff16601c14155b1561295a57506000905060046129de565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129ae573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166129d7576000600192509250506129de565b9150600090505b94509492505050565b6000806001600160ff1b03831681612a0460ff86901c601b6131b0565b9050612a12878288856128fa565b935093505050935093915050565b828054612a2c9061323e565b90600052602060002090601f016020900481019282612a4e5760008555612a94565b82601f10612a6757805160ff1916838001178555612a94565b82800160010185558215612a94579182015b82811115612a94578251825591602001919060010190612a79565b50610e669291505b80821115610e665760008155600101612a9c565b600067ffffffffffffffff80841115612acb57612acb613300565b604051601f8501601f19908116603f01168101908282118183101715612af357612af3613300565b81604052809350858152868686011115612b0c57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612b3d57600080fd5b919050565b60008083601f840112612b5457600080fd5b50813567ffffffffffffffff811115612b6c57600080fd5b602083019150836020828501011115610cb357600080fd5b600060208284031215612b9657600080fd5b612b9f82612b26565b9392505050565b60008060408385031215612bb957600080fd5b612bc283612b26565b9150612bd060208401612b26565b90509250929050565b600080600060608486031215612bee57600080fd5b612bf784612b26565b9250612c0560208501612b26565b9150604084013590509250925092565b60008060008060808587031215612c2b57600080fd5b612c3485612b26565b9350612c4260208601612b26565b925060408501359150606085013567ffffffffffffffff811115612c6557600080fd5b8501601f81018713612c7657600080fd5b612c8587823560208401612ab0565b91505092959194509250565b60008060408385031215612ca457600080fd5b612cad83612b26565b91506020830135612cbd81613316565b809150509250929050565b60008060408385031215612cdb57600080fd5b612ce483612b26565b946020939093013593505050565b600060208284031215612d0457600080fd5b8135612b9f81613316565b600060208284031215612d2157600080fd5b8151612b9f81613316565b60008060408385031215612d3f57600080fd5b50508035926020909101359150565b600060208284031215612d6057600080fd5b8135612b9f81613324565b600060208284031215612d7d57600080fd5b8151612b9f81613324565b600080600060408486031215612d9d57600080fd5b833567ffffffffffffffff811115612db457600080fd5b612dc086828701612b42565b9094509250612dd3905060208501612b26565b90509250925092565b600060208284031215612dee57600080fd5b813567ffffffffffffffff811115612e0557600080fd5b8201601f81018413612e1657600080fd5b61155f84823560208401612ab0565b600060208284031215612e3757600080fd5b5035919050565b600060208284031215612e5057600080fd5b5051919050565b600080600060408486031215612e6c57600080fd5b83359250602084013567ffffffffffffffff811115612e8a57600080fd5b612e9686828701612b42565b9497909650939450505050565b60008151808452612ebb816020860160208601613212565b601f01601f19169290920160200192915050565b60008151612ee1818560208601613212565b9290920192915050565b600080845481600182811c915080831680612f0757607f831692505b6020808410821415612f2757634e487b7160e01b86526022600452602486fd5b818015612f3b5760018114612f4c57612f79565b60ff19861689528489019650612f79565b60008b81526020902060005b86811015612f715781548b820152908501908301612f58565b505084890196505b505050505050612f9d612f8c8286612ecf565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612fd990830184612ea3565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000612f9d6060830184612ea3565b602081526000612b9f6020830184612ea3565b6040815260006130306040830185612ea3565b8281036020840152612f9d8185612ea3565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602b908201527f596f7520747269656420746f206d696e74206d6f7265207468616e207468652060408201526a1b585e08185b1b1bddd95960aa1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156131c3576131c36132a8565b500190565b6000826131d7576131d76132be565b500490565b60008160001904831182151516156131f6576131f66132a8565b500290565b60008282101561320d5761320d6132a8565b500390565b60005b8381101561322d578181015183820152602001613215565b838111156115995750506000910152565b600181811c9082168061325257607f821691505b6020821081141561327357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561328d5761328d6132a8565b5060010190565b6000826132a3576132a36132be565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611b6e57600080fd5b6001600160e01b031981168114611b6e57600080fdfea26469706673582212200bd17178e3cf0b1b357f26adacef416abd4eb3466de2a4e2fc9f8eb733b0d63c64736f6c63430008070033

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

000000000000000000000000f71a729fd5c58fa1096cce576690d0cd4deb4eb80000000000000000000000003f2c152b91d1ca6ab86a94f113e778aa2ee8dffc00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5647736248556747326a47474347445454584d6e74714475555874784a7061675673424239763633636367480000000000000000000000

-----Decoded View---------------
Arg [0] : _royaltyAddress (address): 0xf71a729fd5C58Fa1096CcE576690d0cd4dEB4eb8
Arg [1] : _signer (address): 0x3F2C152B91D1CA6Ab86a94f113e778Aa2eE8DFFc
Arg [2] : _baseURI (string): ipfs://QmVGsbHUgG2jGGCGDTTXMntqDuUXtxJpagVsBB9v63ccgH

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000f71a729fd5c58fa1096cce576690d0cd4deb4eb8
Arg [1] : 0000000000000000000000003f2c152b91d1ca6ab86a94f113e778aa2ee8dffc
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [4] : 697066733a2f2f516d5647736248556747326a47474347445454584d6e747144
Arg [5] : 75555874784a7061675673424239763633636367480000000000000000000000


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.