ETH Price: $3,352.73 (-2.41%)

Token

ETHTerrestrials (ETHT)
 

Overview

Max Total Supply

4,269 ETHT

Holders

775

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
manic.depression.eth
Balance
15 ETHT
0x49b9cA9214559E8819fa7889BB2AdC28330d5133
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

EtherTerrestrials otherwise known as ETH Ts are inter-dimensional Extra-Terrestrials who came to Earth’s internet to infuse consciousness into all other pixelated Lifeforms.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
EthTerrestrials

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 2000 runs

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

/// @title  ETHTerrestrials by Kye NFT (ERC721) contract
/// @notice A gas-conscious contract for an entirely "on-chain" NFT implementing a custom commit-reveal scheme (see CRSeeder.sol).
/// @dev Tokens are minted to users immediately, metadata seeds are committed at mint and revealed by subsequent mints.
/// @dev Mint gas savings achieved by utilizing a custom commit-reveal scheme and the ERC721A contract (https://github.com/chiru-labs/ERC721A).
/// @dev Images/metadata stored in two separate descriptor contracts

pragma solidity ^0.8.0;
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "./CRSeeder.sol";

interface GenesisDescriptor {
   function generateTokenURI(uint256 tokenId) external view returns (string memory);

   function getSvg(uint256 tokenId) external view returns (string memory);
}

interface V2Descriptor {
   function generateTokenURI(
      uint256 tokenId,
      uint256 rawSeed,
      uint256 tokenType
   ) external view returns (string memory);

   function processRawSeed(uint256 rawseed) external view returns (uint8[10] memory);

   function getSvgCustomToken(uint256 tokenId) external view returns (string memory);

   function getSvgFromSeed(uint8[10] memory seed) external view returns (string memory);
}

interface ENS_Registrar {
   function setName(string calldata name) external returns (bytes32);
}

contract EthTerrestrials is ERC721A, CommitRevealSeeder, Ownable, ReentrancyGuard, VRFConsumerBase, PaymentSplitter {
   enum TOKENTYPE {
      GENESIS,
      V2ONEOFONE,
      V2COMMON
   }

   //Addresses
   address public address_genesis_descriptor;
   address public address_v2_descriptor;
   address public address_opensea_token;
   address public authorizedMinter;

   //Interfaces
   GenesisDescriptor genesis_descriptor;
   V2Descriptor v2_descriptor;
   IERC1155 OS_token;

   //Integers
   //Token numbering scheme:
   // 1 - 100 Genesis upgraded tokens
   // 101 - 111 - v2 one of ones
   // 112 - end - v2 common
   uint256 public constant genesisSupply = 100;
   uint256 public constant v2supplyMax = 4169;
   uint256 public constant v2oneOfOneCount = 11;
   uint256 public constant maxMintsPerTransaction = 10;

   uint256 private constant oneOfOneStart = genesisSupply + 1; //101
   uint256 private constant oneOfOneEnd = oneOfOneStart + v2oneOfOneCount - 1; //111
   uint256 private constant publicTokenStart = oneOfOneEnd + 1; //112

   uint256 public constant maxTokens = genesisSupply + v2supplyMax; //4269
   uint256 public v2price = 0.14 ether;

   //Booleans
   bool public _UFOhasArrived; //toggles the public mint
   bool public _mothershipHasArrived; //toggles the ability to upgrade genesis tokens
   bool public _contractsealed; //seals contract from changes

   //Map of OSSS tokenIds to genesis tokenIds (out of 100)
   mapping(uint256 => uint256) public genesisTokenOSSStoNewTokenId;

   //Chainlink Config
   bytes32 internal keyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;
   uint256 public VRF_randomness;
   uint256 private fee = 2 ether;
   address public VRF_coordinator_address = 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952;
   address public LINK_address = 0x514910771AF9Ca656af840dff83E8264EcF986CA;

   modifier onlyOwnerWhileUnsealed() {
      require(!_contractsealed && msg.sender == owner(), "Not owner or locked");
      _;
   }

   constructor(address[] memory _payees, uint256[] memory _shares)
      public
      ERC721A("ETHTerrestrials", "ETHT")
      PaymentSplitter(_payees, _shares)
      VRFConsumerBase(VRF_coordinator_address, LINK_address)
   {

   }

   /*
    *   .___  ___.  __  .__   __. .___________. __  .__   __.   _______
    *   |   \/   | |  | |  \ |  | |           ||  | |  \ |  |  /  _____|
    *   |  \  /  | |  | |   \|  | `---|  |----`|  | |   \|  | |  |  __
    *   |  |\/|  | |  | |  . `  |     |  |     |  | |  . `  | |  | |_ |
    *   |  |  |  | |  | |  |\   |     |  |     |  | |  |\   | |  |__| |
    *   |__|  |__| |__| |__| \__|     |__|     |__| |__| \__|  \______|
    */

   /// @notice Callback function for upgrading Genesis tokens (on OpenSea shared storefront contract).
   /// @dev Users must transfer genesis tokens to this contract via safeTransferFrom in order to receive an upgrade
   /// @dev Upgraded genesis tokens are permanently locked; no method exists to remove them.
   function onERC1155Received(
      address operator,
      address from,
      uint256 tokenId,
      uint256 value,
      bytes calldata data
   ) public nonReentrant returns (bytes4) {
      require(_mothershipHasArrived, "Mothership has not arrived, too early to beam up!");
      require(msg.sender == address_opensea_token, "Not the correct token contract");
      require(value == 1, "Quantity error");
      beamUp(tokenId);
      //Issue a free v2 mint if still available
      if (totalSupply() < maxTokens) {
         mintInternal(tx.origin, 1);
      }
      return this.onERC1155Received.selector;
   }

   function beamUp(uint256 tokenId) internal {
      uint256 newTokenId = genesisTokenOSSStoNewTokenId[tokenId];
      require(newTokenId != 0, "Not a valid tokenId");
      genesisTokenOSSStoNewTokenId[tokenId] = 0;

      //Issue the replacement token
      IERC721(address(this)).safeTransferFrom(address(this), tx.origin, newTokenId);
   }

   /// @notice Public mint.
   /// @param quantity, the number of tokens to be purchased.
   function abduct(uint256 quantity) external payable nonReentrant {
      require(totalSupply() + quantity <= maxTokens, "Exceeds Supply");
      require(tx.origin == msg.sender, "No contract minters");
      require(_UFOhasArrived, "UFO hasn't arrived, abductions haven't started yet!");
      require(quantity <= maxMintsPerTransaction);
      require(msg.value == v2price * quantity, "Incorrect ETH sent");
      mintInternal(msg.sender, quantity);
   }

   /// @notice Administrative mint. Allows team to add on a separate mint contract if needed, or mint directly to team.
   /// @param quantity, the number of tokens to be purchased.
   /// @param to, the address to mint to
   function mintAdmin(address to, uint256 quantity) external nonReentrant {
      require(totalSupply() + quantity <= maxTokens, "Exceeds Supply");
      require(msg.sender == authorizedMinter, "Unauthorized");
      mintInternal(to, quantity);
   }

   function mintInternal(address to, uint256 quantity) private {
      _commitTokens(_currentIndex); //commit the tokens for a pseudorandom seed
      _safeMint(to, quantity);
   }

   /*
    *   .______       _______     ___       _______
    *   |   _  \     |   ____|   /   \     |       \
    *   |  |_)  |    |  |__     /  ^  \    |  .--.  |
    *   |      /     |   __|   /  /_\  \   |  |  |  |
    *   |  |\  \----.|  |____ /  _____  \  |  '--'  |
    *   | _| `._____||_______/__/     \__\ |_______/
    */

   /// @notice View a token's tokenURI
   /// @param tokenId, the desired tokenId.
   /// @return a JSON string tokenURI
   function tokenURI(uint256 tokenId) public view override returns (string memory) {
      require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
      TOKENTYPE tokenType = checkType(tokenId);

      if (tokenType == TOKENTYPE.GENESIS) return genesis_descriptor.generateTokenURI(tokenId);

      uint256 rawSeed = tokenType == TOKENTYPE.V2ONEOFONE ? 0 : _rawSeedForTokenId(tokenId);

      return v2_descriptor.generateTokenURI(tokenId, rawSeed, uint256(tokenType));
   }

   /// @notice Displays the attribute seed for a given token
   /// @param tokenId, the desired tokenId.
   /// @dev This seed shows the chosen attributes for the given tokenId.
   function getTokenSeed(uint256 tokenId) public view returns (uint8[10] memory) {
      TOKENTYPE tokenType = checkType(tokenId);
      require(tokenType == TOKENTYPE.V2COMMON, "This type of token does not have a pseudorandom seed");

      uint256 rawSeed = _rawSeedForTokenId(tokenId);
      require(rawSeed != 0, "Seed not yet established");
      return v2_descriptor.processRawSeed(rawSeed);
   }

   /// @notice Displays an unencoded SVG image for a given token
   /// @param tokenId, the desired tokenId.
   /// @param background, for v2 common tokens, whether the background should be included. Has no impact on genesis/one-of-one tokens.
   function tokenSVG(uint256 tokenId, bool background) external view returns (string memory) {
      require(_exists(tokenId), "query for nonexistent token");
      TOKENTYPE tokenType = checkType(tokenId);

      if (tokenType == TOKENTYPE.GENESIS) return genesis_descriptor.getSvg(tokenId);
      else if (tokenType == TOKENTYPE.V2ONEOFONE) return v2_descriptor.getSvgCustomToken(tokenId);

      uint8[10] memory seed = getTokenSeed(tokenId);
      if (!background) seed[0] = 0;
      return v2_descriptor.getSvgFromSeed(seed);
   }

   /// @notice Check the type of token, based on tokenid
   /// @param tokenId, the desired tokenId.
   function checkType(uint256 tokenId) public pure returns (TOKENTYPE) {
      if (tokenId <= genesisSupply) return TOKENTYPE.GENESIS;
      else if (tokenId <= oneOfOneEnd) return TOKENTYPE.V2ONEOFONE;
      else return TOKENTYPE.V2COMMON;
   }

   function tokenIdToBlockhashIndex(uint256 tokenId) external view returns (uint16) {
      require(_exists(tokenId), "query for nonexistent token");
      TOKENTYPE tokenType = checkType(tokenId);
      require(tokenType == TOKENTYPE.V2COMMON, "This type of token does not have a pseudorandom seed");
      return _tokenIdToBlockhashIndex(tokenId);
   }

   function rawSeedForTokenId(uint256 tokenId) external view returns (uint256) {
      require(_exists(tokenId), "query for nonexistent token");
      TOKENTYPE tokenType = checkType(tokenId);
      require(tokenType == TOKENTYPE.V2COMMON, "This type of token does not have a pseudorandom seed");
      return _rawSeedForTokenId(tokenId);
   }

   // Required for ERC721A to begin minting at a number other than zero.
   function _startTokenId() internal view override returns (uint256) {
      return 1;
   }


   /*  
  ______  __    __       ___       __  .__   __.  __       __  .__   __.  __  ___ 
 /      ||  |  |  |     /   \     |  | |  \ |  | |  |     |  | |  \ |  | |  |/  / 
|  ,----'|  |__|  |    /  ^  \    |  | |   \|  | |  |     |  | |   \|  | |  '  /  
|  |     |   __   |   /  /_\  \   |  | |  . `  | |  |     |  | |  . `  | |    <   
|  `----.|  |  |  |  /  _____  \  |  | |  |\   | |  `----.|  | |  |\   | |  .  \  
 \______||__|  |__| /__/     \__\ |__| |__| \__| |_______||__| |__| \__| |__|\__\
 */

   /// @notice Initiates a f to Chainlink VRF in order to randomly distribute one of one tokens and set the final commit-reveal seed
   /// @dev The VRF seed cannot be re-requested once set in order to prevent tampering
   function getRandomNumber() public onlyOwner returns (bytes32 requestId) {
      LINK.transferFrom(owner(), address(this), fee);
      require(VRF_randomness == 0, "Cannot request a random number once it has been set");
      require(totalSupply() == maxTokens, "Not sold out");
      return requestRandomness(keyHash, fee);
   }

   /// @notice VRF Callback function
   /// @dev Stores seed for random distribution of one-of-one tokens
   /// @dev Also sets final commit-reveal seed
   function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
      VRF_randomness = randomness;

      _commitFinalBlockHash();
   }

   /// @notice Following receipt of a VRF random seed, determine the recipients and mint one of ones directly to them
   /// @dev Only v2 common tokens are eligible to receive a one-of-one token.
   function distributeOneOfOnes() external onlyOwner {
      require(VRF_randomness != 0, "Random seed not established");
      for (uint256 i; i < v2oneOfOneCount; i++) {
         uint256 recipientToken = (uint256(keccak256(abi.encode(VRF_randomness, i))) % (v2supplyMax - v2oneOfOneCount)) + publicTokenStart;

         address recipient = ownerOf(recipientToken);

         IERC721(address(this)).transferFrom(address(this), recipient, i + oneOfOneStart); //uses transferFrom instead of safeTransferFrom so that a contract recipient doesn't break the function
      }
   }

   /// @notice Modifies the Chainlink configuration if needed
   function changeLinkFee(
      uint256 _fee,
      address _VRF_coordinator_address,
      bytes32 _keyhash
   ) external onlyOwner {
      fee = _fee;
      VRF_coordinator_address = _VRF_coordinator_address;
      keyHash = _keyhash;
   }

   /*
  ______   ____    __    ____ .__   __.  _______ .______      
 /  __  \  \   \  /  \  /   / |  \ |  | |   ____||   _  \     
|  |  |  |  \   \/    \/   /  |   \|  | |  |__   |  |_)  |    
|  |  |  |   \            /   |  . `  | |   __|  |      /     
|  `--'  |    \    /\    /    |  |\   | |  |____ |  |\  \----.
 \______/      \__/  \__/     |__| \__| |_______|| _| `._____|                                                              
*/

   function mintToContract() external onlyOwner {
      // Mints genesis and one-of-one tokens to the contract so that they may be claimed by genesis token holders to be upgraded
      require(totalSupply() == 0);
      _mint(address(this), oneOfOneEnd, "", false);
   }

   /// @notice Set address for external contracts
   function setAddresses(
      address _genesis_descriptor,
      address _v2_descriptor,
      address _os_address,
      address _authorizedMinter
   ) external onlyOwnerWhileUnsealed {
      address_genesis_descriptor = _genesis_descriptor;
      address_v2_descriptor = _v2_descriptor;
      genesis_descriptor = GenesisDescriptor(address_genesis_descriptor);
      v2_descriptor = V2Descriptor(address_v2_descriptor);
      address_opensea_token = _os_address;
      OS_token = IERC1155(address_opensea_token);
      authorizedMinter = _authorizedMinter;
   }

   /// @notice Setup old tokenIds for upgrades
   function setGenesisTokenIds(uint256[] memory _OSSS_id, uint256[] memory _newTokenId) external onlyOwnerWhileUnsealed {
      require(_OSSS_id.length == _newTokenId.length, "Length mismatch");
      for (uint256 i; i < _OSSS_id.length; i++) {
         uint256 genesisId = _OSSS_id[i];
         uint256 newId = _newTokenId[i];
         genesisTokenOSSStoNewTokenId[genesisId] = newId;
      }
   }

   /// @notice Toggles the public mint state
   function togglePublicMint() external onlyOwner {
      _UFOhasArrived = !_UFOhasArrived;
   }

   /// @notice Toggles the ability to upgrade Genesis tokens
   function toggleUpgrade() external onlyOwner {
      _mothershipHasArrived = !_mothershipHasArrived;
   }

   /// @notice Changes the mint price
   function setv2Price(uint256 _price) external onlyOwner {
      v2price = _price;
   }

   /// @notice Seals contract so that owner cannot make changes
   function seal() external onlyOwnerWhileUnsealed {
      _contractsealed = true;
   }

   /// @notice Emergency function in case a genesis or one of one token is inadvertently stuck in the contract
   /// @dev This function remains callable after sealing contract in case of emergency
   function emergencyWithdraw(uint256 tokenId) external onlyOwner {
      IERC721(address(this)).transferFrom(address(this), owner(), tokenId);
   }

   /// @notice Allow the owner contract to set a reverse ENS record
   function setReverseRecord(string calldata _name, address registrar_address) external onlyOwner {
      ENS_Registrar(registrar_address).setName(_name);
   }
}

