ETH Price: $3,397.53 (+1.97%)

Token

SpeakerHeads Volume 1 (SPKR)
 

Overview

Max Total Supply

310 SPKR

Holders

200

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
felixschlater.eth
Balance
1 SPKR
0x313f4db3ac1977978fa384084f49840d2be826b1
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

SPEAKERHEADS ARE RANDOMLY GENERATED NON-FUNGIBLE TOKEN (NFT) COLLECTIBLE ARTWORKS WITH LIMITED-EDITION MUSIC, AND AN ALL-ACCESS PASS TO ARTISTS AND EXCLUSIVE BENEFITS

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
SpeakerHeads

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "./SpeakerHeadsBase.sol";

contract SpeakerHeads is SpeakerHeadsBase, VRFConsumerBase {
    using Address for address;
    using Strings for uint256;

    string public provenanceHash;
    bool public revealed;
    bool public specialEditionsRevealed;
    bool public randomOffsetGenerated;

    uint256 internal _tokenOffset;
    uint256 internal _linkFee;
    bytes32 internal _linkKeyHash;

    string internal _baseTokenURI;
    string internal _unrevealedTokenURI;
    string internal _specialEditionsURI;

    constructor(
        string memory unrevealedTokenURI,
        address teamAddress,
        address signer,
        address vrfCoordinator,
        address linkToken,
        bytes32 linkKeyHash,
        uint256 linkFee
    )
        VRFConsumerBase(vrfCoordinator, linkToken)
        SpeakerHeadsBase(teamAddress, signer)
    {
        _teamAddress = teamAddress;
        _unrevealedTokenURI = unrevealedTokenURI;

        _linkKeyHash = linkKeyHash;
        _linkFee = linkFee;
    }

    function tokenOffset() public view returns (uint256) {
        return _tokenOffset;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        uint256 numberSpecialReserved = _numSpecialEditionToken();
        if (tokenId < numberSpecialReserved) {
            // These are special edition tokens
            require(_exists(tokenId), "Query for nonexistent token");
            if (specialEditionsRevealed) {
                return
                    string(
                        abi.encodePacked(
                            _specialEditionsURI,
                            metadataId(tokenId).toString()
                        )
                    );
            } else {
                return _unrevealedTokenURI;
            }
        } else {
            // These are all the others
            if (revealed) {
                return
                    string(
                        abi.encodePacked(
                            _baseURI(),
                            metadataId(tokenId).toString()
                        )
                    );
            } else {
                return _unrevealedTokenURI;
            }
        }
    }

    function metadataId(uint256 tokenId) public view returns (uint256) {
        require(_exists(tokenId), "Query for nonexistent token");

        if (!revealed) {
            return tokenId;
        }

        uint256 numberSpecialReserved = _numSpecialEditionToken();
        if (tokenId < numberSpecialReserved) {
            return tokenId;
        } else {
            return
                ((tokenId + tokenOffset()) %
                    (MAX_SUPPLY - numberSpecialReserved)) +
                numberSpecialReserved;
        }
    }

    function setUnrevealedTokenURI(string memory newURI) public onlyOwner {
        _unrevealedTokenURI = newURI;
    }

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

    function setBaseURI(string memory _newBaseURI)
        public
        onlyOwner
        isNotRevealed
    {
        _baseTokenURI = _newBaseURI;
    }

    function setSpecialEditionsURI(string memory _newSpecialEditionsURI)
        public
        onlyOwner
        isSpecialEditionsNotRevealed
    {
        _specialEditionsURI = _newSpecialEditionsURI;
    }

    /**
     * @dev reveal metadata of tokens.
     * @dev only can call one time, and only owner can call it.
     * @dev function will request to chainlink oracle and receive random number.
     * @dev contract will get this number by fulfillRandomness function.
     * @dev You should transfer 2 LINK token to contract, before call this function
     */
    function reveal() public onlyOwner isNotRevealed {
        require(bytes(provenanceHash).length > 0, "Provenance hash not set");
        require(bytes(_baseTokenURI).length > 0, "BaseURI not set");
        require(randomOffsetGenerated, "Must generate random offset");
        revealed = true;
    }

    function generateRandomOffset() public onlyOwner isNotRevealed {
        require(
            LINK.balanceOf(address(this)) >= _linkFee,
            "Insufficient $LINK balance"
        );
        requestRandomness(_linkKeyHash, _linkFee);
    }

    function revealSpecialEditions()
        public
        onlyOwner
        isSpecialEditionsNotRevealed
    {
        require(
            bytes(_specialEditionsURI).length > 0,
            "SpecialEditionsURI not set"
        );
        specialEditionsRevealed = true;
    }

    /**
     * @dev receive random number from chainlink
     * @notice random number will greater than zero
     */
    function fulfillRandomness(bytes32 requestId, uint256 randomNumber)
        internal
        override
    {
        _tokenOffset = randomNumber;
        randomOffsetGenerated = true;
    }

    /**
     * @dev set ProvenanceHash only once.
     * @notice ProvenanceHash should not be set already
     */

    function setProvenanceHash(string memory _provenanceHash)
        public
        onlyOwner
        isNotRevealed
    {
        require(
            bytes(provenanceHash).length == 0,
            "Provenance hash already set"
        );
        provenanceHash = _provenanceHash;
    }

    /**
     * @dev withdraw remaining link token
     */
    function withdrawLinkToken(address to, uint256 amount) public onlyOwner {
        if (to == address(0)) {
            to = msg.sender;
        }
        if (amount == 0) {
            amount = LINK.balanceOf(address(this));
        }

        LINK.transfer(to, amount);
    }

    modifier isNotRevealed() {
        require(!revealed, "Must not be revealed");
        _;
    }

    modifier isRevealed() {
        require(revealed, "Must be revealed");
        _;
    }

    modifier isSpecialEditionsNotRevealed() {
        require(!specialEditionsRevealed, "SEs must not be revealed");
        _;
    }
}

