ETH Price: $3,303.13 (-3.58%)
Gas: 7 Gwei

Token

Co-Bots (CBTS)
 

Overview

Max Total Supply

393 CBTS

Holders

126

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
4 CBTS
0xb9D83D298D46C4dd73618F19a2A40084Ce36476a
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
CoBots

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 2000 runs

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

pragma solidity ^0.8.12;

import "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol";
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "erc721a/contracts/ERC721A.sol";
import "../interfaces/ICoBotsRenderer.sol";

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

contract CoBots is ERC721A, VRFConsumerBaseV2, Ownable, ReentrancyGuard {
    // Constants
    uint8 public constant MAX_MINT_PER_ADDRESS = 20;
    uint8 public constant MINT_GIVEAWAYS = 30;
    uint8 public constant MINT_FOUNDERS_AND_GIVEAWAYS = 50;
    uint256 public constant RAFFLE_DRAW_DELAY = 1 minutes;
    uint8 public constant COORDINATION_RAFFLE_THRESHOLD = 95; // percentage of MAX_COBOTS
    // These are set only once in constructor but are not constant for testing purposes
    uint256 public MINT_PUBLIC_PRICE;
    uint16 public MAX_COBOTS;
    uint8 public MAIN_RAFFLE_WINNERS_COUNT;
    uint72 public MAIN_RAFFLE_PRIZE;
    uint8 public COORDINATION_RAFFLE_WINNERS_COUNT;
    uint72 public COORDINATION_RAFFLE_PRIZE;
    uint256 public COBOTS_MINT_DURATION;
    uint256 public COBOTS_MINT_RAFFLE_DELAY;
    uint256 public COBOTS_REFUND_DURATION;

    // CoBots states variables
    uint8[] public coBotsSeeds;
    bool[] public coBotsStatusDisabled;
    bool[] public coBotsColors;
    bool[] public coBotsRefunded;
    uint16 public coBotsColorAgreement;

    ////////////////////////////////////////////////////////////////////////
    ////////////////////////// Schedule ////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////
    uint256 public publicSaleStartTimestamp;
    uint256 public mintedOutTimestamp;

    function openPublicSale() external onlyOwner {
        require(publicSaleStartTimestamp == 0, "Public sale already started");
        publicSaleStartTimestamp = block.timestamp;
    }

    function isPublicSaleOpen() public view returns (bool) {
        return
            publicSaleStartTimestamp != 0 &&
            block.timestamp > publicSaleStartTimestamp &&
            block.timestamp < publicSaleStartTimestamp + COBOTS_MINT_DURATION;
    }

    modifier whenPublicSaleOpen() {
        require(isPublicSaleOpen(), "Public sale not open");
        _;
    }

    modifier whenPublicSaleClosed() {
        require(!isPublicSaleOpen(), "Public sale open");
        _;
    }

    function isMintedOut() public view returns (bool) {
        return _currentIndex == MAX_COBOTS;
    }

    modifier whenMintedOut() {
        require(isMintedOut(), "Co-Bots are not minted out");
        _;
    }

    modifier whenNotMintedOut() {
        require(!isMintedOut(), "Co-Bots are minted out");
        _;
    }

    ////////////////////////////////////////////////////////////////////////
    ////////////////////////// Marketplaces ////////////////////////////////
    ////////////////////////////////////////////////////////////////////////
    address public opensea;
    address public looksrare;
    mapping(address => bool) proxyToApproved;

    /// @notice Set opensea to `opensea_`.
    function setOpensea(address opensea_) external onlyOwner {
        opensea = opensea_;
    }

    /// @notice Set looksrare to `looksrare_`.
    function setLooksrare(address looksrare_) external onlyOwner {
        looksrare = looksrare_;
    }

    /// @notice Approve the communication and interaction with cross-collection interactions.
    function flipProxyState(address proxyAddress) public onlyOwner {
        proxyToApproved[proxyAddress] = !proxyToApproved[proxyAddress];
    }

    /// @dev Modified for opensea and looksrare pre-approve.
    function isApprovedForAll(address owner, address operator)
        public
        view
        override(ERC721A)
        returns (bool)
    {
        return
            operator == address(ProxyRegistry(opensea).proxies(owner)) ||
            operator == looksrare ||
            proxyToApproved[operator] ||
            super.isApprovedForAll(owner, operator);
    }

    ////////////////////////////////////////////////////////////////////////
    ////////////////////////// Token ///////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////
    address public renderingContractAddress;
    ICoBotsRenderer renderer;

    function setRenderingContractAddress(address _renderingContractAddress)
        public
        onlyOwner
    {
        renderingContractAddress = _renderingContractAddress;
        renderer = ICoBotsRenderer(renderingContractAddress);
    }

    struct Parameters {
        uint16 maxCobots;
        uint72 mintPublicPrice;
        uint8 mainRaffleWinnersCount;
        uint24 timeUnit;
    }

    constructor(
        string memory name_,
        string memory symbol_,
        address _rendererAddress,
        address _opensea,
        address _looksrare,
        address vrfCoordinator,
        address link,
        bytes32 keyHash,
        Parameters memory parameters
    ) ERC721A(name_, symbol_) VRFConsumerBaseV2(vrfCoordinator) {
        setRenderingContractAddress(_rendererAddress);
        opensea = _opensea;
        looksrare = _looksrare;
        COORDINATOR = VRFCoordinatorV2Interface(vrfCoordinator);
        LINKTOKEN = LinkTokenInterface(link);
        gasKeyHash = keyHash;
        MAX_COBOTS = parameters.maxCobots;
        MINT_PUBLIC_PRICE = parameters.mintPublicPrice;
        MAIN_RAFFLE_PRIZE =
            (parameters.mintPublicPrice * parameters.maxCobots) /
            20;
        MAIN_RAFFLE_WINNERS_COUNT = parameters.mainRaffleWinnersCount;
        COORDINATION_RAFFLE_WINNERS_COUNT =
            parameters.mainRaffleWinnersCount *
            2;
        COORDINATION_RAFFLE_PRIZE = MAIN_RAFFLE_PRIZE / 10;
        COBOTS_MINT_DURATION = parameters.timeUnit * 7;
        COBOTS_MINT_RAFFLE_DELAY = parameters.timeUnit;
        COBOTS_REFUND_DURATION = parameters.timeUnit * 7;

        coBotsSeeds = new uint8[](parameters.maxCobots);
        coBotsStatusDisabled = new bool[](parameters.maxCobots);
        coBotsColors = new bool[](parameters.maxCobots);
        coBotsRefunded = new bool[](parameters.maxCobots);
        coBotsColorAgreement = parameters.maxCobots / 2; // CoBots are minted 50%/50%
    }

    function _mint(address to, uint256 quantity) internal {
        require(quantity < 32, "Too many Co-Bots to mint in one batch");
        bytes32 seeds = keccak256(
            abi.encodePacked(
                quantity,
                msg.sender,
                msg.value,
                block.timestamp,
                block.difficulty
            )
        );
        for (uint256 i = 0; i < quantity; i++) {
            uint256 tokenId = _currentIndex + i;
            coBotsSeeds[tokenId] = uint8(seeds[i]);
            coBotsColors[tokenId] = tokenId % 2 == 0;
        }

        _safeMint(to, quantity);
    }

    function mintPublicSale(uint256 quantity)
        external
        payable
        whenPublicSaleOpen
        nonReentrant
    {
        require(
            msg.value == MINT_PUBLIC_PRICE * quantity,
            "Price does not match"
        );
        require(
            _currentIndex + quantity < MAX_COBOTS + 1,
            "There are not enough Co-Bots left to mint that amount"
        );
        require(
            ERC721A.balanceOf(_msgSender()) + quantity <= MAX_MINT_PER_ADDRESS,
            "Co-Bots: the requested quantity exceeds the maximum allowed"
        );

        _mint(_msgSender(), quantity);

        if (isMintedOut()) {
            mintedOutTimestamp = block.timestamp;
        }
    }

    function mintFoundersAndGiveaways(address to, uint256 quantity)
        external
        onlyOwner
    {
        require(
            quantity + _currentIndex <= MINT_FOUNDERS_AND_GIVEAWAYS,
            "Quantity exceeds founders and giveaways allowance"
        );

        _mint(to, quantity);

        if (isMintedOut()) {
            mintedOutTimestamp = block.timestamp;
        }
    }

    function updateCooperativeRaffleStatus() internal {
        if (cooperativeRaffleEnabled) {
            return;
        }
        if (
            ((block.timestamp <
                mintedOutTimestamp + COBOTS_MINT_RAFFLE_DELAY) ||
                (mintedOutTimestamp == 0 &&
                    block.timestamp <
                    publicSaleStartTimestamp +
                        COBOTS_MINT_DURATION +
                        COBOTS_MINT_RAFFLE_DELAY)) &&
            ((coBotsColorAgreement >=
                ((MAX_COBOTS / 100) * COORDINATION_RAFFLE_THRESHOLD)) ||
                (coBotsColorAgreement <=
                    MAX_COBOTS -
                        ((MAX_COBOTS / 100) * COORDINATION_RAFFLE_THRESHOLD)))
        ) {
            cooperativeRaffleEnabled = true;
        }
    }

    function toggleColor(uint256 tokenId) external nonReentrant {
        require(
            ERC721A.ownerOf(tokenId) == _msgSender(),
            "Only owner can toggle color"
        );

        coBotsColors[tokenId] = !coBotsColors[tokenId];
        unchecked {
            coBotsColorAgreement = coBotsColors[tokenId]
                ? coBotsColorAgreement + 1
                : coBotsColorAgreement - 1;
        }
        updateCooperativeRaffleStatus();
    }

    function toggleColors(uint256[] calldata tokenIds) external nonReentrant {
        bool commonColor = coBotsColors[tokenIds[0]];
        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(
                ERC721A.ownerOf(tokenIds[i]) == _msgSender(),
                "Only owner can toggle color"
            );
            require(
                commonColor == coBotsColors[tokenIds[i]],
                "Toggling colors in two different colors!"
            );
            coBotsColors[tokenIds[i]] = !coBotsColors[tokenIds[i]];
        }
        unchecked {
            coBotsColorAgreement = commonColor
                ? coBotsColorAgreement + uint16(tokenIds.length)
                : coBotsColorAgreement - uint16(tokenIds.length);
        }
        updateCooperativeRaffleStatus();
    }

    function toggleStatus(uint256 tokenId) public nonReentrant {
        require(
            ERC721A.ownerOf(tokenId) == _msgSender(),
            "Only owner can toggle status"
        );

        coBotsStatusDisabled[tokenId] = !coBotsStatusDisabled[tokenId];
    }

    function toggleStatuses(uint256[] calldata tokenIds) public nonReentrant {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            toggleStatus(tokenIds[i]);
        }
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(_tokenId), "ERC721: URI query for nonexistent token");

        if (renderingContractAddress == address(0)) {
            return "";
        }

        return
            renderer.tokenURI(
                _tokenId,
                coBotsSeeds[_tokenId],
                !coBotsStatusDisabled[_tokenId],
                coBotsColors[_tokenId]
            );
    }

    function exists(uint256 _tokenId) external view returns (bool) {
        return _exists(_tokenId);
    }

    receive() external payable {}

    function withdraw() public onlyOwner {
        require(
            drawCount ==
                (
                    cooperativeRaffleEnabled
                        ? MAIN_RAFFLE_WINNERS_COUNT +
                            COORDINATION_RAFFLE_WINNERS_COUNT
                        : MAIN_RAFFLE_WINNERS_COUNT
                ) ||
                (block.timestamp >
                    publicSaleStartTimestamp +
                        COBOTS_MINT_DURATION +
                        COBOTS_REFUND_DURATION),
            "Dev cannot withdraw before the end of the game"
        );
        (bool success, ) = _msgSender().call{value: address(this).balance}("");
        require(success, "Withdrawal failed");
    }

    ////////////////////////////////////////////////////////////////////////
    ////////////////////////// Raffle //////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////
    VRFCoordinatorV2Interface COORDINATOR;
    LinkTokenInterface LINKTOKEN;
    bytes32 gasKeyHash;

    struct Winner {
        address winner;
        uint16 tokenId;
    }

    uint256 public lastDrawTimestamp;
    uint64 public s_subId;
    mapping(address => uint256) public prizePerAddress;
    Winner[] public winners;
    mapping(uint256 => uint256) public prizePerDraw;
    uint16 public drawCount;
    bool public cooperativeRaffleEnabled;

    function isDrawOpen() public view returns (bool) {
        return
            isMintedOut() &&
            block.timestamp > mintedOutTimestamp + COBOTS_MINT_RAFFLE_DELAY;
    }

    modifier whenDrawOpen() {
        require(isDrawOpen(), "Draw not active");
        _;
    }

    modifier whenRefundAllowed() {
        require(
            (block.timestamp >
                publicSaleStartTimestamp + COBOTS_MINT_DURATION) &&
                (block.timestamp <
                    publicSaleStartTimestamp +
                        COBOTS_MINT_DURATION +
                        COBOTS_REFUND_DURATION),
            "Refund period not open"
        );
        _;
    }

    function claimRefund(uint256[] calldata tokenIds)
        external
        nonReentrant
        whenRefundAllowed
        whenNotMintedOut
    {
        uint256 value;
        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            if (tokenId < MINT_FOUNDERS_AND_GIVEAWAYS) {
                continue;
            }
            require(
                ERC721A.ownerOf(tokenId) == _msgSender(),
                "You cannot claim a refund for a token you do not own"
            );
            if (!coBotsRefunded[tokenId]) {
                value += MINT_PUBLIC_PRICE;
                coBotsRefunded[tokenId] = true;
            }
        }
        require(value > 0, "No Co-Bots to refund");
        (bool success, ) = _msgSender().call{value: value}("");
        require(success, "Withdrawal failed");
    }

    function createSubscriptionAndFund(uint96 amount) external onlyOwner {
        if (s_subId == 0) {
            s_subId = COORDINATOR.createSubscription();
            COORDINATOR.addConsumer(s_subId, address(this));
        }
        LINKTOKEN.transferAndCall(
            address(COORDINATOR),
            amount,
            abi.encode(s_subId)
        );
    }

    function cancelSubscription() external onlyOwner {
        COORDINATOR.cancelSubscription(s_subId, _msgSender());
        s_subId = 0;
    }

    function draw() external nonReentrant whenDrawOpen returns (uint256) {
        require(
            drawCount <
                (
                    cooperativeRaffleEnabled
                        ? MAIN_RAFFLE_WINNERS_COUNT +
                            COORDINATION_RAFFLE_WINNERS_COUNT
                        : MAIN_RAFFLE_WINNERS_COUNT
                ),
            "Draw limit reached"
        );
        require(
            (lastDrawTimestamp + RAFFLE_DRAW_DELAY <= block.timestamp) ||
                drawCount == 0,
            "Draws take place once per minute"
        );
        lastDrawTimestamp = block.timestamp;
        uint256 currentPrizeMoney = drawCount < MAIN_RAFFLE_WINNERS_COUNT
            ? MAIN_RAFFLE_PRIZE
            : COORDINATION_RAFFLE_PRIZE;
        drawCount++;
        uint256 requestId = COORDINATOR.requestRandomWords(
            gasKeyHash,
            s_subId,
            5, // requestConfirmations
            500_000, // callbackGasLimit
            1 // numWords
        );
        prizePerDraw[requestId] = currentPrizeMoney;
        return requestId;
    }

    function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords)
        internal
        override
    {
        uint256 selectedToken = randomWords[0];
        address winner = ERC721A.ownerOf(selectedToken % MAX_COBOTS);
        while (
            prizePerAddress[winner] > 0 ||
            (selectedToken % MAX_COBOTS >= MINT_GIVEAWAYS &&
                selectedToken % MAX_COBOTS < MINT_FOUNDERS_AND_GIVEAWAYS)
        ) {
            selectedToken = selectedToken >> 1;
            winner = ERC721A.ownerOf(selectedToken % MAX_COBOTS);
        }
        winners.push(Winner(winner, uint16(selectedToken % MAX_COBOTS)));
        prizePerAddress[winner] = prizePerDraw[requestId];
        (bool success, ) = winner.call{value: prizePerDraw[requestId]}("");
        require(success, "Transfer failed.");
    }
}

