ETH Price: $3,942.47 (+5.87%)

Token

Ape Harbour Dinghies (AHD)
 

Overview

Max Total Supply

2,834 AHD

Holders

1,225

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
3 AHD
0x22678b147a46bee86b79acbbde00b7f2e6c02da7
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ApeHarbourDinghies

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, MIT license
File 1 of 18 : ApeHarbourDinghies.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// import "hardhat/console.sol";

import "@openzeppelin/contracts/access/Ownable.sol";
// import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";

import "./base64.sol";

contract ApeHarbourDinghies is ERC721Enumerable, VRFConsumerBase, Ownable {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;

    IERC721 private bayc;
    IERC721 private bakc;

    address private minter;

    // Random number generation
    uint256 public randomSeed;
    bytes32 internal keyHash;
    uint256 internal chainLinkFee;

    bytes32 public requestId;

    string constant preRevealImageUrl = 'ipfs://QmNNmPE3FEk5xZ79zTKQC6ekm1vVX25gQivfQguVwRGMbu';
    string public revealedCollectionBaseURL;
    bool public frozen;

    uint8 constant BITMASK = 255;

    uint8[][2] private cutoffs;
    string[][2] private traitValues;

    enum Keys { backgrounds, surfboard }

    string[] private traits = [ "Background", "Surfboard" ];


    event Reveal(uint256 randomness);
    event Mint(address indexed owner);


    modifier onlyApeOwner() {
        require(
            bayc.balanceOf(msg.sender) > 0,
            "ApeOwner: Caller is not an ape owner"
        );

        _;
    }

    modifier onlyDogOwner() {
        require(
            bakc.balanceOf(msg.sender) > 0,
            "DogOwner: Caller is not a dog owner"
        );

        _;
    }

    modifier onlyMinter() {
        require(msg.sender == minter, 'Minting only allowed from AHY');

        _;
    }

    constructor(
        address _baycAddress,
        address _bakcAddress,
        address _linkAddress,
        address _vrfCoordinatorAddress,
        bytes32 _keyHash,
        uint256 _chainLinkFee
    ) ERC721("Ape Harbour Dinghies", "AHD") 
    VRFConsumerBase(_vrfCoordinatorAddress, _linkAddress) {
        bayc = IERC721(_baycAddress);
        bakc = IERC721(_bakcAddress);
        keyHash = _keyHash;
        chainLinkFee = _chainLinkFee;

        traitValues[uint256(Keys.backgrounds)] = ['Apelantic', 'Banana Bay', 'Everglades Ape Park', 'Ape Island', 'Apebiza'];
        traitValues[uint256(Keys.surfboard)] = ['Black', 'Prison', 'Trippy', 'Cheetah', 'Ocean Green', 'Wooden', 'Diamond', 'Mahogany', 'Classic', 'Pink', 'Gold', 'Pizza', 'White Stripes', 'Radioactive', 'USA', 'Polkadots', 'Plastic', 'Banana Pirates', 'Watermelons', 'Rainbow', 'Fomo Blue', 'Pink HOLD', 'Red Apes', 'Lofi Pink', 'Lofi Blue', 'VHS', 'Static'];

        cutoffs[uint256(Keys.backgrounds)] = [30,111,154,197,253];
        cutoffs[uint256(Keys.surfboard)] = [12,19,24,29,41,48,50,57,69,81,83,95,107,114,126,133,138,150,162,174,186,193,205,212,224,231,238];
    }

    function setMinter(address _minter) public onlyOwner {
        minter = _minter;
    }

    function mint(address _to) external onlyMinter returns (uint256) {

        _tokenIds.increment();
        uint256 newTokenId = _tokenIds.current();
        _safeMint(_to, newTokenId);

        emit Mint(_to);

        return _tokenIds.current();
    }

        function reveal() public onlyOwner {
        require(
            LINK.balanceOf(address(this)) >= chainLinkFee,
            "Not enough LINK - fill contract with faucet"
        );
        require(randomSeed == 0, 'Randomness has already been set');
        requestId = requestRandomness(keyHash, chainLinkFee);
    }

    
    function fulfillRandomness(bytes32 _requestId, uint256 _randomness)
        internal
        override
    {
        require(requestId == _requestId);
        randomSeed = _randomness;

        emit Reveal(_randomness);
    }

        function decodeTokenId(uint256 randomValue, uint256 _tokenId)
        public
        view
        returns (uint256[] memory)
    {
        require(randomValue != 0, "Tokens have not been revealed yet");

        uint256 tokenCode = uint256(
            keccak256(abi.encode(randomValue, _tokenId))
        );

        uint8[2] memory shifts = [ 0, 8 ];
        uint256[] memory tokenPart = new uint256[](shifts.length);

        for (uint256 i = 0; i < shifts.length; i++) {
            tokenPart[i] = (tokenCode >> shifts[i]) & BITMASK;
        }

        for (uint256 i = 0; i < tokenPart.length; i++) {
            uint256 currentIdx = 0;
            for (uint256 j = 0; j < cutoffs[i].length; j++) {
                if (tokenPart[i] < cutoffs[i][j]) {
                    currentIdx = j;
                    break;
                }
            }
            tokenPart[i] = currentIdx;
        }

        return tokenPart;
    }

       function getAttributeBytes(uint256 key, uint256 value)
        private
        view
        returns (bytes memory, bool attributePresent)
    {
        if (
            keccak256(abi.encodePacked(traitValues[key][value])) ==
            keccak256(abi.encodePacked("null"))
        ) {
            return ("", false);
        }
        return (
            abi.encodePacked(
                '{"trait_type": "',
                traits[key],
                '", "value": "',
                traitValues[key][value],
                '"}'
            ),
            true
        );
    }

    function getAttributes(uint256[] memory tokenPart)
        private
        view
        returns (string memory) {

        bytes memory attributes = '"attributes": [';
        bytes memory singleAtt;
        bool attPresent;

        (singleAtt, attPresent) = getAttributeBytes(0, tokenPart[0]);

        attributes = abi.encodePacked(attributes, singleAtt);

        for (uint256 i = 1; i < traits.length; i++) {
            (singleAtt, attPresent) = getAttributeBytes(i, tokenPart[i]);
            if (attPresent) {
                attributes = abi.encodePacked(attributes, ", ", singleAtt);
            }
        }

        return string(attributes);
    }

    function setRevealedCollectionBaseURL(string memory _ipfsHash) onlyOwner public {
        require(!frozen, 'Metadata has been frozen');
        revealedCollectionBaseURL = string(abi.encodePacked('ipfs://', _ipfsHash, '/'));
    }

    function freezeMetadata() onlyOwner public {
        frozen = true;
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        bytes memory tokenName = abi.encodePacked('Board ', Strings.toString(_tokenId));

        bytes memory content = abi.encodePacked('{"name":"', tokenName, '"');

        if (keccak256(abi.encodePacked(revealedCollectionBaseURL))  == keccak256(abi.encodePacked(''))) {
            content = abi.encodePacked(content, 
                ', ',
                '"description": "An unrevealed Ape Harbour Surfboard"',
                ', ',
                '"image": "', preRevealImageUrl, '"',
                '}');
        } else {
            uint256[] memory tokenParts = decodeTokenId(randomSeed, _tokenId);

            content = abi.encodePacked(content, 
                ', ', 
                getAttributes(tokenParts),
                '], ',
                '"image": "', revealedCollectionBaseURL, Strings.toString(_tokenId), '.png"',
                '}');
        }

        string memory result = string(
            abi.encodePacked(
                "data:application/json;base64,",
                Base64.encode(content)
            )
        );

        return result;
    }

}

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

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

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

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

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

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

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

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

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

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

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