File 2 of 18 : Address.sol
// SPDX-License-Identifier: MIT

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 3 of 18 : Strings.sol
// SPDX-License-Identifier: MIT

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 4 of 18 : 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 constant private 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 immutable internal LINK;
  address immutable private vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 /* keyHash */ => uint256 /* 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 5 of 18 : SpeakerHeadsBase.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./Whitelisted.sol";

contract SpeakerHeadsBase is ERC721, Ownable, Whitelisted, ReentrancyGuard {
    using Address for address;
    using ECDSA for bytes32;

    uint256 public constant MINT_PRICE = 0.12 ether;
    uint256 public constant MAX_SUPPLY = 8888;
    uint256 public constant PUBLIC_MAX_MINT = 10;
    uint256 public constant WHITELIST_MAX_MINT = 3;
    uint256 public constant BRAND_RESERVED = 1; // [no. 0] reserved for the brand
    uint256 public constant SPECIAL_EDITIONS_RESERVED = 8; // [no. 1-8] reserved non-random special editions
    uint256 public constant CORE_RESERVED = 91; // [no. 9-99] reserved for charity, education, advisors, and giveaway

    uint256 internal _tokenIds;

    address internal _teamAddress;

    mapping(address => uint256) internal _numberWhitelistMinted;

    bool public whitelistSaleActive = false;
    bool public saleActive = false;

    bool public brandPreminted = false;
    bool public specialEditionsPreminted = false;
    bool public corePreminted = false;

    constructor(address teamAddress, address signer)
        ERC721("SpeakerHeads Volume 1", "SPKR")
        Whitelisted(signer)
    {
        _teamAddress = teamAddress;
    }

    function premintBrandReserve() public onlyOwner {
        require(!brandPreminted, "Already preminted token 0");
        _safeMint(_teamAddress, totalSupply());
        _tokenIds += 1;
        brandPreminted = true;
    }

    function premintSpecialEditions() public onlyOwner {
        require(!specialEditionsPreminted, "Special editions already minted");
        require(brandPreminted, "Must premint brand token first");

        for (uint256 i = 0; i < SPECIAL_EDITIONS_RESERVED; i++) {
            _safeMint(_teamAddress, totalSupply());
            _tokenIds += 1;
        }
        specialEditionsPreminted = true;
    }

    function premintCoreReserve() public onlyOwner {
        require(!corePreminted, "Core reserve already minted");
        require(brandPreminted, "Must premint brand token first");
        require(specialEditionsPreminted, "Premint special editions first");

        for (uint256 i = 0; i < CORE_RESERVED; i++) {
            _safeMint(_teamAddress, totalSupply());
            _tokenIds += 1;
        }
        corePreminted = true;
    }

    function totalSupply() public view returns (uint256) {
        return _tokenIds;
    }

    function toggleWhitelistSaleActive() public onlyOwner {
        whitelistSaleActive = !whitelistSaleActive;
    }

    function toggleSaleActive() public onlyOwner {
        saleActive = !saleActive;
    }

    function whitelistMint(bytes memory signature, uint256 amount)
        public
        payable
        isPremintComplete
        nonReentrant
        isWhitelistSaleActive
        isValidWhitelistSignature(signature)
        hasRemainingWhitelistMints(amount)
    {
        _mintAmount(amount, msg.sender);
        _numberWhitelistMinted[msg.sender] += amount;
    }

    function usedWhitelistMints()
        public
        view
        isWhitelistSaleActive
        returns (uint256)
    {
        return _numberWhitelistMinted[msg.sender];
    }

    function publicMint(uint256 amount)
        public
        payable
        isPremintComplete
        nonReentrant
        isSaleActive
        validPublicTxLimit(amount)
    {
        _mintAmount(amount, msg.sender);
    }

    function _mintAmount(uint256 amount, address to)
        internal
        isNotContract
        tokensAvailable(amount)
        isValidPayment(amount)
    {
        for (uint256 i = 0; i < amount; i++) {
            _safeMint(to, totalSupply());
            _tokenIds += 1;
        }
    }

    function withdrawTo(address to, uint256 amount) public onlyOwner {
        if (to == address(0)) {
            to = msg.sender;
        }
        if (amount == 0) {
            amount = address(this).balance;
        }
        require(payable(to).send(amount), "Address cannot receive payment");
    }

    function _numSpecialEditionToken() internal pure returns (uint256) {
        return (SPECIAL_EDITIONS_RESERVED + BRAND_RESERVED);
    }

    modifier isSaleActive() {
        require(saleActive, "Sale it not active");
        _;
    }

    modifier isWhitelistSaleActive() {
        require(whitelistSaleActive, "Presale is not active");
        _;
    }

    modifier isPremintComplete() {
        require(
            brandPreminted && specialEditionsPreminted && corePreminted,
            "Must premint first"
        );
        _;
    }

    modifier hasRemainingWhitelistMints(uint256 amount) {
        require(amount > 0, "Must specify amount");
        require(
            _numberWhitelistMinted[msg.sender] + amount <= WHITELIST_MAX_MINT,
            "Exceeds whitelist allowance"
        );
        _;
    }

    modifier validPublicTxLimit(uint256 amount) {
        require(amount > 0, "Must specify amount");
        require(amount <= PUBLIC_MAX_MINT, "Exceeds the maximum amount");
        _;
    }

    modifier tokensAvailable(uint256 amount) {
        require(
            (totalSupply() + amount) <= MAX_SUPPLY,
            "Exceeds maximum number of tokens"
        );
        _;
    }

    modifier isValidPayment(uint256 amount) {
        require(msg.value == MINT_PRICE * amount, "Invalid Ether amount sent");
        _;
    }

    // Let's at least avoid a thesevens situation
    // https://etherscan.io/tx/0x9bbef2282c33ca564b1e58505193fc737e7c5a326ef14aec25da199af2a4dc51
    modifier isNotContract() {
        require(msg.sender == tx.origin, "Proxies cannot mint");
        _;
    }
}

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

interface LinkTokenInterface {

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

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

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

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

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

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

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

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

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

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

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

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

}

File 7 of 18 : 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 8 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 9 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 10 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make 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 11 of 18 : Whitelisted.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";

//🎩🐭 fancyrats.eth

contract Whitelisted {
    using ECDSA for bytes32;
    using Address for address;

    address internal _signer;

    constructor(address signer) {
        _signer = signer;
    }

    // Assumes the signed message was human-readable msg.sender address (lowercase, without the '0x')
    modifier isValidWhitelistSignature(bytes memory signature) {
        bytes32 messageHash = toEthSignedMessageHash(asciiSender());
        address signer = messageHash.recover(signature);

        require(signer == _signer, "Invalid whitelist signature");
        _;
    }

    function recoveredAddress(bytes memory signature)
        public
        view
        returns (bytes memory)
    {
        address recoveredSigner = recover(signature);
        return abi.encodePacked(recoveredSigner);
    }

    function recover(bytes memory signature) public view returns (address) {
        bytes32 messageHash = toEthSignedMessageHash(asciiSender());
        address recoveredSigner = messageHash.recover(signature);
        return recoveredSigner;
    }

    function generateSenderHash() public view returns (bytes32) {
        return toEthSignedMessageHash(asciiSender());
    }

    // Because at time of writing, 5b28259dacf47fc208e03611eb3ba8eeaed63cc0 hasn't made it into
    // OpenZepplin ECDSA release yet.
    // https://github.com/OpenZeppelin/openzeppelin-contracts/commit/5b28259dacf47fc208e03611eb3ba8eeaed63cc0#diff-ff09871806bcccfd38e43de481f3e7e2fb92134c58e1a1f97b054e2d0d727458R209
    function toEthSignedMessageHash(string memory s)
        public
        pure
        returns (bytes32)
    {
        bytes memory b = bytes(s);
        return
            keccak256(
                abi.encodePacked(
                    "\x19Ethereum Signed Message:\n",
                    Strings.toString(b.length),
                    b
                )
            );
    }

    function asciiSender() public view returns (string memory) {
        return toAsciiString(msg.sender);
    }

    function toAsciiString(address x) internal pure returns (string memory) {
        bytes memory s = new bytes(40);
        for (uint256 i = 0; i < 20; i++) {
            bytes1 b = bytes1(uint8(uint256(uint160(x)) / (2**(8 * (19 - i)))));
            bytes1 hi = bytes1(uint8(b) / 16);
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
            s[2 * i] = char(hi);
            s[2 * i + 1] = char(lo);
        }
        return string(s);
    }

    function char(bytes1 b) internal pure returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
        else return bytes1(uint8(b) + 0x57);
    }
}

File 12 of 18 : Context.sol
// SPDX-License-Identifier: MIT

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 13 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT

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 14 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 15 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 16 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT

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 18 : IERC165.sol
// SPDX-License-Identifier: MIT

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 18 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"unrevealedTokenURI","type":"string"},{"internalType":"address","name":"teamAddress","type":"address"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"vrfCoordinator","type":"address"},{"internalType":"address","name":"linkToken","type":"address"},{"internalType":"bytes32","name":"linkKeyHash","type":"bytes32"},{"internalType":"uint256","name":"linkFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"BRAND_RESERVED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CORE_RESERVED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPECIAL_EDITIONS_RESERVED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asciiSender","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"brandPreminted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"corePreminted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"generateRandomOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"generateSenderHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"metadataId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"premintBrandReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"premintCoreReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"premintSpecialEditions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"randomOffsetGenerated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"bytes","name":"signature","type":"bytes"}],"name":"recover","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoveredAddress","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealSpecialEditions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newSpecialEditionsURI","type":"string"}],"name":"setSpecialEditionsURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setUnrevealedTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"specialEditionsPreminted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"specialEditionsRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"string","name":"s","type":"string"}],"name":"toEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"toggleSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWhitelistSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenOffset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usedWhitelistMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawLinkToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052600c805464ffffffffff191690553480156200001f57600080fd5b506040516200473a3803806200473a83398101604081905262000042916200027c565b83838787806040518060400160405280601581526020017f537065616b6572486561647320566f6c756d65203100000000000000000000008152506040518060400160405280600481526020016329a825a960e11b8152508160009080519060200190620000b2929190620001b9565b508051620000c8906001906020840190620001b9565b505050620000e5620000df6200016360201b60201c565b62000167565b600780546001600160a01b039283166001600160a01b0319918216179091556001600855600a80546001600160601b0319606098891b811660a0529690971b909516608052908b16941693909317909155505086516200014d9060149060208a0190620001b9565b5060129190915560115550620004059350505050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001c790620003b2565b90600052602060002090601f016020900481019282620001eb576000855562000236565b82601f106200020657805160ff191683800117855562000236565b8280016001018555821562000236579182015b828111156200023657825182559160200191906001019062000219565b506200024492915062000248565b5090565b5b8082111562000244576000815560010162000249565b80516001600160a01b03811681146200027757600080fd5b919050565b600080600080600080600060e0888a03121562000297578283fd5b87516001600160401b0380821115620002ae578485fd5b818a0191508a601f830112620002c2578485fd5b815181811115620002d757620002d7620003ef565b604051601f8201601f19908116603f01168101908382118183101715620003025762000302620003ef565b81604052828152602093508d848487010111156200031e578788fd5b8791505b8282101562000341578482018401518183018501529083019062000322565b828211156200035257878484830101525b9a50620003649150508a82016200025f565b9750505062000376604089016200025f565b945062000386606089016200025f565b935062000396608089016200025f565b925060a0880151915060c0880151905092959891949750929550565b600181811c90821680620003c757607f821691505b60208210811415620003e957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c6142ed6200044d60003960008181611917015261318a015260008181611f520152818161201601528181612425015261315b01526142ed6000f3fe6080604052600436106103815760003560e01c80638da5cb5b116101d1578063b88d4fde11610102578063d7aaa13b116100a0578063e27240771161006f578063e272407714610974578063e985e9c514610994578063f2fde38b146109dd578063f63cb83c146109fd57600080fd5b8063d7aaa13b14610914578063dc8c57b414610935578063dd820a9c1461094a578063de2785661461095f57600080fd5b8063c6ab67a3116100dc578063c6ab67a3146108aa578063c87b56dd146108bf578063cc7a856c146108df578063d720f9da146108f457600080fd5b8063b88d4fde14610859578063b89fe99914610879578063c002d23d1461088e57600080fd5b8063a4a1edb11161016f578063a999cd4f11610149578063a999cd4f146107ed578063ab9270341461080f578063ae5c238a14610824578063aeb167681461084457600080fd5b8063a4a1edb1146107a3578063a7346780146107c3578063a7a28dfb146107d857600080fd5b806395d89b41116101ab57806395d89b41146107395780639c6add8e1461074e578063a22cb4651461076e578063a475b5dd1461078e57600080fd5b80638da5cb5b146106e657806392a82d371461070457806394985ddd1461071957600080fd5b806333385afe116102b657806355f804b3116102545780636bcf049a116102235780636bcf049a1461067157806370a0823114610691578063715018a6146106b1578063820de0c5146106c657600080fd5b806355f804b3146105f35780636352211e14610613578063662b17641461063357806368428a1b1461065257600080fd5b8063408372a011610290578063408372a01461058457806340838f74146105a457806342842e0e146105b957806351830227146105d957600080fd5b806333385afe14610540578063346d14ae146105555780633ad7f56c1461056a57600080fd5b806318160ddd116103235780632db11544116102fd5780632db11544146104e25780632ec01860146104f55780633100a5351461051557806332cb6b0c1461052a57600080fd5b806318160ddd1461048d578063205c2878146104a257806323b872dd146104c257600080fd5b806308e3f8681161035f57806308e3f86814610415578063095ea7b31461042a5780630e8b99f21461044a578063109695231461046d57600080fd5b806301ffc9a71461038657806306fdde03146103bb578063081812fc146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004613cb6565b610a12565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610aaf565b6040516103b29190613fb6565b3480156103e957600080fd5b506103fd6103f8366004613daa565b610b41565b6040516001600160a01b0390911681526020016103b2565b610428610423366004613d21565b610bdb565b005b34801561043657600080fd5b50610428610445366004613c50565b610e7c565b34801561045657600080fd5b5061045f610fcc565b6040519081526020016103b2565b34801561047957600080fd5b50610428610488366004613d64565b611035565b34801561049957600080fd5b5060095461045f565b3480156104ae57600080fd5b506104286104bd366004613c50565b61113a565b3480156104ce57600080fd5b506104286104dd366004613b79565b61120d565b6104286104f0366004613daa565b611294565b34801561050157600080fd5b50610428610510366004613d64565b61147b565b34801561052157600080fd5b5061042861152e565b34801561053657600080fd5b5061045f6122b881565b34801561054c57600080fd5b5061045f600181565b34801561056157600080fd5b506103d0611593565b34801561057657600080fd5b50600c546103a69060ff1681565b34801561059057600080fd5b50600c546103a69062010000900460ff1681565b3480156105b057600080fd5b5061045f6115a3565b3480156105c557600080fd5b506104286105d4366004613b79565b6115b0565b3480156105e557600080fd5b50600f546103a69060ff1681565b3480156105ff57600080fd5b5061042861060e366004613d64565b6115cb565b34801561061f57600080fd5b506103fd61062e366004613daa565b611670565b34801561063f57600080fd5b50600f546103a690610100900460ff1681565b34801561065e57600080fd5b50600c546103a690610100900460ff1681565b34801561067d57600080fd5b5061045f61068c366004613daa565b6116fb565b34801561069d57600080fd5b5061045f6106ac366004613b2d565b6117c3565b3480156106bd57600080fd5b5061042861185d565b3480156106d257600080fd5b506104286106e1366004613d64565b6118b1565b3480156106f257600080fd5b506006546001600160a01b03166103fd565b34801561071057600080fd5b5061045f605b81565b34801561072557600080fd5b50610428610734366004613c95565b61190c565b34801561074557600080fd5b506103d06119a0565b34801561075a57600080fd5b506103d0610769366004613cee565b6119af565b34801561077a57600080fd5b50610428610789366004613c1a565b6119f6565b34801561079a57600080fd5b50610428611abb565b3480156107af57600080fd5b506103fd6107be366004613cee565b611c70565b3480156107cf57600080fd5b5061045f600a81565b3480156107e457600080fd5b50610428611c94565b3480156107f957600080fd5b50600c546103a690640100000000900460ff1681565b34801561081b57600080fd5b50610428611df9565b34801561083057600080fd5b5061042861083f366004613c50565b611ede565b34801561085057600080fd5b5061045f600381565b34801561086557600080fd5b50610428610874366004613bb4565b612092565b34801561088557600080fd5b50610428612120565b34801561089a57600080fd5b5061045f6701aa535d3d0c000081565b3480156108b657600080fd5b506103d061217c565b3480156108cb57600080fd5b506103d06108da366004613daa565b61220a565b3480156108eb57600080fd5b5061042861237b565b34801561090057600080fd5b5061045f61090f366004613d64565b612506565b34801561092057600080fd5b50600c546103a6906301000000900460ff1681565b34801561094157600080fd5b5060105461045f565b34801561095657600080fd5b50610428612546565b34801561096b57600080fd5b50610428612655565b34801561098057600080fd5b50600f546103a69062010000900460ff1681565b3480156109a057600080fd5b506103a66109af366004613b47565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109e957600080fd5b506104286109f8366004613b2d565b612811565b348015610a0957600080fd5b5061045f600881565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a7557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610aa957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060008054610abe906141cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610aea906141cd565b8015610b375780601f10610b0c57610100808354040283529160200191610b37565b820191906000526020600020905b815481529060010190602001808311610b1a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610bbf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600c5462010000900460ff168015610bfc5750600c546301000000900460ff165b8015610c125750600c54640100000000900460ff165b610c5e5760405162461bcd60e51b815260206004820152601260248201527f4d757374207072656d696e7420666972737400000000000000000000000000006044820152606401610bb6565b60026008541415610cb15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b6002600855600c5460ff16610d085760405162461bcd60e51b815260206004820152601560248201527f50726573616c65206973206e6f742061637469766500000000000000000000006044820152606401610bb6565b816000610d1661090f611593565b90506000610d2482846128de565b6007549091506001600160a01b03808316911614610d845760405162461bcd60e51b815260206004820152601b60248201527f496e76616c69642077686974656c697374207369676e617475726500000000006044820152606401610bb6565b8360008111610dd55760405162461bcd60e51b815260206004820152601360248201527f4d757374207370656369667920616d6f756e74000000000000000000000000006044820152606401610bb6565b336000908152600b6020526040902054600390610df3908390613fc9565b1115610e415760405162461bcd60e51b815260206004820152601b60248201527f457863656564732077686974656c69737420616c6c6f77616e636500000000006044820152606401610bb6565b610e4b8533612902565b336000908152600b602052604081208054879290610e6a908490613fc9565b90915550506001600855505050505050565b6000610e8782611670565b9050806001600160a01b0316836001600160a01b03161415610f115760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610bb6565b336001600160a01b0382161480610f4b57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b610fbd5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bb6565b610fc78383612a62565b505050565b600c5460009060ff166110215760405162461bcd60e51b815260206004820152601560248201527f50726573616c65206973206e6f742061637469766500000000000000000000006044820152606401610bb6565b50336000908152600b602052604090205490565b6006546001600160a01b0316331461107d5760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f5460ff16156110c75760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610bb6565b600e80546110d4906141cd565b1590506111235760405162461bcd60e51b815260206004820152601b60248201527f50726f76656e616e6365206861736820616c72656164792073657400000000006044820152606401610bb6565b805161113690600e9060208401906139e8565b5050565b6006546001600160a01b031633146111825760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b6001600160a01b038216611194573391505b8061119c5750475b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050506111365760405162461bcd60e51b815260206004820152601e60248201527f416464726573732063616e6e6f742072656365697665207061796d656e7400006044820152606401610bb6565b6112173382612add565b6112895760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bb6565b610fc7838383612bd0565b600c5462010000900460ff1680156112b55750600c546301000000900460ff165b80156112cb5750600c54640100000000900460ff165b6113175760405162461bcd60e51b815260206004820152601260248201527f4d757374207072656d696e7420666972737400000000000000000000000000006044820152606401610bb6565b6002600854141561136a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b6002600855600c54610100900460ff166113c65760405162461bcd60e51b815260206004820152601260248201527f53616c65206974206e6f742061637469766500000000000000000000000000006044820152606401610bb6565b80600081116114175760405162461bcd60e51b815260206004820152601360248201527f4d757374207370656369667920616d6f756e74000000000000000000000000006044820152606401610bb6565b600a8111156114685760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d6178696d756d20616d6f756e740000000000006044820152606401610bb6565b6114728233612902565b50506001600855565b6006546001600160a01b031633146114c35760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f54610100900460ff161561151b5760405162461bcd60e51b815260206004820152601860248201527f534573206d757374206e6f742062652072657665616c656400000000000000006044820152606401610bb6565b80516111369060159060208401906139e8565b6006546001600160a01b031633146115765760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600c805461ff001981166101009182900460ff1615909102179055565b606061159e33612daa565b905090565b600061159e61090f611593565b610fc783838360405180602001604052806000815250612092565b6006546001600160a01b031633146116135760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f5460ff161561165d5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610bb6565b80516111369060139060208401906139e8565b6000818152600260205260408120546001600160a01b031680610aa95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610bb6565b6000818152600260205260408120546001600160a01b031661175f5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610bb6565b600f5460ff1661176d575090565b6000611777612f0d565b905080831015611788575090919050565b80611795816122b8614167565b6010546117a29086613fc9565b6117ac919061421d565b6117b69190613fc9565b9392505050565b50919050565b60006001600160a01b0382166118415760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610bb6565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146118a55760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b6118af6000612f1b565b565b6006546001600160a01b031633146118f95760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b80516111369060149060208401906139e8565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146119845760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610bb6565b611136828260105550600f805462ff0000191662010000179055565b606060018054610abe906141cd565b606060006119bc83611c70565b6040516bffffffffffffffffffffffff19606083901b1660208201529091506034015b604051602081830303815290604052915050919050565b6001600160a01b038216331415611a4f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bb6565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611b035760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f5460ff1615611b4d5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610bb6565b6000600e8054611b5c906141cd565b905011611bab5760405162461bcd60e51b815260206004820152601760248201527f50726f76656e616e63652068617368206e6f74207365740000000000000000006044820152606401610bb6565b600060138054611bba906141cd565b905011611c095760405162461bcd60e51b815260206004820152600f60248201527f42617365555249206e6f742073657400000000000000000000000000000000006044820152606401610bb6565b600f5462010000900460ff16611c615760405162461bcd60e51b815260206004820152601b60248201527f4d7573742067656e65726174652072616e646f6d206f666673657400000000006044820152606401610bb6565b600f805460ff19166001179055565b600080611c7e61090f611593565b90506000611c8c82856128de565b949350505050565b6006546001600160a01b03163314611cdc5760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600c546301000000900460ff1615611d365760405162461bcd60e51b815260206004820152601f60248201527f5370656369616c2065646974696f6e7320616c7265616479206d696e746564006044820152606401610bb6565b600c5462010000900460ff16611d8e5760405162461bcd60e51b815260206004820152601e60248201527f4d757374207072656d696e74206272616e6420746f6b656e20666972737400006044820152606401610bb6565b60005b6008811015611de357600a54611db8906001600160a01b0316611db360095490565b612f7a565b600160096000828254611dcb9190613fc9565b90915550819050611ddb81614202565b915050611d91565b50600c805463ff00000019166301000000179055565b6006546001600160a01b03163314611e415760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600c5462010000900460ff1615611e9a5760405162461bcd60e51b815260206004820152601960248201527f416c7265616479207072656d696e74656420746f6b656e2030000000000000006044820152606401610bb6565b600a54611eb3906001600160a01b0316611db360095490565b600160096000828254611ec69190613fc9565b9091555050600c805462ff0000191662010000179055565b6006546001600160a01b03163314611f265760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b6001600160a01b038216611f38573391505b80611fd7576040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015611f9c57600080fd5b505afa158015611fb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fd49190613dc2565b90505b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90604401602060405180830381600087803b15801561205a57600080fd5b505af115801561206e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc79190613c79565b61209c3383612add565b61210e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bb6565b61211a84848484612f94565b50505050565b6006546001600160a01b031633146121685760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600c805460ff19811660ff90911615179055565b600e8054612189906141cd565b80601f01602080910402602001604051908101604052809291908181526020018280546121b5906141cd565b80156122025780601f106121d757610100808354040283529160200191612202565b820191906000526020600020905b8154815290600101906020018083116121e557829003601f168201915b505050505081565b60606000612216612f0d565b90508083101561234b576000838152600260205260409020546001600160a01b03166122845760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610bb6565b600f54610100900460ff16156122b85760156122a76122a2856116fb565b613012565b6040516020016119df929190613e51565b601480546122c5906141cd565b80601f01602080910402602001604051908101604052809291908181526020018280546122f1906141cd565b801561233e5780601f106123135761010080835404028352916020019161233e565b820191906000526020600020905b81548152906001019060200180831161232157829003601f168201915b5050505050915050919050565b600f5460ff16156122b85761235e613148565b61236a6122a2856116fb565b6040516020016119df929190613e22565b6006546001600160a01b031633146123c35760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f5460ff161561240d5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610bb6565b6011546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561246f57600080fd5b505afa158015612483573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a79190613dc2565b10156124f55760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420244c494e4b2062616c616e63650000000000006044820152606401610bb6565b612503601254601154613157565b50565b6000808290506125168151613012565b81604051602001612528929190613ef7565b60405160208183030381529060405280519060200120915050919050565b6006546001600160a01b0316331461258e5760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f54610100900460ff16156125e65760405162461bcd60e51b815260206004820152601860248201527f534573206d757374206e6f742062652072657665616c656400000000000000006044820152606401610bb6565b6000601580546125f5906141cd565b9050116126445760405162461bcd60e51b815260206004820152601a60248201527f5370656369616c45646974696f6e73555249206e6f74207365740000000000006044820152606401610bb6565b600f805461ff001916610100179055565b6006546001600160a01b0316331461269d5760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600c54640100000000900460ff16156126f85760405162461bcd60e51b815260206004820152601b60248201527f436f7265207265736572766520616c7265616479206d696e74656400000000006044820152606401610bb6565b600c5462010000900460ff166127505760405162461bcd60e51b815260206004820152601e60248201527f4d757374207072656d696e74206272616e6420746f6b656e20666972737400006044820152606401610bb6565b600c546301000000900460ff166127a95760405162461bcd60e51b815260206004820152601e60248201527f5072656d696e74207370656369616c2065646974696f6e7320666972737400006044820152606401610bb6565b60005b605b8110156127f957600a546127ce906001600160a01b0316611db360095490565b6001600960008282546127e19190613fc9565b909155508190506127f181614202565b9150506127ac565b50600c805464ff000000001916640100000000179055565b6006546001600160a01b031633146128595760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b6001600160a01b0381166128d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bb6565b61250381612f1b565b60008060006128ed85856132e2565b915091506128fa81613352565b509392505050565b3332146129515760405162461bcd60e51b815260206004820152601360248201527f50726f786965732063616e6e6f74206d696e74000000000000000000000000006044820152606401610bb6565b816122b88161295f60095490565b6129699190613fc9565b11156129b75760405162461bcd60e51b815260206004820181905260248201527f45786365656473206d6178696d756d206e756d626572206f6620746f6b656e736044820152606401610bb6565b826129ca816701aa535d3d0c0000614127565b3414612a185760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420457468657220616d6f756e742073656e74000000000000006044820152606401610bb6565b60005b84811015612a5b57612a3084611db360095490565b600160096000828254612a439190613fc9565b90915550819050612a5381614202565b915050612a1b565b5050505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612aa482611670565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612b565760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bb6565b6000612b6183611670565b9050806001600160a01b0316846001600160a01b03161480612b9c5750836001600160a01b0316612b9184610b41565b6001600160a01b0316145b80611c8c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16611c8c565b826001600160a01b0316612be382611670565b6001600160a01b031614612c5f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610bb6565b6001600160a01b038216612cda5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610bb6565b612ce5600082612a62565b6001600160a01b0383166000908152600360205260408120805460019290612d0e908490614167565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d3c908490613fc9565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015612f06576000612de7826013614167565b612df2906008614127565b612dfd90600261407f565b612e10906001600160a01b038716614006565b60f81b9050600060108260f81c612e27919061401a565b60f81b905060008160f81c6010612e3e9190614146565b8360f81c612e4c919061417e565b60f81b9050612e5a82613553565b85612e66866002614127565b81518110612e8457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612ea481613553565b85612eb0866002614127565b612ebb906001613fc9565b81518110612ed957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505050508080612efe90614202565b915050612dd1565b5092915050565b600061159e60016008613fc9565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61113682826040518060200160405280600081525061358e565b612f9f848484612bd0565b612fab8484848461360c565b61211a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bb6565b60608161305257505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561307c578061306681614202565b91506130759050600a83614006565b9150613056565b60008167ffffffffffffffff8111156130a557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130cf576020820181803683370190505b5090505b8415611c8c576130e4600183614167565b91506130f1600a8661421d565b6130fc906030613fc9565b60f81b81838151811061311f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613141600a86614006565b94506130d3565b606060138054610abe906141cd565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016131c7929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016131f493929190613f8e565b602060405180830381600087803b15801561320e57600080fd5b505af1158015613222573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132469190613c79565b506000838152600d6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120938790529190526132a2906001613fc9565b6000858152600d6020526040902055611c8c8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000808251604114156133195760208301516040840151606085015160001a61330d87828585613764565b9450945050505061334b565b8251604014156133435760208301516040840151613338868383613851565b93509350505061334b565b506000905060025b9250929050565b600081600481111561337457634e487b7160e01b600052602160045260246000fd5b141561337d5750565b600181600481111561339f57634e487b7160e01b600052602160045260246000fd5b14156133ed5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bb6565b600281600481111561340f57634e487b7160e01b600052602160045260246000fd5b141561345d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bb6565b600381600481111561347f57634e487b7160e01b600052602160045260246000fd5b14156134d85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610bb6565b60048160048111156134fa57634e487b7160e01b600052602160045260246000fd5b14156125035760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610bb6565b6000600a60f883901c101561357a5761357160f883901c6030613fe1565b60f81b92915050565b61357160f883901c6057613fe1565b919050565b6135988383613899565b6135a5600084848461360c565b610fc75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bb6565b60006001600160a01b0384163b1561375957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613650903390899088908890600401613f52565b602060405180830381600087803b15801561366a57600080fd5b505af192505050801561369a575060408051601f3d908101601f1916820190925261369791810190613cd2565b60015b61373f573d8080156136c8576040519150601f19603f3d011682016040523d82523d6000602084013e6136cd565b606091505b5080516137375760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bb6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c8c565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561379b5750600090506003613848565b8460ff16601b141580156137b357508460ff16601c14155b156137c45750600090506004613848565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613818573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661384157600060019250925050613848565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161388b87828885613764565b935093505050935093915050565b6001600160a01b0382166138ef5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bb6565b6000818152600260205260409020546001600160a01b0316156139545760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bb6565b6001600160a01b038216600090815260036020526040812080546001929061397d908490613fc9565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546139f4906141cd565b90600052602060002090601f016020900481019282613a165760008555613a5c565b82601f10613a2f57805160ff1916838001178555613a5c565b82800160010185558215613a5c579182015b82811115613a5c578251825591602001919060010190613a41565b50613a68929150613a6c565b5090565b5b80821115613a685760008155600101613a6d565b600067ffffffffffffffff80841115613a9c57613a9c61425d565b604051601f8501601f19908116603f01168101908282118183101715613ac457613ac461425d565b81604052809350858152868686011115613add57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461358957600080fd5b600082601f830112613b1e578081fd5b6117b683833560208501613a81565b600060208284031215613b3e578081fd5b6117b682613af7565b60008060408385031215613b59578081fd5b613b6283613af7565b9150613b7060208401613af7565b90509250929050565b600080600060608486031215613b8d578081fd5b613b9684613af7565b9250613ba460208501613af7565b9150604084013590509250925092565b60008060008060808587031215613bc9578081fd5b613bd285613af7565b9350613be060208601613af7565b925060408501359150606085013567ffffffffffffffff811115613c02578182fd5b613c0e87828801613b0e565b91505092959194509250565b60008060408385031215613c2c578182fd5b613c3583613af7565b91506020830135613c4581614273565b809150509250929050565b60008060408385031215613c62578182fd5b613c6b83613af7565b946020939093013593505050565b600060208284031215613c8a578081fd5b81516117b681614273565b60008060408385031215613ca7578182fd5b50508035926020909101359150565b600060208284031215613cc7578081fd5b81356117b681614281565b600060208284031215613ce3578081fd5b81516117b681614281565b600060208284031215613cff578081fd5b813567ffffffffffffffff811115613d15578182fd5b611c8c84828501613b0e565b60008060408385031215613d33578182fd5b823567ffffffffffffffff811115613d49578283fd5b613d5585828601613b0e565b95602094909401359450505050565b600060208284031215613d75578081fd5b813567ffffffffffffffff811115613d8b578182fd5b8201601f81018413613d9b578182fd5b611c8c84823560208401613a81565b600060208284031215613dbb578081fd5b5035919050565b600060208284031215613dd3578081fd5b5051919050565b60008151808452613df28160208601602086016141a1565b601f01601f19169290920160200192915050565b60008151613e188185602086016141a1565b9290920192915050565b60008351613e348184602088016141a1565b835190830190613e488183602088016141a1565b01949350505050565b600080845482600182811c915080831680613e6d57607f831692505b6020808410821415613e8d57634e487b7160e01b87526022600452602487fd5b818015613ea15760018114613eb257613ede565b60ff19861689528489019650613ede565b60008b815260209020885b86811015613ed65781548b820152908501908301613ebd565b505084890196505b505050505050613eee8185613e06565b95945050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008351613f2f81601a8501602088016141a1565b835190830190613f4681601a8401602088016141a1565b01601a01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f846080830184613dda565b9695505050505050565b6001600160a01b0384168152826020820152606060408201526000613eee6060830184613dda565b6020815260006117b66020830184613dda565b60008219821115613fdc57613fdc614231565b500190565b600060ff821660ff84168060ff03821115613ffe57613ffe614231565b019392505050565b60008261401557614015614247565b500490565b600060ff83168061402d5761402d614247565b8060ff84160491505092915050565b600181815b8085111561407757816000190482111561405d5761405d614231565b8085161561406a57918102915b93841c9390800290614041565b509250929050565b60006117b6838360008261409557506001610aa9565b816140a257506000610aa9565b81600181146140b857600281146140c2576140de565b6001915050610aa9565b60ff8411156140d3576140d3614231565b50506001821b610aa9565b5060208310610133831016604e8410600b8410161715614101575081810a610aa9565b61410b838361403c565b806000190482111561411f5761411f614231565b029392505050565b600081600019048311821515161561414157614141614231565b500290565b600060ff821660ff84168160ff048111821515161561411f5761411f614231565b60008282101561417957614179614231565b500390565b600060ff821660ff84168082101561419857614198614231565b90039392505050565b60005b838110156141bc5781810151838201526020016141a4565b8381111561211a5750506000910152565b600181811c908216806141e157607f821691505b602082108114156117bd57634e487b7160e01b600052602260045260246000fd5b600060001982141561421657614216614231565b5060010190565b60008261422c5761422c614247565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461250357600080fd5b6001600160e01b03198116811461250357600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122057916230b6dfdd8b2038fcf09d4d622c92f2be7ff6b2d7b703752905ed55f8d064736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000001e232f4d7e9b01e0aa9f3babc82aceac43be65d2000000000000000000000000e89fe72cbb02a489d982a3e9c1639813478916bc000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6e66742d73746f72652e73332e616d617a6f6e6177732e636f6d2f737065616b657268656164732f706c616365686f6c6465722e6a736f6e

Deployed Bytecode

0x6080604052600436106103815760003560e01c80638da5cb5b116101d1578063b88d4fde11610102578063d7aaa13b116100a0578063e27240771161006f578063e272407714610974578063e985e9c514610994578063f2fde38b146109dd578063f63cb83c146109fd57600080fd5b8063d7aaa13b14610914578063dc8c57b414610935578063dd820a9c1461094a578063de2785661461095f57600080fd5b8063c6ab67a3116100dc578063c6ab67a3146108aa578063c87b56dd146108bf578063cc7a856c146108df578063d720f9da146108f457600080fd5b8063b88d4fde14610859578063b89fe99914610879578063c002d23d1461088e57600080fd5b8063a4a1edb11161016f578063a999cd4f11610149578063a999cd4f146107ed578063ab9270341461080f578063ae5c238a14610824578063aeb167681461084457600080fd5b8063a4a1edb1146107a3578063a7346780146107c3578063a7a28dfb146107d857600080fd5b806395d89b41116101ab57806395d89b41146107395780639c6add8e1461074e578063a22cb4651461076e578063a475b5dd1461078e57600080fd5b80638da5cb5b146106e657806392a82d371461070457806394985ddd1461071957600080fd5b806333385afe116102b657806355f804b3116102545780636bcf049a116102235780636bcf049a1461067157806370a0823114610691578063715018a6146106b1578063820de0c5146106c657600080fd5b806355f804b3146105f35780636352211e14610613578063662b17641461063357806368428a1b1461065257600080fd5b8063408372a011610290578063408372a01461058457806340838f74146105a457806342842e0e146105b957806351830227146105d957600080fd5b806333385afe14610540578063346d14ae146105555780633ad7f56c1461056a57600080fd5b806318160ddd116103235780632db11544116102fd5780632db11544146104e25780632ec01860146104f55780633100a5351461051557806332cb6b0c1461052a57600080fd5b806318160ddd1461048d578063205c2878146104a257806323b872dd146104c257600080fd5b806308e3f8681161035f57806308e3f86814610415578063095ea7b31461042a5780630e8b99f21461044a578063109695231461046d57600080fd5b806301ffc9a71461038657806306fdde03146103bb578063081812fc146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004613cb6565b610a12565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610aaf565b6040516103b29190613fb6565b3480156103e957600080fd5b506103fd6103f8366004613daa565b610b41565b6040516001600160a01b0390911681526020016103b2565b610428610423366004613d21565b610bdb565b005b34801561043657600080fd5b50610428610445366004613c50565b610e7c565b34801561045657600080fd5b5061045f610fcc565b6040519081526020016103b2565b34801561047957600080fd5b50610428610488366004613d64565b611035565b34801561049957600080fd5b5060095461045f565b3480156104ae57600080fd5b506104286104bd366004613c50565b61113a565b3480156104ce57600080fd5b506104286104dd366004613b79565b61120d565b6104286104f0366004613daa565b611294565b34801561050157600080fd5b50610428610510366004613d64565b61147b565b34801561052157600080fd5b5061042861152e565b34801561053657600080fd5b5061045f6122b881565b34801561054c57600080fd5b5061045f600181565b34801561056157600080fd5b506103d0611593565b34801561057657600080fd5b50600c546103a69060ff1681565b34801561059057600080fd5b50600c546103a69062010000900460ff1681565b3480156105b057600080fd5b5061045f6115a3565b3480156105c557600080fd5b506104286105d4366004613b79565b6115b0565b3480156105e557600080fd5b50600f546103a69060ff1681565b3480156105ff57600080fd5b5061042861060e366004613d64565b6115cb565b34801561061f57600080fd5b506103fd61062e366004613daa565b611670565b34801561063f57600080fd5b50600f546103a690610100900460ff1681565b34801561065e57600080fd5b50600c546103a690610100900460ff1681565b34801561067d57600080fd5b5061045f61068c366004613daa565b6116fb565b34801561069d57600080fd5b5061045f6106ac366004613b2d565b6117c3565b3480156106bd57600080fd5b5061042861185d565b3480156106d257600080fd5b506104286106e1366004613d64565b6118b1565b3480156106f257600080fd5b506006546001600160a01b03166103fd565b34801561071057600080fd5b5061045f605b81565b34801561072557600080fd5b50610428610734366004613c95565b61190c565b34801561074557600080fd5b506103d06119a0565b34801561075a57600080fd5b506103d0610769366004613cee565b6119af565b34801561077a57600080fd5b50610428610789366004613c1a565b6119f6565b34801561079a57600080fd5b50610428611abb565b3480156107af57600080fd5b506103fd6107be366004613cee565b611c70565b3480156107cf57600080fd5b5061045f600a81565b3480156107e457600080fd5b50610428611c94565b3480156107f957600080fd5b50600c546103a690640100000000900460ff1681565b34801561081b57600080fd5b50610428611df9565b34801561083057600080fd5b5061042861083f366004613c50565b611ede565b34801561085057600080fd5b5061045f600381565b34801561086557600080fd5b50610428610874366004613bb4565b612092565b34801561088557600080fd5b50610428612120565b34801561089a57600080fd5b5061045f6701aa535d3d0c000081565b3480156108b657600080fd5b506103d061217c565b3480156108cb57600080fd5b506103d06108da366004613daa565b61220a565b3480156108eb57600080fd5b5061042861237b565b34801561090057600080fd5b5061045f61090f366004613d64565b612506565b34801561092057600080fd5b50600c546103a6906301000000900460ff1681565b34801561094157600080fd5b5060105461045f565b34801561095657600080fd5b50610428612546565b34801561096b57600080fd5b50610428612655565b34801561098057600080fd5b50600f546103a69062010000900460ff1681565b3480156109a057600080fd5b506103a66109af366004613b47565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109e957600080fd5b506104286109f8366004613b2d565b612811565b348015610a0957600080fd5b5061045f600881565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a7557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610aa957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060008054610abe906141cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610aea906141cd565b8015610b375780601f10610b0c57610100808354040283529160200191610b37565b820191906000526020600020905b815481529060010190602001808311610b1a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610bbf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600c5462010000900460ff168015610bfc5750600c546301000000900460ff165b8015610c125750600c54640100000000900460ff165b610c5e5760405162461bcd60e51b815260206004820152601260248201527f4d757374207072656d696e7420666972737400000000000000000000000000006044820152606401610bb6565b60026008541415610cb15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b6002600855600c5460ff16610d085760405162461bcd60e51b815260206004820152601560248201527f50726573616c65206973206e6f742061637469766500000000000000000000006044820152606401610bb6565b816000610d1661090f611593565b90506000610d2482846128de565b6007549091506001600160a01b03808316911614610d845760405162461bcd60e51b815260206004820152601b60248201527f496e76616c69642077686974656c697374207369676e617475726500000000006044820152606401610bb6565b8360008111610dd55760405162461bcd60e51b815260206004820152601360248201527f4d757374207370656369667920616d6f756e74000000000000000000000000006044820152606401610bb6565b336000908152600b6020526040902054600390610df3908390613fc9565b1115610e415760405162461bcd60e51b815260206004820152601b60248201527f457863656564732077686974656c69737420616c6c6f77616e636500000000006044820152606401610bb6565b610e4b8533612902565b336000908152600b602052604081208054879290610e6a908490613fc9565b90915550506001600855505050505050565b6000610e8782611670565b9050806001600160a01b0316836001600160a01b03161415610f115760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610bb6565b336001600160a01b0382161480610f4b57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b610fbd5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bb6565b610fc78383612a62565b505050565b600c5460009060ff166110215760405162461bcd60e51b815260206004820152601560248201527f50726573616c65206973206e6f742061637469766500000000000000000000006044820152606401610bb6565b50336000908152600b602052604090205490565b6006546001600160a01b0316331461107d5760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f5460ff16156110c75760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610bb6565b600e80546110d4906141cd565b1590506111235760405162461bcd60e51b815260206004820152601b60248201527f50726f76656e616e6365206861736820616c72656164792073657400000000006044820152606401610bb6565b805161113690600e9060208401906139e8565b5050565b6006546001600160a01b031633146111825760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b6001600160a01b038216611194573391505b8061119c5750475b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050506111365760405162461bcd60e51b815260206004820152601e60248201527f416464726573732063616e6e6f742072656365697665207061796d656e7400006044820152606401610bb6565b6112173382612add565b6112895760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bb6565b610fc7838383612bd0565b600c5462010000900460ff1680156112b55750600c546301000000900460ff165b80156112cb5750600c54640100000000900460ff165b6113175760405162461bcd60e51b815260206004820152601260248201527f4d757374207072656d696e7420666972737400000000000000000000000000006044820152606401610bb6565b6002600854141561136a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b6002600855600c54610100900460ff166113c65760405162461bcd60e51b815260206004820152601260248201527f53616c65206974206e6f742061637469766500000000000000000000000000006044820152606401610bb6565b80600081116114175760405162461bcd60e51b815260206004820152601360248201527f4d757374207370656369667920616d6f756e74000000000000000000000000006044820152606401610bb6565b600a8111156114685760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d6178696d756d20616d6f756e740000000000006044820152606401610bb6565b6114728233612902565b50506001600855565b6006546001600160a01b031633146114c35760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f54610100900460ff161561151b5760405162461bcd60e51b815260206004820152601860248201527f534573206d757374206e6f742062652072657665616c656400000000000000006044820152606401610bb6565b80516111369060159060208401906139e8565b6006546001600160a01b031633146115765760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600c805461ff001981166101009182900460ff1615909102179055565b606061159e33612daa565b905090565b600061159e61090f611593565b610fc783838360405180602001604052806000815250612092565b6006546001600160a01b031633146116135760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f5460ff161561165d5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610bb6565b80516111369060139060208401906139e8565b6000818152600260205260408120546001600160a01b031680610aa95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610bb6565b6000818152600260205260408120546001600160a01b031661175f5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610bb6565b600f5460ff1661176d575090565b6000611777612f0d565b905080831015611788575090919050565b80611795816122b8614167565b6010546117a29086613fc9565b6117ac919061421d565b6117b69190613fc9565b9392505050565b50919050565b60006001600160a01b0382166118415760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610bb6565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146118a55760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b6118af6000612f1b565b565b6006546001600160a01b031633146118f95760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b80516111369060149060208401906139e8565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146119845760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610bb6565b611136828260105550600f805462ff0000191662010000179055565b606060018054610abe906141cd565b606060006119bc83611c70565b6040516bffffffffffffffffffffffff19606083901b1660208201529091506034015b604051602081830303815290604052915050919050565b6001600160a01b038216331415611a4f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bb6565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611b035760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f5460ff1615611b4d5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610bb6565b6000600e8054611b5c906141cd565b905011611bab5760405162461bcd60e51b815260206004820152601760248201527f50726f76656e616e63652068617368206e6f74207365740000000000000000006044820152606401610bb6565b600060138054611bba906141cd565b905011611c095760405162461bcd60e51b815260206004820152600f60248201527f42617365555249206e6f742073657400000000000000000000000000000000006044820152606401610bb6565b600f5462010000900460ff16611c615760405162461bcd60e51b815260206004820152601b60248201527f4d7573742067656e65726174652072616e646f6d206f666673657400000000006044820152606401610bb6565b600f805460ff19166001179055565b600080611c7e61090f611593565b90506000611c8c82856128de565b949350505050565b6006546001600160a01b03163314611cdc5760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600c546301000000900460ff1615611d365760405162461bcd60e51b815260206004820152601f60248201527f5370656369616c2065646974696f6e7320616c7265616479206d696e746564006044820152606401610bb6565b600c5462010000900460ff16611d8e5760405162461bcd60e51b815260206004820152601e60248201527f4d757374207072656d696e74206272616e6420746f6b656e20666972737400006044820152606401610bb6565b60005b6008811015611de357600a54611db8906001600160a01b0316611db360095490565b612f7a565b600160096000828254611dcb9190613fc9565b90915550819050611ddb81614202565b915050611d91565b50600c805463ff00000019166301000000179055565b6006546001600160a01b03163314611e415760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600c5462010000900460ff1615611e9a5760405162461bcd60e51b815260206004820152601960248201527f416c7265616479207072656d696e74656420746f6b656e2030000000000000006044820152606401610bb6565b600a54611eb3906001600160a01b0316611db360095490565b600160096000828254611ec69190613fc9565b9091555050600c805462ff0000191662010000179055565b6006546001600160a01b03163314611f265760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b6001600160a01b038216611f38573391505b80611fd7576040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b158015611f9c57600080fd5b505afa158015611fb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fd49190613dc2565b90505b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca169063a9059cbb90604401602060405180830381600087803b15801561205a57600080fd5b505af115801561206e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc79190613c79565b61209c3383612add565b61210e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bb6565b61211a84848484612f94565b50505050565b6006546001600160a01b031633146121685760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600c805460ff19811660ff90911615179055565b600e8054612189906141cd565b80601f01602080910402602001604051908101604052809291908181526020018280546121b5906141cd565b80156122025780601f106121d757610100808354040283529160200191612202565b820191906000526020600020905b8154815290600101906020018083116121e557829003601f168201915b505050505081565b60606000612216612f0d565b90508083101561234b576000838152600260205260409020546001600160a01b03166122845760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610bb6565b600f54610100900460ff16156122b85760156122a76122a2856116fb565b613012565b6040516020016119df929190613e51565b601480546122c5906141cd565b80601f01602080910402602001604051908101604052809291908181526020018280546122f1906141cd565b801561233e5780601f106123135761010080835404028352916020019161233e565b820191906000526020600020905b81548152906001019060200180831161232157829003601f168201915b5050505050915050919050565b600f5460ff16156122b85761235e613148565b61236a6122a2856116fb565b6040516020016119df929190613e22565b6006546001600160a01b031633146123c35760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f5460ff161561240d5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610bb6565b6011546040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b15801561246f57600080fd5b505afa158015612483573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a79190613dc2565b10156124f55760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420244c494e4b2062616c616e63650000000000006044820152606401610bb6565b612503601254601154613157565b50565b6000808290506125168151613012565b81604051602001612528929190613ef7565b60405160208183030381529060405280519060200120915050919050565b6006546001600160a01b0316331461258e5760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600f54610100900460ff16156125e65760405162461bcd60e51b815260206004820152601860248201527f534573206d757374206e6f742062652072657665616c656400000000000000006044820152606401610bb6565b6000601580546125f5906141cd565b9050116126445760405162461bcd60e51b815260206004820152601a60248201527f5370656369616c45646974696f6e73555249206e6f74207365740000000000006044820152606401610bb6565b600f805461ff001916610100179055565b6006546001600160a01b0316331461269d5760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b600c54640100000000900460ff16156126f85760405162461bcd60e51b815260206004820152601b60248201527f436f7265207265736572766520616c7265616479206d696e74656400000000006044820152606401610bb6565b600c5462010000900460ff166127505760405162461bcd60e51b815260206004820152601e60248201527f4d757374207072656d696e74206272616e6420746f6b656e20666972737400006044820152606401610bb6565b600c546301000000900460ff166127a95760405162461bcd60e51b815260206004820152601e60248201527f5072656d696e74207370656369616c2065646974696f6e7320666972737400006044820152606401610bb6565b60005b605b8110156127f957600a546127ce906001600160a01b0316611db360095490565b6001600960008282546127e19190613fc9565b909155508190506127f181614202565b9150506127ac565b50600c805464ff000000001916640100000000179055565b6006546001600160a01b031633146128595760405162461bcd60e51b815260206004820181905260248201526000805160206142988339815191526044820152606401610bb6565b6001600160a01b0381166128d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bb6565b61250381612f1b565b60008060006128ed85856132e2565b915091506128fa81613352565b509392505050565b3332146129515760405162461bcd60e51b815260206004820152601360248201527f50726f786965732063616e6e6f74206d696e74000000000000000000000000006044820152606401610bb6565b816122b88161295f60095490565b6129699190613fc9565b11156129b75760405162461bcd60e51b815260206004820181905260248201527f45786365656473206d6178696d756d206e756d626572206f6620746f6b656e736044820152606401610bb6565b826129ca816701aa535d3d0c0000614127565b3414612a185760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420457468657220616d6f756e742073656e74000000000000006044820152606401610bb6565b60005b84811015612a5b57612a3084611db360095490565b600160096000828254612a439190613fc9565b90915550819050612a5381614202565b915050612a1b565b5050505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612aa482611670565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612b565760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bb6565b6000612b6183611670565b9050806001600160a01b0316846001600160a01b03161480612b9c5750836001600160a01b0316612b9184610b41565b6001600160a01b0316145b80611c8c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16611c8c565b826001600160a01b0316612be382611670565b6001600160a01b031614612c5f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610bb6565b6001600160a01b038216612cda5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610bb6565b612ce5600082612a62565b6001600160a01b0383166000908152600360205260408120805460019290612d0e908490614167565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d3c908490613fc9565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015612f06576000612de7826013614167565b612df2906008614127565b612dfd90600261407f565b612e10906001600160a01b038716614006565b60f81b9050600060108260f81c612e27919061401a565b60f81b905060008160f81c6010612e3e9190614146565b8360f81c612e4c919061417e565b60f81b9050612e5a82613553565b85612e66866002614127565b81518110612e8457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612ea481613553565b85612eb0866002614127565b612ebb906001613fc9565b81518110612ed957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505050508080612efe90614202565b915050612dd1565b5092915050565b600061159e60016008613fc9565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61113682826040518060200160405280600081525061358e565b612f9f848484612bd0565b612fab8484848461360c565b61211a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bb6565b60608161305257505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561307c578061306681614202565b91506130759050600a83614006565b9150613056565b60008167ffffffffffffffff8111156130a557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130cf576020820181803683370190505b5090505b8415611c8c576130e4600183614167565b91506130f1600a8661421d565b6130fc906030613fc9565b60f81b81838151811061311f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613141600a86614006565b94506130d3565b606060138054610abe906141cd565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952848660006040516020016131c7929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016131f493929190613f8e565b602060405180830381600087803b15801561320e57600080fd5b505af1158015613222573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132469190613c79565b506000838152600d6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120938790529190526132a2906001613fc9565b6000858152600d6020526040902055611c8c8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000808251604114156133195760208301516040840151606085015160001a61330d87828585613764565b9450945050505061334b565b8251604014156133435760208301516040840151613338868383613851565b93509350505061334b565b506000905060025b9250929050565b600081600481111561337457634e487b7160e01b600052602160045260246000fd5b141561337d5750565b600181600481111561339f57634e487b7160e01b600052602160045260246000fd5b14156133ed5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bb6565b600281600481111561340f57634e487b7160e01b600052602160045260246000fd5b141561345d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bb6565b600381600481111561347f57634e487b7160e01b600052602160045260246000fd5b14156134d85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610bb6565b60048160048111156134fa57634e487b7160e01b600052602160045260246000fd5b14156125035760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610bb6565b6000600a60f883901c101561357a5761357160f883901c6030613fe1565b60f81b92915050565b61357160f883901c6057613fe1565b919050565b6135988383613899565b6135a5600084848461360c565b610fc75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bb6565b60006001600160a01b0384163b1561375957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613650903390899088908890600401613f52565b602060405180830381600087803b15801561366a57600080fd5b505af192505050801561369a575060408051601f3d908101601f1916820190925261369791810190613cd2565b60015b61373f573d8080156136c8576040519150601f19603f3d011682016040523d82523d6000602084013e6136cd565b606091505b5080516137375760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bb6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c8c565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561379b5750600090506003613848565b8460ff16601b141580156137b357508460ff16601c14155b156137c45750600090506004613848565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613818573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661384157600060019250925050613848565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161388b87828885613764565b935093505050935093915050565b6001600160a01b0382166138ef5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bb6565b6000818152600260205260409020546001600160a01b0316156139545760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bb6565b6001600160a01b038216600090815260036020526040812080546001929061397d908490613fc9565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546139f4906141cd565b90600052602060002090601f016020900481019282613a165760008555613a5c565b82601f10613a2f57805160ff1916838001178555613a5c565b82800160010185558215613a5c579182015b82811115613a5c578251825591602001919060010190613a41565b50613a68929150613a6c565b5090565b5b80821115613a685760008155600101613a6d565b600067ffffffffffffffff80841115613a9c57613a9c61425d565b604051601f8501601f19908116603f01168101908282118183101715613ac457613ac461425d565b81604052809350858152868686011115613add57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461358957600080fd5b600082601f830112613b1e578081fd5b6117b683833560208501613a81565b600060208284031215613b3e578081fd5b6117b682613af7565b60008060408385031215613b59578081fd5b613b6283613af7565b9150613b7060208401613af7565b90509250929050565b600080600060608486031215613b8d578081fd5b613b9684613af7565b9250613ba460208501613af7565b9150604084013590509250925092565b60008060008060808587031215613bc9578081fd5b613bd285613af7565b9350613be060208601613af7565b925060408501359150606085013567ffffffffffffffff811115613c02578182fd5b613c0e87828801613b0e565b91505092959194509250565b60008060408385031215613c2c578182fd5b613c3583613af7565b91506020830135613c4581614273565b809150509250929050565b60008060408385031215613c62578182fd5b613c6b83613af7565b946020939093013593505050565b600060208284031215613c8a578081fd5b81516117b681614273565b60008060408385031215613ca7578182fd5b50508035926020909101359150565b600060208284031215613cc7578081fd5b81356117b681614281565b600060208284031215613ce3578081fd5b81516117b681614281565b600060208284031215613cff578081fd5b813567ffffffffffffffff811115613d15578182fd5b611c8c84828501613b0e565b60008060408385031215613d33578182fd5b823567ffffffffffffffff811115613d49578283fd5b613d5585828601613b0e565b95602094909401359450505050565b600060208284031215613d75578081fd5b813567ffffffffffffffff811115613d8b578182fd5b8201601f81018413613d9b578182fd5b611c8c84823560208401613a81565b600060208284031215613dbb578081fd5b5035919050565b600060208284031215613dd3578081fd5b5051919050565b60008151808452613df28160208601602086016141a1565b601f01601f19169290920160200192915050565b60008151613e188185602086016141a1565b9290920192915050565b60008351613e348184602088016141a1565b835190830190613e488183602088016141a1565b01949350505050565b600080845482600182811c915080831680613e6d57607f831692505b6020808410821415613e8d57634e487b7160e01b87526022600452602487fd5b818015613ea15760018114613eb257613ede565b60ff19861689528489019650613ede565b60008b815260209020885b86811015613ed65781548b820152908501908301613ebd565b505084890196505b505050505050613eee8185613e06565b95945050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008351613f2f81601a8501602088016141a1565b835190830190613f4681601a8401602088016141a1565b01601a01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f846080830184613dda565b9695505050505050565b6001600160a01b0384168152826020820152606060408201526000613eee6060830184613dda565b6020815260006117b66020830184613dda565b60008219821115613fdc57613fdc614231565b500190565b600060ff821660ff84168060ff03821115613ffe57613ffe614231565b019392505050565b60008261401557614015614247565b500490565b600060ff83168061402d5761402d614247565b8060ff84160491505092915050565b600181815b8085111561407757816000190482111561405d5761405d614231565b8085161561406a57918102915b93841c9390800290614041565b509250929050565b60006117b6838360008261409557506001610aa9565b816140a257506000610aa9565b81600181146140b857600281146140c2576140de565b6001915050610aa9565b60ff8411156140d3576140d3614231565b50506001821b610aa9565b5060208310610133831016604e8410600b8410161715614101575081810a610aa9565b61410b838361403c565b806000190482111561411f5761411f614231565b029392505050565b600081600019048311821515161561414157614141614231565b500290565b600060ff821660ff84168160ff048111821515161561411f5761411f614231565b60008282101561417957614179614231565b500390565b600060ff821660ff84168082101561419857614198614231565b90039392505050565b60005b838110156141bc5781810151838201526020016141a4565b8381111561211a5750506000910152565b600181811c908216806141e157607f821691505b602082108114156117bd57634e487b7160e01b600052602260045260246000fd5b600060001982141561421657614216614231565b5060010190565b60008261422c5761422c614247565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461250357600080fd5b6001600160e01b03198116811461250357600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122057916230b6dfdd8b2038fcf09d4d622c92f2be7ff6b2d7b703752905ed55f8d064736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000001e232f4d7e9b01e0aa9f3babc82aceac43be65d2000000000000000000000000e89fe72cbb02a489d982a3e9c1639813478916bc000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6e66742d73746f72652e73332e616d617a6f6e6177732e636f6d2f737065616b657268656164732f706c616365686f6c6465722e6a736f6e

-----Decoded View---------------
Arg [0] : unrevealedTokenURI (string): https://nft-store.s3.amazonaws.com/speakerheads/placeholder.json
Arg [1] : teamAddress (address): 0x1E232F4d7E9B01e0Aa9f3BAbc82acEaC43Be65d2
Arg [2] : signer (address): 0xE89FE72CBb02a489d982a3E9C1639813478916BC
Arg [3] : vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [4] : linkToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [5] : linkKeyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [6] : linkFee (uint256): 2000000000000000000

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000001e232f4d7e9b01e0aa9f3babc82aceac43be65d2
Arg [2] : 000000000000000000000000e89fe72cbb02a489d982a3e9c1639813478916bc
Arg [3] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [4] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [5] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [6] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [8] : 68747470733a2f2f6e66742d73746f72652e73332e616d617a6f6e6177732e63
Arg [9] : 6f6d2f737065616b657268656164732f706c616365686f6c6465722e6a736f6e


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.