File 2 of 21 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex &&
            !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @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 {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 21 : 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 5 of 21 : 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     constuctor(<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 6 of 21 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 7 of 21 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 8 of 21 : CRSeeder.sol
// SPDX-License-Identifier: MIT

/// @title  Commit-reveal seeder
/// @notice Implements a gas-conscious NFT metadata seed commit-reveal scheme that is brute-force resistant.
/// @dev Seed is established and reveals after a commit has been made in a block subsequent to the mint block. Seeds are not directly committed to storage in their final form.
/// @dev Requires tokenIds are serially in ascending order (but not required to start at zero)
/// @dev Take note that mint gas costs will be slightly irregular and should be overestimated by UI
/// @dev The final blockhash is manually established by calling _commitFinalBlockHash()

/*   To use:
 *
 *   Inherit CRSeeder from base NFT contract
 *   Call _commitTokens(_currentIndex) if using ERC721A or _commitTokens(totalSupply() + 1) in other cases, *prior* to _mint/_safeMint
 *   After max supply is reached out, call _commitFinalBlockHash
 *
 *   To read the seed, call _rawSeedForTokenId(tokenId)
 */

pragma solidity ^0.8.0;

contract CommitRevealSeeder {
   /// @notice Array of blockhashes required to generate a pseudorandom seed
   /// @dev Only stored once per block. Blockhashes reduced to 8 bytes (from 32) for tighter packing and gas savings.
   bytes8[] public blockhashData;

   /// @notice Struct type for storing the map from a given token to the blockhash used to generate that token's pseudorandom seed.
   /// @dev Packs tighter than a mapping, saving gas costs upon mint.
   struct TokenMap {
      uint16 startingTokenId;
      uint16 blockhashIndex;
   }

   /// @notice Array of TokenMaps
   /// @dev Only the first token in each mint transaction is assigned an entry
   TokenMap[] public tokenMap;

   /// @notice Creates new tokenMap entry and commits new blockhash if one has not been set for the current block
   /// @param _startingTokenId, the first tokenId to be minted in a transaction
   function _commitTokens(uint256 _startingTokenId) internal {
      _commitBlockHash();
      _commitTokenMap(_startingTokenId);
   }

   /// @notice Commits blockhash of the previous block to storage as the next item in blockhashData[]
   /// @dev Only sets once per block
   /// @dev The first commit on the contract is not used for any token.
   function _commitBlockHash() private {
      if (blockhashData.length == 0 || blockhashData[blockhashData.length - 1] != bytes8(blockhash(block.number - 1))) {
         blockhashData.push(bytes8(blockhash(block.number - 1)));
      }
   }

   /// @notice Commits a new tokenId and blockhashData index to tokenMap.
   /// @param _startingTokenId, the first tokenId to be minted in a given transaction
   function _commitTokenMap(uint256 _startingTokenId) private {
      require(
         tokenMap.length == 0 || uint16(_startingTokenId) > tokenMap[tokenMap.length - 1].startingTokenId,
         "tokenIds must be comitted in ascending order"
      );
      tokenMap.push(TokenMap({startingTokenId: uint16(_startingTokenId), blockhashIndex: uint16(blockhashData.length)}));
   }

   /// @notice Determines the blockhashData[] index to use for a given tokenId
   /// @param tokenId, desired tokenId
   /// @return uint16 blockhashData array index that contains the applicable blockhash data
   /// @dev Only the first tokenId for each transaction is committed to storage; the blockhash for all other tokenIds is inferred.
   /// @dev The first tokenId used in the contract will always return 1.
   /// @dev This function is inefficient and is intended only to be used in read operations. For larger collections, consider implementing a binary search.
   function _tokenIdToBlockhashIndex(uint256 tokenId) internal view returns (uint16) {
      //when there has only been a single commit, return 1 to avoid an underflow in the search loop
      if (tokenMap.length == 1) return 1;

      for (uint256 i; i <= tokenMap.length - 2; i++) {
         if (tokenId >= tokenMap[i].startingTokenId && tokenId < tokenMap[i + 1].startingTokenId) return tokenMap[i].blockhashIndex;
      }
      //if the tokenId exceeds the last item tested in the loop, return the final index
      return tokenMap[tokenMap.length - 1].blockhashIndex;
   }

   /// @notice Determines the seed for a given tokenId.
   /// @param tokenId, the desired tokenId
   /// @return uint256 raw pseudorandom seed (or zero, if not yet established).
   /// @dev In order to save storage costs, seeds are not directly stored on chain after reveal but are instead generated deterministically in read calls
   /// @dev Requires one blockhash to have been comitted following mint, otherwise no seed exists
   /// @dev Permits theoretical collisions because seeds are not directly stored and not processed to prevent duplicates
   function _rawSeedForTokenId(uint256 tokenId) internal view returns (uint256) {
      uint256 blockhashIndex = _tokenIdToBlockhashIndex(tokenId); //Grab the location of the blockhashData to be used for this token
      if ((blockhashData.length - 1) >= blockhashIndex) {
         //ensures there has been at least one commit (+1 block) after mint
         return uint256(keccak256(abi.encodePacked(address(this), tokenId, blockhashData[blockhashIndex])));
      } else {
         //blockhash not yet established
         return 0;
      }
   }

   /// @notice Establishes the final blockhash after the mint completes, since reveals require at least one blockhash to be established;
   /// @dev Should not be called by end users for security
   function _commitFinalBlockHash() internal {
      require(blockhashData[blockhashData.length - 1] != bytes8(blockhash(block.number - 1)), "Wait one block");
      _commitBlockHash();
   }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 tokenId);

    /**
     * @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 13 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

File 20 of 21 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 21 of 21 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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":"LINK_address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VRF_coordinator_address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VRF_randomness","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_UFOhasArrived","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_contractsealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mothershipHasArrived","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"abduct","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"address_genesis_descriptor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"address_opensea_token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"address_v2_descriptor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"authorizedMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blockhashData","outputs":[{"internalType":"bytes8","name":"","type":"bytes8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_VRF_coordinator_address","type":"address"},{"internalType":"bytes32","name":"_keyhash","type":"bytes32"}],"name":"changeLinkFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkType","outputs":[{"internalType":"enum EthTerrestrials.TOKENTYPE","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"distributeOneOfOnes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"genesisSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"genesisTokenOSSStoNewTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRandomNumber","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenSeed","outputs":[{"internalType":"uint8[10]","name":"","type":"uint8[10]"}],"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":"maxMintsPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintToContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rawSeedForTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"seal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_genesis_descriptor","type":"address"},{"internalType":"address","name":"_v2_descriptor","type":"address"},{"internalType":"address","name":"_os_address","type":"address"},{"internalType":"address","name":"_authorizedMinter","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_OSSS_id","type":"uint256[]"},{"internalType":"uint256[]","name":"_newTokenId","type":"uint256[]"}],"name":"setGenesisTokenIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"registrar_address","type":"address"}],"name":"setReverseRecord","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setv2Price","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","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":"togglePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenIdToBlockhashIndex","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMap","outputs":[{"internalType":"uint16","name":"startingTokenId","type":"uint16"},{"internalType":"uint16","name":"blockhashIndex","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"background","type":"bool"}],"name":"tokenSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"v2oneOfOneCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"v2price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"v2supplyMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040526701f161421c8e0000601b557faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445601e55671bc16d674ec80000602055602180546001600160a01b031990811673f0d54349addcf704f77ae15b96510dea15cb7952179091556022805490911673514910771af9ca656af840dff83e8264ecf986ca1790553480156200009557600080fd5b506040516200565638038062005656833981016040819052620000b89162000607565b602154602254604080518082018252600f81526e455448546572726573747269616c7360881b6020808301918252835180850190945260048452631155121560e21b908401528151879587956001600160a01b03918216959116939290916200012491600291620004e7565b5080516200013a906003906020840190620004e7565b50506001600055506200014d33620002a7565b6001600b556001600160601b0319606092831b811660a052911b166080528051825114620001dd5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620002305760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620001d4565b60005b82518110156200029c5762000287838281518110620002565762000256620007d0565b6020026020010151838381518110620002735762000273620007d0565b6020026020010151620002f960201b60201c565b8062000293816200079c565b91505062000233565b5050505050620007fc565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003665760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620001d4565b60008111620003b85760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620001d4565b6001600160a01b0382166000908152600f602052604090205415620004345760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620001d4565b60118054600181019091557f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680180546001600160a01b0319166001600160a01b0384169081179091556000908152600f60205260409020819055600d546200049e90829062000744565b600d55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054620004f5906200075f565b90600052602060002090601f01602090048101928262000519576000855562000564565b82601f106200053457805160ff191683800117855562000564565b8280016001018555821562000564579182015b828111156200056457825182559160200191906001019062000547565b506200057292915062000576565b5090565b5b8082111562000572576000815560010162000577565b600082601f8301126200059f57600080fd5b81516020620005b8620005b2836200071e565b620006eb565b80838252828201915082860187848660051b8901011115620005d957600080fd5b60005b85811015620005fa57815184529284019290840190600101620005dc565b5090979650505050505050565b600080604083850312156200061b57600080fd5b82516001600160401b03808211156200063357600080fd5b818501915085601f8301126200064857600080fd5b815160206200065b620005b2836200071e565b8083825282820191508286018a848660051b89010111156200067c57600080fd5b600096505b84871015620006b75780516001600160a01b0381168114620006a257600080fd5b83526001969096019591830191830162000681565b5091880151919650909350505080821115620006d257600080fd5b50620006e1858286016200058d565b9150509250929050565b604051601f8201601f191681016001600160401b0381118282101715620007165762000716620007e6565b604052919050565b60006001600160401b038211156200073a576200073a620007e6565b5060051b60200190565b600082198211156200075a576200075a620007ba565b500190565b600181811c908216806200077457607f821691505b602082108114156200079657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620007b357620007b3620007ba565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c614e206200083660003960008181611ebe0152613c9f015260008181612c020152613c700152614e206000f3fe6080604052600436106103fd5760003560e01c8063786713af1161020d578063c0620bc411610128578063d79779b2116100bb578063e985e9c51161008a578063f12160771161006f578063f121607714610cb0578063f23a6e6114610cd0578063f2fde38b14610d0957600080fd5b8063e985e9c514610c47578063f022569914610c9057600080fd5b8063d79779b214610bd2578063dbdff2c114610c08578063e33b7de314610c1d578063e831574214610c3257600080fd5b8063c87b56dd116100f7578063c87b56dd14610b49578063ce7c2ac214610b69578063cfdb492214610b9f578063d151da6514610bbf57600080fd5b8063c0620bc414610abc578063c3a7199914610adc578063c660005b14610afc578063c67f370214610b2957600080fd5b8063990ebe41116101a0578063ab577f371161016f578063ab577f3714610a37578063ae3c3d8e14610a4c578063b19afead14610a61578063b88d4fde14610a9c57600080fd5b8063990ebe41146109bd578063a039e5e4146109dd578063a04d5be1146109fd578063a22cb46514610a1757600080fd5b80638da5cb5b116101dc5780638da5cb5b1461093457806394985ddd1461095257806395d89b41146109725780639852595c1461098757600080fd5b8063786713af146108b25780637c59cfca146108d257806389bdd5ad146108ff5780638b83209b1461091457600080fd5b80633a98ef39116103185780635312ea8e116102ab5780636cb033b11161027a57806370d3da6a1161025f57806370d3da6a14610836578063715018a614610887578063745d40a81461089c57600080fd5b80636cb033b11461080157806370a082311461081657600080fd5b80635312ea8e1461077f5780635a4c16241461079f5780636352211e146107cc57806364aa0c79146107ec57600080fd5b806342842e0e116102e757806342842e0e1461070a57806348b750441461072a5780634a945f8d1461074a5780634bbf179b1461076a57600080fd5b80633a98ef39146106855780633fb27b851461069a5780634047638d146106af578063406072a9146106c457600080fd5b80631a902e5511610390578063330b754f1161035f578063330b754f146105fc578063370b53321461061c578063392a99721461064f5780633a6112651461066557600080fd5b80631a902e551461057c5780631ba538cd1461059c57806323b872dd146105bc5780633113aea9146105dc57600080fd5b8063095ea7b3116103cc578063095ea7b3146104fe5780630cefcd2f1461052057806318160ddd1461053f578063191655871461055c57600080fd5b806301ffc9a71461044b57806304a94de61461048057806306fdde03146104a4578063081812fc146104c657600080fd5b36610446577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561045757600080fd5b5061046b610466366004614949565b610d29565b60405190151581526020015b60405180910390f35b34801561048c57600080fd5b5061049661104981565b604051908152602001610477565b3480156104b057600080fd5b506104b9610dc6565b6040516104779190614be5565b3480156104d257600080fd5b506104e66104e1366004614a48565b610e58565b6040516001600160a01b039091168152602001610477565b34801561050a57600080fd5b5061051e6105193660046147c8565b610eb5565b005b34801561052c57600080fd5b50601c5461046b90610100900460ff1681565b34801561054b57600080fd5b506001546000540360001901610496565b34801561056857600080fd5b5061051e61057736600461457c565b610f75565b34801561058857600080fd5b50601c5461046b9062010000900460ff1681565b3480156105a857600080fd5b506017546104e6906001600160a01b031681565b3480156105c857600080fd5b5061051e6105d736600461462e565b611154565b3480156105e857600080fd5b506104b96105f7366004614a88565b61115f565b34801561060857600080fd5b50610496610617366004614a48565b6113a0565b34801561062857600080fd5b5061063c610637366004614a48565b61149b565b60405161ffff9091168152602001610477565b34801561065b57600080fd5b50610496601f5481565b34801561067157600080fd5b506016546104e6906001600160a01b031681565b34801561069157600080fd5b50600d54610496565b3480156106a657600080fd5b5061051e61158f565b3480156106bb57600080fd5b5061051e61162d565b3480156106d057600080fd5b506104966106df366004614599565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b34801561071657600080fd5b5061051e61072536600461462e565b61169b565b34801561073657600080fd5b5061051e610745366004614599565b6116b6565b34801561075657600080fd5b5061051e6107653660046145d2565b611963565b34801561077657600080fd5b50610496606481565b34801561078b57600080fd5b5061051e61079a366004614a48565b611a4e565b3480156107ab57600080fd5b506107bf6107ba366004614a48565b611b2b565b6040516104779190614b59565b3480156107d857600080fd5b506104e66107e7366004614a48565b611cbf565b3480156107f857600080fd5b50610496600a81565b34801561080d57600080fd5b5061051e611cd1565b34801561082257600080fd5b5061049661083136600461457c565b611d80565b34801561084257600080fd5b50610856610851366004614a48565b611de8565b6040517fffffffffffffffff0000000000000000000000000000000000000000000000009091168152602001610477565b34801561089357600080fd5b5061051e611e1f565b3480156108a857600080fd5b50610496601b5481565b3480156108be57600080fd5b506014546104e6906001600160a01b031681565b3480156108de57600080fd5b506104966108ed366004614a48565b601d6020526000908152604090205481565b34801561090b57600080fd5b50610496600b81565b34801561092057600080fd5b506104e661092f366004614a48565b611e83565b34801561094057600080fd5b50600a546001600160a01b03166104e6565b34801561095e57600080fd5b5061051e61096d366004614927565b611eb3565b34801561097e57600080fd5b506104b9611f39565b34801561099357600080fd5b506104966109a236600461457c565b6001600160a01b031660009081526010602052604090205490565b3480156109c957600080fd5b506022546104e6906001600160a01b031681565b3480156109e957600080fd5b5061051e6109f8366004614a48565b611f48565b348015610a0957600080fd5b50601c5461046b9060ff1681565b348015610a2357600080fd5b5061051e610a3236600461479a565b611fa7565b348015610a4357600080fd5b5061051e612056565b348015610a5857600080fd5b5061051e612238565b348015610a6d57600080fd5b50610a81610a7c366004614a48565b6122cc565b6040805161ffff938416815292909116602083015201610477565b348015610aa857600080fd5b5061051e610ab736600461466f565b6122fb565b348015610ac857600080fd5b5061051e610ad7366004614a61565b61234c565b348015610ae857600080fd5b5061051e610af73660046147c8565b6123de565b348015610b0857600080fd5b50610b1c610b17366004614a48565b612516565b6040516104779190614b8e565b348015610b3557600080fd5b5061051e610b44366004614983565b612561565b348015610b5557600080fd5b506104b9610b64366004614a48565b612654565b348015610b7557600080fd5b50610496610b8436600461457c565b6001600160a01b03166000908152600f602052604090205490565b348015610bab57600080fd5b5061051e610bba3660046147f4565b612865565b61051e610bcd366004614a48565b612995565b348015610bde57600080fd5b50610496610bed36600461457c565b6001600160a01b031660009081526012602052604090205490565b348015610c1457600080fd5b50610496612ba3565b348015610c2957600080fd5b50600e54610496565b348015610c3e57600080fd5b50610496612db7565b348015610c5357600080fd5b5061046b610c62366004614599565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610c9c57600080fd5b506015546104e6906001600160a01b031681565b348015610cbc57600080fd5b506021546104e6906001600160a01b031681565b348015610cdc57600080fd5b50610cf0610ceb36600461471e565b612dc7565b6040516001600160e01b03199091168152602001610477565b348015610d1557600080fd5b5061051e610d2436600461457c565b612fab565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610d8c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610dc057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060028054610dd590614cdf565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0190614cdf565b8015610e4e5780601f10610e2357610100808354040283529160200191610e4e565b820191906000526020600020905b815481529060010190602001808311610e3157829003601f168201915b5050505050905090565b6000610e638261308a565b610e99576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610ec082611cbf565b9050806001600160a01b0316836001600160a01b03161415610f0e576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610f2e5750610f2c8133610c62565b155b15610f65576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f708383836130c3565b505050565b6001600160a01b0381166000908152600f60205260409020546110055760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f736861726573000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000611010600e5490565b61101a9047614c51565b905060006110478383611042866001600160a01b031660009081526010602052604090205490565b61312c565b9050806110bc5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610ffc565b6001600160a01b038316600090815260106020526040812080548392906110e4908490614c51565b9250508190555080600e60008282546110fd9190614c51565b9091555061110d9050838261316a565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610f70838383613283565b606061116a8361308a565b6111b65760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610ffc565b60006111c184612516565b905060008160028111156111d7576111d7614d6f565b141561127f576018546040517fb0dc78fa000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b039091169063b0dc78fa906024015b60006040518083038186803b15801561123b57600080fd5b505afa15801561124f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261127791908101906149da565b915050610dc0565b600181600281111561129357611293614d6f565b14156112e3576019546040517fc023c0eb000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b039091169063c023c0eb90602401611223565b60006112ee85611b2b565b9050836112fa57600081525b6019546040517f791a16310000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791a163190611343908490600401614b59565b60006040518083038186803b15801561135b57600080fd5b505afa15801561136f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261139791908101906149da565b95945050505050565b60006113ab8261308a565b6113f75760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610ffc565b600061140283612516565b9050600281600281111561141857611418614d6f565b1461148b5760405162461bcd60e51b815260206004820152603460248201527f546869732074797065206f6620746f6b656e20646f6573206e6f74206861766560448201527f20612070736575646f72616e646f6d20736565640000000000000000000000006064820152608401610ffc565b611494836134e2565b9392505050565b60006114a68261308a565b6114f25760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610ffc565b60006114fd83612516565b9050600281600281111561151357611513614d6f565b146115865760405162461bcd60e51b815260206004820152603460248201527f546869732074797065206f6620746f6b656e20646f6573206e6f74206861766560448201527f20612070736575646f72616e646f6d20736565640000000000000000000000006064820152608401610ffc565b611494836135de565b601c5462010000900460ff161580156115b25750600a546001600160a01b031633145b6115fe5760405162461bcd60e51b815260206004820152601360248201527f4e6f74206f776e6572206f72206c6f636b6564000000000000000000000000006044820152606401610ffc565b601c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000179055565b600a546001600160a01b031633146116875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b601c805460ff19811660ff90911615179055565b610f70838383604051806020016040528060008152506122fb565b6001600160a01b0381166000908152600f60205260409020546117415760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610ffc565b6001600160a01b0382166000908152601260205260408120546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156117b257600080fd5b505afa1580156117c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ea919061490e565b6117f49190614c51565b9050600061182d838361104287876001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b9050806118a25760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610ffc565b6001600160a01b038085166000908152601360209081526040808320938716835292905290812080548392906118d9908490614c51565b90915550506001600160a01b03841660009081526012602052604081208054839290611906908490614c51565b9091555061191790508484836136ed565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b601c5462010000900460ff161580156119865750600a546001600160a01b031633145b6119d25760405162461bcd60e51b815260206004820152601360248201527f4e6f74206f776e6572206f72206c6f636b6564000000000000000000000000006044820152606401610ffc565b601480546001600160a01b0395861673ffffffffffffffffffffffffffffffffffffffff19918216811790925560158054958716958216861790556018805482169092179091556019805482169094179093556016805492851692841683179055601a8054841690921790915560178054919093169116179055565b600a546001600160a01b03163314611aa85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b306323b872dd81611ac1600a546001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101849052606401600060405180830381600087803b158015611b1057600080fd5b505af1158015611b24573d6000803e3d6000fd5b5050505050565b611b3361448e565b6000611b3e83612516565b90506002816002811115611b5457611b54614d6f565b14611bc75760405162461bcd60e51b815260206004820152603460248201527f546869732074797065206f6620746f6b656e20646f6573206e6f74206861766560448201527f20612070736575646f72616e646f6d20736565640000000000000000000000006064820152608401610ffc565b6000611bd2846134e2565b905080611c215760405162461bcd60e51b815260206004820152601860248201527f53656564206e6f74207965742065737461626c697368656400000000000000006044820152606401610ffc565b6019546040517f63c113cf000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03909116906363c113cf906024016101406040518083038186803b158015611c7f57600080fd5b505afa158015611c93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb79190614858565b949350505050565b6000611cca8261376d565b5192915050565b600a546001600160a01b03163314611d2b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b600154600054036000190115611d4057600080fd5b611d7e306001600b611d53606483614c51565b611d5d9190614c51565b611d679190614c9c565b6040518060200160405280600081525060006138af565b565b60006001600160a01b038216611dc2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b60088181548110611df857600080fd5b9060005260206000209060049182820401919006600802915054906101000a900460c01b81565b600a546001600160a01b03163314611e795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b611d7e6000613ac2565b600060118281548110611e9857611e98614d85565b6000918252602090912001546001600160a01b031692915050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611f2b5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610ffc565b611f358282613b21565b5050565b606060038054610dd590614cdf565b600a546001600160a01b03163314611fa25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b601b55565b6001600160a01b038216331415611fea576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b031633146120b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b601f546120ff5760405162461bcd60e51b815260206004820152601b60248201527f52616e646f6d2073656564206e6f742065737461626c697368656400000000006044820152606401610ffc565b60005b600b8110156122355760006001600b61211c606483614c51565b6121269190614c51565b6121309190614c9c565b61213b906001614c51565b612148600b611049614c9c565b601f5460408051602081019290925281018590526060016040516020818303038152906040528051906020012060001c6121829190614d2f565b61218c9190614c51565b9050600061219982611cbf565b9050306323b872dd81836121af60646001614c51565b6121b99088614c51565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561220857600080fd5b505af115801561221c573d6000803e3d6000fd5b505050505050808061222d90614d14565b915050612102565b50565b600a546001600160a01b031633146122925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b601c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b600981815481106122dc57600080fd5b60009182526020909120015461ffff8082169250620100009091041682565b612306848484613283565b6001600160a01b0383163b15158015612328575061232684848484613b2e565b155b15612346576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600a546001600160a01b031633146123a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b6020929092556021805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055601e55565b6002600b5414156124315760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ffc565b6002600b556124436110496064614c51565b600154600054839190036000190161245b9190614c51565b11156124a95760405162461bcd60e51b815260206004820152600e60248201527f4578636565647320537570706c790000000000000000000000000000000000006044820152606401610ffc565b6017546001600160a01b031633146125035760405162461bcd60e51b815260206004820152600c60248201527f556e617574686f72697a656400000000000000000000000000000000000000006044820152606401610ffc565b61250d8282613c57565b50506001600b55565b60006064821161252857506000919050565b6001600b612537606483614c51565b6125419190614c51565b61254b9190614c9c565b821161255957506001919050565b506002919050565b600a546001600160a01b031633146125bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b6040517fc47f00270000000000000000000000000000000000000000000000000000000081526001600160a01b0382169063c47f0027906126029086908690600401614bb6565b602060405180830381600087803b15801561261c57600080fd5b505af1158015612630573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612346919061490e565b606061265f8261308a565b6126d15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ffc565b60006126dc83612516565b905060008160028111156126f2576126f2614d6f565b1415612791576018546040517f210fa96b000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b039091169063210fa96b9060240160006040518083038186803b15801561275557600080fd5b505afa158015612769573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261149491908101906149da565b600060018260028111156127a7576127a7614d6f565b146127ba576127b5846134e2565b6127bd565b60005b6019549091506001600160a01b031663891d03a585838560028111156127e5576127e5614d6f565b6040516001600160e01b031960e086901b16815260048101939093526024830191909152604482015260640160006040518083038186803b15801561282957600080fd5b505afa15801561283d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cb791908101906149da565b601c5462010000900460ff161580156128885750600a546001600160a01b031633145b6128d45760405162461bcd60e51b815260206004820152601360248201527f4e6f74206f776e6572206f72206c6f636b6564000000000000000000000000006044820152606401610ffc565b80518251146129255760405162461bcd60e51b815260206004820152600f60248201527f4c656e677468206d69736d6174636800000000000000000000000000000000006044820152606401610ffc565b60005b8251811015610f7057600083828151811061294557612945614d85565b60200260200101519050600083838151811061296357612963614d85565b6020908102919091018101516000938452601d909152604090922091909155508061298d81614d14565b915050612928565b6002600b5414156129e85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ffc565b6002600b556129fa6110496064614c51565b6001546000548391900360001901612a129190614c51565b1115612a605760405162461bcd60e51b815260206004820152600e60248201527f4578636565647320537570706c790000000000000000000000000000000000006044820152606401610ffc565b323314612aaf5760405162461bcd60e51b815260206004820152601360248201527f4e6f20636f6e7472616374206d696e74657273000000000000000000000000006044820152606401610ffc565b601c5460ff16612b275760405162461bcd60e51b815260206004820152603360248201527f55464f206861736e277420617272697665642c20616264756374696f6e73206860448201527f6176656e277420737461727465642079657421000000000000000000000000006064820152608401610ffc565b600a811115612b3557600080fd5b80601b54612b439190614c7d565b3414612b915760405162461bcd60e51b815260206004820152601260248201527f496e636f7272656374204554482073656e7400000000000000000000000000006044820152606401610ffc565b612b9b3382613c57565b506001600b55565b600a546000906001600160a01b03163314612c005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd612c41600a546001600160a01b031690565b6020546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301523060248301526044820152606401602060405180830381600087803b158015612c9057600080fd5b505af1158015612ca4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cc891906148f1565b50601f5415612d3f5760405162461bcd60e51b815260206004820152603360248201527f43616e6e6f74207265717565737420612072616e646f6d206e756d626572206f60448201527f6e636520697420686173206265656e20736574000000000000000000000000006064820152608401610ffc565b612d4c6110496064614c51565b600154600054036000190114612da45760405162461bcd60e51b815260206004820152600c60248201527f4e6f7420736f6c64206f757400000000000000000000000000000000000000006044820152606401610ffc565b612db2601e54602054613c6c565b905090565b612dc46110496064614c51565b81565b60006002600b541415612e1c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ffc565b6002600b55601c54610100900460ff16612e9e5760405162461bcd60e51b815260206004820152603160248201527f4d6f746865727368697020686173206e6f7420617272697665642c20746f6f2060448201527f6561726c7920746f206265616d207570210000000000000000000000000000006064820152608401610ffc565b6016546001600160a01b03163314612ef85760405162461bcd60e51b815260206004820152601e60248201527f4e6f742074686520636f727265637420746f6b656e20636f6e747261637400006044820152606401610ffc565b83600114612f485760405162461bcd60e51b815260206004820152600e60248201527f5175616e74697479206572726f720000000000000000000000000000000000006044820152606401610ffc565b612f5185613df7565b612f5e6110496064614c51565b60015460005403600019011015612f7a57612f7a326001613c57565b507ff23a6e61000000000000000000000000000000000000000000000000000000006001600b559695505050505050565b600a546001600160a01b031633146130055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b6001600160a01b0381166130815760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ffc565b61223581613ac2565b60008160011115801561309e575060005482105b8015610dc0575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600d546001600160a01b0384166000908152600f6020526040812054909183916131569086614c7d565b6131609190614c69565b611cb79190614c9c565b804710156131ba5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ffc565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613207576040519150601f19603f3d011682016040523d82523d6000602084013e61320c565b606091505b5050905080610f705760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ffc565b600061328e8261376d565b80519091506000906001600160a01b0316336001600160a01b031614806132bc575081516132bc9033610c62565b806132d75750336132cc84610e58565b6001600160a01b0316145b905080613310576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461335f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661339f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133af60008484600001516130c3565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661349b5760005481101561349b578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b24565b6000806134ee836135de565b61ffff1690508060016008805490506135079190614c9c565b106135cf5730836008838154811061352157613521614d85565b90600052602060002090600491828204019190066008029054906101000a900460c01b6040516020016135b09392919060609390931b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016835260148301919091527fffffffffffffffff000000000000000000000000000000000000000000000000166034820152603c0190565b60408051601f1981840301815291905280516020909101209392505050565b50600092915050565b50919050565b600954600090600114156135f457506001919050565b60005b60095461360690600290614c9c565b81116136b0576009818154811061361f5761361f614d85565b60009182526020909120015461ffff16831080159061366957506009613646826001614c51565b8154811061365657613656614d85565b60009182526020909120015461ffff1683105b1561369e576009818154811061368157613681614d85565b60009182526020909120015462010000900461ffff169392505050565b806136a881614d14565b9150506135f7565b50600980546136c190600190614c9c565b815481106136d1576136d1614d85565b60009182526020909120015462010000900461ffff1692915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610f70908490613edf565b6040805160608101825260008082526020820181905291810191909152818060011115801561379d575060005481105b1561387d57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061387b5780516001600160a01b031615613811579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215613876579392505050565b613811565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b0385166138f2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83613929576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156139ea57506001600160a01b0387163b15155b15613a73575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613a3b6000888480600101955088613b2e565b613a58576040516368d2bf6b60e11b815260040160405180910390fd5b808214156139f0578260005414613a6e57600080fd5b613ab9565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415613a74575b50600055611b24565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601f819055611f35613fc4565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290613b7c903390899088908890600401614af5565b602060405180830381600087803b158015613b9657600080fd5b505af1925050508015613bc6575060408051601f3d908101601f19168201909252613bc391810190614966565b60015b613c21573d808015613bf4576040519150601f19603f3d011682016040523d82523d6000602084013e613bf9565b606091505b508051613c19576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b613c626000546140a3565b611f3582826140b4565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001613cdc929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401613d0993929190614b31565b602060405180830381600087803b158015613d2357600080fd5b505af1158015613d37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d5b91906148f1565b506000838152600c6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052613db7906001614c51565b6000858152600c6020526040902055611cb78482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000818152601d602052604090205480613e535760405162461bcd60e51b815260206004820152601360248201527f4e6f7420612076616c696420746f6b656e4964000000000000000000000000006044820152606401610ffc565b6000828152601d602052604080822091909155517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820181905232602483015260448201839052906342842e0e90606401600060405180830381600087803b158015613ec357600080fd5b505af1158015613ed7573d6000803e3d6000fd5b505050505050565b6000613f34826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166140ce9092919063ffffffff16565b805190915015610f705780806020019051810190613f5291906148f1565b610f705760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610ffc565b613fcf600143614c9c565b4077ffffffffffffffffffffffffffffffffffffffffffffffff191660086001600880549050613fff9190614c9c565b8154811061400f5761400f614d85565b90600052602060002090600491828204019190066008029054906101000a900460c01b77ffffffffffffffffffffffffffffffffffffffffffffffff1916141561409b5760405162461bcd60e51b815260206004820152600e60248201527f57616974206f6e6520626c6f636b0000000000000000000000000000000000006044820152606401610ffc565b611d7e6140dd565b6140ab6140dd565b612235816141c6565b611f35828260405180602001604052806000815250614309565b6060611cb78484600085614316565b600854158061417357506140f2600143614c9c565b4077ffffffffffffffffffffffffffffffffffffffffffffffff1916600860016008805490506141229190614c9c565b8154811061413257614132614d85565b90600052602060002090600491828204019190066008029054906101000a900460c01b77ffffffffffffffffffffffffffffffffffffffffffffffff191614155b15611d7e576008614185600143614c9c565b8154600181018355600092835260209092206004830401805467ffffffffffffffff60039094166008026101000a9384021916914060c01c92909202179055565b60095415806142075750600980546141e090600190614c9c565b815481106141f0576141f0614d85565b60009182526020909120015461ffff908116908216115b6142795760405162461bcd60e51b815260206004820152602c60248201527f746f6b656e496473206d75737420626520636f6d697474656420696e2061736360448201527f656e64696e67206f7264657200000000000000000000000000000000000000006064820152608401610ffc565b6040805180820190915261ffff91821681526008548216602082019081526009805460018101825560009190915291517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af90920180549151841662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000009092169290931691909117179055565b610f7083838360016138af565b60608247101561438e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610ffc565b843b6143dc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ffc565b600080866001600160a01b031685876040516143f89190614ad9565b60006040518083038185875af1925050503d8060008114614435576040519150601f19603f3d011682016040523d82523d6000602084013e61443a565b606091505b509150915061444a828286614455565b979650505050505050565b60608315614464575081611494565b8251156144745782518084602001fd5b8160405162461bcd60e51b8152600401610ffc9190614be5565b604051806101400160405280600a906020820280368337509192915050565b600082601f8301126144be57600080fd5b8135602067ffffffffffffffff8211156144da576144da614d9b565b8160051b6144e9828201614bf8565b83815282810190868401838801850189101561450457600080fd5b600093505b85841015614527578035835260019390930192918401918401614509565b50979650505050505050565b60008083601f84011261454557600080fd5b50813567ffffffffffffffff81111561455d57600080fd5b60208301915083602082850101111561457557600080fd5b9250929050565b60006020828403121561458e57600080fd5b813561149481614db1565b600080604083850312156145ac57600080fd5b82356145b781614db1565b915060208301356145c781614db1565b809150509250929050565b600080600080608085870312156145e857600080fd5b84356145f381614db1565b9350602085013561460381614db1565b9250604085013561461381614db1565b9150606085013561462381614db1565b939692955090935050565b60008060006060848603121561464357600080fd5b833561464e81614db1565b9250602084013561465e81614db1565b929592945050506040919091013590565b6000806000806080858703121561468557600080fd5b843561469081614db1565b935060208501356146a081614db1565b925060408501359150606085013567ffffffffffffffff8111156146c357600080fd5b8501601f810187136146d457600080fd5b80356146e76146e282614c29565b614bf8565b8181528860208385010111156146fc57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060008060008060a0878903121561473757600080fd5b863561474281614db1565b9550602087013561475281614db1565b94506040870135935060608701359250608087013567ffffffffffffffff81111561477c57600080fd5b61478889828a01614533565b979a9699509497509295939492505050565b600080604083850312156147ad57600080fd5b82356147b881614db1565b915060208301356145c781614dc6565b600080604083850312156147db57600080fd5b82356147e681614db1565b946020939093013593505050565b6000806040838503121561480757600080fd5b823567ffffffffffffffff8082111561481f57600080fd5b61482b868387016144ad565b9350602085013591508082111561484157600080fd5b5061484e858286016144ad565b9150509250929050565b600061014080838503121561486c57600080fd5b83601f84011261487b57600080fd5b60405181810181811067ffffffffffffffff8211171561489d5761489d614d9b565b60405280848381018710156148b157600080fd5b60009350835b600a8110156148e557815160ff811681146148d0578586fd5b835260209283019291909101906001016148b7565b50919695505050505050565b60006020828403121561490357600080fd5b815161149481614dc6565b60006020828403121561492057600080fd5b5051919050565b6000806040838503121561493a57600080fd5b50508035926020909101359150565b60006020828403121561495b57600080fd5b813561149481614dd4565b60006020828403121561497857600080fd5b815161149481614dd4565b60008060006040848603121561499857600080fd5b833567ffffffffffffffff8111156149af57600080fd5b6149bb86828701614533565b90945092505060208401356149cf81614db1565b809150509250925092565b6000602082840312156149ec57600080fd5b815167ffffffffffffffff811115614a0357600080fd5b8201601f81018413614a1457600080fd5b8051614a226146e282614c29565b818152856020838501011115614a3757600080fd5b611397826020830160208601614cb3565b600060208284031215614a5a57600080fd5b5035919050565b600080600060608486031215614a7657600080fd5b83359250602084013561465e81614db1565b60008060408385031215614a9b57600080fd5b8235915060208301356145c781614dc6565b60008151808452614ac5816020860160208601614cb3565b601f01601f19169290920160200192915050565b60008251614aeb818460208701614cb3565b9190910192915050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614b276080830184614aad565b9695505050505050565b6001600160a01b03841681528260208201526060604082015260006113976060830184614aad565b6101408101818360005b600a811015614b8557815160ff16835260209283019290910190600101614b63565b50505092915050565b6020810160038310614bb057634e487b7160e01b600052602160045260246000fd5b91905290565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020815260006114946020830184614aad565b604051601f8201601f1916810167ffffffffffffffff81118282101715614c2157614c21614d9b565b604052919050565b600067ffffffffffffffff821115614c4357614c43614d9b565b50601f01601f191660200190565b60008219821115614c6457614c64614d43565b500190565b600082614c7857614c78614d59565b500490565b6000816000190483118215151615614c9757614c97614d43565b500290565b600082821015614cae57614cae614d43565b500390565b60005b83811015614cce578181015183820152602001614cb6565b838111156123465750506000910152565b600181811c90821680614cf357607f821691505b602082108114156135d857634e487b7160e01b600052602260045260246000fd5b6000600019821415614d2857614d28614d43565b5060010190565b600082614d3e57614d3e614d59565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461223557600080fd5b801515811461223557600080fd5b6001600160e01b03198116811461223557600080fdfea26469706673582212206fc6307c7494090781d2a41c7e54604a246e7bd22824821d25c437f20f0aa3ec64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000040000000000000000000000006820b94cc4ad7bd3137e5e43f107a869405470bb000000000000000000000000d7d3239511e5f9fd702c78bda9fe3dd8670d5be0000000000000000000000000bfb00bee6dedb8ca4af89d477a9f02857bdbb4d10000000000000000000000003ac8582b2c5898681f443773e3f1ad3cafca70ca00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000019

Deployed Bytecode

0x6080604052600436106103fd5760003560e01c8063786713af1161020d578063c0620bc411610128578063d79779b2116100bb578063e985e9c51161008a578063f12160771161006f578063f121607714610cb0578063f23a6e6114610cd0578063f2fde38b14610d0957600080fd5b8063e985e9c514610c47578063f022569914610c9057600080fd5b8063d79779b214610bd2578063dbdff2c114610c08578063e33b7de314610c1d578063e831574214610c3257600080fd5b8063c87b56dd116100f7578063c87b56dd14610b49578063ce7c2ac214610b69578063cfdb492214610b9f578063d151da6514610bbf57600080fd5b8063c0620bc414610abc578063c3a7199914610adc578063c660005b14610afc578063c67f370214610b2957600080fd5b8063990ebe41116101a0578063ab577f371161016f578063ab577f3714610a37578063ae3c3d8e14610a4c578063b19afead14610a61578063b88d4fde14610a9c57600080fd5b8063990ebe41146109bd578063a039e5e4146109dd578063a04d5be1146109fd578063a22cb46514610a1757600080fd5b80638da5cb5b116101dc5780638da5cb5b1461093457806394985ddd1461095257806395d89b41146109725780639852595c1461098757600080fd5b8063786713af146108b25780637c59cfca146108d257806389bdd5ad146108ff5780638b83209b1461091457600080fd5b80633a98ef39116103185780635312ea8e116102ab5780636cb033b11161027a57806370d3da6a1161025f57806370d3da6a14610836578063715018a614610887578063745d40a81461089c57600080fd5b80636cb033b11461080157806370a082311461081657600080fd5b80635312ea8e1461077f5780635a4c16241461079f5780636352211e146107cc57806364aa0c79146107ec57600080fd5b806342842e0e116102e757806342842e0e1461070a57806348b750441461072a5780634a945f8d1461074a5780634bbf179b1461076a57600080fd5b80633a98ef39146106855780633fb27b851461069a5780634047638d146106af578063406072a9146106c457600080fd5b80631a902e5511610390578063330b754f1161035f578063330b754f146105fc578063370b53321461061c578063392a99721461064f5780633a6112651461066557600080fd5b80631a902e551461057c5780631ba538cd1461059c57806323b872dd146105bc5780633113aea9146105dc57600080fd5b8063095ea7b3116103cc578063095ea7b3146104fe5780630cefcd2f1461052057806318160ddd1461053f578063191655871461055c57600080fd5b806301ffc9a71461044b57806304a94de61461048057806306fdde03146104a4578063081812fc146104c657600080fd5b36610446577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561045757600080fd5b5061046b610466366004614949565b610d29565b60405190151581526020015b60405180910390f35b34801561048c57600080fd5b5061049661104981565b604051908152602001610477565b3480156104b057600080fd5b506104b9610dc6565b6040516104779190614be5565b3480156104d257600080fd5b506104e66104e1366004614a48565b610e58565b6040516001600160a01b039091168152602001610477565b34801561050a57600080fd5b5061051e6105193660046147c8565b610eb5565b005b34801561052c57600080fd5b50601c5461046b90610100900460ff1681565b34801561054b57600080fd5b506001546000540360001901610496565b34801561056857600080fd5b5061051e61057736600461457c565b610f75565b34801561058857600080fd5b50601c5461046b9062010000900460ff1681565b3480156105a857600080fd5b506017546104e6906001600160a01b031681565b3480156105c857600080fd5b5061051e6105d736600461462e565b611154565b3480156105e857600080fd5b506104b96105f7366004614a88565b61115f565b34801561060857600080fd5b50610496610617366004614a48565b6113a0565b34801561062857600080fd5b5061063c610637366004614a48565b61149b565b60405161ffff9091168152602001610477565b34801561065b57600080fd5b50610496601f5481565b34801561067157600080fd5b506016546104e6906001600160a01b031681565b34801561069157600080fd5b50600d54610496565b3480156106a657600080fd5b5061051e61158f565b3480156106bb57600080fd5b5061051e61162d565b3480156106d057600080fd5b506104966106df366004614599565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b34801561071657600080fd5b5061051e61072536600461462e565b61169b565b34801561073657600080fd5b5061051e610745366004614599565b6116b6565b34801561075657600080fd5b5061051e6107653660046145d2565b611963565b34801561077657600080fd5b50610496606481565b34801561078b57600080fd5b5061051e61079a366004614a48565b611a4e565b3480156107ab57600080fd5b506107bf6107ba366004614a48565b611b2b565b6040516104779190614b59565b3480156107d857600080fd5b506104e66107e7366004614a48565b611cbf565b3480156107f857600080fd5b50610496600a81565b34801561080d57600080fd5b5061051e611cd1565b34801561082257600080fd5b5061049661083136600461457c565b611d80565b34801561084257600080fd5b50610856610851366004614a48565b611de8565b6040517fffffffffffffffff0000000000000000000000000000000000000000000000009091168152602001610477565b34801561089357600080fd5b5061051e611e1f565b3480156108a857600080fd5b50610496601b5481565b3480156108be57600080fd5b506014546104e6906001600160a01b031681565b3480156108de57600080fd5b506104966108ed366004614a48565b601d6020526000908152604090205481565b34801561090b57600080fd5b50610496600b81565b34801561092057600080fd5b506104e661092f366004614a48565b611e83565b34801561094057600080fd5b50600a546001600160a01b03166104e6565b34801561095e57600080fd5b5061051e61096d366004614927565b611eb3565b34801561097e57600080fd5b506104b9611f39565b34801561099357600080fd5b506104966109a236600461457c565b6001600160a01b031660009081526010602052604090205490565b3480156109c957600080fd5b506022546104e6906001600160a01b031681565b3480156109e957600080fd5b5061051e6109f8366004614a48565b611f48565b348015610a0957600080fd5b50601c5461046b9060ff1681565b348015610a2357600080fd5b5061051e610a3236600461479a565b611fa7565b348015610a4357600080fd5b5061051e612056565b348015610a5857600080fd5b5061051e612238565b348015610a6d57600080fd5b50610a81610a7c366004614a48565b6122cc565b6040805161ffff938416815292909116602083015201610477565b348015610aa857600080fd5b5061051e610ab736600461466f565b6122fb565b348015610ac857600080fd5b5061051e610ad7366004614a61565b61234c565b348015610ae857600080fd5b5061051e610af73660046147c8565b6123de565b348015610b0857600080fd5b50610b1c610b17366004614a48565b612516565b6040516104779190614b8e565b348015610b3557600080fd5b5061051e610b44366004614983565b612561565b348015610b5557600080fd5b506104b9610b64366004614a48565b612654565b348015610b7557600080fd5b50610496610b8436600461457c565b6001600160a01b03166000908152600f602052604090205490565b348015610bab57600080fd5b5061051e610bba3660046147f4565b612865565b61051e610bcd366004614a48565b612995565b348015610bde57600080fd5b50610496610bed36600461457c565b6001600160a01b031660009081526012602052604090205490565b348015610c1457600080fd5b50610496612ba3565b348015610c2957600080fd5b50600e54610496565b348015610c3e57600080fd5b50610496612db7565b348015610c5357600080fd5b5061046b610c62366004614599565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610c9c57600080fd5b506015546104e6906001600160a01b031681565b348015610cbc57600080fd5b506021546104e6906001600160a01b031681565b348015610cdc57600080fd5b50610cf0610ceb36600461471e565b612dc7565b6040516001600160e01b03199091168152602001610477565b348015610d1557600080fd5b5061051e610d2436600461457c565b612fab565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610d8c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610dc057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060028054610dd590614cdf565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0190614cdf565b8015610e4e5780601f10610e2357610100808354040283529160200191610e4e565b820191906000526020600020905b815481529060010190602001808311610e3157829003601f168201915b5050505050905090565b6000610e638261308a565b610e99576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610ec082611cbf565b9050806001600160a01b0316836001600160a01b03161415610f0e576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610f2e5750610f2c8133610c62565b155b15610f65576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f708383836130c3565b505050565b6001600160a01b0381166000908152600f60205260409020546110055760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f736861726573000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000611010600e5490565b61101a9047614c51565b905060006110478383611042866001600160a01b031660009081526010602052604090205490565b61312c565b9050806110bc5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610ffc565b6001600160a01b038316600090815260106020526040812080548392906110e4908490614c51565b9250508190555080600e60008282546110fd9190614c51565b9091555061110d9050838261316a565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610f70838383613283565b606061116a8361308a565b6111b65760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610ffc565b60006111c184612516565b905060008160028111156111d7576111d7614d6f565b141561127f576018546040517fb0dc78fa000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b039091169063b0dc78fa906024015b60006040518083038186803b15801561123b57600080fd5b505afa15801561124f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261127791908101906149da565b915050610dc0565b600181600281111561129357611293614d6f565b14156112e3576019546040517fc023c0eb000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b039091169063c023c0eb90602401611223565b60006112ee85611b2b565b9050836112fa57600081525b6019546040517f791a16310000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791a163190611343908490600401614b59565b60006040518083038186803b15801561135b57600080fd5b505afa15801561136f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261139791908101906149da565b95945050505050565b60006113ab8261308a565b6113f75760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610ffc565b600061140283612516565b9050600281600281111561141857611418614d6f565b1461148b5760405162461bcd60e51b815260206004820152603460248201527f546869732074797065206f6620746f6b656e20646f6573206e6f74206861766560448201527f20612070736575646f72616e646f6d20736565640000000000000000000000006064820152608401610ffc565b611494836134e2565b9392505050565b60006114a68261308a565b6114f25760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610ffc565b60006114fd83612516565b9050600281600281111561151357611513614d6f565b146115865760405162461bcd60e51b815260206004820152603460248201527f546869732074797065206f6620746f6b656e20646f6573206e6f74206861766560448201527f20612070736575646f72616e646f6d20736565640000000000000000000000006064820152608401610ffc565b611494836135de565b601c5462010000900460ff161580156115b25750600a546001600160a01b031633145b6115fe5760405162461bcd60e51b815260206004820152601360248201527f4e6f74206f776e6572206f72206c6f636b6564000000000000000000000000006044820152606401610ffc565b601c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000179055565b600a546001600160a01b031633146116875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b601c805460ff19811660ff90911615179055565b610f70838383604051806020016040528060008152506122fb565b6001600160a01b0381166000908152600f60205260409020546117415760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610ffc565b6001600160a01b0382166000908152601260205260408120546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156117b257600080fd5b505afa1580156117c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ea919061490e565b6117f49190614c51565b9050600061182d838361104287876001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b9050806118a25760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610ffc565b6001600160a01b038085166000908152601360209081526040808320938716835292905290812080548392906118d9908490614c51565b90915550506001600160a01b03841660009081526012602052604081208054839290611906908490614c51565b9091555061191790508484836136ed565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b601c5462010000900460ff161580156119865750600a546001600160a01b031633145b6119d25760405162461bcd60e51b815260206004820152601360248201527f4e6f74206f776e6572206f72206c6f636b6564000000000000000000000000006044820152606401610ffc565b601480546001600160a01b0395861673ffffffffffffffffffffffffffffffffffffffff19918216811790925560158054958716958216861790556018805482169092179091556019805482169094179093556016805492851692841683179055601a8054841690921790915560178054919093169116179055565b600a546001600160a01b03163314611aa85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b306323b872dd81611ac1600a546001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101849052606401600060405180830381600087803b158015611b1057600080fd5b505af1158015611b24573d6000803e3d6000fd5b5050505050565b611b3361448e565b6000611b3e83612516565b90506002816002811115611b5457611b54614d6f565b14611bc75760405162461bcd60e51b815260206004820152603460248201527f546869732074797065206f6620746f6b656e20646f6573206e6f74206861766560448201527f20612070736575646f72616e646f6d20736565640000000000000000000000006064820152608401610ffc565b6000611bd2846134e2565b905080611c215760405162461bcd60e51b815260206004820152601860248201527f53656564206e6f74207965742065737461626c697368656400000000000000006044820152606401610ffc565b6019546040517f63c113cf000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03909116906363c113cf906024016101406040518083038186803b158015611c7f57600080fd5b505afa158015611c93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb79190614858565b949350505050565b6000611cca8261376d565b5192915050565b600a546001600160a01b03163314611d2b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b600154600054036000190115611d4057600080fd5b611d7e306001600b611d53606483614c51565b611d5d9190614c51565b611d679190614c9c565b6040518060200160405280600081525060006138af565b565b60006001600160a01b038216611dc2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b60088181548110611df857600080fd5b9060005260206000209060049182820401919006600802915054906101000a900460c01b81565b600a546001600160a01b03163314611e795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b611d7e6000613ac2565b600060118281548110611e9857611e98614d85565b6000918252602090912001546001600160a01b031692915050565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614611f2b5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610ffc565b611f358282613b21565b5050565b606060038054610dd590614cdf565b600a546001600160a01b03163314611fa25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b601b55565b6001600160a01b038216331415611fea576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b031633146120b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b601f546120ff5760405162461bcd60e51b815260206004820152601b60248201527f52616e646f6d2073656564206e6f742065737461626c697368656400000000006044820152606401610ffc565b60005b600b8110156122355760006001600b61211c606483614c51565b6121269190614c51565b6121309190614c9c565b61213b906001614c51565b612148600b611049614c9c565b601f5460408051602081019290925281018590526060016040516020818303038152906040528051906020012060001c6121829190614d2f565b61218c9190614c51565b9050600061219982611cbf565b9050306323b872dd81836121af60646001614c51565b6121b99088614c51565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561220857600080fd5b505af115801561221c573d6000803e3d6000fd5b505050505050808061222d90614d14565b915050612102565b50565b600a546001600160a01b031633146122925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b601c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b600981815481106122dc57600080fd5b60009182526020909120015461ffff8082169250620100009091041682565b612306848484613283565b6001600160a01b0383163b15158015612328575061232684848484613b2e565b155b15612346576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600a546001600160a01b031633146123a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b6020929092556021805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055601e55565b6002600b5414156124315760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ffc565b6002600b556124436110496064614c51565b600154600054839190036000190161245b9190614c51565b11156124a95760405162461bcd60e51b815260206004820152600e60248201527f4578636565647320537570706c790000000000000000000000000000000000006044820152606401610ffc565b6017546001600160a01b031633146125035760405162461bcd60e51b815260206004820152600c60248201527f556e617574686f72697a656400000000000000000000000000000000000000006044820152606401610ffc565b61250d8282613c57565b50506001600b55565b60006064821161252857506000919050565b6001600b612537606483614c51565b6125419190614c51565b61254b9190614c9c565b821161255957506001919050565b506002919050565b600a546001600160a01b031633146125bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b6040517fc47f00270000000000000000000000000000000000000000000000000000000081526001600160a01b0382169063c47f0027906126029086908690600401614bb6565b602060405180830381600087803b15801561261c57600080fd5b505af1158015612630573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612346919061490e565b606061265f8261308a565b6126d15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ffc565b60006126dc83612516565b905060008160028111156126f2576126f2614d6f565b1415612791576018546040517f210fa96b000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b039091169063210fa96b9060240160006040518083038186803b15801561275557600080fd5b505afa158015612769573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261149491908101906149da565b600060018260028111156127a7576127a7614d6f565b146127ba576127b5846134e2565b6127bd565b60005b6019549091506001600160a01b031663891d03a585838560028111156127e5576127e5614d6f565b6040516001600160e01b031960e086901b16815260048101939093526024830191909152604482015260640160006040518083038186803b15801561282957600080fd5b505afa15801561283d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cb791908101906149da565b601c5462010000900460ff161580156128885750600a546001600160a01b031633145b6128d45760405162461bcd60e51b815260206004820152601360248201527f4e6f74206f776e6572206f72206c6f636b6564000000000000000000000000006044820152606401610ffc565b80518251146129255760405162461bcd60e51b815260206004820152600f60248201527f4c656e677468206d69736d6174636800000000000000000000000000000000006044820152606401610ffc565b60005b8251811015610f7057600083828151811061294557612945614d85565b60200260200101519050600083838151811061296357612963614d85565b6020908102919091018101516000938452601d909152604090922091909155508061298d81614d14565b915050612928565b6002600b5414156129e85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ffc565b6002600b556129fa6110496064614c51565b6001546000548391900360001901612a129190614c51565b1115612a605760405162461bcd60e51b815260206004820152600e60248201527f4578636565647320537570706c790000000000000000000000000000000000006044820152606401610ffc565b323314612aaf5760405162461bcd60e51b815260206004820152601360248201527f4e6f20636f6e7472616374206d696e74657273000000000000000000000000006044820152606401610ffc565b601c5460ff16612b275760405162461bcd60e51b815260206004820152603360248201527f55464f206861736e277420617272697665642c20616264756374696f6e73206860448201527f6176656e277420737461727465642079657421000000000000000000000000006064820152608401610ffc565b600a811115612b3557600080fd5b80601b54612b439190614c7d565b3414612b915760405162461bcd60e51b815260206004820152601260248201527f496e636f7272656374204554482073656e7400000000000000000000000000006044820152606401610ffc565b612b9b3382613c57565b506001600b55565b600a546000906001600160a01b03163314612c005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b7f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b03166323b872dd612c41600a546001600160a01b031690565b6020546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301523060248301526044820152606401602060405180830381600087803b158015612c9057600080fd5b505af1158015612ca4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cc891906148f1565b50601f5415612d3f5760405162461bcd60e51b815260206004820152603360248201527f43616e6e6f74207265717565737420612072616e646f6d206e756d626572206f60448201527f6e636520697420686173206265656e20736574000000000000000000000000006064820152608401610ffc565b612d4c6110496064614c51565b600154600054036000190114612da45760405162461bcd60e51b815260206004820152600c60248201527f4e6f7420736f6c64206f757400000000000000000000000000000000000000006044820152606401610ffc565b612db2601e54602054613c6c565b905090565b612dc46110496064614c51565b81565b60006002600b541415612e1c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ffc565b6002600b55601c54610100900460ff16612e9e5760405162461bcd60e51b815260206004820152603160248201527f4d6f746865727368697020686173206e6f7420617272697665642c20746f6f2060448201527f6561726c7920746f206265616d207570210000000000000000000000000000006064820152608401610ffc565b6016546001600160a01b03163314612ef85760405162461bcd60e51b815260206004820152601e60248201527f4e6f742074686520636f727265637420746f6b656e20636f6e747261637400006044820152606401610ffc565b83600114612f485760405162461bcd60e51b815260206004820152600e60248201527f5175616e74697479206572726f720000000000000000000000000000000000006044820152606401610ffc565b612f5185613df7565b612f5e6110496064614c51565b60015460005403600019011015612f7a57612f7a326001613c57565b507ff23a6e61000000000000000000000000000000000000000000000000000000006001600b559695505050505050565b600a546001600160a01b031633146130055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ffc565b6001600160a01b0381166130815760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ffc565b61223581613ac2565b60008160011115801561309e575060005482105b8015610dc0575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600d546001600160a01b0384166000908152600f6020526040812054909183916131569086614c7d565b6131609190614c69565b611cb79190614c9c565b804710156131ba5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ffc565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613207576040519150601f19603f3d011682016040523d82523d6000602084013e61320c565b606091505b5050905080610f705760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ffc565b600061328e8261376d565b80519091506000906001600160a01b0316336001600160a01b031614806132bc575081516132bc9033610c62565b806132d75750336132cc84610e58565b6001600160a01b0316145b905080613310576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461335f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661339f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133af60008484600001516130c3565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661349b5760005481101561349b578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b24565b6000806134ee836135de565b61ffff1690508060016008805490506135079190614c9c565b106135cf5730836008838154811061352157613521614d85565b90600052602060002090600491828204019190066008029054906101000a900460c01b6040516020016135b09392919060609390931b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016835260148301919091527fffffffffffffffff000000000000000000000000000000000000000000000000166034820152603c0190565b60408051601f1981840301815291905280516020909101209392505050565b50600092915050565b50919050565b600954600090600114156135f457506001919050565b60005b60095461360690600290614c9c565b81116136b0576009818154811061361f5761361f614d85565b60009182526020909120015461ffff16831080159061366957506009613646826001614c51565b8154811061365657613656614d85565b60009182526020909120015461ffff1683105b1561369e576009818154811061368157613681614d85565b60009182526020909120015462010000900461ffff169392505050565b806136a881614d14565b9150506135f7565b50600980546136c190600190614c9c565b815481106136d1576136d1614d85565b60009182526020909120015462010000900461ffff1692915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610f70908490613edf565b6040805160608101825260008082526020820181905291810191909152818060011115801561379d575060005481105b1561387d57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061387b5780516001600160a01b031615613811579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215613876579392505050565b613811565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b0385166138f2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83613929576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156139ea57506001600160a01b0387163b15155b15613a73575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613a3b6000888480600101955088613b2e565b613a58576040516368d2bf6b60e11b815260040160405180910390fd5b808214156139f0578260005414613a6e57600080fd5b613ab9565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415613a74575b50600055611b24565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601f819055611f35613fc4565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290613b7c903390899088908890600401614af5565b602060405180830381600087803b158015613b9657600080fd5b505af1925050508015613bc6575060408051601f3d908101601f19168201909252613bc391810190614966565b60015b613c21573d808015613bf4576040519150601f19603f3d011682016040523d82523d6000602084013e613bf9565b606091505b508051613c19576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b613c626000546140a3565b611f3582826140b4565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001613cdc929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401613d0993929190614b31565b602060405180830381600087803b158015613d2357600080fd5b505af1158015613d37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d5b91906148f1565b506000838152600c6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052613db7906001614c51565b6000858152600c6020526040902055611cb78482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000818152601d602052604090205480613e535760405162461bcd60e51b815260206004820152601360248201527f4e6f7420612076616c696420746f6b656e4964000000000000000000000000006044820152606401610ffc565b6000828152601d602052604080822091909155517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820181905232602483015260448201839052906342842e0e90606401600060405180830381600087803b158015613ec357600080fd5b505af1158015613ed7573d6000803e3d6000fd5b505050505050565b6000613f34826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166140ce9092919063ffffffff16565b805190915015610f705780806020019051810190613f5291906148f1565b610f705760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610ffc565b613fcf600143614c9c565b4077ffffffffffffffffffffffffffffffffffffffffffffffff191660086001600880549050613fff9190614c9c565b8154811061400f5761400f614d85565b90600052602060002090600491828204019190066008029054906101000a900460c01b77ffffffffffffffffffffffffffffffffffffffffffffffff1916141561409b5760405162461bcd60e51b815260206004820152600e60248201527f57616974206f6e6520626c6f636b0000000000000000000000000000000000006044820152606401610ffc565b611d7e6140dd565b6140ab6140dd565b612235816141c6565b611f35828260405180602001604052806000815250614309565b6060611cb78484600085614316565b600854158061417357506140f2600143614c9c565b4077ffffffffffffffffffffffffffffffffffffffffffffffff1916600860016008805490506141229190614c9c565b8154811061413257614132614d85565b90600052602060002090600491828204019190066008029054906101000a900460c01b77ffffffffffffffffffffffffffffffffffffffffffffffff191614155b15611d7e576008614185600143614c9c565b8154600181018355600092835260209092206004830401805467ffffffffffffffff60039094166008026101000a9384021916914060c01c92909202179055565b60095415806142075750600980546141e090600190614c9c565b815481106141f0576141f0614d85565b60009182526020909120015461ffff908116908216115b6142795760405162461bcd60e51b815260206004820152602c60248201527f746f6b656e496473206d75737420626520636f6d697474656420696e2061736360448201527f656e64696e67206f7264657200000000000000000000000000000000000000006064820152608401610ffc565b6040805180820190915261ffff91821681526008548216602082019081526009805460018101825560009190915291517f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af90920180549151841662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000009092169290931691909117179055565b610f7083838360016138af565b60608247101561438e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610ffc565b843b6143dc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ffc565b600080866001600160a01b031685876040516143f89190614ad9565b60006040518083038185875af1925050503d8060008114614435576040519150601f19603f3d011682016040523d82523d6000602084013e61443a565b606091505b509150915061444a828286614455565b979650505050505050565b60608315614464575081611494565b8251156144745782518084602001fd5b8160405162461bcd60e51b8152600401610ffc9190614be5565b604051806101400160405280600a906020820280368337509192915050565b600082601f8301126144be57600080fd5b8135602067ffffffffffffffff8211156144da576144da614d9b565b8160051b6144e9828201614bf8565b83815282810190868401838801850189101561450457600080fd5b600093505b85841015614527578035835260019390930192918401918401614509565b50979650505050505050565b60008083601f84011261454557600080fd5b50813567ffffffffffffffff81111561455d57600080fd5b60208301915083602082850101111561457557600080fd5b9250929050565b60006020828403121561458e57600080fd5b813561149481614db1565b600080604083850312156145ac57600080fd5b82356145b781614db1565b915060208301356145c781614db1565b809150509250929050565b600080600080608085870312156145e857600080fd5b84356145f381614db1565b9350602085013561460381614db1565b9250604085013561461381614db1565b9150606085013561462381614db1565b939692955090935050565b60008060006060848603121561464357600080fd5b833561464e81614db1565b9250602084013561465e81614db1565b929592945050506040919091013590565b6000806000806080858703121561468557600080fd5b843561469081614db1565b935060208501356146a081614db1565b925060408501359150606085013567ffffffffffffffff8111156146c357600080fd5b8501601f810187136146d457600080fd5b80356146e76146e282614c29565b614bf8565b8181528860208385010111156146fc57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060008060008060a0878903121561473757600080fd5b863561474281614db1565b9550602087013561475281614db1565b94506040870135935060608701359250608087013567ffffffffffffffff81111561477c57600080fd5b61478889828a01614533565b979a9699509497509295939492505050565b600080604083850312156147ad57600080fd5b82356147b881614db1565b915060208301356145c781614dc6565b600080604083850312156147db57600080fd5b82356147e681614db1565b946020939093013593505050565b6000806040838503121561480757600080fd5b823567ffffffffffffffff8082111561481f57600080fd5b61482b868387016144ad565b9350602085013591508082111561484157600080fd5b5061484e858286016144ad565b9150509250929050565b600061014080838503121561486c57600080fd5b83601f84011261487b57600080fd5b60405181810181811067ffffffffffffffff8211171561489d5761489d614d9b565b60405280848381018710156148b157600080fd5b60009350835b600a8110156148e557815160ff811681146148d0578586fd5b835260209283019291909101906001016148b7565b50919695505050505050565b60006020828403121561490357600080fd5b815161149481614dc6565b60006020828403121561492057600080fd5b5051919050565b6000806040838503121561493a57600080fd5b50508035926020909101359150565b60006020828403121561495b57600080fd5b813561149481614dd4565b60006020828403121561497857600080fd5b815161149481614dd4565b60008060006040848603121561499857600080fd5b833567ffffffffffffffff8111156149af57600080fd5b6149bb86828701614533565b90945092505060208401356149cf81614db1565b809150509250925092565b6000602082840312156149ec57600080fd5b815167ffffffffffffffff811115614a0357600080fd5b8201601f81018413614a1457600080fd5b8051614a226146e282614c29565b818152856020838501011115614a3757600080fd5b611397826020830160208601614cb3565b600060208284031215614a5a57600080fd5b5035919050565b600080600060608486031215614a7657600080fd5b83359250602084013561465e81614db1565b60008060408385031215614a9b57600080fd5b8235915060208301356145c781614dc6565b60008151808452614ac5816020860160208601614cb3565b601f01601f19169290920160200192915050565b60008251614aeb818460208701614cb3565b9190910192915050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614b276080830184614aad565b9695505050505050565b6001600160a01b03841681528260208201526060604082015260006113976060830184614aad565b6101408101818360005b600a811015614b8557815160ff16835260209283019290910190600101614b63565b50505092915050565b6020810160038310614bb057634e487b7160e01b600052602160045260246000fd5b91905290565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020815260006114946020830184614aad565b604051601f8201601f1916810167ffffffffffffffff81118282101715614c2157614c21614d9b565b604052919050565b600067ffffffffffffffff821115614c4357614c43614d9b565b50601f01601f191660200190565b60008219821115614c6457614c64614d43565b500190565b600082614c7857614c78614d59565b500490565b6000816000190483118215151615614c9757614c97614d43565b500290565b600082821015614cae57614cae614d43565b500390565b60005b83811015614cce578181015183820152602001614cb6565b838111156123465750506000910152565b600181811c90821680614cf357607f821691505b602082108114156135d857634e487b7160e01b600052602260045260246000fd5b6000600019821415614d2857614d28614d43565b5060010190565b600082614d3e57614d3e614d59565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461223557600080fd5b801515811461223557600080fd5b6001600160e01b03198116811461223557600080fdfea26469706673582212206fc6307c7494090781d2a41c7e54604a246e7bd22824821d25c437f20f0aa3ec64736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000040000000000000000000000006820b94cc4ad7bd3137e5e43f107a869405470bb000000000000000000000000d7d3239511e5f9fd702c78bda9fe3dd8670d5be0000000000000000000000000bfb00bee6dedb8ca4af89d477a9f02857bdbb4d10000000000000000000000003ac8582b2c5898681f443773e3f1ad3cafca70ca00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000019

-----Decoded View---------------
Arg [0] : _payees (address[]): 0x6820B94cC4Ad7Bd3137E5e43F107a869405470Bb,0xd7D3239511e5f9Fd702c78BDA9fe3Dd8670D5BE0,0xBFb00BEE6DedB8ca4aF89D477a9f02857bDbB4D1,0x3Ac8582B2C5898681f443773e3F1Ad3cAfCa70ca
Arg [1] : _shares (uint256[]): 25,25,25,25

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [3] : 0000000000000000000000006820b94cc4ad7bd3137e5e43f107a869405470bb
Arg [4] : 000000000000000000000000d7d3239511e5f9fd702c78bda9fe3dd8670d5be0
Arg [5] : 000000000000000000000000bfb00bee6dedb8ca4af89d477a9f02857bdbb4d1
Arg [6] : 0000000000000000000000003ac8582b2c5898681f443773e3f1ad3cafca70ca
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000019


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.