ETH Price: $3,879.17 (+1.15%)

Contract

0xFF4cC79435603fF1Af8CC90832e452Bf54BF18a4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...169531942023-04-01 8:44:11621 days ago1680338651IN
0xFF4cC794...f54BF18a4
0 ETH0.0009786321.2123168
Set Approval For...168847132023-03-22 17:48:23631 days ago1679507303IN
0xFF4cC794...f54BF18a4
0 ETH0.0005940424.5240102
Set Approval For...166276282023-02-14 14:37:11667 days ago1676385431IN
0xFF4cC794...f54BF18a4
0 ETH0.0012570327.24681483
Set Approval For...155523652022-09-17 9:18:59817 days ago1663406339IN
0xFF4cC794...f54BF18a4
0 ETH0.000265095.74609289
Set Approval For...152572142022-08-01 14:26:46864 days ago1659364006IN
0xFF4cC794...f54BF18a4
0 ETH0.0005347311.59063875
Transfer From151521722022-07-16 6:42:43880 days ago1657953763IN
0xFF4cC794...f54BF18a4
0 ETH0.0006675912.4339863
Transfer From151521612022-07-16 6:40:38880 days ago1657953638IN
0xFF4cC794...f54BF18a4
0 ETH0.0012164813.47803267
Set Approval For...148918802022-06-02 15:51:26924 days ago1654185086IN
0xFF4cC794...f54BF18a4
0 ETH0.0034870475.44621099
Set Approval For...148060432022-05-19 16:47:12938 days ago1652978832IN
0xFF4cC794...f54BF18a4
0 ETH0.0009486820.52587189
Set Approval For...147329742022-05-08 0:31:17949 days ago1651969877IN
0xFF4cC794...f54BF18a4
0 ETH0.001029922.28899245
Safe Transfer Fr...147201072022-05-05 23:25:10952 days ago1651793110IN
0xFF4cC794...f54BF18a4
0 ETH0.0033150250.88528594
Set Approval For...146856272022-04-30 12:37:51957 days ago1651322271IN
0xFF4cC794...f54BF18a4
0 ETH0.0014754531.92305448
Transfer From146699642022-04-28 1:30:54959 days ago1651109454IN
0xFF4cC794...f54BF18a4
0 ETH0.0040255856.85617562
Transfer From146699592022-04-28 1:30:13959 days ago1651109413IN
0xFF4cC794...f54BF18a4
0 ETH0.006382370.04514555
Transfer From146699572022-04-28 1:29:26959 days ago1651109366IN
0xFF4cC794...f54BF18a4
0 ETH0.0047852364.65055294
Transfer From146670942022-04-27 14:45:36960 days ago1651070736IN
0xFF4cC794...f54BF18a4
0 ETH0.0048705444.04425643
Withdraw Money146601432022-04-26 12:26:07961 days ago1650975967IN
0xFF4cC794...f54BF18a4
0 ETH0.0008641528.37656955
Set Approval For...146502202022-04-24 22:50:45963 days ago1650840645IN
0xFF4cC794...f54BF18a4
0 ETH0.0013151328.45442116
Transfer From146430572022-04-23 19:51:02964 days ago1650743462IN
0xFF4cC794...f54BF18a4
0 ETH0.002081729.40135973
Transfer From146398172022-04-23 7:44:08964 days ago1650699848IN
0xFF4cC794...f54BF18a4
0 ETH0.0032388635.54627511
Set Approval For...146396792022-04-23 7:11:23964 days ago1650697883IN
0xFF4cC794...f54BF18a4
0 ETH0.0014924132.29017297
Set Approval For...146358712022-04-22 16:56:09965 days ago1650646569IN
0xFF4cC794...f54BF18a4
0 ETH0.002699158.39811632
Set Approval For...146353702022-04-22 15:03:55965 days ago1650639835IN
0xFF4cC794...f54BF18a4
0 ETH0.00464802100.56516971
Set Approval For...146351962022-04-22 14:24:12965 days ago1650637452IN
0xFF4cC794...f54BF18a4
0 ETH0.0007778116.82890156
Transfer From146322262022-04-22 3:18:21965 days ago1650597501IN
0xFF4cC794...f54BF18a4
0 ETH0.0028744739.54481601
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
146601432022-04-26 12:26:07961 days ago1650975967
0xFF4cC794...f54BF18a4
3.1904 ETH
145913422022-04-15 17:40:18972 days ago1650044418
0xFF4cC794...f54BF18a4
1.5896 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Baboonverse

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion
File 1 of 17 : Baboonverse.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

// by: stormwalkerz ⭐️

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

interface iYield {
    function updateReward(address from_, address to_, uint256 tokenId_) external;
}