File 2 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 3 of 17 : VRFCoordinatorV2Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface VRFCoordinatorV2Interface {
  /**
   * @notice Get configuration relevant for making requests
   * @return minimumRequestConfirmations global min for request confirmations
   * @return maxGasLimit global max for request gas limit
   * @return s_provingKeyHashes list of registered key hashes
   */
  function getRequestConfig()
    external
    view
    returns (
      uint16,
      uint32,
      bytes32[] memory
    );

  /**
   * @notice Request a set of random words.
   * @param keyHash - Corresponds to a particular oracle job which uses
   * that key for generating the VRF proof. Different keyHash's have different gas price
   * ceilings, so you can select a specific one to bound your maximum per request cost.
   * @param subId  - The ID of the VRF subscription. Must be funded
   * with the minimum subscription balance required for the selected keyHash.
   * @param minimumRequestConfirmations - How many blocks you'd like the
   * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
   * for why you may want to request more. The acceptable range is
   * [minimumRequestBlockConfirmations, 200].
   * @param callbackGasLimit - How much gas you'd like to receive in your
   * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
   * may be slightly less than this amount because of gas used calling the function
   * (argument decoding etc.), so you may need to request slightly more than you expect
   * to have inside fulfillRandomWords. The acceptable range is
   * [0, maxGasLimit]
   * @param numWords - The number of uint256 random values you'd like to receive
   * in your fulfillRandomWords callback. Note these numbers are expanded in a
   * secure way by the VRFCoordinator from a single random value supplied by the oracle.
   * @return requestId - A unique identifier of the request. Can be used to match
   * a request to a response in fulfillRandomWords.
   */
  function requestRandomWords(
    bytes32 keyHash,
    uint64 subId,
    uint16 minimumRequestConfirmations,
    uint32 callbackGasLimit,
    uint32 numWords
  ) external returns (uint256 requestId);

  /**
   * @notice Create a VRF subscription.
   * @return subId - A unique subscription id.
   * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
   * @dev Note to fund the subscription, use transferAndCall. For example
   * @dev  LINKTOKEN.transferAndCall(
   * @dev    address(COORDINATOR),
   * @dev    amount,
   * @dev    abi.encode(subId));
   */
  function createSubscription() external returns (uint64 subId);

  /**
   * @notice Get a VRF subscription.
   * @param subId - ID of the subscription
   * @return balance - LINK balance of the subscription in juels.
   * @return reqCount - number of requests for this subscription, determines fee tier.
   * @return owner - owner of the subscription.
   * @return consumers - list of consumer address which are able to use this subscription.
   */
  function getSubscription(uint64 subId)
    external
    view
    returns (
      uint96 balance,
      uint64 reqCount,
      address owner,
      address[] memory consumers
    );

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @param newOwner - proposed new owner of the subscription
   */
  function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @dev will revert if original owner of subId has
   * not requested that msg.sender become the new owner.
   */
  function acceptSubscriptionOwnerTransfer(uint64 subId) external;

  /**
   * @notice Add a consumer to a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - New consumer which can use the subscription
   */
  function addConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Remove a consumer from a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - Consumer to remove from the subscription
   */
  function removeConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Cancel a subscription
   * @param subId - ID of the subscription
   * @param to - Where to send the remaining LINK to
   */
  function cancelSubscription(uint64 subId, address to) external;
}

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

/** ****************************************************************************
 * @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. It ensures 2 things:
 * @dev 1. The fulfillment came from the VRFCoordinator
 * @dev 2. The consumer contract implements fulfillRandomWords.
 * *****************************************************************************
 * @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) 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). Create subscription, fund it
 * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
 * @dev subscription management functions).
 * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
 * @dev callbackGasLimit, numWords),
 * @dev see (VRFCoordinatorInterface for a description of the arguments).
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomWords method.
 *
 * @dev The randomness argument to fulfillRandomWords is a set of random words
 * @dev generated from your requestId and the blockHash of the request.
 *
 * @dev If your contract could have concurrent requests open, you can use the
 * @dev requestId returned from requestRandomWords to track which response is associated
 * @dev with which randomness request.
 * @dev 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.
 *
 * *****************************************************************************
 * @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 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. It is for this reason that
 * @dev that you can signal to an oracle you'd like them to wait longer before
 * @dev responding to the request (however this is not enforced in the contract
 * @dev and so remains effective only in the case of unmodified oracle software).
 */
