ETH Price: $2,360.32 (+0.32%)

Token

SpeakerHeads Vol. 1 (SPKR1)
 

Overview

Max Total Supply

3,021 SPKR1

Holders

442

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
*疯疯癫癫的.eth
Balance
17 SPKR1
0xde8F3d9ED712AA6B40d8842FF7294b19f98fcbE6
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 16 : 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 randomOffsetGenerated;

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

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

    // If we have revealed any of the special editions, we can't change the base URI
    bool internal _someSpecialEditionRevealed;
    mapping(uint256 => bool) internal _specialEditionRevealedMapping;

    constructor(
        string memory unrevealedTokenURI,
        address teamAddress,
        address vrfCoordinator,
        address linkToken,
        bytes32 linkKeyHash,
        uint256 linkFee,
        address ogContractAddress
    )
        VRFConsumerBase(vrfCoordinator, linkToken)
        SpeakerHeadsBase(teamAddress, ogContractAddress)
    {
        _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)
    {
        require(_exists(tokenId), "Query for nonexistent token");
        uint256 numberSpecialReserved = _numSpecialEditionToken();
        if (tokenId < numberSpecialReserved) {
            // These are special edition tokens
            bool isTokenRevealed = _specialEditionRevealedMapping[tokenId];
            if (isTokenRevealed && bytes(_specialEditionsURI).length > 0) {
                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
        isNotRevealed
    {
        _unrevealedTokenURI = newURI;
    }

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

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

    /**
     * @dev Set URI for the special edition tokens
     * @dev can only set if a token has not already been used in the `revealSpecialEdition` function
     * @dev Special editions can be revealed independently, but "special base URI" only set once.
     */
    function setSpecialEditionsURI(string memory _newSpecialEditionURI)
        public
        onlyOwner
    {
        require(
            _someSpecialEditionRevealed == false,
            "At least one SE already revealed"
        );
        _specialEditionsURI = _newSpecialEditionURI;
    }

    /**
     * @dev Reveal the provided special edition token metadata
     * @dev Can only be called once. irreversible.
     * @dev Special editions can be revealed independently.
     * @dev Base URI must be set for the special editions
     */
    function revealSpecialEdition(uint256 tokenId) public onlyOwner {
        require(bytes(_specialEditionsURI).length > 0, "SE URI not set");
        require(tokenId < _numSpecialEditionToken(), "Must be SE");
        require(
            _specialEditionRevealedMapping[tokenId] == false,
            "Can only reveal token once"
        );
        _specialEditionRevealedMapping[tokenId] = true;
        if (!_someSpecialEditionRevealed) {
            // Lock the SE base URI
            _someSpecialEditionRevealed = true;
        }
    }

    /**
     * @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;
    }

    /**
     * @dev request random number from chainlink
     */
    function generateRandomOffset() public onlyOwner isNotRevealed {
        require(
            LINK.balanceOf(address(this)) >= _linkFee,
            "Insufficient $LINK balance"
        );
        requestRandomness(_linkKeyHash, _linkFee);
    }

    /**
     * @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");
        _;
    }
}

File 2 of 16 : 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 16 : 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 16 : 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 16 : 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/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface IOGGenesis is IERC721 {
    function totalSupply() external view returns (uint256);
}

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

    uint256 public constant MAX_SUPPLY = 8888;
    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 = 79; // [no. 9-87] reserved for charity, education, advisors, and giveaway
    uint256 public constant OG_BONUS_TRAIT_RESERVED = 103; // Reserved for OG holders bonus Vol 1 tokens

    uint256 internal _tokenIds;
    uint256 internal _mintPrice = 0.06 ether;
    uint256 internal _maxMint = 10;
    address internal _teamAddress;

    IOGGenesis private immutable _ogContract;

    bool public preminted = false;
    bool public saleActive = false;

    constructor(address teamAddress, address ogContractAddress)
        ERC721("SpeakerHeads Vol. 1", "SPKR1")
    {
        _teamAddress = teamAddress;
        _ogContract = IOGGenesis(ogContractAddress);
    }

    function premint() public onlyOwner {
        require(!preminted, "Already preminted brand reserve");
        _mintAmount(BRAND_RESERVED, _teamAddress);
        _mintAmount(SPECIAL_EDITIONS_RESERVED, _teamAddress);
        _mintAmount(CORE_RESERVED, _teamAddress);
        _mintAmount(OG_BONUS_TRAIT_RESERVED, _teamAddress);

        // Airdrop to 0G holders (who aren't us)
        uint256 numOGMinted = _ogContract.totalSupply();
        address teamAddress = _teamAddress;
        for (uint256 i = 0; i < numOGMinted; i++) {
            address owner = _ogContract.ownerOf(i);
            if (owner != teamAddress) {
                _mintAmount(1, owner);
            }
        }
        preminted = true;
    }

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

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

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

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

    function ownerMint(uint256 amount) public onlyOwner {
        _mintAmount(amount, msg.sender);
    }

    function setPrice(uint256 _newPrice) public onlyOwner {
        _mintPrice = _newPrice;
    }

    function setMaxMint(uint256 _newMaxMint) public onlyOwner {
        _maxMint = _newMaxMint;
    }

    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 withdraw() public onlyOwner {
        withdrawTo(address(0), 0);
    }

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

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

    modifier isPremintComplete() {
        require(preminted, "Must premint first");
        _;
    }

    modifier validPublicTxLimit(uint256 amount) {
        require(amount > 0, "Must specify amount");
        require(amount <= _maxMint, "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 == _mintPrice * 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 16 : 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 16 : 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 16 : 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 16 : 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 16 : 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 11 of 16 : 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 12 of 16 : 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 16 : 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 14 of 16 : 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 15 of 16 : 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 16 of 16 : 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);
}

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":"vrfCoordinator","type":"address"},{"internalType":"address","name":"linkToken","type":"address"},{"internalType":"bytes32","name":"linkKeyHash","type":"bytes32"},{"internalType":"uint256","name":"linkFee","type":"uint256"},{"internalType":"address","name":"ogContractAddress","type":"address"}],"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":"OG_BONUS_TRAIT_RESERVED","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"generateRandomOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"amount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"premint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"preminted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"revealSpecialEdition","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":"uint256","name":"_newMaxMint","type":"uint256"}],"name":"setMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newSpecialEditionURI","type":"string"}],"name":"setSpecialEditionsURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setUnrevealedTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleSaleActive","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":"withdraw","outputs":[],"stateMutability":"nonpayable","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"}]

60e060405266d529ae9e860000600955600a8055600b805461ffff60a01b191690553480156200002e57600080fd5b5060405162003b8f38038062003b8f83398101604081905262000051916200027f565b848487836040518060400160405280601381526020017f537065616b6572486561647320566f6c2e2031000000000000000000000000008152506040518060400160405280600581526020016453504b523160d81b8152508160009080519060200190620000c1929190620001bc565b508051620000d7906001906020840190620001bc565b505050620000f4620000ee6200016660201b60201c565b6200016a565b6001600755600b8054606092831b6001600160601b031990811660805295831b861660c0529390911b90931660a052506001600160a01b0319166001600160a01b0388161790558651620001509060139060208a0190620001bc565b5050601191909155601055506200040892505050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001ca90620003b5565b90600052602060002090601f016020900481019282620001ee576000855562000239565b82601f106200020957805160ff191683800117855562000239565b8280016001018555821562000239579182015b82811115620002395782518255916020019190600101906200021c565b50620002479291506200024b565b5090565b5b808211156200024757600081556001016200024c565b80516001600160a01b03811681146200027a57600080fd5b919050565b600080600080600080600060e0888a0312156200029a578283fd5b87516001600160401b0380821115620002b1578485fd5b818a0191508a601f830112620002c5578485fd5b815181811115620002da57620002da620003f2565b604051601f8201601f19908116603f01168101908382118183101715620003055762000305620003f2565b81604052828152602093508d8484870101111562000321578788fd5b8791505b8282101562000344578482018401518183018501529083019062000325565b828211156200035557878484830101525b9a50620003679150508a820162000262565b97505050620003796040890162000262565b9450620003896060890162000262565b93506080880151925060a08801519150620003a760c0890162000262565b905092959891949750929550565b600181811c90821680620003ca57607f821691505b60208210811415620003ec57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c60c05160601c61372b6200046460003960008181611a670152612bbe015260008181611dea01528181611eae015281816123470152612b8f0152600081816112e101526113bc015261372b6000f3fe6080604052600436106102fd5760003560e01c80636bcf049a1161018f578063a475b5dd116100e1578063dc8c57b41161008a578063f19e75d411610064578063f19e75d41461081d578063f2fde38b1461083d578063f63cb83c1461085d57600080fd5b8063dc8c57b4146107a0578063e2724077146107b5578063e985e9c5146107d457600080fd5b8063c6ab67a3116100bb578063c6ab67a314610756578063c87b56dd1461076b578063cc7a856c1461078b57600080fd5b8063a475b5dd14610701578063ae5c238a14610716578063b88d4fde1461073657600080fd5b80638da5cb5b1161014357806394985ddd1161011d57806394985ddd146106ac57806395d89b41146106cc578063a22cb465146106e157600080fd5b80638da5cb5b1461065957806391b7f5ed1461067757806392a82d371461069757600080fd5b8063715018a611610174578063715018a61461060457806375c7d3ab14610619578063820de0c51461063957600080fd5b80636bcf049a146105c457806370a08231146105e457600080fd5b80633100a5351161025357806348a1e66b116101fc57806355f804b3116101d657806355f804b3146105635780636352211e1461058357806368428a1b146105a357600080fd5b806348a1e66b146105145780635183022714610529578063547520fe1461054357600080fd5b8063357b794e1161022d578063357b794e146104be5780633ccfd60b146104df57806342842e0e146104f457600080fd5b80633100a5351461047e57806332cb6b0c1461049357806333385afe146104a957600080fd5b80631302d9dd116102b557806323b872dd1161028f57806323b872dd1461042b5780632db115441461044b5780632ec018601461045e57600080fd5b80631302d9dd146103d357806318160ddd146103f6578063205c28781461040b57600080fd5b8063081812fc116102e6578063081812fc14610359578063095ea7b31461039157806310969523146103b357600080fd5b806301ffc9a71461030257806306fdde0314610337575b600080fd5b34801561030e57600080fd5b5061032261031d366004613326565b610872565b60405190151581526020015b60405180910390f35b34801561034357600080fd5b5061034c61090f565b60405161032e9190613555565b34801561036557600080fd5b506103796103743660046133a4565b6109a1565b6040516001600160a01b03909116815260200161032e565b34801561039d57600080fd5b506103b16103ac3660046132be565b610a3b565b005b3480156103bf57600080fd5b506103b16103ce36600461335e565b610b6d565b3480156103df57600080fd5b506103e8606781565b60405190815260200161032e565b34801561040257600080fd5b506008546103e8565b34801561041757600080fd5b506103b16104263660046132be565b610c72565b34801561043757600080fd5b506103b16104463660046131d4565b610d45565b6103b16104593660046133a4565b610dcc565b34801561046a57600080fd5b506103b161047936600461335e565b611039565b34801561048a57600080fd5b506103b16110e7565b34801561049f57600080fd5b506103e86122b881565b3480156104b557600080fd5b506103e8600181565b3480156104ca57600080fd5b50600b5461032290600160a01b900460ff1681565b3480156104eb57600080fd5b506103b161116b565b34801561050057600080fd5b506103b161050f3660046131d4565b6111c0565b34801561052057600080fd5b506103b16111db565b34801561053557600080fd5b50600e546103229060ff1681565b34801561054f57600080fd5b506103b161055e3660046133a4565b6114aa565b34801561056f57600080fd5b506103b161057e36600461335e565b6114f7565b34801561058f57600080fd5b5061037961059e3660046133a4565b61159c565b3480156105af57600080fd5b50600b5461032290600160a81b900460ff1681565b3480156105d057600080fd5b506103e86105df3660046133a4565b611627565b3480156105f057600080fd5b506103e86105ff366004613164565b6116ef565b34801561061057600080fd5b506103b1611789565b34801561062557600080fd5b506103b16106343660046133a4565b6117db565b34801561064557600080fd5b506103b161065436600461335e565b61196a565b34801561066557600080fd5b506006546001600160a01b0316610379565b34801561068357600080fd5b506103b16106923660046133a4565b611a0f565b3480156106a357600080fd5b506103e8604f81565b3480156106b857600080fd5b506103b16106c7366004613305565b611a5c565b3480156106d857600080fd5b5061034c611aee565b3480156106ed57600080fd5b506103b16106fc366004613291565b611afd565b34801561070d57600080fd5b506103b1611bc2565b34801561072257600080fd5b506103b16107313660046132be565b611d76565b34801561074257600080fd5b506103b1610751366004613214565b611f2a565b34801561076257600080fd5b5061034c611fb8565b34801561077757600080fd5b5061034c6107863660046133a4565b612046565b34801561079757600080fd5b506103b161229d565b3480156107ac57600080fd5b50600f546103e8565b3480156107c157600080fd5b50600e5461032290610100900460ff1681565b3480156107e057600080fd5b506103226107ef36600461319c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561082957600080fd5b506103b16108383660046133a4565b612425565b34801561084957600080fd5b506103b1610858366004613164565b612477565b34801561086957600080fd5b506103e8600881565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806108d557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061090957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606000805461091e906135f6565b80601f016020809104026020016040519081016040528092919081815260200182805461094a906135f6565b80156109975780601f1061096c57610100808354040283529160200191610997565b820191906000526020600020905b81548152906001019060200180831161097a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a1f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a468261159c565b9050806001600160a01b0316836001600160a01b03161415610ad05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a16565b336001600160a01b0382161480610aec5750610aec81336107ef565b610b5e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a16565b610b688383612544565b505050565b6006546001600160a01b03163314610bb55760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600e5460ff1615610bff5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610a16565b600d8054610c0c906135f6565b159050610c5b5760405162461bcd60e51b815260206004820152601b60248201527f50726f76656e616e6365206861736820616c72656164792073657400000000006044820152606401610a16565b8051610c6e90600d906020840190613055565b5050565b6006546001600160a01b03163314610cba5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6001600160a01b038216610ccc573391505b80610cd45750475b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050610c6e5760405162461bcd60e51b815260206004820152601e60248201527f416464726573732063616e6e6f742072656365697665207061796d656e7400006044820152606401610a16565b610d4f33826125bf565b610dc15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a16565b610b688383836126b6565b600b54600160a01b900460ff16610e255760405162461bcd60e51b815260206004820152601260248201527f4d757374207072656d696e7420666972737400000000000000000000000000006044820152606401610a16565b60026007541415610e785760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a16565b6002600755600b54600160a81b900460ff16610ed65760405162461bcd60e51b815260206004820152601260248201527f53616c65206974206e6f742061637469766500000000000000000000000000006044820152606401610a16565b333214610f255760405162461bcd60e51b815260206004820152601360248201527f50726f786965732063616e6e6f74206d696e74000000000000000000000000006044820152606401610a16565b8080600954610f349190613594565b3414610f825760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420457468657220616d6f756e742073656e74000000000000006044820152606401610a16565b8160008111610fd35760405162461bcd60e51b815260206004820152601360248201527f4d757374207370656369667920616d6f756e74000000000000000000000000006044820152606401610a16565b600a548111156110255760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d6178696d756d20616d6f756e740000000000006044820152606401610a16565b61102f8333612890565b5050600160075550565b6006546001600160a01b031633146110815760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b60155460ff16156110d45760405162461bcd60e51b815260206004820181905260248201527f4174206c65617374206f6e6520534520616c72656164792072657665616c65646044820152606401610a16565b8051610c6e906014906020840190613055565b6006546001600160a01b0316331461112f5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600b80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff8116600160a81b9182900460ff1615909102179055565b6006546001600160a01b031633146111b35760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6111be600080610c72565b565b610b6883838360405180602001604052806000815250611f2a565b6006546001600160a01b031633146112235760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600b54600160a01b900460ff161561127d5760405162461bcd60e51b815260206004820152601f60248201527f416c7265616479207072656d696e746564206272616e642072657365727665006044820152606401610a16565b600b54611295906001906001600160a01b0316612890565b600b546112ad906008906001600160a01b0316612890565b600b546112c590604f906001600160a01b0316612890565b600b546112dd906067906001600160a01b0316612890565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561133857600080fd5b505afa15801561134c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137091906133bc565b600b549091506001600160a01b031660005b82811015611477576040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e9060240160206040518083038186803b15801561140657600080fd5b505afa15801561141a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143e9190613180565b9050826001600160a01b0316816001600160a01b03161461146457611464600182612890565b508061146f8161362b565b915050611382565b5050600b80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b17905550565b6006546001600160a01b031633146114f25760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600a55565b6006546001600160a01b0316331461153f5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600e5460ff16156115895760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610a16565b8051610c6e906012906020840190613055565b6000818152600260205260408120546001600160a01b0316806109095760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a16565b6000818152600260205260408120546001600160a01b031661168b5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a16565b600e5460ff16611699575090565b60006116a361293e565b9050808310156116b4575090919050565b806116c1816122b86135b3565b600f546116ce9086613568565b6116d89190613646565b6116e29190613568565b9392505050565b50919050565b60006001600160a01b03821661176d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a16565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146117d15760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6111be6000612951565b6006546001600160a01b031633146118235760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600060148054611832906135f6565b9050116118815760405162461bcd60e51b815260206004820152600e60248201527f534520555249206e6f74207365740000000000000000000000000000000000006044820152606401610a16565b61188961293e565b81106118d75760405162461bcd60e51b815260206004820152600a60248201527f4d757374206265205345000000000000000000000000000000000000000000006044820152606401610a16565b60008181526016602052604090205460ff16156119365760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c792072657665616c20746f6b656e206f6e63650000000000006044820152606401610a16565b6000818152601660205260409020805460ff1916600117905560155460ff16611967576015805460ff191660011790555b50565b6006546001600160a01b031633146119b25760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600e5460ff16156119fc5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610a16565b8051610c6e906013906020840190613055565b6006546001600160a01b03163314611a575760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600955565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611ad45760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610a16565b610c6e8282600f5550600e805461ff001916610100179055565b60606001805461091e906135f6565b6001600160a01b038216331415611b565760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a16565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611c0a5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600e5460ff1615611c545760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610a16565b6000600d8054611c63906135f6565b905011611cb25760405162461bcd60e51b815260206004820152601760248201527f50726f76656e616e63652068617368206e6f74207365740000000000000000006044820152606401610a16565b600060128054611cc1906135f6565b905011611d105760405162461bcd60e51b815260206004820152600f60248201527f42617365555249206e6f742073657400000000000000000000000000000000006044820152606401610a16565b600e54610100900460ff16611d675760405162461bcd60e51b815260206004820152601b60248201527f4d7573742067656e65726174652072616e646f6d206f666673657400000000006044820152606401610a16565b600e805460ff19166001179055565b6006546001600160a01b03163314611dbe5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6001600160a01b038216611dd0573391505b80611e6f576040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015611e3457600080fd5b505afa158015611e48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e6c91906133bc565b90505b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90604401602060405180830381600087803b158015611ef257600080fd5b505af1158015611f06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6891906132e9565b611f3433836125bf565b611fa65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a16565b611fb2848484846129b0565b50505050565b600d8054611fc5906135f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff1906135f6565b801561203e5780601f106120135761010080835404028352916020019161203e565b820191906000526020600020905b81548152906001019060200180831161202157829003601f168201915b505050505081565b6000818152600260205260409020546060906001600160a01b03166120ad5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a16565b60006120b761293e565b9050808310156121c35760008381526016602052604090205460ff168080156120ee57506000601480546120ea906135f6565b9050115b1561212f57601461210661210186611627565b612a2e565b60405160200161211792919061344b565b60405160208183030381529060405292505050919050565b6013805461213c906135f6565b80601f0160208091040260200160405190810160405280929190818152602001828054612168906135f6565b80156121b55780601f1061218a576101008083540402835291602001916121b5565b820191906000526020600020905b81548152906001019060200180831161219857829003601f168201915b505050505092505050919050565b600e5460ff161561220a576121d6612b7c565b6121e261210185611627565b6040516020016121f392919061341c565b604051602081830303815290604052915050919050565b60138054612217906135f6565b80601f0160208091040260200160405190810160405280929190818152602001828054612243906135f6565b80156122905780601f1061226557610100808354040283529160200191612290565b820191906000526020600020905b81548152906001019060200180831161227357829003601f168201915b5050505050915050919050565b6006546001600160a01b031633146122e55760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600e5460ff161561232f5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610a16565b6010546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561239157600080fd5b505afa1580156123a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123c991906133bc565b10156124175760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420244c494e4b2062616c616e63650000000000006044820152606401610a16565b611967601154601054612b8b565b6006546001600160a01b0316331461246d5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6119678133612890565b6006546001600160a01b031633146124bf5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6001600160a01b03811661253b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a16565b61196781612951565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906125868261159c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166126385760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a16565b60006126438361159c565b9050806001600160a01b0316846001600160a01b0316148061267e5750836001600160a01b0316612673846109a1565b6001600160a01b0316145b806126ae57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166126c98261159c565b6001600160a01b0316146127455760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a16565b6001600160a01b0382166127c05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a16565b6127cb600082612544565b6001600160a01b03831660009081526003602052604081208054600192906127f49084906135b3565b90915550506001600160a01b0382166000908152600360205260408120805460019290612822908490613568565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816122b88161289e60085490565b6128a89190613568565b11156128f65760405162461bcd60e51b815260206004820181905260248201527f45786365656473206d6178696d756d206e756d626572206f6620746f6b656e736044820152606401610a16565b60005b83811015611fb2576129138361290e60085490565b612d16565b6001600860008282546129269190613568565b909155508190506129368161362b565b9150506128f9565b600061294c60016008613568565b905090565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6129bb8484846126b6565b6129c784848484612d30565b611fb25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a16565b606081612a6e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a985780612a828161362b565b9150612a919050600a83613580565b9150612a72565b60008167ffffffffffffffff811115612ac157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612aeb576020820181803683370190505b5090505b84156126ae57612b006001836135b3565b9150612b0d600a86613646565b612b18906030613568565b60f81b818381518110612b3b57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b75600a86613580565b9450612aef565b60606012805461091e906135f6565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612bfb929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612c289392919061352d565b602060405180830381600087803b158015612c4257600080fd5b505af1158015612c56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c7a91906132e9565b506000838152600c6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052612cd6906001613568565b6000858152600c60205260409020556126ae8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b610c6e828260405180602001604052806000815250612e88565b60006001600160a01b0384163b15612e7d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d749033908990889088906004016134f1565b602060405180830381600087803b158015612d8e57600080fd5b505af1925050508015612dbe575060408051601f3d908101601f19168201909252612dbb91810190613342565b60015b612e63573d808015612dec576040519150601f19603f3d011682016040523d82523d6000602084013e612df1565b606091505b508051612e5b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a16565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506126ae565b506001949350505050565b612e928383612f06565b612e9f6000848484612d30565b610b685760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a16565b6001600160a01b038216612f5c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a16565b6000818152600260205260409020546001600160a01b031615612fc15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a16565b6001600160a01b0382166000908152600360205260408120805460019290612fea908490613568565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613061906135f6565b90600052602060002090601f01602090048101928261308357600085556130c9565b82601f1061309c57805160ff19168380011785556130c9565b828001600101855582156130c9579182015b828111156130c95782518255916020019190600101906130ae565b506130d59291506130d9565b5090565b5b808211156130d557600081556001016130da565b600067ffffffffffffffff8084111561310957613109613686565b604051601f8501601f19908116603f0116810190828211818310171561313157613131613686565b8160405280935085815286868601111561314a57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613175578081fd5b81356116e28161369c565b600060208284031215613191578081fd5b81516116e28161369c565b600080604083850312156131ae578081fd5b82356131b98161369c565b915060208301356131c98161369c565b809150509250929050565b6000806000606084860312156131e8578081fd5b83356131f38161369c565b925060208401356132038161369c565b929592945050506040919091013590565b60008060008060808587031215613229578081fd5b84356132348161369c565b935060208501356132448161369c565b925060408501359150606085013567ffffffffffffffff811115613266578182fd5b8501601f81018713613276578182fd5b613285878235602084016130ee565b91505092959194509250565b600080604083850312156132a3578182fd5b82356132ae8161369c565b915060208301356131c9816136b1565b600080604083850312156132d0578182fd5b82356132db8161369c565b946020939093013593505050565b6000602082840312156132fa578081fd5b81516116e2816136b1565b60008060408385031215613317578182fd5b50508035926020909101359150565b600060208284031215613337578081fd5b81356116e2816136bf565b600060208284031215613353578081fd5b81516116e2816136bf565b60006020828403121561336f578081fd5b813567ffffffffffffffff811115613385578182fd5b8201601f81018413613395578182fd5b6126ae848235602084016130ee565b6000602082840312156133b5578081fd5b5035919050565b6000602082840312156133cd578081fd5b5051919050565b600081518084526133ec8160208601602086016135ca565b601f01601f19169290920160200192915050565b600081516134128185602086016135ca565b9290920192915050565b6000835161342e8184602088016135ca565b8351908301906134428183602088016135ca565b01949350505050565b600080845482600182811c91508083168061346757607f831692505b602080841082141561348757634e487b7160e01b87526022600452602487fd5b81801561349b57600181146134ac576134d8565b60ff198616895284890196506134d8565b60008b815260209020885b868110156134d05781548b8201529085019083016134b7565b505084890196505b5050505050506134e88185613400565b95945050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261352360808301846133d4565b9695505050505050565b6001600160a01b03841681528260208201526060604082015260006134e860608301846133d4565b6020815260006116e260208301846133d4565b6000821982111561357b5761357b61365a565b500190565b60008261358f5761358f613670565b500490565b60008160001904831182151516156135ae576135ae61365a565b500290565b6000828210156135c5576135c561365a565b500390565b60005b838110156135e55781810151838201526020016135cd565b83811115611fb25750506000910152565b600181811c9082168061360a57607f821691505b602082108114156116e957634e487b7160e01b600052602260045260246000fd5b600060001982141561363f5761363f61365a565b5060010190565b60008261365557613655613670565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461196757600080fd5b801515811461196757600080fd5b6001600160e01b03198116811461196757600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220dd0e62dd62e495e2099382baa7b6859324b2b33221a54ee30cbbf701441903cc64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000001e232f4d7e9b01e0aa9f3babc82aceac43be65d2000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000072727d9f2fbbfeb8e4af4929957aa56da3a1e449000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6e66742d73746f72652e73332e616d617a6f6e6177732e636f6d2f737065616b657268656164732f706c616365686f6c6465722e6a736f6e

Deployed Bytecode

0x6080604052600436106102fd5760003560e01c80636bcf049a1161018f578063a475b5dd116100e1578063dc8c57b41161008a578063f19e75d411610064578063f19e75d41461081d578063f2fde38b1461083d578063f63cb83c1461085d57600080fd5b8063dc8c57b4146107a0578063e2724077146107b5578063e985e9c5146107d457600080fd5b8063c6ab67a3116100bb578063c6ab67a314610756578063c87b56dd1461076b578063cc7a856c1461078b57600080fd5b8063a475b5dd14610701578063ae5c238a14610716578063b88d4fde1461073657600080fd5b80638da5cb5b1161014357806394985ddd1161011d57806394985ddd146106ac57806395d89b41146106cc578063a22cb465146106e157600080fd5b80638da5cb5b1461065957806391b7f5ed1461067757806392a82d371461069757600080fd5b8063715018a611610174578063715018a61461060457806375c7d3ab14610619578063820de0c51461063957600080fd5b80636bcf049a146105c457806370a08231146105e457600080fd5b80633100a5351161025357806348a1e66b116101fc57806355f804b3116101d657806355f804b3146105635780636352211e1461058357806368428a1b146105a357600080fd5b806348a1e66b146105145780635183022714610529578063547520fe1461054357600080fd5b8063357b794e1161022d578063357b794e146104be5780633ccfd60b146104df57806342842e0e146104f457600080fd5b80633100a5351461047e57806332cb6b0c1461049357806333385afe146104a957600080fd5b80631302d9dd116102b557806323b872dd1161028f57806323b872dd1461042b5780632db115441461044b5780632ec018601461045e57600080fd5b80631302d9dd146103d357806318160ddd146103f6578063205c28781461040b57600080fd5b8063081812fc116102e6578063081812fc14610359578063095ea7b31461039157806310969523146103b357600080fd5b806301ffc9a71461030257806306fdde0314610337575b600080fd5b34801561030e57600080fd5b5061032261031d366004613326565b610872565b60405190151581526020015b60405180910390f35b34801561034357600080fd5b5061034c61090f565b60405161032e9190613555565b34801561036557600080fd5b506103796103743660046133a4565b6109a1565b6040516001600160a01b03909116815260200161032e565b34801561039d57600080fd5b506103b16103ac3660046132be565b610a3b565b005b3480156103bf57600080fd5b506103b16103ce36600461335e565b610b6d565b3480156103df57600080fd5b506103e8606781565b60405190815260200161032e565b34801561040257600080fd5b506008546103e8565b34801561041757600080fd5b506103b16104263660046132be565b610c72565b34801561043757600080fd5b506103b16104463660046131d4565b610d45565b6103b16104593660046133a4565b610dcc565b34801561046a57600080fd5b506103b161047936600461335e565b611039565b34801561048a57600080fd5b506103b16110e7565b34801561049f57600080fd5b506103e86122b881565b3480156104b557600080fd5b506103e8600181565b3480156104ca57600080fd5b50600b5461032290600160a01b900460ff1681565b3480156104eb57600080fd5b506103b161116b565b34801561050057600080fd5b506103b161050f3660046131d4565b6111c0565b34801561052057600080fd5b506103b16111db565b34801561053557600080fd5b50600e546103229060ff1681565b34801561054f57600080fd5b506103b161055e3660046133a4565b6114aa565b34801561056f57600080fd5b506103b161057e36600461335e565b6114f7565b34801561058f57600080fd5b5061037961059e3660046133a4565b61159c565b3480156105af57600080fd5b50600b5461032290600160a81b900460ff1681565b3480156105d057600080fd5b506103e86105df3660046133a4565b611627565b3480156105f057600080fd5b506103e86105ff366004613164565b6116ef565b34801561061057600080fd5b506103b1611789565b34801561062557600080fd5b506103b16106343660046133a4565b6117db565b34801561064557600080fd5b506103b161065436600461335e565b61196a565b34801561066557600080fd5b506006546001600160a01b0316610379565b34801561068357600080fd5b506103b16106923660046133a4565b611a0f565b3480156106a357600080fd5b506103e8604f81565b3480156106b857600080fd5b506103b16106c7366004613305565b611a5c565b3480156106d857600080fd5b5061034c611aee565b3480156106ed57600080fd5b506103b16106fc366004613291565b611afd565b34801561070d57600080fd5b506103b1611bc2565b34801561072257600080fd5b506103b16107313660046132be565b611d76565b34801561074257600080fd5b506103b1610751366004613214565b611f2a565b34801561076257600080fd5b5061034c611fb8565b34801561077757600080fd5b5061034c6107863660046133a4565b612046565b34801561079757600080fd5b506103b161229d565b3480156107ac57600080fd5b50600f546103e8565b3480156107c157600080fd5b50600e5461032290610100900460ff1681565b3480156107e057600080fd5b506103226107ef36600461319c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561082957600080fd5b506103b16108383660046133a4565b612425565b34801561084957600080fd5b506103b1610858366004613164565b612477565b34801561086957600080fd5b506103e8600881565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806108d557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061090957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606000805461091e906135f6565b80601f016020809104026020016040519081016040528092919081815260200182805461094a906135f6565b80156109975780601f1061096c57610100808354040283529160200191610997565b820191906000526020600020905b81548152906001019060200180831161097a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a1f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a468261159c565b9050806001600160a01b0316836001600160a01b03161415610ad05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a16565b336001600160a01b0382161480610aec5750610aec81336107ef565b610b5e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a16565b610b688383612544565b505050565b6006546001600160a01b03163314610bb55760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600e5460ff1615610bff5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610a16565b600d8054610c0c906135f6565b159050610c5b5760405162461bcd60e51b815260206004820152601b60248201527f50726f76656e616e6365206861736820616c72656164792073657400000000006044820152606401610a16565b8051610c6e90600d906020840190613055565b5050565b6006546001600160a01b03163314610cba5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6001600160a01b038216610ccc573391505b80610cd45750475b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050610c6e5760405162461bcd60e51b815260206004820152601e60248201527f416464726573732063616e6e6f742072656365697665207061796d656e7400006044820152606401610a16565b610d4f33826125bf565b610dc15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a16565b610b688383836126b6565b600b54600160a01b900460ff16610e255760405162461bcd60e51b815260206004820152601260248201527f4d757374207072656d696e7420666972737400000000000000000000000000006044820152606401610a16565b60026007541415610e785760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a16565b6002600755600b54600160a81b900460ff16610ed65760405162461bcd60e51b815260206004820152601260248201527f53616c65206974206e6f742061637469766500000000000000000000000000006044820152606401610a16565b333214610f255760405162461bcd60e51b815260206004820152601360248201527f50726f786965732063616e6e6f74206d696e74000000000000000000000000006044820152606401610a16565b8080600954610f349190613594565b3414610f825760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420457468657220616d6f756e742073656e74000000000000006044820152606401610a16565b8160008111610fd35760405162461bcd60e51b815260206004820152601360248201527f4d757374207370656369667920616d6f756e74000000000000000000000000006044820152606401610a16565b600a548111156110255760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d6178696d756d20616d6f756e740000000000006044820152606401610a16565b61102f8333612890565b5050600160075550565b6006546001600160a01b031633146110815760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b60155460ff16156110d45760405162461bcd60e51b815260206004820181905260248201527f4174206c65617374206f6e6520534520616c72656164792072657665616c65646044820152606401610a16565b8051610c6e906014906020840190613055565b6006546001600160a01b0316331461112f5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600b80547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff8116600160a81b9182900460ff1615909102179055565b6006546001600160a01b031633146111b35760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6111be600080610c72565b565b610b6883838360405180602001604052806000815250611f2a565b6006546001600160a01b031633146112235760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600b54600160a01b900460ff161561127d5760405162461bcd60e51b815260206004820152601f60248201527f416c7265616479207072656d696e746564206272616e642072657365727665006044820152606401610a16565b600b54611295906001906001600160a01b0316612890565b600b546112ad906008906001600160a01b0316612890565b600b546112c590604f906001600160a01b0316612890565b600b546112dd906067906001600160a01b0316612890565b60007f00000000000000000000000072727d9f2fbbfeb8e4af4929957aa56da3a1e4496001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561133857600080fd5b505afa15801561134c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137091906133bc565b600b549091506001600160a01b031660005b82811015611477576040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018290526000907f00000000000000000000000072727d9f2fbbfeb8e4af4929957aa56da3a1e4496001600160a01b031690636352211e9060240160206040518083038186803b15801561140657600080fd5b505afa15801561141a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143e9190613180565b9050826001600160a01b0316816001600160a01b03161461146457611464600182612890565b508061146f8161362b565b915050611382565b5050600b80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b17905550565b6006546001600160a01b031633146114f25760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600a55565b6006546001600160a01b0316331461153f5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600e5460ff16156115895760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610a16565b8051610c6e906012906020840190613055565b6000818152600260205260408120546001600160a01b0316806109095760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a16565b6000818152600260205260408120546001600160a01b031661168b5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a16565b600e5460ff16611699575090565b60006116a361293e565b9050808310156116b4575090919050565b806116c1816122b86135b3565b600f546116ce9086613568565b6116d89190613646565b6116e29190613568565b9392505050565b50919050565b60006001600160a01b03821661176d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a16565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146117d15760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6111be6000612951565b6006546001600160a01b031633146118235760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600060148054611832906135f6565b9050116118815760405162461bcd60e51b815260206004820152600e60248201527f534520555249206e6f74207365740000000000000000000000000000000000006044820152606401610a16565b61188961293e565b81106118d75760405162461bcd60e51b815260206004820152600a60248201527f4d757374206265205345000000000000000000000000000000000000000000006044820152606401610a16565b60008181526016602052604090205460ff16156119365760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c792072657665616c20746f6b656e206f6e63650000000000006044820152606401610a16565b6000818152601660205260409020805460ff1916600117905560155460ff16611967576015805460ff191660011790555b50565b6006546001600160a01b031633146119b25760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600e5460ff16156119fc5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610a16565b8051610c6e906013906020840190613055565b6006546001600160a01b03163314611a575760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600955565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614611ad45760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610a16565b610c6e8282600f5550600e805461ff001916610100179055565b60606001805461091e906135f6565b6001600160a01b038216331415611b565760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a16565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611c0a5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600e5460ff1615611c545760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610a16565b6000600d8054611c63906135f6565b905011611cb25760405162461bcd60e51b815260206004820152601760248201527f50726f76656e616e63652068617368206e6f74207365740000000000000000006044820152606401610a16565b600060128054611cc1906135f6565b905011611d105760405162461bcd60e51b815260206004820152600f60248201527f42617365555249206e6f742073657400000000000000000000000000000000006044820152606401610a16565b600e54610100900460ff16611d675760405162461bcd60e51b815260206004820152601b60248201527f4d7573742067656e65726174652072616e646f6d206f666673657400000000006044820152606401610a16565b600e805460ff19166001179055565b6006546001600160a01b03163314611dbe5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6001600160a01b038216611dd0573391505b80611e6f576040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b158015611e3457600080fd5b505afa158015611e48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e6c91906133bc565b90505b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca169063a9059cbb90604401602060405180830381600087803b158015611ef257600080fd5b505af1158015611f06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6891906132e9565b611f3433836125bf565b611fa65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a16565b611fb2848484846129b0565b50505050565b600d8054611fc5906135f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611ff1906135f6565b801561203e5780601f106120135761010080835404028352916020019161203e565b820191906000526020600020905b81548152906001019060200180831161202157829003601f168201915b505050505081565b6000818152600260205260409020546060906001600160a01b03166120ad5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a16565b60006120b761293e565b9050808310156121c35760008381526016602052604090205460ff168080156120ee57506000601480546120ea906135f6565b9050115b1561212f57601461210661210186611627565b612a2e565b60405160200161211792919061344b565b60405160208183030381529060405292505050919050565b6013805461213c906135f6565b80601f0160208091040260200160405190810160405280929190818152602001828054612168906135f6565b80156121b55780601f1061218a576101008083540402835291602001916121b5565b820191906000526020600020905b81548152906001019060200180831161219857829003601f168201915b505050505092505050919050565b600e5460ff161561220a576121d6612b7c565b6121e261210185611627565b6040516020016121f392919061341c565b604051602081830303815290604052915050919050565b60138054612217906135f6565b80601f0160208091040260200160405190810160405280929190818152602001828054612243906135f6565b80156122905780601f1061226557610100808354040283529160200191612290565b820191906000526020600020905b81548152906001019060200180831161227357829003601f168201915b5050505050915050919050565b6006546001600160a01b031633146122e55760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b600e5460ff161561232f5760405162461bcd60e51b8152602060048201526014602482015273135d5cdd081b9bdd081899481c995d99585b195960621b6044820152606401610a16565b6010546040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b15801561239157600080fd5b505afa1580156123a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123c991906133bc565b10156124175760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420244c494e4b2062616c616e63650000000000006044820152606401610a16565b611967601154601054612b8b565b6006546001600160a01b0316331461246d5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6119678133612890565b6006546001600160a01b031633146124bf5760405162461bcd60e51b815260206004820181905260248201526000805160206136d68339815191526044820152606401610a16565b6001600160a01b03811661253b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a16565b61196781612951565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906125868261159c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166126385760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a16565b60006126438361159c565b9050806001600160a01b0316846001600160a01b0316148061267e5750836001600160a01b0316612673846109a1565b6001600160a01b0316145b806126ae57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166126c98261159c565b6001600160a01b0316146127455760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a16565b6001600160a01b0382166127c05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a16565b6127cb600082612544565b6001600160a01b03831660009081526003602052604081208054600192906127f49084906135b3565b90915550506001600160a01b0382166000908152600360205260408120805460019290612822908490613568565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816122b88161289e60085490565b6128a89190613568565b11156128f65760405162461bcd60e51b815260206004820181905260248201527f45786365656473206d6178696d756d206e756d626572206f6620746f6b656e736044820152606401610a16565b60005b83811015611fb2576129138361290e60085490565b612d16565b6001600860008282546129269190613568565b909155508190506129368161362b565b9150506128f9565b600061294c60016008613568565b905090565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6129bb8484846126b6565b6129c784848484612d30565b611fb25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a16565b606081612a6e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a985780612a828161362b565b9150612a919050600a83613580565b9150612a72565b60008167ffffffffffffffff811115612ac157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612aeb576020820181803683370190505b5090505b84156126ae57612b006001836135b3565b9150612b0d600a86613646565b612b18906030613568565b60f81b818381518110612b3b57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b75600a86613580565b9450612aef565b60606012805461091e906135f6565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612bfb929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612c289392919061352d565b602060405180830381600087803b158015612c4257600080fd5b505af1158015612c56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c7a91906132e9565b506000838152600c6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052612cd6906001613568565b6000858152600c60205260409020556126ae8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b610c6e828260405180602001604052806000815250612e88565b60006001600160a01b0384163b15612e7d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d749033908990889088906004016134f1565b602060405180830381600087803b158015612d8e57600080fd5b505af1925050508015612dbe575060408051601f3d908101601f19168201909252612dbb91810190613342565b60015b612e63573d808015612dec576040519150601f19603f3d011682016040523d82523d6000602084013e612df1565b606091505b508051612e5b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a16565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506126ae565b506001949350505050565b612e928383612f06565b612e9f6000848484612d30565b610b685760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a16565b6001600160a01b038216612f5c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a16565b6000818152600260205260409020546001600160a01b031615612fc15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a16565b6001600160a01b0382166000908152600360205260408120805460019290612fea908490613568565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613061906135f6565b90600052602060002090601f01602090048101928261308357600085556130c9565b82601f1061309c57805160ff19168380011785556130c9565b828001600101855582156130c9579182015b828111156130c95782518255916020019190600101906130ae565b506130d59291506130d9565b5090565b5b808211156130d557600081556001016130da565b600067ffffffffffffffff8084111561310957613109613686565b604051601f8501601f19908116603f0116810190828211818310171561313157613131613686565b8160405280935085815286868601111561314a57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613175578081fd5b81356116e28161369c565b600060208284031215613191578081fd5b81516116e28161369c565b600080604083850312156131ae578081fd5b82356131b98161369c565b915060208301356131c98161369c565b809150509250929050565b6000806000606084860312156131e8578081fd5b83356131f38161369c565b925060208401356132038161369c565b929592945050506040919091013590565b60008060008060808587031215613229578081fd5b84356132348161369c565b935060208501356132448161369c565b925060408501359150606085013567ffffffffffffffff811115613266578182fd5b8501601f81018713613276578182fd5b613285878235602084016130ee565b91505092959194509250565b600080604083850312156132a3578182fd5b82356132ae8161369c565b915060208301356131c9816136b1565b600080604083850312156132d0578182fd5b82356132db8161369c565b946020939093013593505050565b6000602082840312156132fa578081fd5b81516116e2816136b1565b60008060408385031215613317578182fd5b50508035926020909101359150565b600060208284031215613337578081fd5b81356116e2816136bf565b600060208284031215613353578081fd5b81516116e2816136bf565b60006020828403121561336f578081fd5b813567ffffffffffffffff811115613385578182fd5b8201601f81018413613395578182fd5b6126ae848235602084016130ee565b6000602082840312156133b5578081fd5b5035919050565b6000602082840312156133cd578081fd5b5051919050565b600081518084526133ec8160208601602086016135ca565b601f01601f19169290920160200192915050565b600081516134128185602086016135ca565b9290920192915050565b6000835161342e8184602088016135ca565b8351908301906134428183602088016135ca565b01949350505050565b600080845482600182811c91508083168061346757607f831692505b602080841082141561348757634e487b7160e01b87526022600452602487fd5b81801561349b57600181146134ac576134d8565b60ff198616895284890196506134d8565b60008b815260209020885b868110156134d05781548b8201529085019083016134b7565b505084890196505b5050505050506134e88185613400565b95945050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261352360808301846133d4565b9695505050505050565b6001600160a01b03841681528260208201526060604082015260006134e860608301846133d4565b6020815260006116e260208301846133d4565b6000821982111561357b5761357b61365a565b500190565b60008261358f5761358f613670565b500490565b60008160001904831182151516156135ae576135ae61365a565b500290565b6000828210156135c5576135c561365a565b500390565b60005b838110156135e55781810151838201526020016135cd565b83811115611fb25750506000910152565b600181811c9082168061360a57607f821691505b602082108114156116e957634e487b7160e01b600052602260045260246000fd5b600060001982141561363f5761363f61365a565b5060010190565b60008261365557613655613670565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461196757600080fd5b801515811461196757600080fd5b6001600160e01b03198116811461196757600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220dd0e62dd62e495e2099382baa7b6859324b2b33221a54ee30cbbf701441903cc64736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000001e232f4d7e9b01e0aa9f3babc82aceac43be65d2000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000072727d9f2fbbfeb8e4af4929957aa56da3a1e449000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6e66742d73746f72652e73332e616d617a6f6e6177732e636f6d2f737065616b657268656164732f706c616365686f6c6465722e6a736f6e

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

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000001e232f4d7e9b01e0aa9f3babc82aceac43be65d2
Arg [2] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [3] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [4] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [5] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [6] : 00000000000000000000000072727d9f2fbbfeb8e4af4929957aa56da3a1e449
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.