contract Baboonverse is ERC721A, Ownable, VRFConsumerBase, ReentrancyGuard {
    using SafeMath for uint256;

    // Provenance Hash (5888 - Original)
    string public constant PROVENANCE_HASH = "ffff0ef17cb1bbd8c6a3de9f5de4590eed82f012acb995e5bf4fb8ba18e438e2";

    // Provenance Hash of Rank : Burning start from common (rank 5888) to rare (rank 1001)
    string public constant PROVENANCE_HASH_RANK = "63b3ac3d0dd86ffc4b5467eda8778b4d7b62aa93c5979fef365ae3afdd67ad2f"; 

    // Provenance Hash Final Reveal with New Supply (after burned)
    string public PROVENANCE_HASH_FINAL;

    // Price
    uint256 public constant MINT_PRICE = 0.0088 ether;
    uint256 public constant WHITELIST_MINT_PRICE = 0.0058 ether;

    // Supply
    uint256 public constant INITIAL_SUPPLY = 5888;
    uint256 public maxPerTxnPublic;
    uint256 public maxPerTxnWhitelist;
    uint256 public maxPerWalletPublic;
    uint256 public maxPerWalletWhitelist;
    uint256 public maxPerTeam;
    uint256 public maxPerBaboonfrens;

    // Project Variables
    uint256 public constant MINT_DURATION = 48 hours;
    bytes32 public merkleRoot;
    bytes32 public merkleRootBaboonfrens; 
    bytes32 public merkleRootDevTeam;
    string private baseTokenURI;

    // Chainlink VRF
    bytes32 internal linkKeyHash;
    uint256 internal linkFee;

    // Future Token Yield
    iYield public yieldToken;

    // Constructor
    constructor(address vrfCoordinator_,
                address link_,
                bytes32 linkKeyHash_,
                uint linkFee_,
                bytes32 merkleRoot_,
                uint256 saleStartTime_,
                uint256 maxPerTeam_,
                uint256 maxPerBaboonfrens_
    ) 
        ERC721A("Baboonverse", "BABOON") 
        VRFConsumerBase(vrfCoordinator_, link_)
    {

        // Project Variables
        merkleRoot = merkleRoot_;
        baseTokenURI = "https://baboonverse-main.s3.amazonaws.com/metadata/";
        maxPerWalletWhitelist = 5;
        maxPerTxnWhitelist = 5;
        maxPerWalletPublic = 3;
        maxPerTxnPublic = 3;
        maxPerTeam = maxPerTeam_;
        maxPerBaboonfrens = maxPerBaboonfrens_;

        // Chainlink
        linkKeyHash = linkKeyHash_;
        linkFee = linkFee_;

        // Preparation
        _safeMint(owner(), 1);
        saleStartTime.push(saleStartTime_);
        saleActive = true;
    }
    
    // Modifiers
    modifier isUser {
        require(msg.sender == tx.origin, "Disable from SC"); _;
    }
    
    // Validation of Minted Address (ERC721A)
    function numberMinted(address owner) public view returns (uint256) {
        return _numberMinted(owner);
    }
    
    // Mint
    function whitelistMint(uint256 quantity_, bytes32[] memory proof_) external payable isUser isWhitelistMint isSaleActive {
        uint256 maxSupply = currentMaxSupply();
        require(MerkleProof.verify(proof_, merkleRoot, keccak256(abi.encodePacked(msg.sender))), "You're not whitelisted");
        require(numberMinted(msg.sender) + quantity_ <= maxPerWalletWhitelist, "Max per wallet reached");
        require(quantity_ <= maxPerTxnWhitelist, "Max per txn exceeded");
        require(msg.value == WHITELIST_MINT_PRICE * quantity_, "Wrong value!");
        require(maxSupply >= totalSupply() + quantity_, "Max supply exceeded");
        
        _safeMint(msg.sender, quantity_);
    }
    function publicMint(uint256 quantity_) external payable nonReentrant isUser isPublicMint isSaleActive { 
        uint256 maxSupply = currentMaxSupply();
        require(numberMinted(msg.sender) + quantity_ <= maxPerWalletPublic, "Max per wallet reached.");
        require(quantity_ <= maxPerTxnPublic, "Max per txn exceeded");
        require(msg.value == MINT_PRICE * quantity_, "Wrong value!");
        require(maxSupply >= totalSupply() + quantity_, "Max supply exceeded");
        
        _safeMint(msg.sender, quantity_);
    }
    function devTeamMint(uint256 quantity_, bytes32[] memory proof_) external isUser isSaleActive {
        uint256 maxSupply = currentMaxSupply();
        require(whitelistMintEnabled && block.timestamp >= whitelistMintTime, "Team mint not started");
        require(MerkleProof.verify(proof_, merkleRootDevTeam, keccak256(abi.encodePacked(msg.sender))), "You're not whitelisted");
        require(numberMinted(msg.sender) <= maxPerTeam, "Max per wallet reached");
        require(quantity_ <= maxPerTeam, "Max per txn exceeded");
        require(maxSupply >= totalSupply() + quantity_, "Max supply exceeded");
        
        // Keep max chunks to 5 (to prevent high gas of future transfer)
        uint256 numChunks = quantity_ / 5;
        for (uint256 i = 0; i < numChunks; i++) {
            _safeMint(msg.sender, 5);
        }
        
        uint256 leftChunks = quantity_ % 5;
        if (leftChunks > 0) {
            _safeMint(msg.sender, leftChunks);
        }
    }
    function baboonfrensMint(uint256 quantity_, bytes32[] memory proof_) external isUser isSaleActive {
        uint256 maxSupply = currentMaxSupply();
        require(whitelistMintEnabled && block.timestamp >= whitelistMintTime, "Baboonfrens mint not started");
        require(MerkleProof.verify(proof_, merkleRootBaboonfrens, keccak256(abi.encodePacked(msg.sender))), "You're not Baboonfrens");
        require(numberMinted(msg.sender) <= maxPerBaboonfrens, "Max per wallet reached.");
        require(quantity_ <= maxPerBaboonfrens, "Max per txn exceeded");
        require(maxSupply >= totalSupply() + maxPerBaboonfrens, "Max supply exceeded");

        _safeMint(msg.sender, quantity_);
    }

    // Randomness
    uint256 public startingIndex;
    function getRandomNumber() external onlyOwner returns (bytes32 requestId) {
        require(LINK.balanceOf(address(this)) >= linkFee, "Not enough LINK");
        require(startingIndex == 0, "Already generated random number");
        require(saleFinished == true, "Sale not finished yet");

        return requestRandomness(linkKeyHash, linkFee);
    }
    function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
        // Process random number
        uint256 newRandomStartingIndex = randomness % totalSupply();

        // Prevent default sequence
        if (newRandomStartingIndex == 0) {
            newRandomStartingIndex = newRandomStartingIndex.add(1);
        }

        // Assign starting index
        startingIndex = newRandomStartingIndex;
    }

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

    // Public Mint
    bool public publicMintEnabled;
    uint256 public publicMintTime;
    function setPublicMint(bool bool_, uint256 epochTime_) external onlyOwner {
        publicMintEnabled = bool_;
        publicMintTime = epochTime_;
    }
    modifier isPublicMint {
        require(publicMintEnabled && block.timestamp >= publicMintTime, "Public sale not started"); _; }
    function publicMintIsEnabled() external view returns (bool) {
        return(publicMintEnabled && block.timestamp >= publicMintTime);
    }
    // Whitelist Mint
    bool public whitelistMintEnabled;
    uint256 public whitelistMintTime;
    function setWhitelistMint(bool bool_, uint256 epochTime_) external onlyOwner {
        whitelistMintEnabled = bool_;
        whitelistMintTime = epochTime_;
    }
    modifier isWhitelistMint {
        require(whitelistMintEnabled && block.timestamp >= whitelistMintTime, "Whitelist sale not started"); _; }
    function whitelistMintIsEnabled() public view returns (bool) {
        return(whitelistMintEnabled && block.timestamp >= whitelistMintTime);
    }

    // Sale Status + Burn Mechanism
    bool public saleFinished;
    bool public saleActive;
    uint256[] public saleStartTime;
    uint256 public saleEndTime;
    uint256 public prevElapsedTime;
    uint256 public prevBurnedSupply;
    modifier isSaleActive {
        require(saleActive == true, "Sale not active"); _; }
    function startSale(uint256 saleStartTime_) external onlyOwner {
        require(saleActive == false, "Sale not started");
        require(block.timestamp <= saleStartTime_, "Start must be in the future");

        if (saleStartTime[0] == 0) {
            saleEndTime = saleStartTime_ + MINT_DURATION;
        }

        saleStartTime.push(saleStartTime_);
        saleActive = true;
    }
    function finishSale(uint256 saleEndTime_) external onlyOwner {
        require(block.timestamp >= saleEndTime_, "Sale not finished yet");

        saleActive = false;
        saleFinished = true;
        saleEndTime = saleEndTime_;
    }
    function emergencyPauseSale() external onlyOwner {
        require(saleActive == true, "Sale already paused");

        prevElapsedTime = block.timestamp - saleStartTime[0];
        prevBurnedSupply = INITIAL_SUPPLY - currentMaxSupply();

        saleActive = false;
    }
    function currentMaxSupply() public view returns (uint256) {
        // Initial
        if (saleStartTime[0] == 0) {
            return INITIAL_SUPPLY;
        }

        // If paused
        if (saleActive == false) {
            return INITIAL_SUPPLY - prevBurnedSupply;
        }

        // Initial after paused (saleStartTime already set to future time)
        if (saleStartTime.length > 0) {
            if (saleActive == true && block.timestamp <= saleStartTime[saleStartTime.length - 1]){
                return INITIAL_SUPPLY - prevBurnedSupply;
            }
        }

        uint256 timeElapsed = block.timestamp - saleStartTime[0];
        uint256 decreasedAmount = timeElapsed * 1e18 / 60;
        return ((INITIAL_SUPPLY * 1e18) - decreasedAmount) / 1e18;
    }
    
    // onlyOwner
    function setYieldToken(address address_) external onlyOwner {
        yieldToken = iYield(address_); 
    }
    function setProvenanceHashFinal(string memory finalHash_) external onlyOwner {
        PROVENANCE_HASH_FINAL = finalHash_;
    }
    function setMaxPerTxnPublic(uint256 maxPerTxnPublic_) external onlyOwner {
        maxPerTxnPublic = maxPerTxnPublic_;
    }
    function setMaxPerWalletPublic(uint256 maxPerWalletPublic_) external onlyOwner {
        maxPerWalletPublic = maxPerWalletPublic_;
    }
    function setMaxPerTxnWhitelist(uint256 maxPerTxnWhitelist_) external onlyOwner {
        maxPerTxnWhitelist = maxPerTxnWhitelist_;
    }
    function setMaxPerWalletWhitelist(uint256 maxPerWalletWhitelist_) external onlyOwner {
        maxPerWalletWhitelist = maxPerWalletWhitelist_;
    }
    function setMerkleRoot(bytes32 merkleRoot_) external onlyOwner {
        merkleRoot = merkleRoot_;
    }
    function setMerkleRootBaboonfrens(bytes32 merkleRootBaboonfrens_) external onlyOwner {
        merkleRootBaboonfrens = merkleRootBaboonfrens_;
    }
    function setMerkleRootDevTeam(bytes32 merkleRootDevTeam_) external onlyOwner {
        merkleRootDevTeam = merkleRootDevTeam_;
    }
    function setBaseTokenURI(string memory uri) external onlyOwner {
        baseTokenURI = uri;
    }
    function reserveTokens(uint256 quantity_) external onlyOwner {
        require(totalSupply() + quantity_ <= currentMaxSupply(), "Max supply exceeded");

        // Keep max chunks to 5 (to prevent high gas of future transfer)
        uint256 numChunks = quantity_ / 5;
        for (uint256 i = 0; i < numChunks; i++) {
            _safeMint(msg.sender, 5);
        }
        
        uint256 leftChunks = quantity_ % 5;
        if (leftChunks > 0) {
            _safeMint(msg.sender, leftChunks);
        }
    }

    // Withdraw
    function withdraw(address payable address_, uint256 amount_) private {
        (bool success, ) = payable(address_).call{value: amount_}("");
        require(success, "Transfer failed");
    }
    function withdrawMoney() external onlyOwner {
        withdraw(payable(msg.sender), address(this).balance);
    }
    function withdrawLINK() external onlyOwner {
        LINK.transfer(owner(), LINK.balanceOf(address(this)));
    }
    
    // Public Functions
    function remainingSupply() public view returns (uint256) {
        return currentMaxSupply() - totalSupply();
    }
    function transferFrom(address from_, address to_, uint256 tokenId_) public override nonReentrant {
        if (yieldToken != iYield(address(0x0))) {
            yieldToken.updateReward(from_, to_, tokenId_);
        }
        ERC721A.transferFrom(from_, to_, tokenId_);
    }
    function safeTransferFrom(address from_, address to_, uint256 tokenId_, bytes memory data_) public override nonReentrant {
        if (yieldToken != iYield(address(0x0))) {
            yieldToken.updateReward(from_, to_, tokenId_);
        }
        ERC721A.safeTransferFrom(from_, to_, tokenId_, data_);
    }

    // 0xInuarashi's Custom Functions
    function multiTransferFrom(address from_, address to_, uint256[] memory tokenIds_) public {
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            ERC721A.transferFrom(from_, to_, tokenIds_[i]);
        }
    }
    function multiSafeTransferFrom(address from_, address to_, uint256[] memory tokenIds_, bytes[] memory datas_) public {
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            ERC721A.safeTransferFrom(from_, to_, tokenIds_[i], datas_[i]);
        }
    }
}

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

pragma solidity ^0.8.4;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

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

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

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

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 17 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

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

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

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

  LinkTokenInterface internal immutable LINK;
  address private immutable vrfCoordinator;

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

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

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