abstract contract VRFConsumerBaseV2 {
  error OnlyCoordinatorCanFulfill(address have, address want);
  address private immutable vrfCoordinator;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   */
  constructor(address _vrfCoordinator) {
    vrfCoordinator = _vrfCoordinator;
  }

  /**
   * @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 VRFConsumerBaseV2 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 randomWords the VRF output expanded to the requested number of words
   */
  function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual;

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
    if (msg.sender != vrfCoordinator) {
      revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
    }
    fulfillRandomWords(requestId, randomWords);
  }
}

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

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 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**128 - 1 (max value of uint128).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    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;
    }

    // Compiler will pack the following 
    // _currentIndex and _burnCounter into a single 256bit word.
    
    // The tokenId of the next token to be minted.
    uint128 internal _currentIndex;

    // The number of tokens burned.
    uint128 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_;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (!ownership.burned) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        // Execution should never reach this point.
        revert();
    }

    /**
     * @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 ||
            interfaceId == type(IERC721Enumerable).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);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(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 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 > 3.4e38 (2**128) - 1
        // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 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;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

            _currentIndex = uint128(updatedIndex);
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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 8 of 17 : ICoBotsRenderer.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.12;

interface ICoBotsRenderer {
    function tokenURI(
        uint256 tokenId,
        uint8 seed,
        bool status,
        bool color
    ) external view returns (string memory);
}

File 9 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 10 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 11 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 12 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 13 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 14 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 15 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 16 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 17 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2000,
    "details": {
      "yul": true,
      "yulDetails": {
        "stackAllocation": true,
        "optimizerSteps": "dhfoDgvulfnTUtnIf"
      }
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"_rendererAddress","type":"address"},{"internalType":"address","name":"_opensea","type":"address"},{"internalType":"address","name":"_looksrare","type":"address"},{"internalType":"address","name":"vrfCoordinator","type":"address"},{"internalType":"address","name":"link","type":"address"},{"internalType":"bytes32","name":"keyHash","type":"bytes32"},{"components":[{"internalType":"uint16","name":"maxCobots","type":"uint16"},{"internalType":"uint72","name":"mintPublicPrice","type":"uint72"},{"internalType":"uint8","name":"mainRaffleWinnersCount","type":"uint8"},{"internalType":"uint24","name":"timeUnit","type":"uint24"}],"internalType":"struct CoBots.Parameters","name":"parameters","type":"tuple"}],"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":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"COBOTS_MINT_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COBOTS_MINT_RAFFLE_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COBOTS_REFUND_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COORDINATION_RAFFLE_PRIZE","outputs":[{"internalType":"uint72","name":"","type":"uint72"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COORDINATION_RAFFLE_THRESHOLD","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COORDINATION_RAFFLE_WINNERS_COUNT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_RAFFLE_PRIZE","outputs":[{"internalType":"uint72","name":"","type":"uint72"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAIN_RAFFLE_WINNERS_COUNT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_COBOTS","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PER_ADDRESS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_FOUNDERS_AND_GIVEAWAYS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_GIVEAWAYS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RAFFLE_DRAW_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancelSubscription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"coBotsColorAgreement","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"coBotsColors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"coBotsRefunded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"coBotsSeeds","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"coBotsStatusDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cooperativeRaffleEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint96","name":"amount","type":"uint96"}],"name":"createSubscriptionAndFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"draw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drawCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"flipProxyState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDrawOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintedOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastDrawTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"looksrare","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintFoundersAndGiveaways","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintPublicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedOutTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"opensea","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"prizePerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"prizePerDraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renderingContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"s_subId","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"looksrare_","type":"address"}],"name":"setLooksrare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"opensea_","type":"address"}],"name":"setOpensea","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_renderingContractAddress","type":"address"}],"name":"setRenderingContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"toggleColor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"toggleColors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"toggleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"toggleStatuses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"winners","outputs":[{"internalType":"address","name":"winner","type":"address"},{"internalType":"uint16","name":"tokenId","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523480156200001157600080fd5b5060405162005335380380620053358339810160408190526200003491620008b8565b83898981600190805190602001906200004f92919062000498565b5080516200006590600290602084019062000498565b5050506001600160a01b03166080526200007f33620003e4565b60016008556200008f8762000436565b601580546001600160a01b03199081166001600160a01b0389811691909117909255601680548216888416179055601a80548216878416179055601b8054909116918516919091179055601c8290558051600a805461ffff191661ffff909216918217905560208201516001600160481b0381166009556014916200011491620009e2565b62000120919062000a29565b600a8054604084015162010000600160601b031990911663010000006001600160481b03949094169390930262ff00001916929092176201000060ff8416021790556200016f90600262000a51565b600a805460ff929092166c010000000000000000000000000260ff60601b1990921691909117808255620001b591906001600160481b0363010000009091041662000a29565b600a80546001600160481b03929092166d010000000000000000000000000002600160681b600160b01b03199092169190911790556060810151620001fc90600762000a79565b62ffffff908116600b556060820151908116600c556200021e90600762000a79565b62ffffff16600d55805161ffff166001600160401b038111156200024657620002466200064f565b60405190808252806020026020018201604052801562000270578160200160208202803683370190505b5080516200028791600e9160209091019062000527565b50805161ffff166001600160401b03811115620002a857620002a86200064f565b604051908082528060200260200182016040528015620002d2578160200160208202803683370190505b508051620002e991600f91602090910190620005cf565b50805161ffff166001600160401b038111156200030a576200030a6200064f565b60405190808252806020026020018201604052801562000334578160200160208202803683370190505b5080516200034b91601091602090910190620005cf565b50805161ffff166001600160401b038111156200036c576200036c6200064f565b60405190808252806020026020018201604052801562000396578160200160208202803683370190505b508051620003ad91601191602090910190620005cf565b508051620003be9060029062000aa7565b6012805461ffff191661ffff929092169190911790555062000b38975050505050505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546001600160a01b031633146200046c5760405162461bcd60e51b8152600401620004639062000ab6565b60405180910390fd5b601880546001600160a01b039092166001600160a01b0319928316811790915560198054909216179055565b828054620004a69062000b07565b90600052602060002090601f016020900481019282620004ca576000855562000515565b82601f10620004e557805160ff191683800117855562000515565b8280016001018555821562000515579182015b8281111562000515578251825591602001919060010190620004f8565b506200052392915062000638565b5090565b82805482825590600052602060002090601f01602090048101928215620005155791602002820160005b838211156200059157835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030262000551565b8015620005c05782816101000a81549060ff021916905560010160208160000104928301926001030262000591565b50506200052392915062000638565b82805482825590600052602060002090601f01602090048101928215620005155791602002820160005b838211156200059157835183826101000a81548160ff0219169083151502179055509260200192600101602081600001049283019260010302620005f9565b5b8082111562000523576000815560010162000639565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681016001600160401b03811182821017156200068d576200068d6200064f565b6040525050565b6000620006a060405190565b9050620006ae828262000665565b919050565b60006001600160401b03821115620006cf57620006cf6200064f565b601f19601f83011660200192915050565b60005b83811015620006fd578181015183820152602001620006e3565b838111156200070d576000848401525b50505050565b60006200072a6200072484620006b3565b62000694565b905082815260208101848484011115620007475762000747600080fd5b62000754848285620006e0565b509392505050565b600082601f830112620007725762000772600080fd5b81516200078484826020860162000713565b949350505050565b60006001600160a01b0382165b92915050565b620007aa816200078c565b8114620007b657600080fd5b50565b805162000799816200079f565b80620007aa565b80516200079981620007c6565b61ffff8116620007aa565b80516200079981620007da565b6001600160481b038116620007aa565b80516200079981620007f2565b60ff8116620007aa565b805162000799816200080f565b62ffffff8116620007aa565b8051620007998162000826565b600060808284031215620008565762000856600080fd5b62000862608062000694565b90506000620008728484620007e5565b908201526020620008868484830162000802565b9082015260406200089a8484830162000819565b908201526060620008ae8484830162000832565b9082015292915050565b60008060008060008060008060006101808a8c031215620008dc57620008dc600080fd5b89516001600160401b03811115620008f757620008f7600080fd5b620009058c828d016200075c565b60208c0151909a5090506001600160401b03811115620009285762000928600080fd5b620009368c828d016200075c565b9850506040620009498c828d01620007b9565b97505060606200095c8c828d01620007b9565b96505060806200096f8c828d01620007b9565b95505060a0620009828c828d01620007b9565b94505060c0620009958c828d01620007b9565b93505060e0620009a88c828d01620007cd565b925050610100620009bc8c828d016200083f565b9150509295985092959850929598565b634e487b7160e01b600052601160045260246000fd5b6001600160481b0391821691908116906000908290048311821515161562000a0e5762000a0e620009cc565b500290565b634e487b7160e01b600052601260045260246000fd5b6001600160481b039081169082165b915060008262000a4c5762000a4c62000a13565b500490565b60ff8116905060ff8216915060008160ff048311821515161562000a0e5762000a0e620009cc565b62ffffff8116905062ffffff8216915060008162ffffff048311821515161562000a0e5762000a0e620009cc565b61ffff90811690821662000a38565b60208082528181019081527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408301526060820162000799565b634e487b7160e01b600052602260045260246000fd5b60028104600182168062000b1c57607f821691505b6020821081141562000b325762000b3262000af1565b50919050565b6080516147da62000b5b60003960008181611377015261139f01526147da6000f3fe6080604052600436106104845760003560e01c806368d99f7c1161025e578063adb19dc311610143578063c87b56dd116100bb578063e985e9c51161008a578063f54a6f831161006f578063f54a6f8314610cf9578063f73c814b14610d19578063fc749b3c14610d3957600080fd5b8063e985e9c514610cb9578063f2fde38b14610cd957600080fd5b8063c87b56dd14610c43578063cef46f0d14610c63578063cf62c8ab14610c83578063d7822c9914610ca357600080fd5b8063b776c8a611610112578063c074f412116100f7578063c074f41214610bed578063c45ca31014610c0d578063c799451014610c2d57600080fd5b8063b776c8a614610bad578063b88d4fde14610bcd57600080fd5b8063adb19dc314610b33578063b06a01f414610b53578063b4b294d914610b7d578063b585209b14610b9857600080fd5b806395d89b41116101d6578063a3b1763f116101a5578063a8e90b571161018a578063a8e90b5714610ae9578063abb7a28f14610b09578063ac483b9314610b1e57600080fd5b8063a3b1763f14610a80578063a747338314610ac057600080fd5b806395d89b4114610a075780639c51792a14610a1c578063a22cb46514610a32578063a2fb117514610a5257600080fd5b806373cd7d881161022d57806378af6b851161021257806378af6b85146109be5780638c21460b146109d35780638da5cb5b146109e957600080fd5b806373cd7d8814610988578063743521e4146109a857600080fd5b806368d99f7c146108fc578063706da1ca1461092557806370a0823114610953578063715018a61461097357600080fd5b806323b872dd116103845780634f558e79116102fc57806351db2e76116102cb5780635dad667c116102b05780635dad667c1461089c5780636352211e146108bc5780636445b238146108dc57600080fd5b806351db2e76146108695780635a5e5d581461088957600080fd5b80634f558e79146107e95780634f6ccce7146108095780634fb9462a14610829578063511ed3821461084957600080fd5b806330d1bda1116103535780633ccfd60b116103385780633ccfd60b1461079457806342842e0e146107a957806347a3650b146107c957600080fd5b806330d1bda1146107525780633acd6cb21461077f57600080fd5b806323b872dd146106e857806324e9edb0146107085780632f745c591461071d5780632fd573a51461073d57600080fd5b80630bb4d0421161041757806318160ddd116103e65780631e8858fb116103cb5780631e8858fb146106885780631fafadbc146106a85780631fe543e3146106c857600080fd5b806318160ddd146106375780631a6949e31461067357600080fd5b80630bb4d042146105d15780630eecae21146105ec57806312b40a9f1461060157806316d870c21461062157600080fd5b806306fdde031161045357806306fdde0314610538578063081812fc1461055a57806308222d5814610587578063095ea7b3146105af57600080fd5b806301d2a00b1461049057806301ffc9a7146104d357806303e48f661461050057806304035a921461052257600080fd5b3661048b57005b600080fd5b34801561049c57600080fd5b506104bd6104ab3660046134ce565b60216020526000908152604090205481565b6040516104ca91906134f7565b60405180910390f35b3480156104df57600080fd5b506104f36104ee366004613520565b610d59565b6040516104ca9190613549565b34801561050c57600080fd5b50610515603281565b6040516104ca9190613560565b34801561052e57600080fd5b506104bd60145481565b34801561054457600080fd5b5061054d610e2a565b6040516104ca91906135cc565b34801561056657600080fd5b5061057a6105753660046134ce565b610ebc565b6040516104ca91906135f7565b34801561059357600080fd5b506022546105a29061ffff1681565b6040516104ca919061360f565b3480156105bb57600080fd5b506105cf6105ca366004613631565b610f19565b005b3480156105dd57600080fd5b50600a546105a29061ffff1681565b3480156105f857600080fd5b506104bd610fd9565b34801561060d57600080fd5b506105cf61061c36600461366e565b611247565b34801561062d57600080fd5b506104bd600c5481565b34801561064357600080fd5b506104bd6000546001600160801b0370010000000000000000000000000000000082048116918116919091031690565b34801561067f57600080fd5b506104f36112aa565b34801561069457600080fd5b506105cf6106a336600461366e565b6112df565b3480156106b457600080fd5b506105156106c33660046134ce565b611338565b3480156106d457600080fd5b506105cf6106e3366004613794565b61136c565b3480156106f457600080fd5b506105cf6107033660046137e2565b611400565b34801561071457600080fd5b506105cf61140b565b34801561072957600080fd5b506104bd610738366004613631565b6114d3565b34801561074957600080fd5b506104bd603c81565b34801561075e57600080fd5b506104bd61076d36600461366e565b601f6020526000908152604090205481565b34801561078b57600080fd5b50610515601481565b3480156107a057600080fd5b506105cf6115e9565b3480156107b557600080fd5b506105cf6107c43660046137e2565b611717565b3480156107d557600080fd5b506105cf6107e4366004613884565b611732565b3480156107f557600080fd5b506104f36108043660046134ce565b6117a2565b34801561081557600080fd5b506104bd6108243660046134ce565b6117ad565b34801561083557600080fd5b506104f36108443660046134ce565b611871565b34801561085557600080fd5b5060155461057a906001600160a01b031681565b34801561087557600080fd5b506105cf6108843660046134ce565b611881565b6105cf6108973660046134ce565b611954565b3480156108a857600080fd5b506105cf6108b73660046134ce565b611a86565b3480156108c857600080fd5b5061057a6108d73660046134ce565b611bbe565b3480156108e857600080fd5b506104f36108f73660046134ce565b611bd0565b34801561090857600080fd5b506104f3600a546000546001600160801b031661ffff9091161490565b34801561093157600080fd5b50601e546109469067ffffffffffffffff1681565b6040516104ca91906138dc565b34801561095f57600080fd5b506104bd61096e36600461366e565b611be0565b34801561097f57600080fd5b506105cf611c48565b34801561099457600080fd5b50600a546105159062010000900460ff1681565b3480156109b457600080fd5b506104bd600b5481565b3480156109ca57600080fd5b50610515601e81565b3480156109df57600080fd5b506104bd601d5481565b3480156109f557600080fd5b506007546001600160a01b031661057a565b348015610a1357600080fd5b5061054d611c7e565b348015610a2857600080fd5b506104bd60095481565b348015610a3e57600080fd5b506105cf610a4d3660046138fd565b611c8d565b348015610a5e57600080fd5b50610a72610a6d3660046134ce565b611d3f565b6040516104ca929190613930565b348015610a8c57600080fd5b50600a54610ab3906d0100000000000000000000000000900468ffffffffffffffffff1681565b6040516104ca919061395c565b348015610acc57600080fd5b50600a54610ab3906301000000900468ffffffffffffffffff1681565b348015610af557600080fd5b5060165461057a906001600160a01b031681565b348015610b1557600080fd5b50610515605f81565b348015610b2a57600080fd5b506104f3611d75565b348015610b3f57600080fd5b506105cf610b4e366004613884565b611db1565b348015610b5f57600080fd5b50600a54610515906c01000000000000000000000000900460ff1681565b348015610b8957600080fd5b506012546105a29061ffff1681565b348015610ba457600080fd5b506105cf611fd1565b348015610bb957600080fd5b506105cf610bc836600461366e565b612021565b348015610bd957600080fd5b506105cf610be8366004613a01565b61207a565b348015610bf957600080fd5b5060185461057a906001600160a01b031681565b348015610c1957600080fd5b506105cf610c28366004613631565b6120b4565b348015610c3957600080fd5b506104bd600d5481565b348015610c4f57600080fd5b5061054d610c5e3660046134ce565b612148565b348015610c6f57600080fd5b506022546104f39062010000900460ff1681565b348015610c8f57600080fd5b506105cf610c9e366004613a9f565b6122a9565b348015610caf57600080fd5b506104bd60135481565b348015610cc557600080fd5b506104f3610cd4366004613ac0565b6124a4565b348015610ce557600080fd5b506105cf610cf436600461366e565b6125b5565b348015610d0557600080fd5b506105cf610d14366004613884565b61260e565b348015610d2557600080fd5b506105cf610d3436600461366e565b61285c565b348015610d4557600080fd5b506104f3610d543660046134ce565b6128af565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610dbc57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610df057506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610e2457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060018054610e3990613b09565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6590613b09565b8015610eb25780601f10610e8757610100808354040283529160200191610eb2565b820191906000526020600020905b815481529060010190602001808311610e9557829003601f168201915b5050505050905090565b6000610ec7826128bf565b610efd576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610f2482611bbe565b9050806001600160a01b0316836001600160a01b03161415610f72576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610f925750610f9081336124a4565b155b15610fc9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fd48383836128f3565b505050565b6000600260085414156110075760405162461bcd60e51b8152600401610ffe90613b6a565b60405180910390fd5b6002600855611014611d75565b6110305760405162461bcd60e51b8152600401610ffe90613bac565b60225462010000900460ff1661105157600a5462010000900460ff16611079565b600a546110799060ff6c01000000000000000000000000820481169162010000900416613bd2565b60225460ff9190911661ffff909116106110a55760405162461bcd60e51b8152600401610ffe90613c2a565b42603c601d546110b59190613c3a565b1115806110c6575060225461ffff16155b6110e25760405162461bcd60e51b8152600401610ffe90613c7d565b42601d55600a5460225460009162010000900460ff1661ffff9091161061112757600a546d0100000000000000000000000000900468ffffffffffffffffff1661113d565b600a546301000000900468ffffffffffffffffff165b6022805468ffffffffffffffffff92909216925061ffff90911690600061116383613c8d565b825461ffff9182166101009390930a928302919092021990911617905550601a54601c54601e546040517f5d3b1d300000000000000000000000000000000000000000000000000000000081526000936001600160a01b031692635d3b1d30926111e79267ffffffffffffffff909116906005906207a12090600190600401613ce4565b6020604051808303816000875af1158015611206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122a9190613d3b565b600081815260216020526040902092909255509050600160085590565b6007546001600160a01b031633146112715760405162461bcd60e51b8152600401610ffe90613d8c565b601880546001600160a01b0390921673ffffffffffffffffffffffffffffffffffffffff19928316811790915560198054909216179055565b60006013546000141580156112c0575060135442115b80156112da5750600b546013546112d79190613c3a565b42105b905090565b6007546001600160a01b031633146113095760405162461bcd60e51b8152600401610ffe90613d8c565b6016805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600e818154811061134857600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146113f257337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610ffe929190613d9c565b6113fc828261295c565b5050565b610fd4838383612b3b565b6007546001600160a01b031633146114355760405162461bcd60e51b8152600401610ffe90613d8c565b601a54601e546040517fd7ae1d300000000000000000000000000000000000000000000000000000000081526001600160a01b039092169163d7ae1d309161148e9167ffffffffffffffff909116903390600401613db7565b600060405180830381600087803b1580156114a857600080fd5b505af11580156114bc573d6000803e3d6000fd5b5050601e805467ffffffffffffffff191690555050565b60006114de83611be0565b8210611516576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160801b03169080805b838110156115e357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529061158f57506115db565b80516001600160a01b0316156115a457805192505b876001600160a01b0316836001600160a01b031614156115d957868414156115d257509350610e2492505050565b6001909301925b505b600101611527565b50600080fd5b6007546001600160a01b031633146116135760405162461bcd60e51b8152600401610ffe90613d8c565b60225462010000900460ff1661163457600a5462010000900460ff1661165c565b600a5461165c9060ff6c01000000000000000000000000820481169162010000900416613bd2565b60225461ffff1660ff9190911614806116905750600d54600b546013546116839190613c3a565b61168d9190613c3a565b42115b6116ac5760405162461bcd60e51b8152600401610ffe90613e1f565b604051600090339047908381818185875af1925050503d80600081146116ee576040519150601f19603f3d011682016040523d82523d6000602084013e6116f3565b606091505b50509050806117145760405162461bcd60e51b8152600401610ffe90613e61565b50565b610fd48383836040518060200160405280600081525061207a565b600260085414156117555760405162461bcd60e51b8152600401610ffe90613b6a565b600260085560005b818110156117985761178683838381811061177a5761177a613e71565b90506020020135611881565b8061179081613e87565b91505061175d565b5050600160085550565b6000610e24826128bf565b600080546001600160801b031681805b8281101561183e57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290611835578583141561182e5750949350505050565b6001909201915b506001016117bd565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6010818154811061134857600080fd5b600260085414156118a45760405162461bcd60e51b8152600401610ffe90613b6a565b6002600855336118b382611bbe565b6001600160a01b0316146118d95760405162461bcd60e51b8152600401610ffe90613ecd565b600f81815481106118ec576118ec613e71565b90600052602060002090602091828204019190069054906101000a900460ff1615600f828154811061192057611920613e71565b90600052602060002090602091828204019190066101000a81548160ff021916908315150217905550600160088190555050565b61195c6112aa565b6119785760405162461bcd60e51b8152600401610ffe90613f0f565b6002600854141561199b5760405162461bcd60e51b8152600401610ffe90613b6a565b60026008556009546119ae908290613f1f565b34146119cc5760405162461bcd60e51b8152600401610ffe90613f70565b600a546119de9061ffff166001613f80565b60005461ffff91909116906119fd9083906001600160801b0316613c3a565b10611a1a5760405162461bcd60e51b8152600401610ffe90613ffc565b601481611a2633611be0565b611a309190613c3a565b1115611a4e5760405162461bcd60e51b8152600401610ffe90614064565b611a583382612da3565b611a74600a546000546001600160801b031661ffff9091161490565b15611a7e57426014555b506001600855565b60026008541415611aa95760405162461bcd60e51b8152600401610ffe90613b6a565b600260085533611ab882611bbe565b6001600160a01b031614611ade5760405162461bcd60e51b8152600401610ffe906140a6565b60108181548110611af157611af1613e71565b90600052602060002090602091828204019190069054906101000a900460ff161560108281548110611b2557611b25613e71565b90600052602060002090602091828204019190066101000a81548160ff02191690831515021790555060108181548110611b6157611b61613e71565b90600052602060002090602091828204019190069054906101000a900460ff16611b955760125461ffff1660001901611ba0565b60125461ffff166001015b6012805461ffff191661ffff92909216919091179055611a7e612edc565b6000611bc982612fdf565b5192915050565b6011818154811061134857600080fd5b60006001600160a01b038216611c22576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b6007546001600160a01b03163314611c725760405162461bcd60e51b8152600401610ffe90613d8c565b611c7c600061311c565b565b606060028054610e3990613b09565b6001600160a01b038216331415611cd0576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611d33908590613549565b60405180910390a35050565b60208181548110611d4f57600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b900461ffff1682565b6000611d93600a546000546001600160801b031661ffff9091161490565b80156112da5750600c54601454611daa9190613c3a565b4211905090565b60026008541415611dd45760405162461bcd60e51b8152600401610ffe90613b6a565b60026008556000601083838381611ded57611ded613e71565b9050602002013581548110611e0457611e04613e71565b60009182526020808320908204015460ff601f9092166101000a90041691505b82811015611f945733611e4e858584818110611e4257611e42613e71565b90506020020135611bbe565b6001600160a01b031614611e745760405162461bcd60e51b8152600401610ffe906140a6565b6010848483818110611e8857611e88613e71565b9050602002013581548110611e9f57611e9f613e71565b90600052602060002090602091828204019190069054906101000a900460ff16151582151514611ee15760405162461bcd60e51b8152600401610ffe9061410e565b6010848483818110611ef557611ef5613e71565b9050602002013581548110611f0c57611f0c613e71565b90600052602060002090602091828204019190069054906101000a900460ff16156010858584818110611f4157611f41613e71565b9050602002013581548110611f5857611f58613e71565b90600052602060002090602091828204019190066101000a81548160ff0219169083151502179055508080611f8c90613e87565b915050611e24565b5080611fa95760125461ffff16829003611fb3565b60125461ffff1682015b6012805461ffff191661ffff92909216919091179055611798612edc565b6007546001600160a01b03163314611ffb5760405162461bcd60e51b8152600401610ffe90613d8c565b6013541561201b5760405162461bcd60e51b8152600401610ffe90614150565b42601355565b6007546001600160a01b0316331461204b5760405162461bcd60e51b8152600401610ffe90613d8c565b6015805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b612085848484612b3b565b6120918484848461317b565b6120ae576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6007546001600160a01b031633146120de5760405162461bcd60e51b8152600401610ffe90613d8c565b6000546032906120f7906001600160801b031683613c3a565b11156121155760405162461bcd60e51b8152600401610ffe906141b8565b61211f8282612da3565b61213b600a546000546001600160801b031661ffff9091161490565b156113fc57426014555050565b6060612153826128bf565b61216f5760405162461bcd60e51b8152600401610ffe90614220565b6018546001600160a01b031661219357505060408051602081019091526000815290565b601954600e80546001600160a01b0390921691632da7b4e9918591829081106121be576121be613e71565b90600052602060002090602091828204019190069054906101000a900460ff16600f86815481106121f1576121f1613e71565b90600052602060002090602091828204019190069054906101000a900460ff16156010878154811061222557612225613e71565b90600052602060002090602091828204019190069054906101000a900460ff166040518563ffffffff1660e01b81526004016122649493929190614230565b600060405180830381865afa158015612281573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e2491908101906142c6565b6007546001600160a01b031633146122d35760405162461bcd60e51b8152600401610ffe90613d8c565b601e5467ffffffffffffffff166123fb57601a60009054906101000a90046001600160a01b03166001600160a01b031663a21a23e46040518163ffffffff1660e01b81526004016020604051808303816000875af1158015612339573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061235d919061431c565b601e805467ffffffffffffffff191667ffffffffffffffff929092169182179055601a546040517f7341c10c0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911691637341c10c916123c891903090600401613db7565b600060405180830381600087803b1580156123e257600080fd5b505af11580156123f6573d6000803e3d6000fd5b505050505b601b54601a54601e546040516001600160a01b0393841693634000aea093169185916124349167ffffffffffffffff16906020016138dc565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161246193929190614360565b6020604051808303816000875af1158015612480573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fc9190614398565b6015546040517fc45527910000000000000000000000000000000000000000000000000000000081526000916001600160a01b03169063c4552791906124ee9086906004016135f7565b602060405180830381865afa15801561250b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252f91906143d8565b6001600160a01b0316826001600160a01b0316148061255b57506016546001600160a01b038381169116145b8061257e57506001600160a01b03821660009081526017602052604090205460ff165b806125ae57506001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff165b9392505050565b6007546001600160a01b031633146125df5760405162461bcd60e51b8152600401610ffe90613d8c565b6001600160a01b0381166126055760405162461bcd60e51b8152600401610ffe90614451565b6117148161311c565b600260085414156126315760405162461bcd60e51b8152600401610ffe90613b6a565b6002600855600b546013546126469190613c3a565b4211801561266f5750600d54600b546013546126629190613c3a565b61266c9190613c3a565b42105b61268b5760405162461bcd60e51b8152600401610ffe90614493565b6126a7600a546000546001600160801b031661ffff9091161490565b156126c45760405162461bcd60e51b8152600401610ffe906144d5565b6000805b828110156127c85760008484838181106126e4576126e4613e71565b905060200201359050603260ff168110156126ff57506127b6565b3361270982611bbe565b6001600160a01b03161461272f5760405162461bcd60e51b8152600401610ffe9061453d565b6011818154811061274257612742613e71565b90600052602060002090602091828204019190069054906101000a900460ff166127b4576009546127739084613c3a565b925060016011828154811061278a5761278a613e71565b90600052602060002090602091828204019190066101000a81548160ff0219169083151502179055505b505b806127c081613e87565b9150506126c8565b50600081116127e95760405162461bcd60e51b8152600401610ffe9061457f565b604051600090339083908381818185875af1925050503d806000811461282b576040519150601f19603f3d011682016040523d82523d6000602084013e612830565b606091505b50509050806128515760405162461bcd60e51b8152600401610ffe90613e61565b505060016008555050565b6007546001600160a01b031633146128865760405162461bcd60e51b8152600401610ffe90613d8c565b6001600160a01b03166000908152601760205260409020805460ff19811660ff90911615179055565b600f818154811061134857600080fd5b600080546001600160801b031682108015610e24575050600090815260036020526040902054600160e01b900460ff161590565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008160008151811061297157612971613e71565b6020908102919091010151600a54909150600090612997906108d79061ffff16846145a5565b90505b6001600160a01b0381166000908152601f60205260409020541515806129ee5750600a54601e906129cf9061ffff16846145a5565b101580156129ee5750600a546032906129ec9061ffff16846145a5565b105b15612a1657600a5460019290921c91612a0f906108d79061ffff16846145a5565b905061299a565b604080518082019091526001600160a01b0382168152600a546020919081830190612a459061ffff16866145a5565b61ffff90811690915282546001810184556000938452602080852084519201805494820151909316600160a01b027fffffffffffffffffffff000000000000000000000000000000000000000000009094166001600160a01b0392831617939093179091558683526021808352604080852054928616808652601f855281862084905589865291909352915160006040518083038185875af1925050503d8060008114612b0e576040519150601f19603f3d011682016040523d82523d6000602084013e612b13565b606091505b5050905080612b345760405162461bcd60e51b8152600401610ffe906145eb565b5050505050565b6000612b4682612fdf565b80519091506000906001600160a01b0316336001600160a01b03161480612b7457508151612b7490336124a4565b80612b8f575033612b8484610ebc565b6001600160a01b0316145b905080612bc8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614612c17576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416612c57576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c6760008484600001516128f3565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612d5c576000546001600160801b0316811015612d5c578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b34565b60208110612dc35760405162461bcd60e51b8152600401610ffe90614653565b60008133344244604051602001612dde959493929190614691565b60405160208183030381529060405280519060200120905060005b82811015612ed15760008054612e199083906001600160801b0316613c3a565b9050828260208110612e2d57612e2d613e71565b1a60f81b60f81c600e8281548110612e4757612e47613e71565b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550600281612e7e91906145a5565b60001460108281548110612e9457612e94613e71565b90600052602060002090602091828204019190066101000a81548160ff021916908315150217905550508080612ec990613e87565b915050612df9565b50610fd483836132ad565b60225462010000900460ff1615612eef57565b600c54601454612eff9190613c3a565b421080612f325750601454158015612f325750600c54600b54601354612f259190613c3a565b612f2f9190613c3a565b42105b8015612fab5750600a54605f90612f4f9060649061ffff166146db565b612f5991906146f7565b60125461ffff9182169116101580612fab5750600a54605f90612f829060649061ffff166146db565b612f8c91906146f7565b600a54612f9d919061ffff1661471f565b60125461ffff918216911611155b15611c7c57602280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000179055565b60408051606081018252600080825260208201819052918101829052905482906001600160801b03168110156130ea57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906130e85780516001600160a01b03161561307e579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156130e3579392505050565b61307e565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156132a1576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906131d890339089908890889060040161473e565b6020604051808303816000875af1925050508015613213575060408051601f3d908101601f1916820190925261321091810190614783565b60015b61326e573d808015613241576040519150601f19603f3d011682016040523d82523d6000602084013e613246565b606091505b508051613266576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b0319167f150b7a02000000000000000000000000000000000000000000000000000000001490506132a5565b5060015b949350505050565b6113fc828260405180602001604052806000815250610fd483838360016000546001600160801b03166001600160a01b038516613316576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8361334d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156134785760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561344e575061344c600088848861317b565b155b1561346c576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016133f7565b50600080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166001600160801b0392909216919091179055612b34565b805b811461171457600080fd5b8035610e24816134b6565b6000602082840312156134e3576134e3600080fd5b60006132a584846134c3565b805b82525050565b60208101610e2482846134ef565b6001600160e01b031981166134b8565b8035610e2481613505565b60006020828403121561353557613535600080fd5b60006132a58484613515565b8015156134f1565b60208101610e248284613541565b60ff81166134f1565b60208101610e248284613557565b60005b83811015613589578181015183820152602001613571565b838111156120ae5750506000910152565b60006135a4825190565b8084526020840193506135bb81856020860161356e565b601f01601f19169290920192915050565b602080825281016125ae818461359a565b60006001600160a01b038216610e24565b6134f1816135dd565b60208101610e2482846135ee565b61ffff81166134f1565b60208101610e248284613605565b6134b8816135dd565b8035610e248161361d565b6000806040838503121561364757613647600080fd5b60006136538585613626565b9250506020613664858286016134c3565b9150509250929050565b60006020828403121561368357613683600080fd5b60006132a58484613626565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156136cb576136cb61368f565b6040525050565b60006136dd60405190565b90506136e982826136a5565b919050565b600067ffffffffffffffff8211156137085761370861368f565b5060209081020190565b6000613725613720846136ee565b6136d2565b8381529050602080820190840283018581111561374457613744600080fd5b835b818110156137665761375887826134c3565b835260209283019201613746565b5050509392505050565b600082601f83011261378457613784600080fd5b81356132a5848260208601613712565b600080604083850312156137aa576137aa600080fd5b60006137b685856134c3565b925050602083013567ffffffffffffffff8111156137d6576137d6600080fd5b61366485828601613770565b6000806000606084860312156137fa576137fa600080fd5b60006138068686613626565b935050602061381786828701613626565b9250506040613828868287016134c3565b9150509250925092565b60008083601f84011261384757613847600080fd5b50813567ffffffffffffffff81111561386257613862600080fd5b60208301915083602082028301111561387d5761387d600080fd5b9250929050565b6000806020838503121561389a5761389a600080fd5b823567ffffffffffffffff8111156138b4576138b4600080fd5b6138c085828601613832565b92509250509250929050565b67ffffffffffffffff81166134f1565b60208101610e2482846138cc565b8015156134b8565b8035610e24816138ea565b6000806040838503121561391357613913600080fd5b600061391f8585613626565b9250506020613664858286016138f2565b6040810161393e82856135ee565b6125ae6020830184613605565b68ffffffffffffffffff81166134f1565b60208101610e24828461394b565b600067ffffffffffffffff8211156139845761398461368f565b601f19601f83011660200192915050565b82818337506000910152565b60006139af6137208461396a565b9050828152602081018484840111156139ca576139ca600080fd5b6139d5848285613995565b509392505050565b600082601f8301126139f1576139f1600080fd5b81356132a58482602086016139a1565b60008060008060808587031215613a1a57613a1a600080fd5b6000613a268787613626565b9450506020613a3787828801613626565b9350506040613a48878288016134c3565b925050606085013567ffffffffffffffff811115613a6857613a68600080fd5b613a74878288016139dd565b91505092959194509250565b6bffffffffffffffffffffffff81166134b8565b8035610e2481613a80565b600060208284031215613ab457613ab4600080fd5b60006132a58484613a94565b60008060408385031215613ad657613ad6600080fd5b6000613ae28585613626565b925050602061366485828601613626565b634e487b7160e01b600052602260045260246000fd5b600281046001821680613b1d57607f821691505b60208210811415613b3057613b30613af3565b50919050565b601f8152602081017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815290505b60200190565b60208082528101610e2481613b36565b600f8152602081017f44726177206e6f7420616374697665000000000000000000000000000000000081529050613b64565b60208082528101610e2481613b7a565b634e487b7160e01b600052601160045260246000fd5b60ff8116905060ff8216915060008260ff03821115613bf357613bf3613bbc565b500190565b60128152602081017f44726177206c696d69742072656163686564000000000000000000000000000081529050613b64565b60208082528101610e2481613bf8565b60008219821115613bf357613bf3613bbc565b60208082527f44726177732074616b6520706c616365206f6e636520706572206d696e7574659101908152613b64565b60208082528101610e2481613c4d565b61ffff81169050600061ffff821415613ca857613ca8613bbc565b5060010190565b6000610e2482613cbd565b90565b61ffff1690565b6134f181613caf565b600063ffffffff8216610e24565b6134f181613ccd565b60a08101613cf282886134ef565b613cff60208301876138cc565b613d0c6040830186613cc4565b613d196060830185613cdb565b613d266080830184613cdb565b9695505050505050565b8051610e24816134b6565b600060208284031215613d5057613d50600080fd5b60006132a58484613d30565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152613b64565b60208082528101610e2481613d5c565b60408101613daa82856135ee565b6125ae60208301846135ee565b60408101613daa82856138cc565b602e8152602081017f4465762063616e6e6f74207769746864726177206265666f726520746865206581527f6e64206f66207468652067616d65000000000000000000000000000000000000602082015290505b60400190565b60208082528101610e2481613dc5565b60118152602081017f5769746864726177616c206661696c656400000000000000000000000000000081529050613b64565b60208082528101610e2481613e2f565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613ca857613ca8613bbc565b601c8152602081017f4f6e6c79206f776e65722063616e20746f67676c65207374617475730000000081529050613b64565b60208082528101610e2481613e9b565b60148152602081017f5075626c69632073616c65206e6f74206f70656e00000000000000000000000081529050613b64565b60208082528101610e2481613edd565b6000816000190483118215151615613f3957613f39613bbc565b500290565b60148152602081017f507269636520646f6573206e6f74206d6174636800000000000000000000000081529050613b64565b60208082528101610e2481613f3e565b61ffff8116905061ffff8216915060008261ffff03821115613bf357613bf3613bbc565b60358152602081017f546865726520617265206e6f7420656e6f75676820436f2d426f7473206c656681527f7420746f206d696e74207468617420616d6f756e74000000000000000000000060208201529050613e19565b60208082528101610e2481613fa4565b603b8152602081017f436f2d426f74733a2074686520726571756573746564207175616e746974792081527f6578636565647320746865206d6178696d756d20616c6c6f776564000000000060208201529050613e19565b60208082528101610e248161400c565b601b8152602081017f4f6e6c79206f776e65722063616e20746f67676c6520636f6c6f72000000000081529050613b64565b60208082528101610e2481614074565b60288152602081017f546f67676c696e6720636f6c6f727320696e2074776f20646966666572656e7481527f20636f6c6f72732100000000000000000000000000000000000000000000000060208201529050613e19565b60208082528101610e24816140b6565b601b8152602081017f5075626c69632073616c6520616c72656164792073746172746564000000000081529050613b64565b60208082528101610e248161411e565b60318152602081017f5175616e74697479206578636565647320666f756e6465727320616e6420676981527f7665617761797320616c6c6f77616e636500000000000000000000000000000060208201529050613e19565b60208082528101610e2481614160565b60278152602081017f4552433732313a2055524920717565727920666f72206e6f6e6578697374656e81527f7420746f6b656e0000000000000000000000000000000000000000000000000060208201529050613e19565b60208082528101610e24816141c8565b6080810161423e82876134ef565b61424b6020830186613557565b6142586040830185613541565b6142656060830184613541565b95945050505050565b600061427c6137208461396a565b90508281526020810184848401111561429757614297600080fd5b6139d584828561356e565b600082601f8301126142b6576142b6600080fd5b81516132a584826020860161426e565b6000602082840312156142db576142db600080fd5b815167ffffffffffffffff8111156142f5576142f5600080fd5b6132a5848285016142a2565b67ffffffffffffffff81166134b8565b8051610e2481614301565b60006020828403121561433157614331600080fd5b60006132a58484614311565b6000610e24613cba6bffffffffffffffffffffffff841681565b6134f18161433d565b6060810161436e82866135ee565b61437b6020830185614357565b8181036040830152614265818461359a565b8051610e24816138ea565b6000602082840312156143ad576143ad600080fd5b60006132a5848461438d565b6000610e24826135dd565b6134b8816143b9565b8051610e24816143c4565b6000602082840312156143ed576143ed600080fd5b60006132a584846143cd565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529050613e19565b60208082528101610e24816143f9565b60168152602081017f526566756e6420706572696f64206e6f74206f70656e0000000000000000000081529050613b64565b60208082528101610e2481614461565b60168152602081017f436f2d426f747320617265206d696e746564206f75740000000000000000000081529050613b64565b60208082528101610e24816144a3565b60348152602081017f596f752063616e6e6f7420636c61696d206120726566756e6420666f7220612081527f746f6b656e20796f7520646f206e6f74206f776e00000000000000000000000060208201529050613e19565b60208082528101610e24816144e5565b60148152602081017f4e6f20436f2d426f747320746f20726566756e6400000000000000000000000081529050613b64565b60208082528101610e248161454d565b634e487b7160e01b600052601260045260246000fd5b6000826145b4576145b461458f565b500690565b60108152602081017f5472616e73666572206661696c65642e0000000000000000000000000000000081529050613b64565b60208082528101610e24816145b9565b60258152602081017f546f6f206d616e7920436f2d426f747320746f206d696e7420696e206f6e652081527f626174636800000000000000000000000000000000000000000000000000000060208201529050613e19565b60208082528101610e24816145fb565b806134f1565b6000610e248260601b90565b6000610e2482614669565b6134f161468c826135dd565b614675565b61469b8187614663565b6020016146a88186614680565b6014016146b58185614663565b6020016146c28184614663565b6020016146cf8183614663565b60200195945050505050565b61ffff91821691166000826146f2576146f261458f565b500490565b61ffff8116905061ffff8216915060008161ffff0483118215151615613f3957613f39613bbc565b61ffff918216911660008282101561473957614739613bbc565b500390565b6080810161474c82876135ee565b61475960208301866135ee565b61476660408301856134ef565b8181036060830152613d26818461359a565b8051610e2481613505565b60006020828403121561479857614798600080fd5b60006132a5848461477856fea2646970667358221220207036a3e9b7f779c56aea42a7885e6e0b0fec774d033d0eea9ee3edad077c0a64736f6c634300080c0033000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000824d304b7c17ff1e03bea9b0f752ba9a2aff3426000000000000000000000000f57b2c51ded3a29e6891aba85459d600256cf3170000000000000000000000003f65a762f15d01809cdc6b43d8849ff24949c86a000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca9fe0eebf5e446e3c998ec9bb19951541aee00bb90ea201ae456421a2ded86805000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000000007436f2d426f74730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044342545300000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106104845760003560e01c806368d99f7c1161025e578063adb19dc311610143578063c87b56dd116100bb578063e985e9c51161008a578063f54a6f831161006f578063f54a6f8314610cf9578063f73c814b14610d19578063fc749b3c14610d3957600080fd5b8063e985e9c514610cb9578063f2fde38b14610cd957600080fd5b8063c87b56dd14610c43578063cef46f0d14610c63578063cf62c8ab14610c83578063d7822c9914610ca357600080fd5b8063b776c8a611610112578063c074f412116100f7578063c074f41214610bed578063c45ca31014610c0d578063c799451014610c2d57600080fd5b8063b776c8a614610bad578063b88d4fde14610bcd57600080fd5b8063adb19dc314610b33578063b06a01f414610b53578063b4b294d914610b7d578063b585209b14610b9857600080fd5b806395d89b41116101d6578063a3b1763f116101a5578063a8e90b571161018a578063a8e90b5714610ae9578063abb7a28f14610b09578063ac483b9314610b1e57600080fd5b8063a3b1763f14610a80578063a747338314610ac057600080fd5b806395d89b4114610a075780639c51792a14610a1c578063a22cb46514610a32578063a2fb117514610a5257600080fd5b806373cd7d881161022d57806378af6b851161021257806378af6b85146109be5780638c21460b146109d35780638da5cb5b146109e957600080fd5b806373cd7d8814610988578063743521e4146109a857600080fd5b806368d99f7c146108fc578063706da1ca1461092557806370a0823114610953578063715018a61461097357600080fd5b806323b872dd116103845780634f558e79116102fc57806351db2e76116102cb5780635dad667c116102b05780635dad667c1461089c5780636352211e146108bc5780636445b238146108dc57600080fd5b806351db2e76146108695780635a5e5d581461088957600080fd5b80634f558e79146107e95780634f6ccce7146108095780634fb9462a14610829578063511ed3821461084957600080fd5b806330d1bda1116103535780633ccfd60b116103385780633ccfd60b1461079457806342842e0e146107a957806347a3650b146107c957600080fd5b806330d1bda1146107525780633acd6cb21461077f57600080fd5b806323b872dd146106e857806324e9edb0146107085780632f745c591461071d5780632fd573a51461073d57600080fd5b80630bb4d0421161041757806318160ddd116103e65780631e8858fb116103cb5780631e8858fb146106885780631fafadbc146106a85780631fe543e3146106c857600080fd5b806318160ddd146106375780631a6949e31461067357600080fd5b80630bb4d042146105d15780630eecae21146105ec57806312b40a9f1461060157806316d870c21461062157600080fd5b806306fdde031161045357806306fdde0314610538578063081812fc1461055a57806308222d5814610587578063095ea7b3146105af57600080fd5b806301d2a00b1461049057806301ffc9a7146104d357806303e48f661461050057806304035a921461052257600080fd5b3661048b57005b600080fd5b34801561049c57600080fd5b506104bd6104ab3660046134ce565b60216020526000908152604090205481565b6040516104ca91906134f7565b60405180910390f35b3480156104df57600080fd5b506104f36104ee366004613520565b610d59565b6040516104ca9190613549565b34801561050c57600080fd5b50610515603281565b6040516104ca9190613560565b34801561052e57600080fd5b506104bd60145481565b34801561054457600080fd5b5061054d610e2a565b6040516104ca91906135cc565b34801561056657600080fd5b5061057a6105753660046134ce565b610ebc565b6040516104ca91906135f7565b34801561059357600080fd5b506022546105a29061ffff1681565b6040516104ca919061360f565b3480156105bb57600080fd5b506105cf6105ca366004613631565b610f19565b005b3480156105dd57600080fd5b50600a546105a29061ffff1681565b3480156105f857600080fd5b506104bd610fd9565b34801561060d57600080fd5b506105cf61061c36600461366e565b611247565b34801561062d57600080fd5b506104bd600c5481565b34801561064357600080fd5b506104bd6000546001600160801b0370010000000000000000000000000000000082048116918116919091031690565b34801561067f57600080fd5b506104f36112aa565b34801561069457600080fd5b506105cf6106a336600461366e565b6112df565b3480156106b457600080fd5b506105156106c33660046134ce565b611338565b3480156106d457600080fd5b506105cf6106e3366004613794565b61136c565b3480156106f457600080fd5b506105cf6107033660046137e2565b611400565b34801561071457600080fd5b506105cf61140b565b34801561072957600080fd5b506104bd610738366004613631565b6114d3565b34801561074957600080fd5b506104bd603c81565b34801561075e57600080fd5b506104bd61076d36600461366e565b601f6020526000908152604090205481565b34801561078b57600080fd5b50610515601481565b3480156107a057600080fd5b506105cf6115e9565b3480156107b557600080fd5b506105cf6107c43660046137e2565b611717565b3480156107d557600080fd5b506105cf6107e4366004613884565b611732565b3480156107f557600080fd5b506104f36108043660046134ce565b6117a2565b34801561081557600080fd5b506104bd6108243660046134ce565b6117ad565b34801561083557600080fd5b506104f36108443660046134ce565b611871565b34801561085557600080fd5b5060155461057a906001600160a01b031681565b34801561087557600080fd5b506105cf6108843660046134ce565b611881565b6105cf6108973660046134ce565b611954565b3480156108a857600080fd5b506105cf6108b73660046134ce565b611a86565b3480156108c857600080fd5b5061057a6108d73660046134ce565b611bbe565b3480156108e857600080fd5b506104f36108f73660046134ce565b611bd0565b34801561090857600080fd5b506104f3600a546000546001600160801b031661ffff9091161490565b34801561093157600080fd5b50601e546109469067ffffffffffffffff1681565b6040516104ca91906138dc565b34801561095f57600080fd5b506104bd61096e36600461366e565b611be0565b34801561097f57600080fd5b506105cf611c48565b34801561099457600080fd5b50600a546105159062010000900460ff1681565b3480156109b457600080fd5b506104bd600b5481565b3480156109ca57600080fd5b50610515601e81565b3480156109df57600080fd5b506104bd601d5481565b3480156109f557600080fd5b506007546001600160a01b031661057a565b348015610a1357600080fd5b5061054d611c7e565b348015610a2857600080fd5b506104bd60095481565b348015610a3e57600080fd5b506105cf610a4d3660046138fd565b611c8d565b348015610a5e57600080fd5b50610a72610a6d3660046134ce565b611d3f565b6040516104ca929190613930565b348015610a8c57600080fd5b50600a54610ab3906d0100000000000000000000000000900468ffffffffffffffffff1681565b6040516104ca919061395c565b348015610acc57600080fd5b50600a54610ab3906301000000900468ffffffffffffffffff1681565b348015610af557600080fd5b5060165461057a906001600160a01b031681565b348015610b1557600080fd5b50610515605f81565b348015610b2a57600080fd5b506104f3611d75565b348015610b3f57600080fd5b506105cf610b4e366004613884565b611db1565b348015610b5f57600080fd5b50600a54610515906c01000000000000000000000000900460ff1681565b348015610b8957600080fd5b506012546105a29061ffff1681565b348015610ba457600080fd5b506105cf611fd1565b348015610bb957600080fd5b506105cf610bc836600461366e565b612021565b348015610bd957600080fd5b506105cf610be8366004613a01565b61207a565b348015610bf957600080fd5b5060185461057a906001600160a01b031681565b348015610c1957600080fd5b506105cf610c28366004613631565b6120b4565b348015610c3957600080fd5b506104bd600d5481565b348015610c4f57600080fd5b5061054d610c5e3660046134ce565b612148565b348015610c6f57600080fd5b506022546104f39062010000900460ff1681565b348015610c8f57600080fd5b506105cf610c9e366004613a9f565b6122a9565b348015610caf57600080fd5b506104bd60135481565b348015610cc557600080fd5b506104f3610cd4366004613ac0565b6124a4565b348015610ce557600080fd5b506105cf610cf436600461366e565b6125b5565b348015610d0557600080fd5b506105cf610d14366004613884565b61260e565b348015610d2557600080fd5b506105cf610d3436600461366e565b61285c565b348015610d4557600080fd5b506104f3610d543660046134ce565b6128af565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610dbc57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610df057506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610e2457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060018054610e3990613b09565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6590613b09565b8015610eb25780601f10610e8757610100808354040283529160200191610eb2565b820191906000526020600020905b815481529060010190602001808311610e9557829003601f168201915b5050505050905090565b6000610ec7826128bf565b610efd576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610f2482611bbe565b9050806001600160a01b0316836001600160a01b03161415610f72576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610f925750610f9081336124a4565b155b15610fc9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fd48383836128f3565b505050565b6000600260085414156110075760405162461bcd60e51b8152600401610ffe90613b6a565b60405180910390fd5b6002600855611014611d75565b6110305760405162461bcd60e51b8152600401610ffe90613bac565b60225462010000900460ff1661105157600a5462010000900460ff16611079565b600a546110799060ff6c01000000000000000000000000820481169162010000900416613bd2565b60225460ff9190911661ffff909116106110a55760405162461bcd60e51b8152600401610ffe90613c2a565b42603c601d546110b59190613c3a565b1115806110c6575060225461ffff16155b6110e25760405162461bcd60e51b8152600401610ffe90613c7d565b42601d55600a5460225460009162010000900460ff1661ffff9091161061112757600a546d0100000000000000000000000000900468ffffffffffffffffff1661113d565b600a546301000000900468ffffffffffffffffff165b6022805468ffffffffffffffffff92909216925061ffff90911690600061116383613c8d565b825461ffff9182166101009390930a928302919092021990911617905550601a54601c54601e546040517f5d3b1d300000000000000000000000000000000000000000000000000000000081526000936001600160a01b031692635d3b1d30926111e79267ffffffffffffffff909116906005906207a12090600190600401613ce4565b6020604051808303816000875af1158015611206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122a9190613d3b565b600081815260216020526040902092909255509050600160085590565b6007546001600160a01b031633146112715760405162461bcd60e51b8152600401610ffe90613d8c565b601880546001600160a01b0390921673ffffffffffffffffffffffffffffffffffffffff19928316811790915560198054909216179055565b60006013546000141580156112c0575060135442115b80156112da5750600b546013546112d79190613c3a565b42105b905090565b6007546001600160a01b031633146113095760405162461bcd60e51b8152600401610ffe90613d8c565b6016805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600e818154811061134857600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b336001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990916146113f257337f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610ffe929190613d9c565b6113fc828261295c565b5050565b610fd4838383612b3b565b6007546001600160a01b031633146114355760405162461bcd60e51b8152600401610ffe90613d8c565b601a54601e546040517fd7ae1d300000000000000000000000000000000000000000000000000000000081526001600160a01b039092169163d7ae1d309161148e9167ffffffffffffffff909116903390600401613db7565b600060405180830381600087803b1580156114a857600080fd5b505af11580156114bc573d6000803e3d6000fd5b5050601e805467ffffffffffffffff191690555050565b60006114de83611be0565b8210611516576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160801b03169080805b838110156115e357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529061158f57506115db565b80516001600160a01b0316156115a457805192505b876001600160a01b0316836001600160a01b031614156115d957868414156115d257509350610e2492505050565b6001909301925b505b600101611527565b50600080fd5b6007546001600160a01b031633146116135760405162461bcd60e51b8152600401610ffe90613d8c565b60225462010000900460ff1661163457600a5462010000900460ff1661165c565b600a5461165c9060ff6c01000000000000000000000000820481169162010000900416613bd2565b60225461ffff1660ff9190911614806116905750600d54600b546013546116839190613c3a565b61168d9190613c3a565b42115b6116ac5760405162461bcd60e51b8152600401610ffe90613e1f565b604051600090339047908381818185875af1925050503d80600081146116ee576040519150601f19603f3d011682016040523d82523d6000602084013e6116f3565b606091505b50509050806117145760405162461bcd60e51b8152600401610ffe90613e61565b50565b610fd48383836040518060200160405280600081525061207a565b600260085414156117555760405162461bcd60e51b8152600401610ffe90613b6a565b600260085560005b818110156117985761178683838381811061177a5761177a613e71565b90506020020135611881565b8061179081613e87565b91505061175d565b5050600160085550565b6000610e24826128bf565b600080546001600160801b031681805b8281101561183e57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290611835578583141561182e5750949350505050565b6001909201915b506001016117bd565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6010818154811061134857600080fd5b600260085414156118a45760405162461bcd60e51b8152600401610ffe90613b6a565b6002600855336118b382611bbe565b6001600160a01b0316146118d95760405162461bcd60e51b8152600401610ffe90613ecd565b600f81815481106118ec576118ec613e71565b90600052602060002090602091828204019190069054906101000a900460ff1615600f828154811061192057611920613e71565b90600052602060002090602091828204019190066101000a81548160ff021916908315150217905550600160088190555050565b61195c6112aa565b6119785760405162461bcd60e51b8152600401610ffe90613f0f565b6002600854141561199b5760405162461bcd60e51b8152600401610ffe90613b6a565b60026008556009546119ae908290613f1f565b34146119cc5760405162461bcd60e51b8152600401610ffe90613f70565b600a546119de9061ffff166001613f80565b60005461ffff91909116906119fd9083906001600160801b0316613c3a565b10611a1a5760405162461bcd60e51b8152600401610ffe90613ffc565b601481611a2633611be0565b611a309190613c3a565b1115611a4e5760405162461bcd60e51b8152600401610ffe90614064565b611a583382612da3565b611a74600a546000546001600160801b031661ffff9091161490565b15611a7e57426014555b506001600855565b60026008541415611aa95760405162461bcd60e51b8152600401610ffe90613b6a565b600260085533611ab882611bbe565b6001600160a01b031614611ade5760405162461bcd60e51b8152600401610ffe906140a6565b60108181548110611af157611af1613e71565b90600052602060002090602091828204019190069054906101000a900460ff161560108281548110611b2557611b25613e71565b90600052602060002090602091828204019190066101000a81548160ff02191690831515021790555060108181548110611b6157611b61613e71565b90600052602060002090602091828204019190069054906101000a900460ff16611b955760125461ffff1660001901611ba0565b60125461ffff166001015b6012805461ffff191661ffff92909216919091179055611a7e612edc565b6000611bc982612fdf565b5192915050565b6011818154811061134857600080fd5b60006001600160a01b038216611c22576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b6007546001600160a01b03163314611c725760405162461bcd60e51b8152600401610ffe90613d8c565b611c7c600061311c565b565b606060028054610e3990613b09565b6001600160a01b038216331415611cd0576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611d33908590613549565b60405180910390a35050565b60208181548110611d4f57600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b900461ffff1682565b6000611d93600a546000546001600160801b031661ffff9091161490565b80156112da5750600c54601454611daa9190613c3a565b4211905090565b60026008541415611dd45760405162461bcd60e51b8152600401610ffe90613b6a565b60026008556000601083838381611ded57611ded613e71565b9050602002013581548110611e0457611e04613e71565b60009182526020808320908204015460ff601f9092166101000a90041691505b82811015611f945733611e4e858584818110611e4257611e42613e71565b90506020020135611bbe565b6001600160a01b031614611e745760405162461bcd60e51b8152600401610ffe906140a6565b6010848483818110611e8857611e88613e71565b9050602002013581548110611e9f57611e9f613e71565b90600052602060002090602091828204019190069054906101000a900460ff16151582151514611ee15760405162461bcd60e51b8152600401610ffe9061410e565b6010848483818110611ef557611ef5613e71565b9050602002013581548110611f0c57611f0c613e71565b90600052602060002090602091828204019190069054906101000a900460ff16156010858584818110611f4157611f41613e71565b9050602002013581548110611f5857611f58613e71565b90600052602060002090602091828204019190066101000a81548160ff0219169083151502179055508080611f8c90613e87565b915050611e24565b5080611fa95760125461ffff16829003611fb3565b60125461ffff1682015b6012805461ffff191661ffff92909216919091179055611798612edc565b6007546001600160a01b03163314611ffb5760405162461bcd60e51b8152600401610ffe90613d8c565b6013541561201b5760405162461bcd60e51b8152600401610ffe90614150565b42601355565b6007546001600160a01b0316331461204b5760405162461bcd60e51b8152600401610ffe90613d8c565b6015805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b612085848484612b3b565b6120918484848461317b565b6120ae576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6007546001600160a01b031633146120de5760405162461bcd60e51b8152600401610ffe90613d8c565b6000546032906120f7906001600160801b031683613c3a565b11156121155760405162461bcd60e51b8152600401610ffe906141b8565b61211f8282612da3565b61213b600a546000546001600160801b031661ffff9091161490565b156113fc57426014555050565b6060612153826128bf565b61216f5760405162461bcd60e51b8152600401610ffe90614220565b6018546001600160a01b031661219357505060408051602081019091526000815290565b601954600e80546001600160a01b0390921691632da7b4e9918591829081106121be576121be613e71565b90600052602060002090602091828204019190069054906101000a900460ff16600f86815481106121f1576121f1613e71565b90600052602060002090602091828204019190069054906101000a900460ff16156010878154811061222557612225613e71565b90600052602060002090602091828204019190069054906101000a900460ff166040518563ffffffff1660e01b81526004016122649493929190614230565b600060405180830381865afa158015612281573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e2491908101906142c6565b6007546001600160a01b031633146122d35760405162461bcd60e51b8152600401610ffe90613d8c565b601e5467ffffffffffffffff166123fb57601a60009054906101000a90046001600160a01b03166001600160a01b031663a21a23e46040518163ffffffff1660e01b81526004016020604051808303816000875af1158015612339573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061235d919061431c565b601e805467ffffffffffffffff191667ffffffffffffffff929092169182179055601a546040517f7341c10c0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911691637341c10c916123c891903090600401613db7565b600060405180830381600087803b1580156123e257600080fd5b505af11580156123f6573d6000803e3d6000fd5b505050505b601b54601a54601e546040516001600160a01b0393841693634000aea093169185916124349167ffffffffffffffff16906020016138dc565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161246193929190614360565b6020604051808303816000875af1158015612480573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fc9190614398565b6015546040517fc45527910000000000000000000000000000000000000000000000000000000081526000916001600160a01b03169063c4552791906124ee9086906004016135f7565b602060405180830381865afa15801561250b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252f91906143d8565b6001600160a01b0316826001600160a01b0316148061255b57506016546001600160a01b038381169116145b8061257e57506001600160a01b03821660009081526017602052604090205460ff165b806125ae57506001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff165b9392505050565b6007546001600160a01b031633146125df5760405162461bcd60e51b8152600401610ffe90613d8c565b6001600160a01b0381166126055760405162461bcd60e51b8152600401610ffe90614451565b6117148161311c565b600260085414156126315760405162461bcd60e51b8152600401610ffe90613b6a565b6002600855600b546013546126469190613c3a565b4211801561266f5750600d54600b546013546126629190613c3a565b61266c9190613c3a565b42105b61268b5760405162461bcd60e51b8152600401610ffe90614493565b6126a7600a546000546001600160801b031661ffff9091161490565b156126c45760405162461bcd60e51b8152600401610ffe906144d5565b6000805b828110156127c85760008484838181106126e4576126e4613e71565b905060200201359050603260ff168110156126ff57506127b6565b3361270982611bbe565b6001600160a01b03161461272f5760405162461bcd60e51b8152600401610ffe9061453d565b6011818154811061274257612742613e71565b90600052602060002090602091828204019190069054906101000a900460ff166127b4576009546127739084613c3a565b925060016011828154811061278a5761278a613e71565b90600052602060002090602091828204019190066101000a81548160ff0219169083151502179055505b505b806127c081613e87565b9150506126c8565b50600081116127e95760405162461bcd60e51b8152600401610ffe9061457f565b604051600090339083908381818185875af1925050503d806000811461282b576040519150601f19603f3d011682016040523d82523d6000602084013e612830565b606091505b50509050806128515760405162461bcd60e51b8152600401610ffe90613e61565b505060016008555050565b6007546001600160a01b031633146128865760405162461bcd60e51b8152600401610ffe90613d8c565b6001600160a01b03166000908152601760205260409020805460ff19811660ff90911615179055565b600f818154811061134857600080fd5b600080546001600160801b031682108015610e24575050600090815260036020526040902054600160e01b900460ff161590565b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008160008151811061297157612971613e71565b6020908102919091010151600a54909150600090612997906108d79061ffff16846145a5565b90505b6001600160a01b0381166000908152601f60205260409020541515806129ee5750600a54601e906129cf9061ffff16846145a5565b101580156129ee5750600a546032906129ec9061ffff16846145a5565b105b15612a1657600a5460019290921c91612a0f906108d79061ffff16846145a5565b905061299a565b604080518082019091526001600160a01b0382168152600a546020919081830190612a459061ffff16866145a5565b61ffff90811690915282546001810184556000938452602080852084519201805494820151909316600160a01b027fffffffffffffffffffff000000000000000000000000000000000000000000009094166001600160a01b0392831617939093179091558683526021808352604080852054928616808652601f855281862084905589865291909352915160006040518083038185875af1925050503d8060008114612b0e576040519150601f19603f3d011682016040523d82523d6000602084013e612b13565b606091505b5050905080612b345760405162461bcd60e51b8152600401610ffe906145eb565b5050505050565b6000612b4682612fdf565b80519091506000906001600160a01b0316336001600160a01b03161480612b7457508151612b7490336124a4565b80612b8f575033612b8484610ebc565b6001600160a01b0316145b905080612bc8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614612c17576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416612c57576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c6760008484600001516128f3565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612d5c576000546001600160801b0316811015612d5c578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b34565b60208110612dc35760405162461bcd60e51b8152600401610ffe90614653565b60008133344244604051602001612dde959493929190614691565b60405160208183030381529060405280519060200120905060005b82811015612ed15760008054612e199083906001600160801b0316613c3a565b9050828260208110612e2d57612e2d613e71565b1a60f81b60f81c600e8281548110612e4757612e47613e71565b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550600281612e7e91906145a5565b60001460108281548110612e9457612e94613e71565b90600052602060002090602091828204019190066101000a81548160ff021916908315150217905550508080612ec990613e87565b915050612df9565b50610fd483836132ad565b60225462010000900460ff1615612eef57565b600c54601454612eff9190613c3a565b421080612f325750601454158015612f325750600c54600b54601354612f259190613c3a565b612f2f9190613c3a565b42105b8015612fab5750600a54605f90612f4f9060649061ffff166146db565b612f5991906146f7565b60125461ffff9182169116101580612fab5750600a54605f90612f829060649061ffff166146db565b612f8c91906146f7565b600a54612f9d919061ffff1661471f565b60125461ffff918216911611155b15611c7c57602280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000179055565b60408051606081018252600080825260208201819052918101829052905482906001600160801b03168110156130ea57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906130e85780516001600160a01b03161561307e579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156130e3579392505050565b61307e565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156132a1576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906131d890339089908890889060040161473e565b6020604051808303816000875af1925050508015613213575060408051601f3d908101601f1916820190925261321091810190614783565b60015b61326e573d808015613241576040519150601f19603f3d011682016040523d82523d6000602084013e613246565b606091505b508051613266576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b0319167f150b7a02000000000000000000000000000000000000000000000000000000001490506132a5565b5060015b949350505050565b6113fc828260405180602001604052806000815250610fd483838360016000546001600160801b03166001600160a01b038516613316576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8361334d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156134785760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561344e575061344c600088848861317b565b155b1561346c576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016133f7565b50600080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166001600160801b0392909216919091179055612b34565b805b811461171457600080fd5b8035610e24816134b6565b6000602082840312156134e3576134e3600080fd5b60006132a584846134c3565b805b82525050565b60208101610e2482846134ef565b6001600160e01b031981166134b8565b8035610e2481613505565b60006020828403121561353557613535600080fd5b60006132a58484613515565b8015156134f1565b60208101610e248284613541565b60ff81166134f1565b60208101610e248284613557565b60005b83811015613589578181015183820152602001613571565b838111156120ae5750506000910152565b60006135a4825190565b8084526020840193506135bb81856020860161356e565b601f01601f19169290920192915050565b602080825281016125ae818461359a565b60006001600160a01b038216610e24565b6134f1816135dd565b60208101610e2482846135ee565b61ffff81166134f1565b60208101610e248284613605565b6134b8816135dd565b8035610e248161361d565b6000806040838503121561364757613647600080fd5b60006136538585613626565b9250506020613664858286016134c3565b9150509250929050565b60006020828403121561368357613683600080fd5b60006132a58484613626565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156136cb576136cb61368f565b6040525050565b60006136dd60405190565b90506136e982826136a5565b919050565b600067ffffffffffffffff8211156137085761370861368f565b5060209081020190565b6000613725613720846136ee565b6136d2565b8381529050602080820190840283018581111561374457613744600080fd5b835b818110156137665761375887826134c3565b835260209283019201613746565b5050509392505050565b600082601f83011261378457613784600080fd5b81356132a5848260208601613712565b600080604083850312156137aa576137aa600080fd5b60006137b685856134c3565b925050602083013567ffffffffffffffff8111156137d6576137d6600080fd5b61366485828601613770565b6000806000606084860312156137fa576137fa600080fd5b60006138068686613626565b935050602061381786828701613626565b9250506040613828868287016134c3565b9150509250925092565b60008083601f84011261384757613847600080fd5b50813567ffffffffffffffff81111561386257613862600080fd5b60208301915083602082028301111561387d5761387d600080fd5b9250929050565b6000806020838503121561389a5761389a600080fd5b823567ffffffffffffffff8111156138b4576138b4600080fd5b6138c085828601613832565b92509250509250929050565b67ffffffffffffffff81166134f1565b60208101610e2482846138cc565b8015156134b8565b8035610e24816138ea565b6000806040838503121561391357613913600080fd5b600061391f8585613626565b9250506020613664858286016138f2565b6040810161393e82856135ee565b6125ae6020830184613605565b68ffffffffffffffffff81166134f1565b60208101610e24828461394b565b600067ffffffffffffffff8211156139845761398461368f565b601f19601f83011660200192915050565b82818337506000910152565b60006139af6137208461396a565b9050828152602081018484840111156139ca576139ca600080fd5b6139d5848285613995565b509392505050565b600082601f8301126139f1576139f1600080fd5b81356132a58482602086016139a1565b60008060008060808587031215613a1a57613a1a600080fd5b6000613a268787613626565b9450506020613a3787828801613626565b9350506040613a48878288016134c3565b925050606085013567ffffffffffffffff811115613a6857613a68600080fd5b613a74878288016139dd565b91505092959194509250565b6bffffffffffffffffffffffff81166134b8565b8035610e2481613a80565b600060208284031215613ab457613ab4600080fd5b60006132a58484613a94565b60008060408385031215613ad657613ad6600080fd5b6000613ae28585613626565b925050602061366485828601613626565b634e487b7160e01b600052602260045260246000fd5b600281046001821680613b1d57607f821691505b60208210811415613b3057613b30613af3565b50919050565b601f8152602081017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815290505b60200190565b60208082528101610e2481613b36565b600f8152602081017f44726177206e6f7420616374697665000000000000000000000000000000000081529050613b64565b60208082528101610e2481613b7a565b634e487b7160e01b600052601160045260246000fd5b60ff8116905060ff8216915060008260ff03821115613bf357613bf3613bbc565b500190565b60128152602081017f44726177206c696d69742072656163686564000000000000000000000000000081529050613b64565b60208082528101610e2481613bf8565b60008219821115613bf357613bf3613bbc565b60208082527f44726177732074616b6520706c616365206f6e636520706572206d696e7574659101908152613b64565b60208082528101610e2481613c4d565b61ffff81169050600061ffff821415613ca857613ca8613bbc565b5060010190565b6000610e2482613cbd565b90565b61ffff1690565b6134f181613caf565b600063ffffffff8216610e24565b6134f181613ccd565b60a08101613cf282886134ef565b613cff60208301876138cc565b613d0c6040830186613cc4565b613d196060830185613cdb565b613d266080830184613cdb565b9695505050505050565b8051610e24816134b6565b600060208284031215613d5057613d50600080fd5b60006132a58484613d30565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152613b64565b60208082528101610e2481613d5c565b60408101613daa82856135ee565b6125ae60208301846135ee565b60408101613daa82856138cc565b602e8152602081017f4465762063616e6e6f74207769746864726177206265666f726520746865206581527f6e64206f66207468652067616d65000000000000000000000000000000000000602082015290505b60400190565b60208082528101610e2481613dc5565b60118152602081017f5769746864726177616c206661696c656400000000000000000000000000000081529050613b64565b60208082528101610e2481613e2f565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613ca857613ca8613bbc565b601c8152602081017f4f6e6c79206f776e65722063616e20746f67676c65207374617475730000000081529050613b64565b60208082528101610e2481613e9b565b60148152602081017f5075626c69632073616c65206e6f74206f70656e00000000000000000000000081529050613b64565b60208082528101610e2481613edd565b6000816000190483118215151615613f3957613f39613bbc565b500290565b60148152602081017f507269636520646f6573206e6f74206d6174636800000000000000000000000081529050613b64565b60208082528101610e2481613f3e565b61ffff8116905061ffff8216915060008261ffff03821115613bf357613bf3613bbc565b60358152602081017f546865726520617265206e6f7420656e6f75676820436f2d426f7473206c656681527f7420746f206d696e74207468617420616d6f756e74000000000000000000000060208201529050613e19565b60208082528101610e2481613fa4565b603b8152602081017f436f2d426f74733a2074686520726571756573746564207175616e746974792081527f6578636565647320746865206d6178696d756d20616c6c6f776564000000000060208201529050613e19565b60208082528101610e248161400c565b601b8152602081017f4f6e6c79206f776e65722063616e20746f67676c6520636f6c6f72000000000081529050613b64565b60208082528101610e2481614074565b60288152602081017f546f67676c696e6720636f6c6f727320696e2074776f20646966666572656e7481527f20636f6c6f72732100000000000000000000000000000000000000000000000060208201529050613e19565b60208082528101610e24816140b6565b601b8152602081017f5075626c69632073616c6520616c72656164792073746172746564000000000081529050613b64565b60208082528101610e248161411e565b60318152602081017f5175616e74697479206578636565647320666f756e6465727320616e6420676981527f7665617761797320616c6c6f77616e636500000000000000000000000000000060208201529050613e19565b60208082528101610e2481614160565b60278152602081017f4552433732313a2055524920717565727920666f72206e6f6e6578697374656e81527f7420746f6b656e0000000000000000000000000000000000000000000000000060208201529050613e19565b60208082528101610e24816141c8565b6080810161423e82876134ef565b61424b6020830186613557565b6142586040830185613541565b6142656060830184613541565b95945050505050565b600061427c6137208461396a565b90508281526020810184848401111561429757614297600080fd5b6139d584828561356e565b600082601f8301126142b6576142b6600080fd5b81516132a584826020860161426e565b6000602082840312156142db576142db600080fd5b815167ffffffffffffffff8111156142f5576142f5600080fd5b6132a5848285016142a2565b67ffffffffffffffff81166134b8565b8051610e2481614301565b60006020828403121561433157614331600080fd5b60006132a58484614311565b6000610e24613cba6bffffffffffffffffffffffff841681565b6134f18161433d565b6060810161436e82866135ee565b61437b6020830185614357565b8181036040830152614265818461359a565b8051610e24816138ea565b6000602082840312156143ad576143ad600080fd5b60006132a5848461438d565b6000610e24826135dd565b6134b8816143b9565b8051610e24816143c4565b6000602082840312156143ed576143ed600080fd5b60006132a584846143cd565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529050613e19565b60208082528101610e24816143f9565b60168152602081017f526566756e6420706572696f64206e6f74206f70656e0000000000000000000081529050613b64565b60208082528101610e2481614461565b60168152602081017f436f2d426f747320617265206d696e746564206f75740000000000000000000081529050613b64565b60208082528101610e24816144a3565b60348152602081017f596f752063616e6e6f7420636c61696d206120726566756e6420666f7220612081527f746f6b656e20796f7520646f206e6f74206f776e00000000000000000000000060208201529050613e19565b60208082528101610e24816144e5565b60148152602081017f4e6f20436f2d426f747320746f20726566756e6400000000000000000000000081529050613b64565b60208082528101610e248161454d565b634e487b7160e01b600052601260045260246000fd5b6000826145b4576145b461458f565b500690565b60108152602081017f5472616e73666572206661696c65642e0000000000000000000000000000000081529050613b64565b60208082528101610e24816145b9565b60258152602081017f546f6f206d616e7920436f2d426f747320746f206d696e7420696e206f6e652081527f626174636800000000000000000000000000000000000000000000000000000060208201529050613e19565b60208082528101610e24816145fb565b806134f1565b6000610e248260601b90565b6000610e2482614669565b6134f161468c826135dd565b614675565b61469b8187614663565b6020016146a88186614680565b6014016146b58185614663565b6020016146c28184614663565b6020016146cf8183614663565b60200195945050505050565b61ffff91821691166000826146f2576146f261458f565b500490565b61ffff8116905061ffff8216915060008161ffff0483118215151615613f3957613f39613bbc565b61ffff918216911660008282101561473957614739613bbc565b500390565b6080810161474c82876135ee565b61475960208301866135ee565b61476660408301856134ef565b8181036060830152613d26818461359a565b8051610e2481613505565b60006020828403121561479857614798600080fd5b60006132a5848461477856fea2646970667358221220207036a3e9b7f779c56aea42a7885e6e0b0fec774d033d0eea9ee3edad077c0a64736f6c634300080c0033

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

000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000824d304b7c17ff1e03bea9b0f752ba9a2aff3426000000000000000000000000f57b2c51ded3a29e6891aba85459d600256cf3170000000000000000000000003f65a762f15d01809cdc6b43d8849ff24949c86a000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca9fe0eebf5e446e3c998ec9bb19951541aee00bb90ea201ae456421a2ded86805000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000000007436f2d426f74730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044342545300000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Co-Bots
Arg [1] : symbol_ (string): CBTS
Arg [2] : _rendererAddress (address): 0x824d304b7C17FF1E03bEA9b0f752BA9A2aff3426
Arg [3] : _opensea (address): 0xF57B2c51dED3A29e6891aba85459d600256Cf317
Arg [4] : _looksrare (address): 0x3f65A762F15D01809cDC6B43d8849fF24949c86a
Arg [5] : vrfCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [6] : link (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [7] : keyHash (bytes32): 0x9fe0eebf5e446e3c998ec9bb19951541aee00bb90ea201ae456421a2ded86805
Arg [8] : parameters (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [2] : 000000000000000000000000824d304b7c17ff1e03bea9b0f752ba9a2aff3426
Arg [3] : 000000000000000000000000f57b2c51ded3a29e6891aba85459d600256cf317
Arg [4] : 0000000000000000000000003f65a762f15d01809cdc6b43d8849ff24949c86a
Arg [5] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [6] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [7] : 9fe0eebf5e446e3c998ec9bb19951541aee00bb90ea201ae456421a2ded86805
Arg [8] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [9] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [11] : 0000000000000000000000000000000000000000000000000000000000015180
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [13] : 436f2d426f747300000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [15] : 4342545300000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.