contract VRFRequestIDBase {

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

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

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

interface LinkTokenInterface {

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

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

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

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

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

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

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

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

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

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

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

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

}

File 5 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).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 7 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

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

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

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

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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 13 of 18 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 14 of 18 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 15 of 18 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 16 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 17 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides a function for encoding some bytes in base64
library Base64 {
    string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';
        
        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)
            
            // prepare the lookup table
            let tablePtr := add(table, 1)
            
            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))
            
            // result ptr, jump over length
            let resultPtr := add(result, 32)
            
            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
               dataPtr := add(dataPtr, 3)
               
               // read 3 bytes
               let input := mload(dataPtr)
               
               // write 4 characters
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(        input,  0x3F)))))
               resultPtr := add(resultPtr, 1)
            }
            
            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }
        
        return result;
    }
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 1
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_baycAddress","type":"address"},{"internalType":"address","name":"_bakcAddress","type":"address"},{"internalType":"address","name":"_linkAddress","type":"address"},{"internalType":"address","name":"_vrfCoordinatorAddress","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint256","name":"_chainLinkFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"Reveal","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"randomValue","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"decodeTokenId","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"frozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"requestId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealedCollectionBaseURL","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"setRevealedCollectionBaseURL","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","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"}]

600a61010090815269109858dad9dc9bdd5b9960b21b6101205260c090815261018060405260096101409081526814dd5c99989bd85c9960ba1b6101605260e0526200005090601a9060026200076a565b503480156200005e57600080fd5b506040516200389f3803806200389f833981016040819052620000819162000a3c565b604080518082018252601481527f41706520486172626f75722044696e676869657300000000000000000000000060208083019182528351808501909452600384526210521160ea1b90840152815186938893929091620000e591600091620007ce565b508051620000fb906001906020840190620007ce565b5050506001600160601b0319606092831b811660a052911b1660805262000129620001233390565b62000718565b600d80546001600160a01b038881166001600160a01b031992831617909255600e805492881692909116919091179055601182905560128190556040805160e081018252600960a08201908152684170656c616e74696360b81b60c0830152815281518083018352600a8082526942616e616e612042617960b01b6020808401919091528084019290925283518085018552601381527f45766572676c6164657320417065205061726b0000000000000000000000000081840152838501528351808501855290815269105c1948125cdb185b9960b21b8183015260608301528251808401909352600783526641706562697a6160c81b9083015260808101919091526200023c90601890600562000859565b50604080516103a0810182526005610360820181815264426c61636b60d81b610380840152825282518084018452600680825265283934b9b7b760d11b60208084019190915280850192909252845180860186528181526554726970707960d01b818401528486015284518086018652600780825266086d0cacae8c2d60cb1b82850152606086019190915285518087018752600b8082526a27b1b2b0b71023b932b2b760a91b82860152608087019190915286518088018852838152652bb7b7b232b760d11b8186015260a08701528651808801885282815266111a585b5bdb9960ca1b8186015260c0870152865180880188526008808252674d61686f67616e7960c01b8287015260e08801919091528751808901895283815266436c617373696360c81b818701526101008801528751808901895260048082526350696e6b60e01b828801526101208901919091528851808a018a529081526311dbdb1960e21b81870152610140880152875180890189529586526450697a7a6160d81b8686015261016087019590955286518088018852600d81526c5768697465205374726970657360981b81860152610180870152865180880188528181526a526164696f61637469766560a81b818601526101a08701528651808801885260038082526255534160e81b828701526101c088019190915287518089018952600980825268506f6c6b61646f747360b81b828801526101e08901919091528851808a018a5284815266506c617374696360c81b818801526102008901528851808a018a52600e81526d42616e616e61205069726174657360901b818801526102208901528851808a018a529283526a57617465726d656c6f6e7360a81b8387015261024088019290925287518089018952928352665261696e626f7760c81b838601526102608701929092528651808801885281815268466f6d6f20426c756560b81b818601526102808701528651808801885281815268141a5b9ac81213d31160ba1b818601526102a08701528651808801885294855267526564204170657360c01b858501526102c086019490945285518087018752848152684c6f66692050696e6b60b81b818501526102e086015285518087018752938452684c6f666920426c756560b81b84840152610300850193909352845180860186529283526256485360e81b8383015261032084019290925283518085019094529083526553746174696360d01b90830152610340810191909152620005e190601990601b620008ab565b506040805160a081018252601e8152606f6020820152609a9181019190915260c5606082015260fd60808201526200061e906016906005620008fd565b506040805161036081018252600c815260136020820152601891810191909152601d606082015260296080820152603060a0820152603260c0820152603960e080830191909152604561010083015260516101208301526053610140830152605f610160830152606b61018083015260726101a0830152607e6101c083015260856101e0830152608a610200830152609661022083015260a261024083015260ae61026083015260ba61028083015260c16102a083015260cd6102c083015260d46102e083015261030082015260e761032082015260ee6103408201526200070b90601790601b620008fd565b5050505050505062000ae7565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054828255906000526020600020908101928215620007bc579160200282015b82811115620007bc5782518051620007ab918491602090910190620007ce565b50916020019190600101906200078b565b50620007ca929150620009a5565b5090565b828054620007dc9062000aaa565b90600052602060002090601f0160209004810192826200080057600085556200084b565b82601f106200081b57805160ff19168380011785556200084b565b828001600101855582156200084b579182015b828111156200084b5782518255916020019190600101906200082e565b50620007ca929150620009c6565b828054828255906000526020600020908101928215620007bc579160200282015b82811115620007bc57825180516200089a918491602090910190620007ce565b50916020019190600101906200087a565b828054828255906000526020600020908101928215620007bc579160200282015b82811115620007bc5782518051620008ec918491602090910190620007ce565b5091602001919060010190620008cc565b82805482825590600052602060002090601f016020900481019282156200084b5791602002820160005b838211156200096757835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030262000927565b8015620009965782816101000a81549060ff021916905560010160208160000104928301926001030262000967565b5050620007ca929150620009c6565b80821115620007ca576000620009bc8282620009dd565b50600101620009a5565b5b80821115620007ca5760008155600101620009c7565b508054620009eb9062000aaa565b6000825580601f10620009fc575050565b601f01602090049060005260206000209081019062000a1c9190620009c6565b50565b80516001600160a01b038116811462000a3757600080fd5b919050565b60008060008060008060c0878903121562000a55578182fd5b62000a608762000a1f565b955062000a706020880162000a1f565b945062000a806040880162000a1f565b935062000a906060880162000a1f565b92506080870151915060a087015190509295509295509295565b600181811c9082168062000abf57607f821691505b6020821081141562000ae157634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c612d7e62000b2160003960008181610c920152611700015260008181610e2201526116d10152612d7e6000f3fe608060405234801561001057600080fd5b50600436106101695760003560e01c80626d6cae1461016e57806301ffc9a71461018a578063054f7d9c146101ad57806306fdde03146101ba578063081812fc146101cf578063095ea7b3146101ef5780630b747d911461020457806318160ddd1461020d578063202aeca71461021557806323b872dd146102285780632f745c591461023b578063342f01a71461024e57806342842e0e1461026e5780634f6ccce7146102815780636352211e146102945780636a627842146102a757806370a08231146102ba578063715018a6146102cd5780638da5cb5b146102d557806394985ddd146102dd57806395d89b41146102f0578063a22cb465146102f8578063a475b5dd1461030b578063b88d4fde14610313578063c87b56dd14610326578063d111515d14610339578063dfb43c4c14610341578063e985e9c514610349578063f2fde38b1461035c578063fca3b5aa1461036f575b600080fd5b61017760135481565b6040519081526020015b60405180910390f35b61019d61019836600461252d565b610382565b6040519015158152602001610181565b60155461019d9060ff1681565b6101c26103ad565b6040516101819190612a6a565b6101e26101dd3660046125aa565b61043f565b60405161018191906129a5565b6102026101fd3660046124c7565b6104cc565b005b61017760105481565b600854610177565b610202610223366004612565565b6105dd565b6102026102363660046123de565b610693565b6101776102493660046124c7565b6106c4565b61026161025c36600461250c565b61075a565b6040516101819190612a26565b61020261027c3660046123de565b6109c2565b61017761028f3660046125aa565b6109dd565b6101e26102a23660046125aa565b610a7e565b6101776102b536600461238b565b610af5565b6101776102c836600461238b565b610bb6565b610202610c3d565b6101e2610c78565b6102026102eb36600461250c565b610c87565b6101c2610d09565b610202610306366004612491565b610d18565b610202610dd9565b610202610321366004612419565b610f6c565b6101c26103343660046125aa565b610fa4565b6102026110ee565b6101c261112c565b61019d6103573660046123ac565b6111ba565b61020261036a36600461238b565b6111e8565b61020261037d36600461238b565b611288565b60006001600160e01b0319821663780e9d6360e01b14806103a757506103a7826112d9565b92915050565b6060600080546103bc90612be3565b80601f01602080910402602001604051908101604052809291908181526020018280546103e890612be3565b80156104355780601f1061040a57610100808354040283529160200191610435565b820191906000526020600020905b81548152906001019060200180831161041857829003601f168201915b5050505050905090565b600061044a82611329565b6104b05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104d782610a7e565b9050806001600160a01b0316836001600160a01b031614156105455760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104a7565b336001600160a01b0382161480610561575061056181336111ba565b6105ce5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016104a7565b6105d88383611346565b505050565b336105e6610c78565b6001600160a01b03161461060c5760405162461bcd60e51b81526004016104a790612acf565b60155460ff161561065a5760405162461bcd60e51b815260206004820152601860248201527726b2ba30b230ba30903430b9903132b2b710333937bd32b760411b60448201526064016104a7565b8060405160200161066b9190612926565b6040516020818303038152906040526014908051906020019061068f929190612266565b5050565b61069d33826113b4565b6106b95760405162461bcd60e51b81526004016104a790612b04565b6105d883838361147e565b60006106cf83610bb6565b82106107315760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016104a7565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6060826107b35760405162461bcd60e51b815260206004820152602160248201527f546f6b656e732068617665206e6f74206265656e2072657665616c65642079656044820152601d60fa1b60648201526084016104a7565b604080516020810185905290810183905260009060600160408051808303601f190181528282528051602091820120838301835260008085526008928501929092528251600280825260608201909452909450909181602001602082028036833701905050905060005b60028110156108915760ff83826002811061084857634e487b7160e01b600052603260045260246000fd5b602002015160ff1685901c1682828151811061087457634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061088981612c1e565b91505061081d565b5060005b81518110156109b8576000805b601683600281106108c357634e487b7160e01b600052603260045260246000fd5b015481101561097857601683600281106108ed57634e487b7160e01b600052603260045260246000fd5b01818154811061090d57634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1660ff1684848151811061095057634e487b7160e01b600052603260045260246000fd5b6020026020010151101561096657809150610978565b8061097081612c1e565b9150506108a2565b508083838151811061099a57634e487b7160e01b600052603260045260246000fd5b602090810291909101015250806109b081612c1e565b915050610895565b5095945050505050565b6105d883838360405180602001604052806000815250610f6c565b60006109e860085490565b8210610a4b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016104a7565b60088281548110610a6c57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806103a75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016104a7565b600f546000906001600160a01b03163314610b525760405162461bcd60e51b815260206004820152601d60248201527f4d696e74696e67206f6e6c7920616c6c6f7765642066726f6d2041485900000060448201526064016104a7565b610b60600c80546001019055565b6000610b6b600c5490565b9050610b778382611617565b6040516001600160a01b038416907f3c3284d117c92d0b1699230960384e794dcba184cc48ff114fe4fed20c9b056590600090a25050600c545b919050565b60006001600160a01b038216610c215760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016104a7565b506001600160a01b031660009081526003602052604090205490565b33610c46610c78565b6001600160a01b031614610c6c5760405162461bcd60e51b81526004016104a790612acf565b610c766000611631565b565b600b546001600160a01b031690565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610cff5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016104a7565b61068f8282611683565b6060600180546103bc90612be3565b6001600160a01b038216331415610d6d5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016104a7565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b33610de2610c78565b6001600160a01b031614610e085760405162461bcd60e51b81526004016104a790612acf565b6012546040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610e579030906004016129a5565b60206040518083038186803b158015610e6f57600080fd5b505afa158015610e83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea791906125c2565b1015610f095760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b60648201526084016104a7565b60105415610f595760405162461bcd60e51b815260206004820152601f60248201527f52616e646f6d6e6573732068617320616c7265616479206265656e207365740060448201526064016104a7565b610f676011546012546116cd565b601355565b610f7633836113b4565b610f925760405162461bcd60e51b81526004016104a790612b04565b610f9e84848484611858565b50505050565b60606000610fb18361188b565b604051602001610fc191906128f8565b6040516020818303038152906040529050600081604051602001610fe591906128bb565b60408051601f19818403018152600083526020830180835283519020909350916110129160149101612856565b60405160208183030381529060405280519060200120141561106f5780604051806060016040528060358152602001612d14603591396040516020016110599291906127a3565b60405160208183030381529060405290506110ba565b600061107d6010548661075a565b905081611089826119a4565b60146110948861188b565b6040516020016110a7949392919061270a565b6040516020818303038152906040529150505b60006110c582611ab0565b6040516020016110d59190612960565b60408051601f1981840301815291905295945050505050565b336110f7610c78565b6001600160a01b03161461111d5760405162461bcd60e51b81526004016104a790612acf565b6015805460ff19166001179055565b6014805461113990612be3565b80601f016020809104026020016040519081016040528092919081815260200182805461116590612be3565b80156111b25780601f10611187576101008083540402835291602001916111b2565b820191906000526020600020905b81548152906001019060200180831161119557829003601f168201915b505050505081565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336111f1610c78565b6001600160a01b0316146112175760405162461bcd60e51b81526004016104a790612acf565b6001600160a01b03811661127c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104a7565b61128581611631565b50565b33611291610c78565b6001600160a01b0316146112b75760405162461bcd60e51b81526004016104a790612acf565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061130a57506001600160e01b03198216635b5e139f60e01b145b806103a757506301ffc9a760e01b6001600160e01b03198316146103a7565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061137b82610a7e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006113bf82611329565b6114205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104a7565b600061142b83610a7e565b9050806001600160a01b0316846001600160a01b031614806114665750836001600160a01b031661145b8461043f565b6001600160a01b0316145b80611476575061147681856111ba565b949350505050565b826001600160a01b031661149182610a7e565b6001600160a01b0316146114f95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016104a7565b6001600160a01b03821661155b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104a7565b611566838383611c25565b611571600082611346565b6001600160a01b038316600090815260036020526040812080546001929061159a908490612ba0565b90915550506001600160a01b03821660009081526003602052604081208054600192906115c8908490612b55565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020612cf483398151915291a4505050565b61068f828260405180602001604052806000815250611cdd565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816013541461169157600080fd5b60108190556040518181527f1747b48b6ade85d7dc97c0f523e0e780795930a468c01b18a51546791fdd3ac09060200160405180910390a15050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f00000000000000000000000000000000000000000000000000000000000000008486600060405160200161173d929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161176a939291906129f6565b602060405180830381600087803b15801561178457600080fd5b505af1158015611798573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bc91906124f0565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052611818906001612b55565b6000858152600a60205260409020556114768482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b61186384848461147e565b61186f84848484611d10565b610f9e5760405162461bcd60e51b81526004016104a790612a7d565b6060816118af5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118d957806118c381612c1e565b91506118d29050600a83612b6d565b91506118b3565b6000816001600160401b0381111561190157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561192b576020820181803683370190505b5090505b841561147657611940600183612ba0565b915061194d600a86612c39565b611958906030612b55565b60f81b81838151811061197b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061199d600a86612b6d565b945061192f565b606060006040518060400160405280600f81526020016e2261747472696275746573223a205b60881b815250905060606000611a096000866000815181106119fc57634e487b7160e01b600052603260045260246000fd5b6020026020010151611e1a565b6040519193509150611a21908490849060200161269e565b60408051601f19818403018152919052925060015b601a54811015611aa657611a64818783815181106119fc57634e487b7160e01b600052603260045260246000fd5b90935091508115611a94578383604051602001611a829291906126cd565b60405160208183030381529060405293505b80611a9e81612c1e565b915050611a36565b5091949350505050565b6060815160001415611ad057505060408051602081019091526000815290565b6000604051806060016040528060408152602001612cb46040913990506000600384516002611aff9190612b55565b611b099190612b6d565b611b14906004612b81565b90506000611b23826020612b55565b6001600160401b03811115611b4857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b72576020820181803683370190505b509050818152600183018586518101602084015b81831015611be05760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401611b86565b600389510660018114611bfa5760028114611c0b57611c17565b613d3d60f01b600119830152611c17565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b038316611c8057611c7b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611ca3565b816001600160a01b0316836001600160a01b031614611ca357611ca38382611f80565b6001600160a01b038216611cba576105d88161201d565b826001600160a01b0316826001600160a01b0316146105d8576105d882826120f6565b611ce7838361213a565b611cf46000848484611d10565b6105d85760405162461bcd60e51b81526004016104a790612a7d565b60006001600160a01b0384163b15611e1257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d549033908990889088906004016129b9565b602060405180830381600087803b158015611d6e57600080fd5b505af1925050508015611d9e575060408051601f3d908101601f19168201909252611d9b91810190612549565b60015b611df8573d808015611dcc576040519150601f19603f3d011682016040523d82523d6000602084013e611dd1565b606091505b508051611df05760405162461bcd60e51b81526004016104a790612a7d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611476565b506001611476565b60606000604051602001611e3890631b9d5b1b60e21b815260040190565b6040516020818303038152906040528051906020012060188560028110611e6f57634e487b7160e01b600052603260045260246000fd5b018481548110611e8f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001611ea99190612856565b604051602081830303815290604052805190602001201415611edc57505060408051602081019091526000808252611f79565b601a8481548110611efd57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160188560028110611f2857634e487b7160e01b600052603260045260246000fd5b018481548110611f4857634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001611f63929190612862565b6040516020818303038152906040526001915091505b9250929050565b60006001611f8d84610bb6565b611f979190612ba0565b600083815260076020526040902054909150808214611fea576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061202f90600190612ba0565b6000838152600960205260408120546008805493945090928490811061206557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061209457634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806120da57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061210183610bb6565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166121905760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104a7565b61219981611329565b156121e55760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016104a7565b6121f160008383611c25565b6001600160a01b038216600090815260036020526040812080546001929061221a908490612b55565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020612cf4833981519152908290a45050565b82805461227290612be3565b90600052602060002090601f01602090048101928261229457600085556122da565b82601f106122ad57805160ff19168380011785556122da565b828001600101855582156122da579182015b828111156122da5782518255916020019190600101906122bf565b506122e69291506122ea565b5090565b5b808211156122e657600081556001016122eb565b60006001600160401b038084111561231957612319612c79565b604051601f8501601f19908116603f0116810190828211818310171561234157612341612c79565b8160405280935085815286868601111561235a57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114610bb157600080fd5b60006020828403121561239c578081fd5b6123a582612374565b9392505050565b600080604083850312156123be578081fd5b6123c783612374565b91506123d560208401612374565b90509250929050565b6000806000606084860312156123f2578081fd5b6123fb84612374565b925061240960208501612374565b9150604084013590509250925092565b6000806000806080858703121561242e578081fd5b61243785612374565b935061244560208601612374565b92506040850135915060608501356001600160401b03811115612466578182fd5b8501601f81018713612476578182fd5b612485878235602084016122ff565b91505092959194509250565b600080604083850312156124a3578182fd5b6124ac83612374565b915060208301356124bc81612c8f565b809150509250929050565b600080604083850312156124d9578182fd5b6124e283612374565b946020939093013593505050565b600060208284031215612501578081fd5b81516123a581612c8f565b6000806040838503121561251e578182fd5b50508035926020909101359150565b60006020828403121561253e578081fd5b81356123a581612c9d565b60006020828403121561255a578081fd5b81516123a581612c9d565b600060208284031215612576578081fd5b81356001600160401b0381111561258b578182fd5b8201601f8101841361259b578182fd5b611476848235602084016122ff565b6000602082840312156125bb578081fd5b5035919050565b6000602082840312156125d3578081fd5b5051919050565b600081518084526125f2816020860160208601612bb7565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061262057607f831692505b602080841082141561264057634e487b7160e01b86526022600452602486fd5b818015612654576001811461266557612692565b60ff19861689528489019650612692565b60008881526020902060005b8681101561268a5781548b820152908501908301612671565b505084890196505b50505050505092915050565b600083516126b0818460208801612bb7565b8351908301906126c4818360208801612bb7565b01949350505050565b600083516126df818460208801612bb7565b61016160f51b90830190815283516126fe816002840160208801612bb7565b01600201949350505050565b6000855161271c818460208a01612bb7565b61016160f51b908301908152855161273b816002840160208a01612bb7565b6202e96160ed1b60029290910191820152691134b6b0b3b2911d101160b11b600582015261276c600f820186612606565b9050835161277e818360208801612bb7565b64173837339160d91b9101908152607d60f81b60058201526006019695505050505050565b600083516127b5818460208801612bb7565b61016160f51b9083018181527f226465736372697074696f6e223a2022416e20756e72657665616c656420417060028201527332902430b93137bab91029bab9333137b0b9321160611b60228201526036810191909152691134b6b0b3b2911d101160b11b60388201528351612832816042840160208801612bb7565b601160f91b60429290910191820152607d60f81b6043820152604401949350505050565b60006123a58284612606565b6f3d913a3930b4ba2fba3cb832911d101160811b815260006128876010830185612606565b6c111610113b30b63ab2911d101160991b81526128a7600d820185612606565b61227d60f01b815260020195945050505050565b683d913730b6b2911d1160b91b815281516000906128e0816009850160208701612bb7565b601160f91b6009939091019283015250600a01919050565b6502137b0b932160d51b815260008251612919816006850160208701612bb7565b9190910160060192915050565b66697066733a2f2f60c81b815260008251612948816007850160208701612bb7565b602f60f81b6007939091019283015250600801919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161299881601d850160208701612bb7565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129ec908301846125da565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000612a1d60608301846125da565b95945050505050565b6020808252825182820181905260009190848201906040850190845b81811015612a5e57835183529284019291840191600101612a42565b50909695505050505050565b6020815260006123a560208301846125da565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612b6857612b68612c4d565b500190565b600082612b7c57612b7c612c63565b500490565b6000816000190483118215151615612b9b57612b9b612c4d565b500290565b600082821015612bb257612bb2612c4d565b500390565b60005b83811015612bd2578181015183820152602001612bba565b83811115610f9e5750506000910152565b600181811c90821680612bf757607f821691505b60208210811415612c1857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612c3257612c32612c4d565b5060010190565b600082612c4857612c48612c63565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461128557600080fd5b6001600160e01b03198116811461128557600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef697066733a2f2f516d4e4e6d50453346456b35785a37397a544b514336656b6d3176565832356751697666516775567752474d6275a264697066735822122002a5bc375d27b6abff9f28f5b4a9be9a2dbf6b59c3a86b6a214ebeb65d1aee2664736f6c63430008040033000000000000000000000000bc4ca0eda7647a8ab7c2061c2e118a18a936f13d000000000000000000000000ba30e5f9bb24caa003e9f2f0497ad287fdf95623000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101695760003560e01c80626d6cae1461016e57806301ffc9a71461018a578063054f7d9c146101ad57806306fdde03146101ba578063081812fc146101cf578063095ea7b3146101ef5780630b747d911461020457806318160ddd1461020d578063202aeca71461021557806323b872dd146102285780632f745c591461023b578063342f01a71461024e57806342842e0e1461026e5780634f6ccce7146102815780636352211e146102945780636a627842146102a757806370a08231146102ba578063715018a6146102cd5780638da5cb5b146102d557806394985ddd146102dd57806395d89b41146102f0578063a22cb465146102f8578063a475b5dd1461030b578063b88d4fde14610313578063c87b56dd14610326578063d111515d14610339578063dfb43c4c14610341578063e985e9c514610349578063f2fde38b1461035c578063fca3b5aa1461036f575b600080fd5b61017760135481565b6040519081526020015b60405180910390f35b61019d61019836600461252d565b610382565b6040519015158152602001610181565b60155461019d9060ff1681565b6101c26103ad565b6040516101819190612a6a565b6101e26101dd3660046125aa565b61043f565b60405161018191906129a5565b6102026101fd3660046124c7565b6104cc565b005b61017760105481565b600854610177565b610202610223366004612565565b6105dd565b6102026102363660046123de565b610693565b6101776102493660046124c7565b6106c4565b61026161025c36600461250c565b61075a565b6040516101819190612a26565b61020261027c3660046123de565b6109c2565b61017761028f3660046125aa565b6109dd565b6101e26102a23660046125aa565b610a7e565b6101776102b536600461238b565b610af5565b6101776102c836600461238b565b610bb6565b610202610c3d565b6101e2610c78565b6102026102eb36600461250c565b610c87565b6101c2610d09565b610202610306366004612491565b610d18565b610202610dd9565b610202610321366004612419565b610f6c565b6101c26103343660046125aa565b610fa4565b6102026110ee565b6101c261112c565b61019d6103573660046123ac565b6111ba565b61020261036a36600461238b565b6111e8565b61020261037d36600461238b565b611288565b60006001600160e01b0319821663780e9d6360e01b14806103a757506103a7826112d9565b92915050565b6060600080546103bc90612be3565b80601f01602080910402602001604051908101604052809291908181526020018280546103e890612be3565b80156104355780601f1061040a57610100808354040283529160200191610435565b820191906000526020600020905b81548152906001019060200180831161041857829003601f168201915b5050505050905090565b600061044a82611329565b6104b05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104d782610a7e565b9050806001600160a01b0316836001600160a01b031614156105455760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104a7565b336001600160a01b0382161480610561575061056181336111ba565b6105ce5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016104a7565b6105d88383611346565b505050565b336105e6610c78565b6001600160a01b03161461060c5760405162461bcd60e51b81526004016104a790612acf565b60155460ff161561065a5760405162461bcd60e51b815260206004820152601860248201527726b2ba30b230ba30903430b9903132b2b710333937bd32b760411b60448201526064016104a7565b8060405160200161066b9190612926565b6040516020818303038152906040526014908051906020019061068f929190612266565b5050565b61069d33826113b4565b6106b95760405162461bcd60e51b81526004016104a790612b04565b6105d883838361147e565b60006106cf83610bb6565b82106107315760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016104a7565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6060826107b35760405162461bcd60e51b815260206004820152602160248201527f546f6b656e732068617665206e6f74206265656e2072657665616c65642079656044820152601d60fa1b60648201526084016104a7565b604080516020810185905290810183905260009060600160408051808303601f190181528282528051602091820120838301835260008085526008928501929092528251600280825260608201909452909450909181602001602082028036833701905050905060005b60028110156108915760ff83826002811061084857634e487b7160e01b600052603260045260246000fd5b602002015160ff1685901c1682828151811061087457634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061088981612c1e565b91505061081d565b5060005b81518110156109b8576000805b601683600281106108c357634e487b7160e01b600052603260045260246000fd5b015481101561097857601683600281106108ed57634e487b7160e01b600052603260045260246000fd5b01818154811061090d57634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1660ff1684848151811061095057634e487b7160e01b600052603260045260246000fd5b6020026020010151101561096657809150610978565b8061097081612c1e565b9150506108a2565b508083838151811061099a57634e487b7160e01b600052603260045260246000fd5b602090810291909101015250806109b081612c1e565b915050610895565b5095945050505050565b6105d883838360405180602001604052806000815250610f6c565b60006109e860085490565b8210610a4b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016104a7565b60088281548110610a6c57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806103a75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016104a7565b600f546000906001600160a01b03163314610b525760405162461bcd60e51b815260206004820152601d60248201527f4d696e74696e67206f6e6c7920616c6c6f7765642066726f6d2041485900000060448201526064016104a7565b610b60600c80546001019055565b6000610b6b600c5490565b9050610b778382611617565b6040516001600160a01b038416907f3c3284d117c92d0b1699230960384e794dcba184cc48ff114fe4fed20c9b056590600090a25050600c545b919050565b60006001600160a01b038216610c215760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016104a7565b506001600160a01b031660009081526003602052604090205490565b33610c46610c78565b6001600160a01b031614610c6c5760405162461bcd60e51b81526004016104a790612acf565b610c766000611631565b565b600b546001600160a01b031690565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614610cff5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016104a7565b61068f8282611683565b6060600180546103bc90612be3565b6001600160a01b038216331415610d6d5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016104a7565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b33610de2610c78565b6001600160a01b031614610e085760405162461bcd60e51b81526004016104a790612acf565b6012546040516370a0823160e01b81526001600160a01b037f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca16906370a0823190610e579030906004016129a5565b60206040518083038186803b158015610e6f57600080fd5b505afa158015610e83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea791906125c2565b1015610f095760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b60648201526084016104a7565b60105415610f595760405162461bcd60e51b815260206004820152601f60248201527f52616e646f6d6e6573732068617320616c7265616479206265656e207365740060448201526064016104a7565b610f676011546012546116cd565b601355565b610f7633836113b4565b610f925760405162461bcd60e51b81526004016104a790612b04565b610f9e84848484611858565b50505050565b60606000610fb18361188b565b604051602001610fc191906128f8565b6040516020818303038152906040529050600081604051602001610fe591906128bb565b60408051601f19818403018152600083526020830180835283519020909350916110129160149101612856565b60405160208183030381529060405280519060200120141561106f5780604051806060016040528060358152602001612d14603591396040516020016110599291906127a3565b60405160208183030381529060405290506110ba565b600061107d6010548661075a565b905081611089826119a4565b60146110948861188b565b6040516020016110a7949392919061270a565b6040516020818303038152906040529150505b60006110c582611ab0565b6040516020016110d59190612960565b60408051601f1981840301815291905295945050505050565b336110f7610c78565b6001600160a01b03161461111d5760405162461bcd60e51b81526004016104a790612acf565b6015805460ff19166001179055565b6014805461113990612be3565b80601f016020809104026020016040519081016040528092919081815260200182805461116590612be3565b80156111b25780601f10611187576101008083540402835291602001916111b2565b820191906000526020600020905b81548152906001019060200180831161119557829003601f168201915b505050505081565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336111f1610c78565b6001600160a01b0316146112175760405162461bcd60e51b81526004016104a790612acf565b6001600160a01b03811661127c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104a7565b61128581611631565b50565b33611291610c78565b6001600160a01b0316146112b75760405162461bcd60e51b81526004016104a790612acf565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061130a57506001600160e01b03198216635b5e139f60e01b145b806103a757506301ffc9a760e01b6001600160e01b03198316146103a7565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061137b82610a7e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006113bf82611329565b6114205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104a7565b600061142b83610a7e565b9050806001600160a01b0316846001600160a01b031614806114665750836001600160a01b031661145b8461043f565b6001600160a01b0316145b80611476575061147681856111ba565b949350505050565b826001600160a01b031661149182610a7e565b6001600160a01b0316146114f95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016104a7565b6001600160a01b03821661155b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104a7565b611566838383611c25565b611571600082611346565b6001600160a01b038316600090815260036020526040812080546001929061159a908490612ba0565b90915550506001600160a01b03821660009081526003602052604081208054600192906115c8908490612b55565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020612cf483398151915291a4505050565b61068f828260405180602001604052806000815250611cdd565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816013541461169157600080fd5b60108190556040518181527f1747b48b6ade85d7dc97c0f523e0e780795930a468c01b18a51546791fdd3ac09060200160405180910390a15050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79528486600060405160200161173d929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161176a939291906129f6565b602060405180830381600087803b15801561178457600080fd5b505af1158015611798573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bc91906124f0565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052611818906001612b55565b6000858152600a60205260409020556114768482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b61186384848461147e565b61186f84848484611d10565b610f9e5760405162461bcd60e51b81526004016104a790612a7d565b6060816118af5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118d957806118c381612c1e565b91506118d29050600a83612b6d565b91506118b3565b6000816001600160401b0381111561190157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561192b576020820181803683370190505b5090505b841561147657611940600183612ba0565b915061194d600a86612c39565b611958906030612b55565b60f81b81838151811061197b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061199d600a86612b6d565b945061192f565b606060006040518060400160405280600f81526020016e2261747472696275746573223a205b60881b815250905060606000611a096000866000815181106119fc57634e487b7160e01b600052603260045260246000fd5b6020026020010151611e1a565b6040519193509150611a21908490849060200161269e565b60408051601f19818403018152919052925060015b601a54811015611aa657611a64818783815181106119fc57634e487b7160e01b600052603260045260246000fd5b90935091508115611a94578383604051602001611a829291906126cd565b60405160208183030381529060405293505b80611a9e81612c1e565b915050611a36565b5091949350505050565b6060815160001415611ad057505060408051602081019091526000815290565b6000604051806060016040528060408152602001612cb46040913990506000600384516002611aff9190612b55565b611b099190612b6d565b611b14906004612b81565b90506000611b23826020612b55565b6001600160401b03811115611b4857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b72576020820181803683370190505b509050818152600183018586518101602084015b81831015611be05760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401611b86565b600389510660018114611bfa5760028114611c0b57611c17565b613d3d60f01b600119830152611c17565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b038316611c8057611c7b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611ca3565b816001600160a01b0316836001600160a01b031614611ca357611ca38382611f80565b6001600160a01b038216611cba576105d88161201d565b826001600160a01b0316826001600160a01b0316146105d8576105d882826120f6565b611ce7838361213a565b611cf46000848484611d10565b6105d85760405162461bcd60e51b81526004016104a790612a7d565b60006001600160a01b0384163b15611e1257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d549033908990889088906004016129b9565b602060405180830381600087803b158015611d6e57600080fd5b505af1925050508015611d9e575060408051601f3d908101601f19168201909252611d9b91810190612549565b60015b611df8573d808015611dcc576040519150601f19603f3d011682016040523d82523d6000602084013e611dd1565b606091505b508051611df05760405162461bcd60e51b81526004016104a790612a7d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611476565b506001611476565b60606000604051602001611e3890631b9d5b1b60e21b815260040190565b6040516020818303038152906040528051906020012060188560028110611e6f57634e487b7160e01b600052603260045260246000fd5b018481548110611e8f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001611ea99190612856565b604051602081830303815290604052805190602001201415611edc57505060408051602081019091526000808252611f79565b601a8481548110611efd57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160188560028110611f2857634e487b7160e01b600052603260045260246000fd5b018481548110611f4857634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001611f63929190612862565b6040516020818303038152906040526001915091505b9250929050565b60006001611f8d84610bb6565b611f979190612ba0565b600083815260076020526040902054909150808214611fea576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061202f90600190612ba0565b6000838152600960205260408120546008805493945090928490811061206557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061209457634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806120da57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061210183610bb6565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166121905760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104a7565b61219981611329565b156121e55760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016104a7565b6121f160008383611c25565b6001600160a01b038216600090815260036020526040812080546001929061221a908490612b55565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020612cf4833981519152908290a45050565b82805461227290612be3565b90600052602060002090601f01602090048101928261229457600085556122da565b82601f106122ad57805160ff19168380011785556122da565b828001600101855582156122da579182015b828111156122da5782518255916020019190600101906122bf565b506122e69291506122ea565b5090565b5b808211156122e657600081556001016122eb565b60006001600160401b038084111561231957612319612c79565b604051601f8501601f19908116603f0116810190828211818310171561234157612341612c79565b8160405280935085815286868601111561235a57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114610bb157600080fd5b60006020828403121561239c578081fd5b6123a582612374565b9392505050565b600080604083850312156123be578081fd5b6123c783612374565b91506123d560208401612374565b90509250929050565b6000806000606084860312156123f2578081fd5b6123fb84612374565b925061240960208501612374565b9150604084013590509250925092565b6000806000806080858703121561242e578081fd5b61243785612374565b935061244560208601612374565b92506040850135915060608501356001600160401b03811115612466578182fd5b8501601f81018713612476578182fd5b612485878235602084016122ff565b91505092959194509250565b600080604083850312156124a3578182fd5b6124ac83612374565b915060208301356124bc81612c8f565b809150509250929050565b600080604083850312156124d9578182fd5b6124e283612374565b946020939093013593505050565b600060208284031215612501578081fd5b81516123a581612c8f565b6000806040838503121561251e578182fd5b50508035926020909101359150565b60006020828403121561253e578081fd5b81356123a581612c9d565b60006020828403121561255a578081fd5b81516123a581612c9d565b600060208284031215612576578081fd5b81356001600160401b0381111561258b578182fd5b8201601f8101841361259b578182fd5b611476848235602084016122ff565b6000602082840312156125bb578081fd5b5035919050565b6000602082840312156125d3578081fd5b5051919050565b600081518084526125f2816020860160208601612bb7565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061262057607f831692505b602080841082141561264057634e487b7160e01b86526022600452602486fd5b818015612654576001811461266557612692565b60ff19861689528489019650612692565b60008881526020902060005b8681101561268a5781548b820152908501908301612671565b505084890196505b50505050505092915050565b600083516126b0818460208801612bb7565b8351908301906126c4818360208801612bb7565b01949350505050565b600083516126df818460208801612bb7565b61016160f51b90830190815283516126fe816002840160208801612bb7565b01600201949350505050565b6000855161271c818460208a01612bb7565b61016160f51b908301908152855161273b816002840160208a01612bb7565b6202e96160ed1b60029290910191820152691134b6b0b3b2911d101160b11b600582015261276c600f820186612606565b9050835161277e818360208801612bb7565b64173837339160d91b9101908152607d60f81b60058201526006019695505050505050565b600083516127b5818460208801612bb7565b61016160f51b9083018181527f226465736372697074696f6e223a2022416e20756e72657665616c656420417060028201527332902430b93137bab91029bab9333137b0b9321160611b60228201526036810191909152691134b6b0b3b2911d101160b11b60388201528351612832816042840160208801612bb7565b601160f91b60429290910191820152607d60f81b6043820152604401949350505050565b60006123a58284612606565b6f3d913a3930b4ba2fba3cb832911d101160811b815260006128876010830185612606565b6c111610113b30b63ab2911d101160991b81526128a7600d820185612606565b61227d60f01b815260020195945050505050565b683d913730b6b2911d1160b91b815281516000906128e0816009850160208701612bb7565b601160f91b6009939091019283015250600a01919050565b6502137b0b932160d51b815260008251612919816006850160208701612bb7565b9190910160060192915050565b66697066733a2f2f60c81b815260008251612948816007850160208701612bb7565b602f60f81b6007939091019283015250600801919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161299881601d850160208701612bb7565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129ec908301846125da565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000612a1d60608301846125da565b95945050505050565b6020808252825182820181905260009190848201906040850190845b81811015612a5e57835183529284019291840191600101612a42565b50909695505050505050565b6020815260006123a560208301846125da565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612b6857612b68612c4d565b500190565b600082612b7c57612b7c612c63565b500490565b6000816000190483118215151615612b9b57612b9b612c4d565b500290565b600082821015612bb257612bb2612c4d565b500390565b60005b83811015612bd2578181015183820152602001612bba565b83811115610f9e5750506000910152565b600181811c90821680612bf757607f821691505b60208210811415612c1857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612c3257612c32612c4d565b5060010190565b600082612c4857612c48612c63565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461128557600080fd5b6001600160e01b03198116811461128557600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef697066733a2f2f516d4e4e6d50453346456b35785a37397a544b514336656b6d3176565832356751697666516775567752474d6275a264697066735822122002a5bc375d27b6abff9f28f5b4a9be9a2dbf6b59c3a86b6a214ebeb65d1aee2664736f6c63430008040033

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

000000000000000000000000bc4ca0eda7647a8ab7c2061c2e118a18a936f13d000000000000000000000000ba30e5f9bb24caa003e9f2f0497ad287fdf95623000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000

-----Decoded View---------------
Arg [0] : _baycAddress (address): 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D
Arg [1] : _bakcAddress (address): 0xba30E5F9Bb24caa003E9f2f0497Ad287FDF95623
Arg [2] : _linkAddress (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [3] : _vrfCoordinatorAddress (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [4] : _keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [5] : _chainLinkFee (uint256): 2000000000000000000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000bc4ca0eda7647a8ab7c2061c2e118a18a936f13d
Arg [1] : 000000000000000000000000ba30e5f9bb24caa003e9f2f0497ad287fdf95623
Arg [2] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [3] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [4] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [5] : 0000000000000000000000000000000000000000000000001bc16d674ec80000


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.