File 7 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 13 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

  function increaseApproval(address spender, uint256 subtractedValue) external;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"vrfCoordinator_","type":"address"},{"internalType":"address","name":"link_","type":"address"},{"internalType":"bytes32","name":"linkKeyHash_","type":"bytes32"},{"internalType":"uint256","name":"linkFee_","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"},{"internalType":"uint256","name":"saleStartTime_","type":"uint256"},{"internalType":"uint256","name":"maxPerTeam_","type":"uint256"},{"internalType":"uint256","name":"maxPerBaboonfrens_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH_FINAL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH_RANK","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"baboonfrensMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"devTeamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyPauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleEndTime_","type":"uint256"}],"name":"finishSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRandomNumber","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerBaboonfrens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTeam","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTxnPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTxnWhitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWalletPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWalletWhitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootBaboonfrens","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootDevTeam","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"},{"internalType":"bytes[]","name":"datas_","type":"bytes[]"}],"name":"multiSafeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"multiTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"prevBurnedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prevElapsedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity_","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintIsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintTime","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":"remainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity_","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleFinished","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"saleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerTxnPublic_","type":"uint256"}],"name":"setMaxPerTxnPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerTxnWhitelist_","type":"uint256"}],"name":"setMaxPerTxnWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerWalletPublic_","type":"uint256"}],"name":"setMaxPerWalletPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerWalletWhitelist_","type":"uint256"}],"name":"setMaxPerWalletWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRootBaboonfrens_","type":"bytes32"}],"name":"setMerkleRootBaboonfrens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRootDevTeam_","type":"bytes32"}],"name":"setMerkleRootDevTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"finalHash_","type":"string"}],"name":"setProvenanceHashFinal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"},{"internalType":"uint256","name":"epochTime_","type":"uint256"}],"name":"setPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"},{"internalType":"uint256","name":"epochTime_","type":"uint256"}],"name":"setWhitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"setYieldToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleStartTime_","type":"uint256"}],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintIsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawLINK","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yieldToken","outputs":[{"internalType":"contract iYield","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c06040523480156200001157600080fd5b50604051620049db380380620049db8339810160408190526200003491620005bc565b604080518082018252600b81526a4261626f6f6e766572736560a81b6020808301918252835180850190945260068452652120a127a7a760d11b9084015281518b938b939290916200008991600291620004f9565b5080516200009f906003906020840190620004f9565b50506000805550620000b1336200019a565b6001600160601b0319606092831b811660a05290821b166080526001600a556012859055604080519182019052603380825262004988602083013980516200010291601591602090910190620004f9565b506005600f819055600d556003600e819055600c5560108290556011819055601686905560178590556200014a620001426008546001600160a01b031690565b6001620001ec565b5050601f80546001810182556000919091527fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d80701555050601e805461ff0019166101001790555062000718915050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200020e8282604051806020016040528060008152506200021260201b60201c565b5050565b62000221838383600162000226565b505050565b6000546001600160a01b0385166200025057604051622e076360e81b815260040160405180910390fd5b836200026f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c018116918217680100000000000000006001600160401b031990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801562000328575062000328876001600160a01b0316620003e960201b62002d4e1760201c565b15620003a8575b60405182906001600160a01b03891690600090600080516020620049bb833981519152908290a460018201916200036c90600090899088620003f8565b6200038a576040516368d2bf6b60e11b815260040160405180910390fd5b808214156200032f578260005414620003a257600080fd5b620003de565b5b6040516001830192906001600160a01b03891690600090600080516020620049bb833981519152908290a480821415620003a9575b506000555050505050565b6001600160a01b03163b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200042f90339089908890889060040162000660565b602060405180830381600087803b1580156200044a57600080fd5b505af19250505080156200047d575060408051601f3d908101601f191682019092526200047a918101906200062d565b60015b620004dc573d808015620004ae576040519150601f19603f3d011682016040523d82523d6000602084013e620004b3565b606091505b508051620004d4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b8280546200050790620006db565b90600052602060002090601f0160209004810192826200052b576000855562000576565b82601f106200054657805160ff191683800117855562000576565b8280016001018555821562000576579182015b828111156200057657825182559160200191906001019062000559565b506200058492915062000588565b5090565b5b8082111562000584576000815560010162000589565b80516001600160a01b0381168114620005b757600080fd5b919050565b600080600080600080600080610100898b031215620005da57600080fd5b620005e5896200059f565b9750620005f560208a016200059f565b60408a015160608b015160808c015160a08d015160c08e015160e0909e01519c9f949e50929c919b909a509198509650945092505050565b6000602082840312156200064057600080fd5b81516001600160e01b0319811681146200065957600080fd5b9392505050565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620006af5785810182015185820160a00152810162000691565b82811115620006c257600060a084870101525b5050601f01601f19169190910160a00195945050505050565b600181811c90821680620006f057607f821691505b602082108114156200071257634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c6142286200076060003960008181611ed801526132100152600081816120cd01528181612121015281816129db01526131e101526142286000f3fe6080604052600436106104475760003560e01c80637cb6475911610234578063c6baf9171161012e578063dbdff2c1116100b6578063ed338ff11161007a578063ed338ff114610c3c578063f2fde38b14610c52578063f487c60214610c72578063ff1b655614610c92578063ffd689cd14610ca757600080fd5b8063dbdff2c114610b93578063dc33e68114610ba8578063e985e9c514610bc8578063e99cc3f214610c11578063ed29011514610c2757600080fd5b8063cbe8e7b7116100fd578063cbe8e7b714610b16578063cd8531e714610b2b578063d031370b14610b4b578063d2cab05614610b6b578063da0239a614610b7e57600080fd5b8063c6baf91714610aa0578063c87b56dd14610ac0578063cb774d4714610ae0578063cb9fd7ec14610af657600080fd5b80639ef17f3c116101bc578063adc2112f11610180578063adc2112f14610a1a578063b029a51414610a2f578063b88d4fde14610a45578063c002d23d14610a65578063c1f730a414610a8057600080fd5b80639ef17f3c14610994578063a22cb465146109b4578063a8f72e12146109d4578063ac446002146109ea578063aca9938d146109ff57600080fd5b80638da5cb5b116102035780638da5cb5b1461091657806390393fc81461093457806394985ddd1461094a57806395d89b411461096a578063971a99331461097f57600080fd5b80637cb647591461089657806389b74983146108b65780638b533ea4146108d65780638c27d7fd146108f657600080fd5b80632ff2e9dc116103455780635e403472116102cd5780636caede3d116102915780636caede3d1461081157806370a082311461082b578063715018a61461084b57806373401a401461086057806376d5de851461087657600080fd5b80635e4034721461078f57806360568997146107a557806362bc5f7b146107bb5780636352211e146107d257806368428a1b146107f257600080fd5b80633bacd749116103145780633bacd7491461070357806342842e0e1461072357806347b542a9146107435780635759eded146107635780635a5789351461077957600080fd5b80632ff2e9dc1461069d57806330176e13146106b3578063365b94ad146106d357806336a4e19b146106ed57600080fd5b806311626463116103d357806323b872dd1161039757806323b872dd1461061e57806323ffce851461063e5780632b39824b1461065e5780632db11544146106745780632eb4a7ab1461068757600080fd5b8063116264631461059a57806315e42ed2146105b057806318160ddd146105c557806319c3fa32146105de5780632061a952146105fe57600080fd5b8063089f53f01161041a578063089f53f0146104fd578063095ea7b31461051d5780630e3ab61d1461053d5780630f4161aa1461055d578063104aeef81461057757600080fd5b806301ffc9a71461044c578063036e6ce51461048157806306fdde03146104a3578063081812fc146104c5575b600080fd5b34801561045857600080fd5b5061046c610467366004613d6e565b610cbc565b60405190151581526020015b60405180910390f35b34801561048d57600080fd5b506104a161049c366004613d33565b610d0e565b005b3480156104af57600080fd5b506104b8610d60565b6040516104789190613f76565b3480156104d157600080fd5b506104e56104e0366004613d33565b610df2565b6040516001600160a01b039091168152602001610478565b34801561050957600080fd5b506104a1610518366004613da8565b610e36565b34801561052957600080fd5b506104a1610538366004613cce565b610e95565b34801561054957600080fd5b506104a1610558366004613d33565b610f23565b34801561056957600080fd5b50601a5461046c9060ff1681565b34801561058357600080fd5b5061058c61108f565b604051908152602001610478565b3480156105a657600080fd5b5061058c600c5481565b3480156105bc57600080fd5b5061046c6111c6565b3480156105d157600080fd5b506001546000540361058c565b3480156105ea57600080fd5b506104a16105f9366004613d15565b6111e0565b34801561060a57600080fd5b506104a1610619366004613d33565b61123f565b34801561062a57600080fd5b506104a1610639366004613bf3565b6112e2565b34801561064a57600080fd5b506104a1610659366004613a49565b6113cf565b34801561066a57600080fd5b5061058c60145481565b6104a1610682366004613d33565b611439565b34801561069357600080fd5b5061058c60125481565b3480156106a957600080fd5b5061058c61170081565b3480156106bf57600080fd5b506104a16106ce366004613da8565b6116f9565b3480156106df57600080fd5b50601e5461046c9060ff1681565b3480156106f957600080fd5b5061058c600f5481565b34801561070f57600080fd5b506104a161071e366004613e0a565b611754565b34801561072f57600080fd5b506104a161073e366004613bf3565b6119e7565b34801561074f57600080fd5b506104a161075e366004613e0a565b611a02565b34801561076f57600080fd5b5061058c60215481565b34801561078557600080fd5b5061058c600d5481565b34801561079b57600080fd5b5061058c601b5481565b3480156107b157600080fd5b5061058c60225481565b3480156107c757600080fd5b5061058c6202a30081565b3480156107de57600080fd5b506104e56107ed366004613d33565b611cd5565b3480156107fe57600080fd5b50601e5461046c90610100900460ff1681565b34801561081d57600080fd5b50601c5461046c9060ff1681565b34801561083757600080fd5b5061058c610846366004613a49565b611ce7565b34801561085757600080fd5b506104a1611d36565b34801561086c57600080fd5b5061058c60135481565b34801561088257600080fd5b506018546104e5906001600160a01b031681565b3480156108a257600080fd5b506104a16108b1366004613d33565b611d8a565b3480156108c257600080fd5b506104a16108d1366004613d33565b611dd7565b3480156108e257600080fd5b506104a16108f1366004613d33565b611e24565b34801561090257600080fd5b506104a1610911366004613af5565b611e71565b34801561092257600080fd5b506008546001600160a01b03166104e5565b34801561094057600080fd5b5061058c60105481565b34801561095657600080fd5b506104a1610965366004613d4c565b611ecd565b34801561097657600080fd5b506104b8611f4f565b34801561098b57600080fd5b506104b8611f5e565b3480156109a057600080fd5b5061058c6109af366004613d33565b611f7a565b3480156109c057600080fd5b506104a16109cf366004613c97565b611f9b565b3480156109e057600080fd5b5061058c601d5481565b3480156109f657600080fd5b506104a1612031565b348015610a0b57600080fd5b5061058c66149b11bbb2800081565b348015610a2657600080fd5b506104a1612083565b348015610a3b57600080fd5b5061058c600e5481565b348015610a5157600080fd5b506104a1610a60366004613c2f565b612224565b348015610a7157600080fd5b5061058c661f438daa06000081565b348015610a8c57600080fd5b506104a1610a9b366004613d15565b612313565b348015610aac57600080fd5b506104a1610abb366004613d33565b612372565b348015610acc57600080fd5b506104b8610adb366004613d33565b6123bf565b348015610aec57600080fd5b5061058c60195481565b348015610b0257600080fd5b506104a1610b11366004613d33565b612444565b348015610b2257600080fd5b506104a1612491565b348015610b3757600080fd5b506104a1610b46366004613d33565b612587565b348015610b5757600080fd5b506104a1610b66366004613d33565b6125d4565b6104a1610b79366004613e0a565b6126d7565b348015610b8a57600080fd5b5061058c612957565b348015610b9f57600080fd5b5061058c612978565b348015610bb457600080fd5b5061058c610bc3366004613a49565b612b58565b348015610bd457600080fd5b5061046c610be3366004613a64565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610c1d57600080fd5b5061058c60115481565b348015610c3357600080fd5b5061046c612b8c565b348015610c4857600080fd5b5061058c60205481565b348015610c5e57600080fd5b506104a1610c6d366004613a49565b612ba6565b348015610c7e57600080fd5b506104a1610c8d366004613a97565b612c5c565b348015610c9e57600080fd5b506104b8612ca4565b348015610cb357600080fd5b506104b8612cc0565b60006001600160e01b031982166380ac58cd60e01b1480610ced57506001600160e01b03198216635b5e139f60e01b145b80610d0857506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610d5b5760405162461bcd60e51b8152602060048201819052602482015260008051602061419383398151915260448201526064015b60405180910390fd5b600c55565b606060028054610d6f9061406c565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9b9061406c565b8015610de85780601f10610dbd57610100808354040283529160200191610de8565b820191906000526020600020905b815481529060010190602001808311610dcb57829003601f168201915b5050505050905090565b6000610dfd82612d5d565b610e1a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b03163314610e7e5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b8051610e9190600b9060208401906138aa565b5050565b6000610ea082611cd5565b9050806001600160a01b0316836001600160a01b03161415610ed55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ef55750610ef38133610be3565b155b15610f13576040516367d9dca160e11b815260040160405180910390fd5b610f1e838383612d88565b505050565b6008546001600160a01b03163314610f6b5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601e54610100900460ff1615610fc35760405162461bcd60e51b815260206004820152601060248201527f53616c65206e6f742073746172746564000000000000000000000000000000006044820152606401610d52565b804211156110135760405162461bcd60e51b815260206004820152601b60248201527f5374617274206d75737420626520696e207468652066757475726500000000006044820152606401610d52565b601f60008154811061102757611027614102565b90600052602060002001546000141561104b576110476202a30082613fde565b6020555b601f80546001810182556000919091527fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d8070155601e805461ff001916610100179055565b6000601f6000815481106110a5576110a5614102565b9060005260206000200154600014156110bf575061170090565b601e54610100900460ff166110e2576022546110dd90611700614029565b905090565b601f541561114557601e5460ff61010090910416151560011480156111315750601f805461111290600190614029565b8154811061112257611122614102565b90600052602060002001544211155b15611145576022546110dd90611700614029565b6000601f60008154811061115b5761115b614102565b9060005260206000200154426111719190614029565b90506000603c61118983670de0b6b3a764000061400a565b6111939190613ff6565b9050670de0b6b3a7640000816111ab6117008361400a565b6111b59190614029565b6111bf9190613ff6565b9250505090565b601c5460009060ff1680156110dd575050601d5442101590565b6008546001600160a01b031633146112285760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601c805460ff191692151592909217909155601d55565b6008546001600160a01b031633146112875760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b804210156112cf5760405162461bcd60e51b815260206004820152601560248201527414d85b19481b9bdd08199a5b9a5cda1959081e595d605a1b6044820152606401610d52565b601e805461ffff19166001179055602055565b6002600a5414156113355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d52565b6002600a556018546001600160a01b0316156113ba5760185460405163164746fd60e11b81526001600160a01b03858116600483015284811660248301526044820184905290911690632c8e8dfa90606401600060405180830381600087803b1580156113a157600080fd5b505af11580156113b5573d6000803e3d6000fd5b505050505b6113c5838383612de4565b50506001600a5550565b6008546001600160a01b031633146114175760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6002600a54141561148c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d52565b6002600a553332146114d25760405162461bcd60e51b815260206004820152600f60248201526e44697361626c652066726f6d20534360881b6044820152606401610d52565b601a5460ff1680156114e65750601b544210155b6115325760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206e6f7420737461727465640000000000000000006044820152606401610d52565b601e5460ff6101009091041615156001146115815760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610d52565b600061158b61108f565b9050600e548261159a33612b58565b6115a49190613fde565b11156115f25760405162461bcd60e51b815260206004820152601760248201527f4d6178207065722077616c6c657420726561636865642e0000000000000000006044820152606401610d52565b600c5482111561163b5760405162461bcd60e51b815260206004820152601460248201527313585e081c195c881d1e1b88195e18d95959195960621b6044820152606401610d52565b61164c82661f438daa06000061400a565b34146116895760405162461bcd60e51b815260206004820152600c60248201526b57726f6e672076616c75652160a01b6044820152606401610d52565b816116976001546000540390565b6116a19190613fde565b8110156116e65760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610d52565b6116f03383612def565b50506001600a55565b6008546001600160a01b031633146117415760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b8051610e919060159060208401906138aa565b3332146117955760405162461bcd60e51b815260206004820152600f60248201526e44697361626c652066726f6d20534360881b6044820152606401610d52565b601e5460ff6101009091041615156001146117e45760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610d52565b60006117ee61108f565b601c5490915060ff1680156118055750601d544210155b6118515760405162461bcd60e51b815260206004820152601c60248201527f4261626f6f6e6672656e73206d696e74206e6f742073746172746564000000006044820152606401610d52565b6013546040516bffffffffffffffffffffffff193360601b1660208201526118949184916034015b60405160208183030381529060405280519060200120612e09565b6118e05760405162461bcd60e51b815260206004820152601660248201527f596f75277265206e6f74204261626f6f6e6672656e73000000000000000000006044820152606401610d52565b6011546118ec33612b58565b111561193a5760405162461bcd60e51b815260206004820152601760248201527f4d6178207065722077616c6c657420726561636865642e0000000000000000006044820152606401610d52565b6011548311156119835760405162461bcd60e51b815260206004820152601460248201527313585e081c195c881d1e1b88195e18d95959195960621b6044820152606401610d52565b601154600154600054035b6119989190613fde565b8110156119dd5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610d52565b610f1e3384612def565b610f1e83838360405180602001604052806000815250612224565b333214611a435760405162461bcd60e51b815260206004820152600f60248201526e44697361626c652066726f6d20534360881b6044820152606401610d52565b601e5460ff610100909104161515600114611a925760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610d52565b6000611a9c61108f565b601c5490915060ff168015611ab35750601d544210155b611aff5760405162461bcd60e51b815260206004820152601560248201527f5465616d206d696e74206e6f74207374617274656400000000000000000000006044820152606401610d52565b6014546040516bffffffffffffffffffffffff193360601b166020820152611b2b918491603401611879565b611b775760405162461bcd60e51b815260206004820152601660248201527f596f75277265206e6f742077686974656c6973746564000000000000000000006044820152606401610d52565b601054611b8333612b58565b1115611bd15760405162461bcd60e51b815260206004820152601660248201527f4d6178207065722077616c6c65742072656163686564000000000000000000006044820152606401610d52565b601054831115611c1a5760405162461bcd60e51b815260206004820152601460248201527313585e081c195c881d1e1b88195e18d95959195960621b6044820152606401610d52565b82611c286001546000540390565b611c329190613fde565b811015611c775760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610d52565b6000611c84600585613ff6565b905060005b81811015611cae57611c9c336005612def565b80611ca6816140a7565b915050611c89565b506000611cbc6005866140c2565b90508015611cce57611cce3382612def565b5050505050565b6000611ce082612e1f565b5192915050565b60006001600160a01b038216611d10576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314611d7e5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b611d886000612f3b565b565b6008546001600160a01b03163314611dd25760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601255565b6008546001600160a01b03163314611e1f5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601355565b6008546001600160a01b03163314611e6c5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b600e55565b60005b8251811015611cce57611ebb8585858481518110611e9457611e94614102565b6020026020010151858581518110611eae57611eae614102565b6020026020010151612f8d565b80611ec5816140a7565b915050611e74565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611f455760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610d52565b610e918282612fd8565b606060038054610d6f9061406c565b6040518060600160405280604081526020016141b36040913981565b601f8181548110611f8a57600080fd5b600091825260209091200154905081565b6001600160a01b038216331415611fc55760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146120795760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b611d88334761300d565b6008546001600160a01b031633146120cb5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb61210c6008546001600160a01b031690565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561216b57600080fd5b505afa15801561217f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a39190613df1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156121e957600080fd5b505af11580156121fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122219190613cf8565b50565b6002600a5414156122775760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d52565b6002600a556018546001600160a01b0316156122fc5760185460405163164746fd60e11b81526001600160a01b03868116600483015285811660248301526044820185905290911690632c8e8dfa90606401600060405180830381600087803b1580156122e357600080fd5b505af11580156122f7573d6000803e3d6000fd5b505050505b61230884848484612f8d565b50506001600a555050565b6008546001600160a01b0316331461235b5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601a805460ff191692151592909217909155601b55565b6008546001600160a01b031633146123ba5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b600f55565b60606123ca82612d5d565b6123e757604051630a14c4b560e41b815260040160405180910390fd5b60006123f16130b0565b9050805160001415612412576040518060200160405280600081525061243d565b8061241c846130bf565b60405160200161242d929190613eda565b6040516020818303038152906040525b9392505050565b6008546001600160a01b0316331461248c5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601455565b6008546001600160a01b031633146124d95760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601e5460ff6101009091041615156001146125365760405162461bcd60e51b815260206004820152601360248201527f53616c6520616c726561647920706175736564000000000000000000000000006044820152606401610d52565b601f60008154811061254a5761254a614102565b9060005260206000200154426125609190614029565b60215561256b61108f565b61257790611700614029565b602255601e805461ff0019169055565b6008546001600160a01b031633146125cf5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b600d55565b6008546001600160a01b0316331461261c5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b61262461108f565b816126326001546000540390565b61263c9190613fde565b11156126805760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610d52565b600061268d600583613ff6565b905060005b818110156126b7576126a5336005612def565b806126af816140a7565b915050612692565b5060006126c56005846140c2565b90508015610f1e57610f1e3382612def565b3332146127185760405162461bcd60e51b815260206004820152600f60248201526e44697361626c652066726f6d20534360881b6044820152606401610d52565b601c5460ff16801561272c5750601d544210155b6127785760405162461bcd60e51b815260206004820152601a60248201527f57686974656c6973742073616c65206e6f7420737461727465640000000000006044820152606401610d52565b601e5460ff6101009091041615156001146127c75760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610d52565b60006127d161108f565b6012546040516bffffffffffffffffffffffff193360601b16602082015291925061280191849190603401611879565b61284d5760405162461bcd60e51b815260206004820152601660248201527f596f75277265206e6f742077686974656c6973746564000000000000000000006044820152606401610d52565b600f548361285a33612b58565b6128649190613fde565b11156128b25760405162461bcd60e51b815260206004820152601660248201527f4d6178207065722077616c6c65742072656163686564000000000000000000006044820152606401610d52565b600d548311156128fb5760405162461bcd60e51b815260206004820152601460248201527313585e081c195c881d1e1b88195e18d95959195960621b6044820152606401610d52565b61290c8366149b11bbb2800061400a565b34146129495760405162461bcd60e51b815260206004820152600c60248201526b57726f6e672076616c75652160a01b6044820152606401610d52565b8261198e6001546000540390565b60006129666001546000540390565b61296e61108f565b6110dd9190614029565b6008546000906001600160a01b031633146129c35760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b6017546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015612a2557600080fd5b505afa158015612a39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a5d9190613df1565b1015612aab5760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768204c494e4b00000000000000000000000000000000006044820152606401610d52565b60195415612afb5760405162461bcd60e51b815260206004820152601f60248201527f416c72656164792067656e6572617465642072616e646f6d206e756d626572006044820152606401610d52565b601e5460ff161515600114612b4a5760405162461bcd60e51b815260206004820152601560248201527414d85b19481b9bdd08199a5b9a5cda1959081e595d605a1b6044820152606401610d52565b6110dd6016546017546131dd565b6001600160a01b03811660009081526005602052604081205468010000000000000000900467ffffffffffffffff16610d08565b601a5460009060ff1680156110dd575050601b5442101590565b6008546001600160a01b03163314612bee5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b6001600160a01b038116612c535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d52565b61222181612f3b565b60005b8151811015612c9e57612c8c8484848481518110612c7f57612c7f614102565b6020026020010151612de4565b80612c96816140a7565b915050612c5f565b50505050565b6040518060600160405280604081526020016141536040913981565b600b8054612ccd9061406c565b80601f0160208091040260200160405190810160405280929190818152602001828054612cf99061406c565b8015612d465780601f10612d1b57610100808354040283529160200191612d46565b820191906000526020600020905b815481529060010190602001808311612d2957829003601f168201915b505050505081565b6001600160a01b03163b151590565b6000805482108015610d08575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610f1e838383613368565b610e91828260405180602001604052806000815250613555565b600082612e168584613562565b14949350505050565b604080516060810182526000808252602082018190529181019190915281600054811015612f2257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612f205780516001600160a01b031615612eb6579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612f1b579392505050565b612eb6565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612f98848484613368565b6001600160a01b0383163b15158015612fba5750612fb8848484846135d6565b155b15612c9e576040516368d2bf6b60e11b815260040160405180910390fd5b6000612fe76001546000540390565b612ff190836140c2565b905080613006576130038160016136cd565b90505b6019555050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461305a576040519150601f19603f3d011682016040523d82523d6000602084013e61305f565b606091505b5050905080610f1e5760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610d52565b606060158054610d6f9061406c565b6060816130e35750506040805180820190915260018152600360fc1b602082015290565b8160005b811561310d57806130f7816140a7565b91506131069050600a83613ff6565b91506130e7565b60008167ffffffffffffffff81111561312857613128614118565b6040519080825280601f01601f191660200182016040528015613152576020820181803683370190505b5090505b84156131d557613167600183614029565b9150613174600a866140c2565b61317f906030613fde565b60f81b81838151811061319457613194614102565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506131ce600a86613ff6565b9450613156565b949350505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f00000000000000000000000000000000000000000000000000000000000000008486600060405160200161324d929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161327a93929190613f45565b602060405180830381600087803b15801561329457600080fd5b505af11580156132a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132cc9190613cf8565b50600083815260096020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052613328906001613fde565b6000858152600960205260409020556131d58482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b600061337382612e1f565b9050836001600160a01b031681600001516001600160a01b0316146133aa5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806133c857506133c88533610be3565b806133e35750336133d884610df2565b6001600160a01b0316145b90508061340357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661342a57604051633a954ecd60e21b815260040160405180910390fd5b61343660008487612d88565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661350c57600054821461350c578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611cce565b610f1e83838360016136d9565b600081815b84518110156135ce57600085828151811061358457613584614102565b602002602001015190508083116135aa57600083815260208290526040902092506135bb565b600081815260208490526040902092505b50806135c6816140a7565b915050613567565b509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061360b903390899088908890600401613f09565b602060405180830381600087803b15801561362557600080fd5b505af1925050508015613655575060408051601f3d908101601f1916820190925261365291810190613d8b565b60015b6136b0573d808015613683576040519150601f19603f3d011682016040523d82523d6000602084013e613688565b606091505b5080516136a8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600061243d8284613fde565b6000546001600160a01b03851661370257604051622e076360e81b815260040160405180910390fd5b836137205760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156137d257506001600160a01b0387163b15155b1561385b575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461382360008884806001019550886135d6565b613840576040516368d2bf6b60e11b815260040160405180910390fd5b808214156137d857826000541461385657600080fd5b6138a1565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561385c575b50600055611cce565b8280546138b69061406c565b90600052602060002090601f0160209004810192826138d8576000855561391e565b82601f106138f157805160ff191683800117855561391e565b8280016001018555821561391e579182015b8281111561391e578251825591602001919060010190613903565b5061392a92915061392e565b5090565b5b8082111561392a576000815560010161392f565b600067ffffffffffffffff83111561395d5761395d614118565b613970601f8401601f1916602001613f89565b905082815283838301111561398457600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146139b257600080fd5b919050565b600082601f8301126139c857600080fd5b813560206139dd6139d883613fba565b613f89565b80838252828201915082860187848660051b89010111156139fd57600080fd5b60005b85811015613a1c57813584529284019290840190600101613a00565b5090979650505050505050565b600082601f830112613a3a57600080fd5b61243d83833560208501613943565b600060208284031215613a5b57600080fd5b61243d8261399b565b60008060408385031215613a7757600080fd5b613a808361399b565b9150613a8e6020840161399b565b90509250929050565b600080600060608486031215613aac57600080fd5b613ab58461399b565b9250613ac36020850161399b565b9150604084013567ffffffffffffffff811115613adf57600080fd5b613aeb868287016139b7565b9150509250925092565b60008060008060808587031215613b0b57600080fd5b613b148561399b565b93506020613b2381870161399b565b9350604086013567ffffffffffffffff80821115613b4057600080fd5b613b4c89838a016139b7565b94506060880135915080821115613b6257600080fd5b818801915088601f830112613b7657600080fd5b8135613b846139d882613fba565b8082825285820191508585018c878560051b8801011115613ba457600080fd5b60005b84811015613bdf57813586811115613bbe57600080fd5b613bcc8f8a838b0101613a29565b8552509287019290870190600101613ba7565b505080965050505050505092959194509250565b600080600060608486031215613c0857600080fd5b613c118461399b565b9250613c1f6020850161399b565b9150604084013590509250925092565b60008060008060808587031215613c4557600080fd5b613c4e8561399b565b9350613c5c6020860161399b565b925060408501359150606085013567ffffffffffffffff811115613c7f57600080fd5b613c8b87828801613a29565b91505092959194509250565b60008060408385031215613caa57600080fd5b613cb38361399b565b91506020830135613cc38161412e565b809150509250929050565b60008060408385031215613ce157600080fd5b613cea8361399b565b946020939093013593505050565b600060208284031215613d0a57600080fd5b815161243d8161412e565b60008060408385031215613d2857600080fd5b8235613cea8161412e565b600060208284031215613d4557600080fd5b5035919050565b60008060408385031215613d5f57600080fd5b50508035926020909101359150565b600060208284031215613d8057600080fd5b813561243d8161413c565b600060208284031215613d9d57600080fd5b815161243d8161413c565b600060208284031215613dba57600080fd5b813567ffffffffffffffff811115613dd157600080fd5b8201601f81018413613de257600080fd5b6131d584823560208401613943565b600060208284031215613e0357600080fd5b5051919050565b60008060408385031215613e1d57600080fd5b8235915060208084013567ffffffffffffffff811115613e3c57600080fd5b8401601f81018613613e4d57600080fd5b8035613e5b6139d882613fba565b80828252848201915084840189868560051b8701011115613e7b57600080fd5b600094505b83851015613e9e578035835260019490940193918501918501613e80565b5080955050505050509250929050565b60008151808452613ec6816020860160208601614040565b601f01601f19169290920160200192915050565b60008351613eec818460208801614040565b835190830190613f00818360208801614040565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f3b6080830184613eae565b9695505050505050565b6001600160a01b0384168152826020820152606060408201526000613f6d6060830184613eae565b95945050505050565b60208152600061243d6020830184613eae565b604051601f8201601f1916810167ffffffffffffffff81118282101715613fb257613fb2614118565b604052919050565b600067ffffffffffffffff821115613fd457613fd4614118565b5060051b60200190565b60008219821115613ff157613ff16140d6565b500190565b600082614005576140056140ec565b500490565b6000816000190483118215151615614024576140246140d6565b500290565b60008282101561403b5761403b6140d6565b500390565b60005b8381101561405b578181015183820152602001614043565b83811115612c9e5750506000910152565b600181811c9082168061408057607f821691505b602082108114156140a157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140bb576140bb6140d6565b5060010190565b6000826140d1576140d16140ec565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461222157600080fd5b6001600160e01b03198116811461222157600080fdfe666666663065663137636231626264386336613364653966356465343539306565643832663031326163623939356535626634666238626131386534333865324f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657236336233616333643064643836666663346235343637656461383737386234643762363261613933633539373966656633363561653361666464363761643266a264697066735822122038f1516dc9a26d0733a576076994019ff6d6022d0fd9cdf2ff12a00d44da670864736f6c6343000807003368747470733a2f2f6261626f6f6e76657273652d6d61696e2e73332e616d617a6f6e6177732e636f6d2f6d657461646174612fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec800006856309174fe2262f4f01197f0607ad5204accc90eaecbd472445d90a57acee000000000000000000000000000000000000000000000000000000000625828e000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000002

Deployed Bytecode

0x6080604052600436106104475760003560e01c80637cb6475911610234578063c6baf9171161012e578063dbdff2c1116100b6578063ed338ff11161007a578063ed338ff114610c3c578063f2fde38b14610c52578063f487c60214610c72578063ff1b655614610c92578063ffd689cd14610ca757600080fd5b8063dbdff2c114610b93578063dc33e68114610ba8578063e985e9c514610bc8578063e99cc3f214610c11578063ed29011514610c2757600080fd5b8063cbe8e7b7116100fd578063cbe8e7b714610b16578063cd8531e714610b2b578063d031370b14610b4b578063d2cab05614610b6b578063da0239a614610b7e57600080fd5b8063c6baf91714610aa0578063c87b56dd14610ac0578063cb774d4714610ae0578063cb9fd7ec14610af657600080fd5b80639ef17f3c116101bc578063adc2112f11610180578063adc2112f14610a1a578063b029a51414610a2f578063b88d4fde14610a45578063c002d23d14610a65578063c1f730a414610a8057600080fd5b80639ef17f3c14610994578063a22cb465146109b4578063a8f72e12146109d4578063ac446002146109ea578063aca9938d146109ff57600080fd5b80638da5cb5b116102035780638da5cb5b1461091657806390393fc81461093457806394985ddd1461094a57806395d89b411461096a578063971a99331461097f57600080fd5b80637cb647591461089657806389b74983146108b65780638b533ea4146108d65780638c27d7fd146108f657600080fd5b80632ff2e9dc116103455780635e403472116102cd5780636caede3d116102915780636caede3d1461081157806370a082311461082b578063715018a61461084b57806373401a401461086057806376d5de851461087657600080fd5b80635e4034721461078f57806360568997146107a557806362bc5f7b146107bb5780636352211e146107d257806368428a1b146107f257600080fd5b80633bacd749116103145780633bacd7491461070357806342842e0e1461072357806347b542a9146107435780635759eded146107635780635a5789351461077957600080fd5b80632ff2e9dc1461069d57806330176e13146106b3578063365b94ad146106d357806336a4e19b146106ed57600080fd5b806311626463116103d357806323b872dd1161039757806323b872dd1461061e57806323ffce851461063e5780632b39824b1461065e5780632db11544146106745780632eb4a7ab1461068757600080fd5b8063116264631461059a57806315e42ed2146105b057806318160ddd146105c557806319c3fa32146105de5780632061a952146105fe57600080fd5b8063089f53f01161041a578063089f53f0146104fd578063095ea7b31461051d5780630e3ab61d1461053d5780630f4161aa1461055d578063104aeef81461057757600080fd5b806301ffc9a71461044c578063036e6ce51461048157806306fdde03146104a3578063081812fc146104c5575b600080fd5b34801561045857600080fd5b5061046c610467366004613d6e565b610cbc565b60405190151581526020015b60405180910390f35b34801561048d57600080fd5b506104a161049c366004613d33565b610d0e565b005b3480156104af57600080fd5b506104b8610d60565b6040516104789190613f76565b3480156104d157600080fd5b506104e56104e0366004613d33565b610df2565b6040516001600160a01b039091168152602001610478565b34801561050957600080fd5b506104a1610518366004613da8565b610e36565b34801561052957600080fd5b506104a1610538366004613cce565b610e95565b34801561054957600080fd5b506104a1610558366004613d33565b610f23565b34801561056957600080fd5b50601a5461046c9060ff1681565b34801561058357600080fd5b5061058c61108f565b604051908152602001610478565b3480156105a657600080fd5b5061058c600c5481565b3480156105bc57600080fd5b5061046c6111c6565b3480156105d157600080fd5b506001546000540361058c565b3480156105ea57600080fd5b506104a16105f9366004613d15565b6111e0565b34801561060a57600080fd5b506104a1610619366004613d33565b61123f565b34801561062a57600080fd5b506104a1610639366004613bf3565b6112e2565b34801561064a57600080fd5b506104a1610659366004613a49565b6113cf565b34801561066a57600080fd5b5061058c60145481565b6104a1610682366004613d33565b611439565b34801561069357600080fd5b5061058c60125481565b3480156106a957600080fd5b5061058c61170081565b3480156106bf57600080fd5b506104a16106ce366004613da8565b6116f9565b3480156106df57600080fd5b50601e5461046c9060ff1681565b3480156106f957600080fd5b5061058c600f5481565b34801561070f57600080fd5b506104a161071e366004613e0a565b611754565b34801561072f57600080fd5b506104a161073e366004613bf3565b6119e7565b34801561074f57600080fd5b506104a161075e366004613e0a565b611a02565b34801561076f57600080fd5b5061058c60215481565b34801561078557600080fd5b5061058c600d5481565b34801561079b57600080fd5b5061058c601b5481565b3480156107b157600080fd5b5061058c60225481565b3480156107c757600080fd5b5061058c6202a30081565b3480156107de57600080fd5b506104e56107ed366004613d33565b611cd5565b3480156107fe57600080fd5b50601e5461046c90610100900460ff1681565b34801561081d57600080fd5b50601c5461046c9060ff1681565b34801561083757600080fd5b5061058c610846366004613a49565b611ce7565b34801561085757600080fd5b506104a1611d36565b34801561086c57600080fd5b5061058c60135481565b34801561088257600080fd5b506018546104e5906001600160a01b031681565b3480156108a257600080fd5b506104a16108b1366004613d33565b611d8a565b3480156108c257600080fd5b506104a16108d1366004613d33565b611dd7565b3480156108e257600080fd5b506104a16108f1366004613d33565b611e24565b34801561090257600080fd5b506104a1610911366004613af5565b611e71565b34801561092257600080fd5b506008546001600160a01b03166104e5565b34801561094057600080fd5b5061058c60105481565b34801561095657600080fd5b506104a1610965366004613d4c565b611ecd565b34801561097657600080fd5b506104b8611f4f565b34801561098b57600080fd5b506104b8611f5e565b3480156109a057600080fd5b5061058c6109af366004613d33565b611f7a565b3480156109c057600080fd5b506104a16109cf366004613c97565b611f9b565b3480156109e057600080fd5b5061058c601d5481565b3480156109f657600080fd5b506104a1612031565b348015610a0b57600080fd5b5061058c66149b11bbb2800081565b348015610a2657600080fd5b506104a1612083565b348015610a3b57600080fd5b5061058c600e5481565b348015610a5157600080fd5b506104a1610a60366004613c2f565b612224565b348015610a7157600080fd5b5061058c661f438daa06000081565b348015610a8c57600080fd5b506104a1610a9b366004613d15565b612313565b348015610aac57600080fd5b506104a1610abb366004613d33565b612372565b348015610acc57600080fd5b506104b8610adb366004613d33565b6123bf565b348015610aec57600080fd5b5061058c60195481565b348015610b0257600080fd5b506104a1610b11366004613d33565b612444565b348015610b2257600080fd5b506104a1612491565b348015610b3757600080fd5b506104a1610b46366004613d33565b612587565b348015610b5757600080fd5b506104a1610b66366004613d33565b6125d4565b6104a1610b79366004613e0a565b6126d7565b348015610b8a57600080fd5b5061058c612957565b348015610b9f57600080fd5b5061058c612978565b348015610bb457600080fd5b5061058c610bc3366004613a49565b612b58565b348015610bd457600080fd5b5061046c610be3366004613a64565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610c1d57600080fd5b5061058c60115481565b348015610c3357600080fd5b5061046c612b8c565b348015610c4857600080fd5b5061058c60205481565b348015610c5e57600080fd5b506104a1610c6d366004613a49565b612ba6565b348015610c7e57600080fd5b506104a1610c8d366004613a97565b612c5c565b348015610c9e57600080fd5b506104b8612ca4565b348015610cb357600080fd5b506104b8612cc0565b60006001600160e01b031982166380ac58cd60e01b1480610ced57506001600160e01b03198216635b5e139f60e01b145b80610d0857506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610d5b5760405162461bcd60e51b8152602060048201819052602482015260008051602061419383398151915260448201526064015b60405180910390fd5b600c55565b606060028054610d6f9061406c565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9b9061406c565b8015610de85780601f10610dbd57610100808354040283529160200191610de8565b820191906000526020600020905b815481529060010190602001808311610dcb57829003601f168201915b5050505050905090565b6000610dfd82612d5d565b610e1a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b03163314610e7e5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b8051610e9190600b9060208401906138aa565b5050565b6000610ea082611cd5565b9050806001600160a01b0316836001600160a01b03161415610ed55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ef55750610ef38133610be3565b155b15610f13576040516367d9dca160e11b815260040160405180910390fd5b610f1e838383612d88565b505050565b6008546001600160a01b03163314610f6b5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601e54610100900460ff1615610fc35760405162461bcd60e51b815260206004820152601060248201527f53616c65206e6f742073746172746564000000000000000000000000000000006044820152606401610d52565b804211156110135760405162461bcd60e51b815260206004820152601b60248201527f5374617274206d75737420626520696e207468652066757475726500000000006044820152606401610d52565b601f60008154811061102757611027614102565b90600052602060002001546000141561104b576110476202a30082613fde565b6020555b601f80546001810182556000919091527fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d8070155601e805461ff001916610100179055565b6000601f6000815481106110a5576110a5614102565b9060005260206000200154600014156110bf575061170090565b601e54610100900460ff166110e2576022546110dd90611700614029565b905090565b601f541561114557601e5460ff61010090910416151560011480156111315750601f805461111290600190614029565b8154811061112257611122614102565b90600052602060002001544211155b15611145576022546110dd90611700614029565b6000601f60008154811061115b5761115b614102565b9060005260206000200154426111719190614029565b90506000603c61118983670de0b6b3a764000061400a565b6111939190613ff6565b9050670de0b6b3a7640000816111ab6117008361400a565b6111b59190614029565b6111bf9190613ff6565b9250505090565b601c5460009060ff1680156110dd575050601d5442101590565b6008546001600160a01b031633146112285760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601c805460ff191692151592909217909155601d55565b6008546001600160a01b031633146112875760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b804210156112cf5760405162461bcd60e51b815260206004820152601560248201527414d85b19481b9bdd08199a5b9a5cda1959081e595d605a1b6044820152606401610d52565b601e805461ffff19166001179055602055565b6002600a5414156113355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d52565b6002600a556018546001600160a01b0316156113ba5760185460405163164746fd60e11b81526001600160a01b03858116600483015284811660248301526044820184905290911690632c8e8dfa90606401600060405180830381600087803b1580156113a157600080fd5b505af11580156113b5573d6000803e3d6000fd5b505050505b6113c5838383612de4565b50506001600a5550565b6008546001600160a01b031633146114175760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6002600a54141561148c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d52565b6002600a553332146114d25760405162461bcd60e51b815260206004820152600f60248201526e44697361626c652066726f6d20534360881b6044820152606401610d52565b601a5460ff1680156114e65750601b544210155b6115325760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206e6f7420737461727465640000000000000000006044820152606401610d52565b601e5460ff6101009091041615156001146115815760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610d52565b600061158b61108f565b9050600e548261159a33612b58565b6115a49190613fde565b11156115f25760405162461bcd60e51b815260206004820152601760248201527f4d6178207065722077616c6c657420726561636865642e0000000000000000006044820152606401610d52565b600c5482111561163b5760405162461bcd60e51b815260206004820152601460248201527313585e081c195c881d1e1b88195e18d95959195960621b6044820152606401610d52565b61164c82661f438daa06000061400a565b34146116895760405162461bcd60e51b815260206004820152600c60248201526b57726f6e672076616c75652160a01b6044820152606401610d52565b816116976001546000540390565b6116a19190613fde565b8110156116e65760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610d52565b6116f03383612def565b50506001600a55565b6008546001600160a01b031633146117415760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b8051610e919060159060208401906138aa565b3332146117955760405162461bcd60e51b815260206004820152600f60248201526e44697361626c652066726f6d20534360881b6044820152606401610d52565b601e5460ff6101009091041615156001146117e45760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610d52565b60006117ee61108f565b601c5490915060ff1680156118055750601d544210155b6118515760405162461bcd60e51b815260206004820152601c60248201527f4261626f6f6e6672656e73206d696e74206e6f742073746172746564000000006044820152606401610d52565b6013546040516bffffffffffffffffffffffff193360601b1660208201526118949184916034015b60405160208183030381529060405280519060200120612e09565b6118e05760405162461bcd60e51b815260206004820152601660248201527f596f75277265206e6f74204261626f6f6e6672656e73000000000000000000006044820152606401610d52565b6011546118ec33612b58565b111561193a5760405162461bcd60e51b815260206004820152601760248201527f4d6178207065722077616c6c657420726561636865642e0000000000000000006044820152606401610d52565b6011548311156119835760405162461bcd60e51b815260206004820152601460248201527313585e081c195c881d1e1b88195e18d95959195960621b6044820152606401610d52565b601154600154600054035b6119989190613fde565b8110156119dd5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610d52565b610f1e3384612def565b610f1e83838360405180602001604052806000815250612224565b333214611a435760405162461bcd60e51b815260206004820152600f60248201526e44697361626c652066726f6d20534360881b6044820152606401610d52565b601e5460ff610100909104161515600114611a925760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610d52565b6000611a9c61108f565b601c5490915060ff168015611ab35750601d544210155b611aff5760405162461bcd60e51b815260206004820152601560248201527f5465616d206d696e74206e6f74207374617274656400000000000000000000006044820152606401610d52565b6014546040516bffffffffffffffffffffffff193360601b166020820152611b2b918491603401611879565b611b775760405162461bcd60e51b815260206004820152601660248201527f596f75277265206e6f742077686974656c6973746564000000000000000000006044820152606401610d52565b601054611b8333612b58565b1115611bd15760405162461bcd60e51b815260206004820152601660248201527f4d6178207065722077616c6c65742072656163686564000000000000000000006044820152606401610d52565b601054831115611c1a5760405162461bcd60e51b815260206004820152601460248201527313585e081c195c881d1e1b88195e18d95959195960621b6044820152606401610d52565b82611c286001546000540390565b611c329190613fde565b811015611c775760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610d52565b6000611c84600585613ff6565b905060005b81811015611cae57611c9c336005612def565b80611ca6816140a7565b915050611c89565b506000611cbc6005866140c2565b90508015611cce57611cce3382612def565b5050505050565b6000611ce082612e1f565b5192915050565b60006001600160a01b038216611d10576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314611d7e5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b611d886000612f3b565b565b6008546001600160a01b03163314611dd25760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601255565b6008546001600160a01b03163314611e1f5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601355565b6008546001600160a01b03163314611e6c5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b600e55565b60005b8251811015611cce57611ebb8585858481518110611e9457611e94614102565b6020026020010151858581518110611eae57611eae614102565b6020026020010151612f8d565b80611ec5816140a7565b915050611e74565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614611f455760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610d52565b610e918282612fd8565b606060038054610d6f9061406c565b6040518060600160405280604081526020016141b36040913981565b601f8181548110611f8a57600080fd5b600091825260209091200154905081565b6001600160a01b038216331415611fc55760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146120795760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b611d88334761300d565b6008546001600160a01b031633146120cb5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b7f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b031663a9059cbb61210c6008546001600160a01b031690565b6040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b15801561216b57600080fd5b505afa15801561217f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a39190613df1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156121e957600080fd5b505af11580156121fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122219190613cf8565b50565b6002600a5414156122775760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d52565b6002600a556018546001600160a01b0316156122fc5760185460405163164746fd60e11b81526001600160a01b03868116600483015285811660248301526044820185905290911690632c8e8dfa90606401600060405180830381600087803b1580156122e357600080fd5b505af11580156122f7573d6000803e3d6000fd5b505050505b61230884848484612f8d565b50506001600a555050565b6008546001600160a01b0316331461235b5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601a805460ff191692151592909217909155601b55565b6008546001600160a01b031633146123ba5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b600f55565b60606123ca82612d5d565b6123e757604051630a14c4b560e41b815260040160405180910390fd5b60006123f16130b0565b9050805160001415612412576040518060200160405280600081525061243d565b8061241c846130bf565b60405160200161242d929190613eda565b6040516020818303038152906040525b9392505050565b6008546001600160a01b0316331461248c5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601455565b6008546001600160a01b031633146124d95760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b601e5460ff6101009091041615156001146125365760405162461bcd60e51b815260206004820152601360248201527f53616c6520616c726561647920706175736564000000000000000000000000006044820152606401610d52565b601f60008154811061254a5761254a614102565b9060005260206000200154426125609190614029565b60215561256b61108f565b61257790611700614029565b602255601e805461ff0019169055565b6008546001600160a01b031633146125cf5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b600d55565b6008546001600160a01b0316331461261c5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b61262461108f565b816126326001546000540390565b61263c9190613fde565b11156126805760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610d52565b600061268d600583613ff6565b905060005b818110156126b7576126a5336005612def565b806126af816140a7565b915050612692565b5060006126c56005846140c2565b90508015610f1e57610f1e3382612def565b3332146127185760405162461bcd60e51b815260206004820152600f60248201526e44697361626c652066726f6d20534360881b6044820152606401610d52565b601c5460ff16801561272c5750601d544210155b6127785760405162461bcd60e51b815260206004820152601a60248201527f57686974656c6973742073616c65206e6f7420737461727465640000000000006044820152606401610d52565b601e5460ff6101009091041615156001146127c75760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610d52565b60006127d161108f565b6012546040516bffffffffffffffffffffffff193360601b16602082015291925061280191849190603401611879565b61284d5760405162461bcd60e51b815260206004820152601660248201527f596f75277265206e6f742077686974656c6973746564000000000000000000006044820152606401610d52565b600f548361285a33612b58565b6128649190613fde565b11156128b25760405162461bcd60e51b815260206004820152601660248201527f4d6178207065722077616c6c65742072656163686564000000000000000000006044820152606401610d52565b600d548311156128fb5760405162461bcd60e51b815260206004820152601460248201527313585e081c195c881d1e1b88195e18d95959195960621b6044820152606401610d52565b61290c8366149b11bbb2800061400a565b34146129495760405162461bcd60e51b815260206004820152600c60248201526b57726f6e672076616c75652160a01b6044820152606401610d52565b8261198e6001546000540390565b60006129666001546000540390565b61296e61108f565b6110dd9190614029565b6008546000906001600160a01b031633146129c35760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b6017546040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b158015612a2557600080fd5b505afa158015612a39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a5d9190613df1565b1015612aab5760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768204c494e4b00000000000000000000000000000000006044820152606401610d52565b60195415612afb5760405162461bcd60e51b815260206004820152601f60248201527f416c72656164792067656e6572617465642072616e646f6d206e756d626572006044820152606401610d52565b601e5460ff161515600114612b4a5760405162461bcd60e51b815260206004820152601560248201527414d85b19481b9bdd08199a5b9a5cda1959081e595d605a1b6044820152606401610d52565b6110dd6016546017546131dd565b6001600160a01b03811660009081526005602052604081205468010000000000000000900467ffffffffffffffff16610d08565b601a5460009060ff1680156110dd575050601b5442101590565b6008546001600160a01b03163314612bee5760405162461bcd60e51b815260206004820181905260248201526000805160206141938339815191526044820152606401610d52565b6001600160a01b038116612c535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d52565b61222181612f3b565b60005b8151811015612c9e57612c8c8484848481518110612c7f57612c7f614102565b6020026020010151612de4565b80612c96816140a7565b915050612c5f565b50505050565b6040518060600160405280604081526020016141536040913981565b600b8054612ccd9061406c565b80601f0160208091040260200160405190810160405280929190818152602001828054612cf99061406c565b8015612d465780601f10612d1b57610100808354040283529160200191612d46565b820191906000526020600020905b815481529060010190602001808311612d2957829003601f168201915b505050505081565b6001600160a01b03163b151590565b6000805482108015610d08575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610f1e838383613368565b610e91828260405180602001604052806000815250613555565b600082612e168584613562565b14949350505050565b604080516060810182526000808252602082018190529181019190915281600054811015612f2257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612f205780516001600160a01b031615612eb6579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612f1b579392505050565b612eb6565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612f98848484613368565b6001600160a01b0383163b15158015612fba5750612fb8848484846135d6565b155b15612c9e576040516368d2bf6b60e11b815260040160405180910390fd5b6000612fe76001546000540390565b612ff190836140c2565b905080613006576130038160016136cd565b90505b6019555050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461305a576040519150601f19603f3d011682016040523d82523d6000602084013e61305f565b606091505b5050905080610f1e5760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610d52565b606060158054610d6f9061406c565b6060816130e35750506040805180820190915260018152600360fc1b602082015290565b8160005b811561310d57806130f7816140a7565b91506131069050600a83613ff6565b91506130e7565b60008167ffffffffffffffff81111561312857613128614118565b6040519080825280601f01601f191660200182016040528015613152576020820181803683370190505b5090505b84156131d557613167600183614029565b9150613174600a866140c2565b61317f906030613fde565b60f81b81838151811061319457613194614102565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506131ce600a86613ff6565b9450613156565b949350505050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79528486600060405160200161324d929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161327a93929190613f45565b602060405180830381600087803b15801561329457600080fd5b505af11580156132a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132cc9190613cf8565b50600083815260096020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052613328906001613fde565b6000858152600960205260409020556131d58482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b600061337382612e1f565b9050836001600160a01b031681600001516001600160a01b0316146133aa5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806133c857506133c88533610be3565b806133e35750336133d884610df2565b6001600160a01b0316145b90508061340357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661342a57604051633a954ecd60e21b815260040160405180910390fd5b61343660008487612d88565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661350c57600054821461350c578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611cce565b610f1e83838360016136d9565b600081815b84518110156135ce57600085828151811061358457613584614102565b602002602001015190508083116135aa57600083815260208290526040902092506135bb565b600081815260208490526040902092505b50806135c6816140a7565b915050613567565b509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061360b903390899088908890600401613f09565b602060405180830381600087803b15801561362557600080fd5b505af1925050508015613655575060408051601f3d908101601f1916820190925261365291810190613d8b565b60015b6136b0573d808015613683576040519150601f19603f3d011682016040523d82523d6000602084013e613688565b606091505b5080516136a8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600061243d8284613fde565b6000546001600160a01b03851661370257604051622e076360e81b815260040160405180910390fd5b836137205760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156137d257506001600160a01b0387163b15155b1561385b575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461382360008884806001019550886135d6565b613840576040516368d2bf6b60e11b815260040160405180910390fd5b808214156137d857826000541461385657600080fd5b6138a1565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561385c575b50600055611cce565b8280546138b69061406c565b90600052602060002090601f0160209004810192826138d8576000855561391e565b82601f106138f157805160ff191683800117855561391e565b8280016001018555821561391e579182015b8281111561391e578251825591602001919060010190613903565b5061392a92915061392e565b5090565b5b8082111561392a576000815560010161392f565b600067ffffffffffffffff83111561395d5761395d614118565b613970601f8401601f1916602001613f89565b905082815283838301111561398457600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146139b257600080fd5b919050565b600082601f8301126139c857600080fd5b813560206139dd6139d883613fba565b613f89565b80838252828201915082860187848660051b89010111156139fd57600080fd5b60005b85811015613a1c57813584529284019290840190600101613a00565b5090979650505050505050565b600082601f830112613a3a57600080fd5b61243d83833560208501613943565b600060208284031215613a5b57600080fd5b61243d8261399b565b60008060408385031215613a7757600080fd5b613a808361399b565b9150613a8e6020840161399b565b90509250929050565b600080600060608486031215613aac57600080fd5b613ab58461399b565b9250613ac36020850161399b565b9150604084013567ffffffffffffffff811115613adf57600080fd5b613aeb868287016139b7565b9150509250925092565b60008060008060808587031215613b0b57600080fd5b613b148561399b565b93506020613b2381870161399b565b9350604086013567ffffffffffffffff80821115613b4057600080fd5b613b4c89838a016139b7565b94506060880135915080821115613b6257600080fd5b818801915088601f830112613b7657600080fd5b8135613b846139d882613fba565b8082825285820191508585018c878560051b8801011115613ba457600080fd5b60005b84811015613bdf57813586811115613bbe57600080fd5b613bcc8f8a838b0101613a29565b8552509287019290870190600101613ba7565b505080965050505050505092959194509250565b600080600060608486031215613c0857600080fd5b613c118461399b565b9250613c1f6020850161399b565b9150604084013590509250925092565b60008060008060808587031215613c4557600080fd5b613c4e8561399b565b9350613c5c6020860161399b565b925060408501359150606085013567ffffffffffffffff811115613c7f57600080fd5b613c8b87828801613a29565b91505092959194509250565b60008060408385031215613caa57600080fd5b613cb38361399b565b91506020830135613cc38161412e565b809150509250929050565b60008060408385031215613ce157600080fd5b613cea8361399b565b946020939093013593505050565b600060208284031215613d0a57600080fd5b815161243d8161412e565b60008060408385031215613d2857600080fd5b8235613cea8161412e565b600060208284031215613d4557600080fd5b5035919050565b60008060408385031215613d5f57600080fd5b50508035926020909101359150565b600060208284031215613d8057600080fd5b813561243d8161413c565b600060208284031215613d9d57600080fd5b815161243d8161413c565b600060208284031215613dba57600080fd5b813567ffffffffffffffff811115613dd157600080fd5b8201601f81018413613de257600080fd5b6131d584823560208401613943565b600060208284031215613e0357600080fd5b5051919050565b60008060408385031215613e1d57600080fd5b8235915060208084013567ffffffffffffffff811115613e3c57600080fd5b8401601f81018613613e4d57600080fd5b8035613e5b6139d882613fba565b80828252848201915084840189868560051b8701011115613e7b57600080fd5b600094505b83851015613e9e578035835260019490940193918501918501613e80565b5080955050505050509250929050565b60008151808452613ec6816020860160208601614040565b601f01601f19169290920160200192915050565b60008351613eec818460208801614040565b835190830190613f00818360208801614040565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f3b6080830184613eae565b9695505050505050565b6001600160a01b0384168152826020820152606060408201526000613f6d6060830184613eae565b95945050505050565b60208152600061243d6020830184613eae565b604051601f8201601f1916810167ffffffffffffffff81118282101715613fb257613fb2614118565b604052919050565b600067ffffffffffffffff821115613fd457613fd4614118565b5060051b60200190565b60008219821115613ff157613ff16140d6565b500190565b600082614005576140056140ec565b500490565b6000816000190483118215151615614024576140246140d6565b500290565b60008282101561403b5761403b6140d6565b500390565b60005b8381101561405b578181015183820152602001614043565b83811115612c9e5750506000910152565b600181811c9082168061408057607f821691505b602082108114156140a157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140bb576140bb6140d6565b5060010190565b6000826140d1576140d16140ec565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461222157600080fd5b6001600160e01b03198116811461222157600080fdfe666666663065663137636231626264386336613364653966356465343539306565643832663031326163623939356535626634666238626131386534333865324f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657236336233616333643064643836666663346235343637656461383737386234643762363261613933633539373966656633363561653361666464363761643266a264697066735822122038f1516dc9a26d0733a576076994019ff6d6022d0fd9cdf2ff12a00d44da670864736f6c63430008070033

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

000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec800006856309174fe2262f4f01197f0607ad5204accc90eaecbd472445d90a57acee000000000000000000000000000000000000000000000000000000000625828e000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000002

-----Decoded View---------------
Arg [0] : vrfCoordinator_ (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [1] : link_ (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [2] : linkKeyHash_ (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : linkFee_ (uint256): 2000000000000000000
Arg [4] : merkleRoot_ (bytes32): 0x6856309174fe2262f4f01197f0607ad5204accc90eaecbd472445d90a57acee0
Arg [5] : saleStartTime_ (uint256): 1649944800
Arg [6] : maxPerTeam_ (uint256): 20
Arg [7] : maxPerBaboonfrens_ (uint256): 2

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [1] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [2] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [4] : 6856309174fe2262f4f01197f0607ad5204accc90eaecbd472445d90a57acee0
Arg [5] : 00000000000000000000000000000000000000000000000000000000625828e0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000002


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.