ETH Price: $3,921.21 (+0.98%)

Token

Pxlbots (PXLBOT)
 

Overview

Max Total Supply

1,500 PXLBOT

Holders

141

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 PXLBOT
0xC6193B99c65E785ccA8132d7Ca059205b17E7102
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:
PxlbotCollectible

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 4000000 runs

Other Settings:
default evmVersion
File 1 of 27 : PxlbotCollectible.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol';
//https://medium.com/@ItsCuzzo/using-merkle-trees-for-nft-whitelists-523b58ada3f9
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import 'erc721a/contracts/extensions/ERC721AQueryable.sol';
import './IPxlbot.sol';
import '../utils/Controllable.sol';
import '../utils/Payable.sol';

contract PxlbotCollectible is
  Pausable,
  ERC721AQueryable,
  Controllable,
  Payable
{
  using Strings for uint256;

  struct MintBatch {
    string name;
    uint256 price;
    uint16 max_tokens;
    uint8 faction_id;
    uint16 token_start;
  }

  mapping(uint8 => MintBatch) public batches;
  uint8 public current_batch = 0;
  uint256 public curr_token_price;
  uint16 public curr_batch_total;
  uint16 public curr_batch_max;
  string public curr_batch_name;
  uint8 public curr_batch_faction_id;
  //need to link tokens to batches for URI purposes
  mapping(uint8 => uint16) public faction_start;
  mapping(uint8 => uint16) public faction_end;
  //have to use this since we reveal in stages (batches)
  mapping(uint8 => string) batch_uris;
  mapping(uint8 => uint256) public batch_token_start;
  mapping(uint8 => uint256) public batch_token_end;

  //these will need to be reset by batch (if needed)
  mapping(uint8 => bool) public mint_list_enabled;
  mapping(uint8 => bytes32) merkle_roots;
  mapping(uint8 => uint8) public mint_list_limit;
  uint16 public limit_per_txn = 10;

  //how many tokens each addr has minted per batch (for mint list only)
  mapping(address => mapping(uint8 => uint256)) public mint_list_claimed;

  string[7] public factionNames = [
    'Terra',
    'Botborn',
    'Exterminators',
    'OVNI',
    'Veblen',
    'The BE',
    'The Uploaded'
  ];

  constructor() ERC721A('Pxlbots', 'PXLBOT') {
    faction_start[0] = uint16(_startTokenId());
    faction_end[0] = 3999;
    faction_start[1] = 4000;
    faction_end[1] = 6499;
    faction_start[2] = 6500;
    faction_end[2] = 7999;
    faction_start[3] = 8000;
    faction_end[3] = 8999;
    faction_start[4] = 900;
    faction_end[4] = 9499;
    faction_start[5] = 9500;
    faction_end[5] = 9999;

    batch_token_start[0] = uint16(_startTokenId());
    batch_token_end[0] = 1499;
    batch_token_start[1] = 1500;
    batch_token_end[1] = 3999;
    batch_token_start[2] = 4000;
    batch_token_end[2] = 6499;
    batch_token_start[3] = 6500;
    batch_token_end[3] = 7999;
    batch_token_start[4] = 8000;
    batch_token_end[4] = 8999;
    batch_token_start[5] = 9000;
    batch_token_end[5] = 9499;
    batch_token_start[6] = 9500;
    batch_token_end[6] = 9999;
  }

  function setBatch(
    uint8 index,
    string memory _name,
    uint256 _price,
    uint16 _token_start,
    uint16 _max_tokens,
    uint8 _faction_id
  ) external onlyController {
    MintBatch storage batch = batches[index];
    batch.name = _name;
    batch.price = _price;
    batch.max_tokens = _max_tokens;
    batch.faction_id = _faction_id;
    batch_token_start[index] = _token_start;
    //we subtract 1 since we started at 0
    batch_token_end[index] = _token_start + _max_tokens - 1;
  }

  function setBatchURI(uint8 batch_index, string memory _uri) external onlyController {
    batch_uris[batch_index] = _uri;
  }

  function setMerkleRoot(uint8 batch_id, bytes32 root) external onlyController {
    merkle_roots[batch_id] = root;
  }

  function setMintListLimit(uint8 batch_id, uint8 limit) external onlyController {
    mint_list_limit[batch_id] = limit;
  }

  function setLimitPerTxn(uint16 limit) external onlyController {
    limit_per_txn = limit;
  }

  function enableMintList(uint8 batch_id, bool _enabled) external onlyController {
    mint_list_enabled[batch_id] = _enabled;
  }

  function onMintList(uint8 batch_id, address addr, bytes32[] calldata proof) public view returns (bool) {
    return MerkleProof.verify(proof, merkle_roots[batch_id], keccak256((abi.encodePacked(addr))));
  }

  function setCurrentBatch(uint8 _index, bool reset) external onlyController {
    current_batch = _index;
    MintBatch storage batch = batches[current_batch];
    if (reset) {
      curr_batch_total = 0;
      curr_batch_max = batch.max_tokens;
      curr_token_price = batch.price;
      curr_batch_name = batch.name;
      curr_batch_faction_id = batch.faction_id;
    }
  }

  function mint(uint256 amount, address to) external payable whenNotPaused {
    require(
      curr_batch_max >= curr_batch_total + amount,
      'No more tokens allowed for this batch'
    );
    require(
      curr_token_price == 0 || msg.value >= curr_token_price,
      'Insufficient value sent'
    );
    require(!mint_list_enabled[current_batch], 'Unable to mint; please verify mint list status or try again later.');
    _mint(amount, to);
  }

  function mintFromList(bytes32[] calldata proof, uint256 amount, address to) external payable whenNotPaused {
    require(mint_list_enabled[current_batch], "Mint list disabled, please use normal mint function.");
    require(this.onMintList(current_batch, to, proof), 'Unable to mint; not on the mint list.');
    require(mint_list_claimed[to][current_batch] + amount <= mint_list_limit[current_batch], "Amount exceeds allowed tokens per wallet.");
    _mint(amount, to);
    mint_list_claimed[to][current_batch] += amount;
  }

  function _mint(uint256 amount, address to) internal {
    require(amount <= limit_per_txn, "Amount exceeds limit per transaction.");
    _safeMint(to, amount);
    curr_batch_total++;
  }

  function _startTokenId() internal pure override returns (uint256) {
    return 0;
  }

  /** ADMIN */

  function tokenURI(uint256 tokenId)
    public
    view
    override(ERC721A)
    returns (string memory)
  {
    uint8 batch_index = 0;
    if (tokenId >= batch_token_start[1] && tokenId <= batch_token_end[1]) {
      batch_index = 1;
    }
    if (tokenId >= batch_token_start[2] && tokenId <= batch_token_end[2]) {
      batch_index = 2;
    }
    if (tokenId >= batch_token_start[3] && tokenId <= batch_token_end[3]) {
      batch_index = 3;
    }
    if (tokenId >= batch_token_start[4] && tokenId <= batch_token_end[4]) {
      batch_index = 4;
    }
    if (tokenId >= batch_token_start[5] && tokenId <= batch_token_end[5]) {
      batch_index = 5;
    }
    if (tokenId >= batch_token_start[6] && tokenId <= batch_token_end[6]) {
      batch_index = 6;
    }
    return
      string(abi.encodePacked(baseURI,batch_uris[batch_index],tokenId.toString()));
  }

  string baseURI;

  function setBaseURI(string memory _base) external onlyController {
    baseURI = _base;
  }

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

  // //todo: write test
  // function getFactionNames() external view returns (string[7] memory) {
  //   return factionNames;
  // }

  function factionForToken(uint256 tokenId) internal view returns (uint8) {
    if (tokenId >= faction_start[1] && tokenId < faction_end[1]) {
      return 1;
    }
    if (tokenId >= faction_start[2] && tokenId < faction_end[2]) {
      return 2;
    }
    if (tokenId >= faction_start[3] && tokenId < faction_end[3]) {
      return 3;
    }
    if (tokenId >= faction_start[4] && tokenId < faction_end[4]) {
      return 4;
    }
    if (tokenId >= faction_start[5] && tokenId < faction_end[5]) {
      return 5;
    }
    return 0;
  }

  // function setFactionStartEnd(uint8 faction_id, uint16 start, uint16 end) external onlyController {
  //   faction_start[faction_id] = start;
  //   faction_end[faction_id] = end;
  // }

  // function factionForId(uint256 tokenId) internal view returns (uint8) {
  //   return factions[tokenId];
  // }

  /** pausable */
  function pause() external onlyController {
    require(!paused(), 'Contract is already paused.');
    _pause();
  }
  function unpause() external onlyController {
    require(paused(), 'Contract is already unpaused.');
    _unpause();
  }
}

File 2 of 27 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

File 3 of 27 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

File 4 of 27 : 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 5 of 27 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721A Queryable
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _currentIndex) {
            return ownership;
        }
        ownership = _ownerships[tokenId];
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _currentIndex;
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, _currentIndex)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 6 of 27 : IPxlbot.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import 'erc721a/contracts/interfaces/IERC721AQueryable.sol';
import '../gameplay/coordinators/InventoryCoordinator/IInventoryEntityContract.sol';
import '../gameplay/coordinators/AttributeCoordinator/IAttributeCoordinator.sol';
import './IERC721APlayable.sol';

interface IPxlbot is
  IInventoryEntityContract,
  IAttributeCoordinator,
  IERC721AQueryable,
  IERC721APlayable
{
  function mint(uint256 amount, address to) external payable;

  function mintScion(
    address to,
    uint256 parent_id,
    string[] memory attrsIds,
    uint32[] memory attrsVals
  ) external payable;
}

File 7 of 27 : Controllable.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/access/Ownable.sol';

abstract contract Controllable is Ownable {
  mapping(address => bool) private _controllers;
  /**
   * @dev Initializes the contract setting the deployer as a controller.
   */
  constructor() {
    _addController(_msgSender());
  }

  modifier mutualControllersOnly(address _caller) {
    Controllable caller = Controllable(_caller);
    require(_controllers[_caller] && caller.isController(address(this)), 'Controllable: not mutual controllers');
    _;
  }

  /**
   * @dev Returns true if the address is a controller.
   */
  function isController(address controller) public view virtual returns (bool) {
    return _controllers[controller];
  }

  /**
   * @dev Throws if called by any account that isn't a controller
   */
  modifier onlyController() {
    require(_controllers[_msgSender()], "Controllable: not controller");
    _;
  }

  modifier nonZero(address a) {
    require(a != address(0), "Controllable: input is zero address");
    _;
  }

  /**
   * @dev Adds a new controller.
   * Can only be called by the current owner.
   */
  function addController(address c) public virtual onlyOwner nonZero(c) {
     _addController(c);
  }

  /**
   * @dev Adds a new controller.
   * Internal function without access restriction.
   */
  function _addController(address newController) internal virtual {
    _controllers[newController] = true;
  }

    /**
   * @dev Removes a controller.
   * Can only be called by the current owner.
   */
  function removeController(address c) public virtual onlyOwner nonZero(c) {
     _removeController(c);
  }
  
  /**
   * @dev Removes a controller.
   * Internal function without access restriction.
   */
  function _removeController(address controller) internal virtual {
    delete _controllers[controller];
  }
}

File 8 of 27 : Payable.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';

abstract contract Payable is Ownable {
  /**
   * @dev Sends entire balance to contract owner.
   */
  function withdrawAll() external {
    payable(owner()).transfer(address(this).balance);
  }

    /**
   * @dev Sends entire balance of a given ERC20 token to contract owner.
   */
  function withdrawAllERC20(IERC20 _erc20Token) external virtual {
    _erc20Token.transfer(owner(), _erc20Token.balanceOf(address(this)));
  }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

File 10 of 27 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 11 of 27 : 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 12 of 27 : 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 13 of 27 : 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 14 of 27 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 27 : 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 16 of 27 : 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 27 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 18 of 27 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of an ERC721AQueryable compliant contract.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 19 of 27 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.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';

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        unchecked {
            if (_startTokenId() <= curr) 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) if(!isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    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 {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

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

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

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

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

    /**
     * @dev 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) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

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

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

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

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = prevOwnership.addr;

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

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

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

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

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

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

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

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

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

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

File 20 of 27 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A is IERC721, IERC721Metadata {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

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

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

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     * 
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);
}

File 21 of 27 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../extensions/IERC721AQueryable.sol';

File 22 of 27 : IInventoryEntityContract.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

//defines an "Entity" that can hold an item in inventory (e.g. a pxlbot; consisting of pxlbot contract address and a token ID)
interface IInventoryEntityContract {
  // Base id is determined by the contract. Examples might be tokenId in an ERC721 or simply putting 1 for ERC20
  function irlOwner(uint256 _baseId) external returns (address);
}

File 23 of 27 : IAttributeCoordinator.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

interface IAttributeCoordinator {
    function attributeValues(uint256 botId, string[] memory attrIds) external returns(uint32[] memory);
    function setAttributeValues(uint256 botId, string[] memory attrIds, uint32[] memory values) external;
    function totalPossible() external returns(uint32);
    function getAttrIds() external returns (string[] memory);
}

File 24 of 27 : IERC721APlayable.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import 'erc721a/contracts/interfaces/IERC721AQueryable.sol';
import '../gameplay/coordinators/GameplayCoordinator/IGameplayCoordinator.sol';

interface IERC721APlayable is IERC721AQueryable {
    function addTokenToGameplay(uint256 id) external;
    function removeTokenFromGameplay(uint256 id) external;
    function isTokenInPlay(uint256 tokenId) external view returns(bool);
    function setGameplayCoordinator(IGameplayCoordinator c) external;
}

File 25 of 27 : IGameplayCoordinator.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

interface IGameplayCoordinator {
    function isBotBusy(uint256 id) external returns(bool);
    function makeBotBusy(uint256 botId) external;
    function makeBotUnbusy(uint256 botId) external;
    function isBotInGame(uint256 botId) external returns(bool);
}

File 26 of 27 : 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 27 of 27 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"c","type":"address"}],"name":"addController","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"batch_token_end","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"batch_token_start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"batches","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint16","name":"max_tokens","type":"uint16"},{"internalType":"uint8","name":"faction_id","type":"uint8"},{"internalType":"uint16","name":"token_start","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curr_batch_faction_id","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curr_batch_max","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curr_batch_name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curr_batch_total","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curr_token_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"current_batch","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"batch_id","type":"uint8"},{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"enableMintList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"factionNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"faction_end","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"faction_start","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"isController","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limit_per_txn","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintFromList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"mint_list_claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"mint_list_enabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"mint_list_limit","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"batch_id","type":"uint8"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"onMintList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"c","type":"address"}],"name":"removeController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_base","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"index","type":"uint8"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint16","name":"_token_start","type":"uint16"},{"internalType":"uint16","name":"_max_tokens","type":"uint16"},{"internalType":"uint8","name":"_faction_id","type":"uint8"}],"name":"setBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"batch_index","type":"uint8"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setBatchURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_index","type":"uint8"},{"internalType":"bool","name":"reset","type":"bool"}],"name":"setCurrentBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"limit","type":"uint16"}],"name":"setLimitPerTxn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"batch_id","type":"uint8"},{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"batch_id","type":"uint8"},{"internalType":"uint8","name":"limit","type":"uint8"}],"name":"setMintListLimit","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":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_erc20Token","type":"address"}],"name":"withdrawAllERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600c805460ff191681556019805461ffff1916600a179055600561016090815264546572726160d81b61018052608090815260076101a0818152662137ba3137b93760c91b6101c05260a052600d6101e09081526c45787465726d696e61746f727360981b6102005260c0526004610220908152634f564e4960e01b6102405260e0526006610260818152652b32b13632b760d11b61028052610100526102a09081526554686520424560d01b6102c052610120526103206040526102e09283526b151a1948155c1b1bd859195960a21b6103005261014092909252620000ea91601b91906200062e565b50348015620000f857600080fd5b50604080518082018252600781526650786c626f747360c81b6020808301918252835180850190945260068452651416131093d560d21b908401526000805460ff191690558151919291620001509160039162000685565b5080516200016690600490602084019062000685565b50506000600155506200017933620005dc565b620001a2336001600160a01b03166000908152600a60205260409020805460ff19166001179055565b60007f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b7805461ffff9290921661ffff199283161790557f7e7fa33969761a458e04f477e039a608702b4f924981d6653935a8319a08ad7b80548216610f9f1790557f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b55280548216610fa01790557f71a67924699a20698523213e55fe499d539379d7769cd5567e2c45d583f815a3805482166119631790557f08037d7b151cc412d25674a4e66b334d9ae9d2e5517a7feaae5cdb828bf1c628805482166119641790557f8e1fee8c88a9e04123b21e90cae2727a7715bf522a1e46eb5934ccd05203a6b280548216611f3f1790557f9bfbaa59f8e10e7868f8b402de9d605a390c45ddaebd8c9de3c6f31e733c87ff80548216611f401790557f0f36ad39aee03e7108cc48f54934702a5f0d4066f10344cebf8198978d86976a805482166123271790557f251164fe1d8864fe5e86082eae9c288bc2b58695a4d28538dfe86e9e4f175585805482166103841790557fb4fcd034df3d20faa1c133b66d862ce92732727d40916b48ffb4020cb00fe0538054821661251b17905560056000527fc550213cee30afd5e67ccba7be3d381bbc169034ae08eb3ec9168caca9fe55e78054821661251c17905560126020527f45429b9195d4ec5c0cf6c69e9c21a4ca0ea773b702c2de5735f85d2631f26746805490911661270f179055620003c5600090565b61ffff167f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99c556105db7fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed556105dc7fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c55610f9f7f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d55610fa07fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a556119637f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b556119647f63d87a887046e0430be80fdeb014107d7198c879cbf2cddf39a6df195c86cb3855611f3f7fb3a65e8276bd33b3e4f7d6081ebd9899187264822358758dca2e2bc37b2a9c2755611f407f52102136546d97ed3f65ec1070a32935d3048ea12f310d29c378dc9d6555c0d6556123277f8191f4eb6b8bafbfe9a5389c8d07d7f5fd81137a7ee653fc4358269845ee1d2e556123287f116126bec5aaa49b347e966c49378cf0c441de9121e306ea3d824584a9615aa25561251b7fbab719002e4be320868650dc7456e9a1d245e4d5dd64765588e2f21529d871d355600660005261251c7fe1f6b6a5fb7e47dad87547d4b0671e7e995a1dae22fbe5b3b5d10e2a77ed7aff55601560205261270f7f25847c9ccf691da811a9f934d6b3b92e6062ef92feb71bf4cb08cbb4fad8d65255620007c7565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b826007810192821562000673579160200282015b828111156200067357825180516200066291849160209091019062000685565b509160200191906001019062000642565b506200068192915062000710565b5090565b82805462000693906200078a565b90600052602060002090601f016020900481019282620006b7576000855562000702565b82601f10620006d257805160ff191683800117855562000702565b8280016001018555821562000702579182015b8281111562000702578251825591602001919060010190620006e5565b506200068192915062000731565b808211156200068157600062000727828262000748565b5060010162000710565b5b8082111562000681576000815560010162000732565b50805462000756906200078a565b6000825580601f1062000767575050565b601f01602090049060005260206000209081019062000787919062000731565b50565b600181811c908216806200079f57607f821691505b60208210811415620007c157634e487b7160e01b600052602260045260246000fd5b50919050565b614e1880620007d76000396000f3fe60806040526004361061036b5760003560e01c80638456cb59116101c6578063b429afeb116100f7578063dc1ee34a11610095578063eb69da041161006f578063eb69da0414610af7578063f23180f414610b17578063f2fde38b14610b2a578063f6a74ed714610b4a57600080fd5b8063dc1ee34a14610a67578063de97a94914610a81578063e985e9c514610aa157600080fd5b8063c3c2ed1d116100d1578063c3c2ed1d146109eb578063c87b56dd14610a0b578063cc4a16f714610a2b578063dbb676a514610a4657600080fd5b8063b429afeb14610958578063b88d4fde1461099e578063c23dc68f146109be57600080fd5b806394bf804d1161016457806399a2557a1161013e57806399a2557a146108d8578063a22cb465146108f8578063a2a6991014610918578063a7fc7a071461093857600080fd5b806394bf804d1461089657806395d89b41146108a9578063987c6929146108be57600080fd5b8063857abbd4116101a0578063857abbd4146108165780638da5cb5b146108365780638ee547e114610861578063945d856a1461088157600080fd5b80638456cb59146107bf5780638462151c146107d4578063853828b61461080157600080fd5b80633f4ba83a116102a05780635c975abb1161023e5780636633802a116102185780636633802a1461073957806370a082311461076a578063715018a61461078a5780637fbba19d1461079f57600080fd5b80635c975abb146106d15780636352211e146106e95780636360a8df1461070957600080fd5b8063533999f81161027a578063533999f81461063357806354d77e0e1461066457806355f804b3146106845780635bbb2177146106a457600080fd5b80633f4ba83a146105bc57806342842e0e146105d15780635332d374146105f157600080fd5b806318160ddd1161030d57806323b872dd116102e757806323b872dd146105345780632fa8fe921461055457806332767f7d1461057457806339710db6146105a157600080fd5b806318160ddd146104b657806318eb2db2146104cf5780631d2fa1e9146104fc57600080fd5b806306fdde031161034957806306fdde031461040d578063081812fc1461042f578063095ea7b31461047457806309f12fa21461049657600080fd5b806301ffc9a714610370578063063b6005146103a5578063064dddea146103e9575b600080fd5b34801561037c57600080fd5b5061039061038b366004614565565b610b6a565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103d66103c036600461463e565b60126020526000908152604090205461ffff1681565b60405161ffff909116815260200161039c565b3480156103f557600080fd5b506103ff600d5481565b60405190815260200161039c565b34801561041957600080fd5b50610422610c4f565b60405161039c9190614a1d565b34801561043b57600080fd5b5061044f61044a3660046145ea565b610ce1565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161039c565b34801561048057600080fd5b5061049461048f3660046143b1565b610d4b565b005b3480156104a257600080fd5b506104946104b13660046146b9565b610e55565b3480156104c257600080fd5b50600254600154036103ff565b3480156104db57600080fd5b506103ff6104ea36600461463e565b60156020526000908152604090205481565b34801561050857600080fd5b506103ff610517366004614410565b601a60209081526000928352604080842090915290825290205481565b34801561054057600080fd5b5061049461054f3660046142c7565b610f16565b34801561056057600080fd5b5061049461056f36600461473b565b610f21565b34801561058057600080fd5b506103ff61058f36600461463e565b60146020526000908152604090205481565b3480156105ad57600080fd5b50600e546103d69061ffff1681565b3480156105c857600080fd5b5061049461105e565b3480156105dd57600080fd5b506104946105ec3660046142c7565b61114d565b3480156105fd57600080fd5b5061062161060c36600461463e565b60186020526000908152604090205460ff1681565b60405160ff909116815260200161039c565b34801561063f57600080fd5b506103d661064e36600461463e565b60116020526000908152604090205461ffff1681565b34801561067057600080fd5b5061049461067f3660046146d4565b611168565b34801561069057600080fd5b5061049461069f36600461459d565b6111f7565b3480156106b057600080fd5b506106c46106bf3660046144a1565b611287565b60405161039c919061496d565b3480156106dd57600080fd5b5060005460ff16610390565b3480156106f557600080fd5b5061044f6107043660046145ea565b6113e1565b34801561071557600080fd5b5061039061072436600461463e565b60166020526000908152604090205460ff1681565b34801561074557600080fd5b5061075961075436600461463e565b6113f3565b60405161039c959493929190614a30565b34801561077657600080fd5b506103ff610785366004614273565b6114b6565b34801561079657600080fd5b50610494611538565b3480156107ab57600080fd5b506104946107ba3660046146b9565b6115c3565b3480156107cb57600080fd5b50610494611744565b3480156107e057600080fd5b506107f46107ef366004614273565b611832565b60405161039c91906149e5565b34801561080d57600080fd5b50610494611a25565b34801561082257600080fd5b50610494610831366004614273565b611a6e565b34801561084257600080fd5b5060095473ffffffffffffffffffffffffffffffffffffffff1661044f565b34801561086d57600080fd5b5061042261087c3660046145ea565b611be9565b34801561088d57600080fd5b50610422611c89565b6104946108a436600461461a565b611c96565b3480156108b557600080fd5b50610422611efc565b3480156108ca57600080fd5b506010546106219060ff1681565b3480156108e457600080fd5b506107f46108f33660046143dc565b611f0b565b34801561090457600080fd5b50610494610913366004614384565b61218c565b34801561092457600080fd5b506104946109333660046146ef565b612273565b34801561094457600080fd5b50610494610953366004614273565b61230f565b34801561096457600080fd5b50610390610973366004614273565b73ffffffffffffffffffffffffffffffffffffffff166000908152600a602052604090205460ff1690565b3480156109aa57600080fd5b506104946109b9366004614307565b612487565b3480156109ca57600080fd5b506109de6109d93660046145ea565b6124f7565b60405161039c9190614a70565b3480156109f757600080fd5b50610494610a063660046147c1565b6125dd565b348015610a1757600080fd5b50610422610a263660046145ea565b612696565b348015610a3757600080fd5b506019546103d69061ffff1681565b348015610a5257600080fd5b50600e546103d69062010000900461ffff1681565b348015610a7357600080fd5b50600c546106219060ff1681565b348015610a8d57600080fd5b50610390610a9c366004614658565b61297d565b348015610aad57600080fd5b50610390610abc36600461428f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610b0357600080fd5b50610494610b123660046145d0565b612a29565b610494610b25366004614444565b612ad7565b348015610b3657600080fd5b50610494610b45366004614273565b612e45565b348015610b5657600080fd5b50610494610b65366004614273565b612f72565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610bfd57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c4957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060038054610c5e90614c34565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8a90614c34565b8015610cd75780601f10610cac57610100808354040283529160200191610cd7565b820191906000526020600020905b815481529060010190602001808311610cba57829003601f168201915b5050505050905090565b6000610cec826130e7565b610d22576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d56826113e1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dbe576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff821614610e455773ffffffffffffffffffffffffffffffffffffffff8116600090815260086020908152604080832033845290915290205460ff16610e45576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e5083838361312c565b505050565b336000908152600a602052604090205460ff16610ed3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c65720000000060448201526064015b60405180910390fd5b60ff91909116600090815260166020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b610e508383836131ad565b336000908152600a602052604090205460ff16610f9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60ff86166000908152600b6020908152604090912086519091610fc1918391890190614058565b50600180820186905560028201805460ff80861662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000090921661ffff80891691909117929092179092559089166000908152601460205260409020908616905561102f8486614b7c565b6110399190614bce565b60ff909716600090815260156020526040902061ffff97909716909655505050505050565b336000908152600a602052604090205460ff166110d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60005460ff16611143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f436f6e747261637420697320616c726561647920756e7061757365642e0000006044820152606401610eca565b61114b61350f565b565b610e5083838360405180602001604052806000815250612487565b336000908152600a602052604090205460ff166111e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60ff909116600090815260176020526040902055565b336000908152600a602052604090205460ff16611270576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b8051611283906022906020840190614058565b5050565b805160609060008167ffffffffffffffff8111156112ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561133757816020015b60408051606081018252600080825260208083018290529282015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816112ec5790505b50905060005b8281146113d95761138d858281518110611380577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516124f7565b8282815181106113c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101015260010161133d565b509392505050565b60006113ec826135f0565b5192915050565b600b6020526000908152604090208054819061140e90614c34565b80601f016020809104026020016040519081016040528092919081815260200182805461143a90614c34565b80156114875780601f1061145c57610100808354040283529160200191611487565b820191906000526020600020905b81548152906001019060200180831161146a57829003601f168201915b50505050600183015460029093015491929161ffff808216925062010000820460ff1691630100000090041685565b600073ffffffffffffffffffffffffffffffffffffffff8216611505576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205467ffffffffffffffff1690565b60095473ffffffffffffffffffffffffffffffffffffffff1633146115b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eca565b61114b60006137be565b336000908152600a602052604090205460ff1661163c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff84169081179091556000908152600b602052604090208115610e5057600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00008116825560028301547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000090911661ffff90911662010000021790556001810154600d558054600f9082906116f890614c34565b6117039291906140dc565b5060020154601080546201000090920460ff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009092169190911790555050565b336000908152600a602052604090205460ff166117bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60005460ff161561182a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436f6e747261637420697320616c7265616479207061757365642e00000000006044820152606401610eca565b61114b613835565b60606000806000611842856114b6565b905060008167ffffffffffffffff811115611886577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156118af578160200160208202803683370190505b50604080516060810182526000808252602082018190529181018290529192505b838614611a19576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615801592820192909252925061196e57611a11565b815173ffffffffffffffffffffffffffffffffffffffff161561199057815194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611a115780838780600101985081518110611a04577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b6001016118d0565b50909695505050505050565b60095460405173ffffffffffffffffffffffffffffffffffffffff909116904780156108fc02916000818181858888f19350505050158015611a6b573d6000803e3d6000fd5b50565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb611aa960095473ffffffffffffffffffffffffffffffffffffffff1690565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8516906370a082319060240160206040518083038186803b158015611b0e57600080fd5b505afa158015611b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b469190614602565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b158015611bb157600080fd5b505af1158015611bc5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112839190614549565b601b8160078110611bf957600080fd5b018054909150611c0890614c34565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3490614c34565b8015611c815780601f10611c5657610100808354040283529160200191611c81565b820191906000526020600020905b815481529060010190602001808311611c6457829003601f168201915b505050505081565b600f8054611c0890614c34565b60005460ff1615611d03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610eca565b600e54611d1590839061ffff16614ba2565b600e5462010000900461ffff161015611db0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4e6f206d6f726520746f6b656e7320616c6c6f77656420666f7220746869732060448201527f62617463680000000000000000000000000000000000000000000000000000006064820152608401610eca565b600d541580611dc15750600d543410155b611e27576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f496e73756666696369656e742076616c75652073656e740000000000000000006044820152606401610eca565b600c5460ff9081166000908152601660205260409020541615611ef2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f556e61626c6520746f206d696e743b20706c6561736520766572696679206d6960448201527f6e74206c69737420737461747573206f722074727920616761696e206c61746560648201527f722e000000000000000000000000000000000000000000000000000000000000608482015260a401610eca565b61128382826138f5565b606060048054610c5e90614c34565b6060818310611f46576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015460009080841115611f58578093505b6000611f63876114b6565b905084861015611f825785850381811015611f7c578091505b50611f86565b5060005b60008167ffffffffffffffff811115611fc8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611ff1578160200160208202803683370190505b5090508161200457935061218592505050565b600061200f886124f7565b905060008160400151612020575080515b885b8881141580156120325750848714155b15612179576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161580159282019290925293506120ce57612171565b825173ffffffffffffffffffffffffffffffffffffffff16156120f057825191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121715780848880600101995081518110612164577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b600101612022565b50505092835250909150505b9392505050565b73ffffffffffffffffffffffffffffffffffffffff82163314156121dc576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336000908152600a602052604090205460ff166122ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60ff821660009081526013602090815260409091208251610e5092840190614058565b60095473ffffffffffffffffffffffffffffffffffffffff163314612390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eca565b8073ffffffffffffffffffffffffffffffffffffffff8116612434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f436f6e74726f6c6c61626c653a20696e707574206973207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610eca565b6112838273ffffffffffffffffffffffffffffffffffffffff166000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6124928484846131ad565b73ffffffffffffffffffffffffffffffffffffffff83163b156124f1576124bb848484846139c8565b6124f1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b604080516060808201835260008083526020808401829052838501829052845192830185528183528201819052928101839052909150600154831061253c5792915050565b506000828152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615801592820192909252906125d45792915050565b612185836135f0565b336000908152600a602052604090205460ff16612656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60ff918216600090815260186020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691909216179055565b6001600090815260146020527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c546060919083108015906127025750600160005260156020527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d548311155b1561270b575060015b600260005260146020527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a5483108015906127715750600260005260156020527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b548311155b1561277a575060025b600360005260146020527f63d87a887046e0430be80fdeb014107d7198c879cbf2cddf39a6df195c86cb385483108015906127e05750600360005260156020527fb3a65e8276bd33b3e4f7d6081ebd9899187264822358758dca2e2bc37b2a9c27548311155b156127e9575060035b600460005260146020527f52102136546d97ed3f65ec1070a32935d3048ea12f310d29c378dc9d6555c0d654831080159061284f5750600460005260156020527f8191f4eb6b8bafbfe9a5389c8d07d7f5fd81137a7ee653fc4358269845ee1d2e548311155b15612858575060045b600560005260146020527f116126bec5aaa49b347e966c49378cf0c441de9121e306ea3d824584a9615aa25483108015906128be5750600560005260156020527fbab719002e4be320868650dc7456e9a1d245e4d5dd64765588e2f21529d871d3548311155b156128c7575060055b600660005260146020527fe1f6b6a5fb7e47dad87547d4b0671e7e995a1dae22fbe5b3b5d10e2a77ed7aff54831080159061292d5750600660005260156020527f25847c9ccf691da811a9f934d6b3b92e6062ef92feb71bf4cb08cbb4fad8d652548311155b15612936575060065b60ff8116600090815260136020526040902060229061295485613b4a565b604051602001612966939291906148f5565b604051602081830303815290604052915050919050565b6000612a1e838380806020026020016040519081016040528093929190818152602001838360200280828437600092018290525060ff8b16815260176020908152604091829020549151919450612a0393508a92500160609190911b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016815260140190565b60405160208183030381529060405280519060200120613cca565b90505b949350505050565b336000908152600a602052604090205460ff16612aa2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b601980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055565b60005460ff1615612b44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610eca565b600c5460ff90811660009081526016602052604090205416612be8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f4d696e74206c6973742064697361626c65642c20706c6561736520757365206e60448201527f6f726d616c206d696e742066756e6374696f6e2e0000000000000000000000006064820152608401610eca565b600c546040517fde97a949000000000000000000000000000000000000000000000000000000008152309163de97a94991612c2f9160ff1690859089908990600401614ab3565b60206040518083038186803b158015612c4757600080fd5b505afa158015612c5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c7f9190614549565b612d0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f556e61626c6520746f206d696e743b206e6f74206f6e20746865206d696e742060448201527f6c6973742e0000000000000000000000000000000000000000000000000000006064820152608401610eca565b600c5460ff90811660008181526018602090815260408083205473ffffffffffffffffffffffffffffffffffffffff87168452601a835281842094845293909152902054911690612d5d908490614ba2565b1115612deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f416d6f756e74206578636565647320616c6c6f77656420746f6b656e7320706560448201527f722077616c6c65742e00000000000000000000000000000000000000000000006064820152608401610eca565b612df582826138f5565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601a60209081526040808320600c5460ff16845290915281208054849290612e3a908490614ba2565b909155505050505050565b60095473ffffffffffffffffffffffffffffffffffffffff163314612ec6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eca565b73ffffffffffffffffffffffffffffffffffffffff8116612f69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610eca565b611a6b816137be565b60095473ffffffffffffffffffffffffffffffffffffffff163314612ff3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eca565b8073ffffffffffffffffffffffffffffffffffffffff8116613097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f436f6e74726f6c6c61626c653a20696e707574206973207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610eca565b6112838273ffffffffffffffffffffffffffffffffffffffff166000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b600060015482108015610c495750506000908152600560205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526007602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006131b8826135f0565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614613223576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff86161480613279575073ffffffffffffffffffffffffffffffffffffffff8516600090815260086020908152604080832033845290915290205460ff165b806132a157503361328984610ce1565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806132da576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416613327576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133336000848761312c565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260066020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217835587018084529220805491939091166134aa5760015482146134aa578054602086015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090911673ffffffffffffffffffffffffffffffffffffffff8a16171781555b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60005460ff1661357b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610eca565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b60408051606081018252600080825260208201819052918101919091528160015481101561378c576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061378a57805173ffffffffffffffffffffffffffffffffffffffff16156136cb579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215613785579392505050565b6136cb565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005460ff16156138a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610eca565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586135c63390565b60195461ffff1682111561398b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f416d6f756e742065786365656473206c696d697420706572207472616e73616360448201527f74696f6e2e0000000000000000000000000000000000000000000000000000006064820152608401610eca565b6139958183613ce0565b600e805461ffff169060006139a983614c88565b91906101000a81548161ffff021916908361ffff160217905550505050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613a23903390899088908890600401614924565b602060405180830381600087803b158015613a3d57600080fd5b505af1925050508015613a8b575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613a8891810190614581565b60015b613aff573d808015613ab9576040519150601f19603f3d011682016040523d82523d6000602084013e613abe565b606091505b508051613af7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612a21565b606081613b8a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613bb45780613b9e81614caa565b9150613bad9050600a83614bba565b9150613b8e565b60008167ffffffffffffffff811115613bf6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613c20576020820181803683370190505b5090505b8415612a2157613c35600183614bf1565b9150613c42600a86614ce3565b613c4d906030614ba2565b60f81b818381518110613c89577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613cc3600a86614bba565b9450613c24565b600082613cd78584613cfa565b14949350505050565b611283828260405180602001604052806000815250613dc5565b600081815b84518110156113d9576000858281518110613d43577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311613d85576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613db2565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080613dbd81614caa565b915050613cff565b60015473ffffffffffffffffffffffffffffffffffffffff8416613e15576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82613e4c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416600081815260066020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168b018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168b01811690920217909155858452600590925290912080547fffffffff000000000000000000000000000000000000000000000000000000001683177401000000000000000000000000000000000000000042909316929092029190911790558190818501903b15613ff7575b604051829073ffffffffffffffffffffffffffffffffffffffff8816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613fa760008784806001019550876139c8565b613fdd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210613f4f578260015414613ff257600080fd5b614049565b5b60405160018301929073ffffffffffffffffffffffffffffffffffffffff8816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613ff8575b506001556124f1600085838684565b82805461406490614c34565b90600052602060002090601f01602090048101928261408657600085556140cc565b82601f1061409f57805160ff19168380011785556140cc565b828001600101855582156140cc579182015b828111156140cc5782518255916020019190600101906140b1565b506140d8929150614157565b5090565b8280546140e890614c34565b90600052602060002090601f01602090048101928261410a57600085556140cc565b82601f1061411b57805485556140cc565b828001600101855582156140cc57600052602060002091601f016020900482015b828111156140cc57825482559160010191906001019061413c565b5b808211156140d85760008155600101614158565b600067ffffffffffffffff83111561418657614186614d55565b6141b760207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601614b2d565b90508281528383830111156141cb57600080fd5b828260208301376000602084830101529392505050565b60008083601f8401126141f3578182fd5b50813567ffffffffffffffff81111561420a578182fd5b6020830191508360208260051b850101111561422557600080fd5b9250929050565b600082601f83011261423c578081fd5b6121858383356020850161416c565b803561ffff8116811461425d57600080fd5b919050565b803560ff8116811461425d57600080fd5b600060208284031215614284578081fd5b813561218581614d84565b600080604083850312156142a1578081fd5b82356142ac81614d84565b915060208301356142bc81614d84565b809150509250929050565b6000806000606084860312156142db578081fd5b83356142e681614d84565b925060208401356142f681614d84565b929592945050506040919091013590565b6000806000806080858703121561431c578081fd5b843561432781614d84565b9350602085013561433781614d84565b925060408501359150606085013567ffffffffffffffff811115614359578182fd5b8501601f81018713614369578182fd5b6143788782356020840161416c565b91505092959194509250565b60008060408385031215614396578182fd5b82356143a181614d84565b915060208301356142bc81614da6565b600080604083850312156143c3578182fd5b82356143ce81614d84565b946020939093013593505050565b6000806000606084860312156143f0578283fd5b83356143fb81614d84565b95602085013595506040909401359392505050565b60008060408385031215614422578182fd5b823561442d81614d84565b915061443b60208401614262565b90509250929050565b60008060008060608587031215614459578182fd5b843567ffffffffffffffff81111561446f578283fd5b61447b878288016141e2565b90955093505060208501359150604085013561449681614d84565b939692955090935050565b600060208083850312156144b3578182fd5b823567ffffffffffffffff808211156144ca578384fd5b818501915085601f8301126144dd578384fd5b8135818111156144ef576144ef614d55565b8060051b9150614500848301614b2d565b8181528481019084860184860187018a101561451a578788fd5b8795505b8386101561453c57803583526001959095019491860191860161451e565b5098975050505050505050565b60006020828403121561455a578081fd5b815161218581614da6565b600060208284031215614576578081fd5b813561218581614db4565b600060208284031215614592578081fd5b815161218581614db4565b6000602082840312156145ae578081fd5b813567ffffffffffffffff8111156145c4578182fd5b612a218482850161422c565b6000602082840312156145e1578081fd5b6121858261424b565b6000602082840312156145fb578081fd5b5035919050565b600060208284031215614613578081fd5b5051919050565b6000806040838503121561462c578182fd5b8235915060208301356142bc81614d84565b60006020828403121561464f578081fd5b61218582614262565b6000806000806060858703121561466d578182fd5b61467685614262565b9350602085013561468681614d84565b9250604085013567ffffffffffffffff8111156146a1578283fd5b6146ad878288016141e2565b95989497509550505050565b600080604083850312156146cb578182fd5b6143a183614262565b600080604083850312156146e6578182fd5b6143ce83614262565b60008060408385031215614701578182fd5b61470a83614262565b9150602083013567ffffffffffffffff811115614725578182fd5b6147318582860161422c565b9150509250929050565b60008060008060008060c08789031215614753578384fd5b61475c87614262565b9550602087013567ffffffffffffffff811115614777578485fd5b61478389828a0161422c565b955050604087013593506147996060880161424b565b92506147a76080880161424b565b91506147b560a08801614262565b90509295509295509295565b600080604083850312156147d3578182fd5b61442d83614262565b600081518084526147f4816020860160208601614c08565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8054600090600181811c908083168061484057607f831692505b6020808410821415614879577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b81801561488d57600181146148bc576148e9565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506148e9565b60008881526020902060005b868110156148e15781548b8201529085019083016148c8565b505084890196505b50505050505092915050565b600061490a6149048387614826565b85614826565b835161491a818360208801614c08565b0195945050505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261496360808301846147dc565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611a19576149d2838551805173ffffffffffffffffffffffffffffffffffffffff16825260208082015167ffffffffffffffff16908301526040908101511515910152565b9284019260609290920191600101614989565b6020808252825182820181905260009190848201906040850190845b81811015611a1957835183529284019291840191600101614a01565b60208152600061218560208301846147dc565b60a081526000614a4360a08301886147dc565b60208301969096525061ffff938416604082015260ff929092166060830152909116608090910152919050565b815173ffffffffffffffffffffffffffffffffffffffff16815260208083015167ffffffffffffffff169082015260408083015115159082015260608101610c49565b60ff8516815273ffffffffffffffffffffffffffffffffffffffff841660208201526060604082015281606082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614b10578081fd5b8260051b8085608085013791909101608001908152949350505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614b7457614b74614d55565b604052919050565b600061ffff808316818516808303821115614b9957614b99614cf7565b01949350505050565b60008219821115614bb557614bb5614cf7565b500190565b600082614bc957614bc9614d26565b500490565b600061ffff83811690831681811015614be957614be9614cf7565b039392505050565b600082821015614c0357614c03614cf7565b500390565b60005b83811015614c23578181015183820152602001614c0b565b838111156124f15750506000910152565b600181811c90821680614c4857607f821691505b60208210811415614c82577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600061ffff80831681811415614ca057614ca0614cf7565b6001019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614cdc57614cdc614cf7565b5060010190565b600082614cf257614cf2614d26565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114611a6b57600080fd5b8015158114611a6b57600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611a6b57600080fdfea264697066735822122066f6251c65cd6bacd403910d81704b4e3a028927b304a72ed665f5ded831cdd964736f6c63430008040033

Deployed Bytecode

0x60806040526004361061036b5760003560e01c80638456cb59116101c6578063b429afeb116100f7578063dc1ee34a11610095578063eb69da041161006f578063eb69da0414610af7578063f23180f414610b17578063f2fde38b14610b2a578063f6a74ed714610b4a57600080fd5b8063dc1ee34a14610a67578063de97a94914610a81578063e985e9c514610aa157600080fd5b8063c3c2ed1d116100d1578063c3c2ed1d146109eb578063c87b56dd14610a0b578063cc4a16f714610a2b578063dbb676a514610a4657600080fd5b8063b429afeb14610958578063b88d4fde1461099e578063c23dc68f146109be57600080fd5b806394bf804d1161016457806399a2557a1161013e57806399a2557a146108d8578063a22cb465146108f8578063a2a6991014610918578063a7fc7a071461093857600080fd5b806394bf804d1461089657806395d89b41146108a9578063987c6929146108be57600080fd5b8063857abbd4116101a0578063857abbd4146108165780638da5cb5b146108365780638ee547e114610861578063945d856a1461088157600080fd5b80638456cb59146107bf5780638462151c146107d4578063853828b61461080157600080fd5b80633f4ba83a116102a05780635c975abb1161023e5780636633802a116102185780636633802a1461073957806370a082311461076a578063715018a61461078a5780637fbba19d1461079f57600080fd5b80635c975abb146106d15780636352211e146106e95780636360a8df1461070957600080fd5b8063533999f81161027a578063533999f81461063357806354d77e0e1461066457806355f804b3146106845780635bbb2177146106a457600080fd5b80633f4ba83a146105bc57806342842e0e146105d15780635332d374146105f157600080fd5b806318160ddd1161030d57806323b872dd116102e757806323b872dd146105345780632fa8fe921461055457806332767f7d1461057457806339710db6146105a157600080fd5b806318160ddd146104b657806318eb2db2146104cf5780631d2fa1e9146104fc57600080fd5b806306fdde031161034957806306fdde031461040d578063081812fc1461042f578063095ea7b31461047457806309f12fa21461049657600080fd5b806301ffc9a714610370578063063b6005146103a5578063064dddea146103e9575b600080fd5b34801561037c57600080fd5b5061039061038b366004614565565b610b6a565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103d66103c036600461463e565b60126020526000908152604090205461ffff1681565b60405161ffff909116815260200161039c565b3480156103f557600080fd5b506103ff600d5481565b60405190815260200161039c565b34801561041957600080fd5b50610422610c4f565b60405161039c9190614a1d565b34801561043b57600080fd5b5061044f61044a3660046145ea565b610ce1565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161039c565b34801561048057600080fd5b5061049461048f3660046143b1565b610d4b565b005b3480156104a257600080fd5b506104946104b13660046146b9565b610e55565b3480156104c257600080fd5b50600254600154036103ff565b3480156104db57600080fd5b506103ff6104ea36600461463e565b60156020526000908152604090205481565b34801561050857600080fd5b506103ff610517366004614410565b601a60209081526000928352604080842090915290825290205481565b34801561054057600080fd5b5061049461054f3660046142c7565b610f16565b34801561056057600080fd5b5061049461056f36600461473b565b610f21565b34801561058057600080fd5b506103ff61058f36600461463e565b60146020526000908152604090205481565b3480156105ad57600080fd5b50600e546103d69061ffff1681565b3480156105c857600080fd5b5061049461105e565b3480156105dd57600080fd5b506104946105ec3660046142c7565b61114d565b3480156105fd57600080fd5b5061062161060c36600461463e565b60186020526000908152604090205460ff1681565b60405160ff909116815260200161039c565b34801561063f57600080fd5b506103d661064e36600461463e565b60116020526000908152604090205461ffff1681565b34801561067057600080fd5b5061049461067f3660046146d4565b611168565b34801561069057600080fd5b5061049461069f36600461459d565b6111f7565b3480156106b057600080fd5b506106c46106bf3660046144a1565b611287565b60405161039c919061496d565b3480156106dd57600080fd5b5060005460ff16610390565b3480156106f557600080fd5b5061044f6107043660046145ea565b6113e1565b34801561071557600080fd5b5061039061072436600461463e565b60166020526000908152604090205460ff1681565b34801561074557600080fd5b5061075961075436600461463e565b6113f3565b60405161039c959493929190614a30565b34801561077657600080fd5b506103ff610785366004614273565b6114b6565b34801561079657600080fd5b50610494611538565b3480156107ab57600080fd5b506104946107ba3660046146b9565b6115c3565b3480156107cb57600080fd5b50610494611744565b3480156107e057600080fd5b506107f46107ef366004614273565b611832565b60405161039c91906149e5565b34801561080d57600080fd5b50610494611a25565b34801561082257600080fd5b50610494610831366004614273565b611a6e565b34801561084257600080fd5b5060095473ffffffffffffffffffffffffffffffffffffffff1661044f565b34801561086d57600080fd5b5061042261087c3660046145ea565b611be9565b34801561088d57600080fd5b50610422611c89565b6104946108a436600461461a565b611c96565b3480156108b557600080fd5b50610422611efc565b3480156108ca57600080fd5b506010546106219060ff1681565b3480156108e457600080fd5b506107f46108f33660046143dc565b611f0b565b34801561090457600080fd5b50610494610913366004614384565b61218c565b34801561092457600080fd5b506104946109333660046146ef565b612273565b34801561094457600080fd5b50610494610953366004614273565b61230f565b34801561096457600080fd5b50610390610973366004614273565b73ffffffffffffffffffffffffffffffffffffffff166000908152600a602052604090205460ff1690565b3480156109aa57600080fd5b506104946109b9366004614307565b612487565b3480156109ca57600080fd5b506109de6109d93660046145ea565b6124f7565b60405161039c9190614a70565b3480156109f757600080fd5b50610494610a063660046147c1565b6125dd565b348015610a1757600080fd5b50610422610a263660046145ea565b612696565b348015610a3757600080fd5b506019546103d69061ffff1681565b348015610a5257600080fd5b50600e546103d69062010000900461ffff1681565b348015610a7357600080fd5b50600c546106219060ff1681565b348015610a8d57600080fd5b50610390610a9c366004614658565b61297d565b348015610aad57600080fd5b50610390610abc36600461428f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610b0357600080fd5b50610494610b123660046145d0565b612a29565b610494610b25366004614444565b612ad7565b348015610b3657600080fd5b50610494610b45366004614273565b612e45565b348015610b5657600080fd5b50610494610b65366004614273565b612f72565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610bfd57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c4957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060038054610c5e90614c34565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8a90614c34565b8015610cd75780601f10610cac57610100808354040283529160200191610cd7565b820191906000526020600020905b815481529060010190602001808311610cba57829003601f168201915b5050505050905090565b6000610cec826130e7565b610d22576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d56826113e1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dbe576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff821614610e455773ffffffffffffffffffffffffffffffffffffffff8116600090815260086020908152604080832033845290915290205460ff16610e45576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e5083838361312c565b505050565b336000908152600a602052604090205460ff16610ed3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c65720000000060448201526064015b60405180910390fd5b60ff91909116600090815260166020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b610e508383836131ad565b336000908152600a602052604090205460ff16610f9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60ff86166000908152600b6020908152604090912086519091610fc1918391890190614058565b50600180820186905560028201805460ff80861662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000090921661ffff80891691909117929092179092559089166000908152601460205260409020908616905561102f8486614b7c565b6110399190614bce565b60ff909716600090815260156020526040902061ffff97909716909655505050505050565b336000908152600a602052604090205460ff166110d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60005460ff16611143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f436f6e747261637420697320616c726561647920756e7061757365642e0000006044820152606401610eca565b61114b61350f565b565b610e5083838360405180602001604052806000815250612487565b336000908152600a602052604090205460ff166111e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60ff909116600090815260176020526040902055565b336000908152600a602052604090205460ff16611270576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b8051611283906022906020840190614058565b5050565b805160609060008167ffffffffffffffff8111156112ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561133757816020015b60408051606081018252600080825260208083018290529282015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816112ec5790505b50905060005b8281146113d95761138d858281518110611380577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516124f7565b8282815181106113c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101015260010161133d565b509392505050565b60006113ec826135f0565b5192915050565b600b6020526000908152604090208054819061140e90614c34565b80601f016020809104026020016040519081016040528092919081815260200182805461143a90614c34565b80156114875780601f1061145c57610100808354040283529160200191611487565b820191906000526020600020905b81548152906001019060200180831161146a57829003601f168201915b50505050600183015460029093015491929161ffff808216925062010000820460ff1691630100000090041685565b600073ffffffffffffffffffffffffffffffffffffffff8216611505576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205467ffffffffffffffff1690565b60095473ffffffffffffffffffffffffffffffffffffffff1633146115b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eca565b61114b60006137be565b336000908152600a602052604090205460ff1661163c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff84169081179091556000908152600b602052604090208115610e5057600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00008116825560028301547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000090911661ffff90911662010000021790556001810154600d558054600f9082906116f890614c34565b6117039291906140dc565b5060020154601080546201000090920460ff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009092169190911790555050565b336000908152600a602052604090205460ff166117bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60005460ff161561182a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436f6e747261637420697320616c7265616479207061757365642e00000000006044820152606401610eca565b61114b613835565b60606000806000611842856114b6565b905060008167ffffffffffffffff811115611886577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156118af578160200160208202803683370190505b50604080516060810182526000808252602082018190529181018290529192505b838614611a19576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615801592820192909252925061196e57611a11565b815173ffffffffffffffffffffffffffffffffffffffff161561199057815194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611a115780838780600101985081518110611a04577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b6001016118d0565b50909695505050505050565b60095460405173ffffffffffffffffffffffffffffffffffffffff909116904780156108fc02916000818181858888f19350505050158015611a6b573d6000803e3d6000fd5b50565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb611aa960095473ffffffffffffffffffffffffffffffffffffffff1690565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8516906370a082319060240160206040518083038186803b158015611b0e57600080fd5b505afa158015611b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b469190614602565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b158015611bb157600080fd5b505af1158015611bc5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112839190614549565b601b8160078110611bf957600080fd5b018054909150611c0890614c34565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3490614c34565b8015611c815780601f10611c5657610100808354040283529160200191611c81565b820191906000526020600020905b815481529060010190602001808311611c6457829003601f168201915b505050505081565b600f8054611c0890614c34565b60005460ff1615611d03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610eca565b600e54611d1590839061ffff16614ba2565b600e5462010000900461ffff161015611db0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4e6f206d6f726520746f6b656e7320616c6c6f77656420666f7220746869732060448201527f62617463680000000000000000000000000000000000000000000000000000006064820152608401610eca565b600d541580611dc15750600d543410155b611e27576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f496e73756666696369656e742076616c75652073656e740000000000000000006044820152606401610eca565b600c5460ff9081166000908152601660205260409020541615611ef2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f556e61626c6520746f206d696e743b20706c6561736520766572696679206d6960448201527f6e74206c69737420737461747573206f722074727920616761696e206c61746560648201527f722e000000000000000000000000000000000000000000000000000000000000608482015260a401610eca565b61128382826138f5565b606060048054610c5e90614c34565b6060818310611f46576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015460009080841115611f58578093505b6000611f63876114b6565b905084861015611f825785850381811015611f7c578091505b50611f86565b5060005b60008167ffffffffffffffff811115611fc8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611ff1578160200160208202803683370190505b5090508161200457935061218592505050565b600061200f886124f7565b905060008160400151612020575080515b885b8881141580156120325750848714155b15612179576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161580159282019290925293506120ce57612171565b825173ffffffffffffffffffffffffffffffffffffffff16156120f057825191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121715780848880600101995081518110612164577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b600101612022565b50505092835250909150505b9392505050565b73ffffffffffffffffffffffffffffffffffffffff82163314156121dc576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336000908152600a602052604090205460ff166122ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60ff821660009081526013602090815260409091208251610e5092840190614058565b60095473ffffffffffffffffffffffffffffffffffffffff163314612390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eca565b8073ffffffffffffffffffffffffffffffffffffffff8116612434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f436f6e74726f6c6c61626c653a20696e707574206973207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610eca565b6112838273ffffffffffffffffffffffffffffffffffffffff166000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6124928484846131ad565b73ffffffffffffffffffffffffffffffffffffffff83163b156124f1576124bb848484846139c8565b6124f1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b604080516060808201835260008083526020808401829052838501829052845192830185528183528201819052928101839052909150600154831061253c5792915050565b506000828152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615801592820192909252906125d45792915050565b612185836135f0565b336000908152600a602052604090205460ff16612656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b60ff918216600090815260186020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691909216179055565b6001600090815260146020527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c546060919083108015906127025750600160005260156020527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d548311155b1561270b575060015b600260005260146020527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a5483108015906127715750600260005260156020527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b548311155b1561277a575060025b600360005260146020527f63d87a887046e0430be80fdeb014107d7198c879cbf2cddf39a6df195c86cb385483108015906127e05750600360005260156020527fb3a65e8276bd33b3e4f7d6081ebd9899187264822358758dca2e2bc37b2a9c27548311155b156127e9575060035b600460005260146020527f52102136546d97ed3f65ec1070a32935d3048ea12f310d29c378dc9d6555c0d654831080159061284f5750600460005260156020527f8191f4eb6b8bafbfe9a5389c8d07d7f5fd81137a7ee653fc4358269845ee1d2e548311155b15612858575060045b600560005260146020527f116126bec5aaa49b347e966c49378cf0c441de9121e306ea3d824584a9615aa25483108015906128be5750600560005260156020527fbab719002e4be320868650dc7456e9a1d245e4d5dd64765588e2f21529d871d3548311155b156128c7575060055b600660005260146020527fe1f6b6a5fb7e47dad87547d4b0671e7e995a1dae22fbe5b3b5d10e2a77ed7aff54831080159061292d5750600660005260156020527f25847c9ccf691da811a9f934d6b3b92e6062ef92feb71bf4cb08cbb4fad8d652548311155b15612936575060065b60ff8116600090815260136020526040902060229061295485613b4a565b604051602001612966939291906148f5565b604051602081830303815290604052915050919050565b6000612a1e838380806020026020016040519081016040528093929190818152602001838360200280828437600092018290525060ff8b16815260176020908152604091829020549151919450612a0393508a92500160609190911b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016815260140190565b60405160208183030381529060405280519060200120613cca565b90505b949350505050565b336000908152600a602052604090205460ff16612aa2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f436f6e74726f6c6c61626c653a206e6f7420636f6e74726f6c6c6572000000006044820152606401610eca565b601980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055565b60005460ff1615612b44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610eca565b600c5460ff90811660009081526016602052604090205416612be8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f4d696e74206c6973742064697361626c65642c20706c6561736520757365206e60448201527f6f726d616c206d696e742066756e6374696f6e2e0000000000000000000000006064820152608401610eca565b600c546040517fde97a949000000000000000000000000000000000000000000000000000000008152309163de97a94991612c2f9160ff1690859089908990600401614ab3565b60206040518083038186803b158015612c4757600080fd5b505afa158015612c5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c7f9190614549565b612d0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f556e61626c6520746f206d696e743b206e6f74206f6e20746865206d696e742060448201527f6c6973742e0000000000000000000000000000000000000000000000000000006064820152608401610eca565b600c5460ff90811660008181526018602090815260408083205473ffffffffffffffffffffffffffffffffffffffff87168452601a835281842094845293909152902054911690612d5d908490614ba2565b1115612deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f416d6f756e74206578636565647320616c6c6f77656420746f6b656e7320706560448201527f722077616c6c65742e00000000000000000000000000000000000000000000006064820152608401610eca565b612df582826138f5565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601a60209081526040808320600c5460ff16845290915281208054849290612e3a908490614ba2565b909155505050505050565b60095473ffffffffffffffffffffffffffffffffffffffff163314612ec6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eca565b73ffffffffffffffffffffffffffffffffffffffff8116612f69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610eca565b611a6b816137be565b60095473ffffffffffffffffffffffffffffffffffffffff163314612ff3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eca565b8073ffffffffffffffffffffffffffffffffffffffff8116613097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f436f6e74726f6c6c61626c653a20696e707574206973207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610eca565b6112838273ffffffffffffffffffffffffffffffffffffffff166000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b600060015482108015610c495750506000908152600560205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526007602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006131b8826135f0565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614613223576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff86161480613279575073ffffffffffffffffffffffffffffffffffffffff8516600090815260086020908152604080832033845290915290205460ff165b806132a157503361328984610ce1565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806132da576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416613327576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133336000848761312c565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260066020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217835587018084529220805491939091166134aa5760015482146134aa578054602086015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090911673ffffffffffffffffffffffffffffffffffffffff8a16171781555b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60005460ff1661357b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610eca565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b60408051606081018252600080825260208201819052918101919091528160015481101561378c576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061378a57805173ffffffffffffffffffffffffffffffffffffffff16156136cb579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215613785579392505050565b6136cb565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005460ff16156138a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610eca565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586135c63390565b60195461ffff1682111561398b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f416d6f756e742065786365656473206c696d697420706572207472616e73616360448201527f74696f6e2e0000000000000000000000000000000000000000000000000000006064820152608401610eca565b6139958183613ce0565b600e805461ffff169060006139a983614c88565b91906101000a81548161ffff021916908361ffff160217905550505050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613a23903390899088908890600401614924565b602060405180830381600087803b158015613a3d57600080fd5b505af1925050508015613a8b575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613a8891810190614581565b60015b613aff573d808015613ab9576040519150601f19603f3d011682016040523d82523d6000602084013e613abe565b606091505b508051613af7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612a21565b606081613b8a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613bb45780613b9e81614caa565b9150613bad9050600a83614bba565b9150613b8e565b60008167ffffffffffffffff811115613bf6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613c20576020820181803683370190505b5090505b8415612a2157613c35600183614bf1565b9150613c42600a86614ce3565b613c4d906030614ba2565b60f81b818381518110613c89577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613cc3600a86614bba565b9450613c24565b600082613cd78584613cfa565b14949350505050565b611283828260405180602001604052806000815250613dc5565b600081815b84518110156113d9576000858281518110613d43577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311613d85576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613db2565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080613dbd81614caa565b915050613cff565b60015473ffffffffffffffffffffffffffffffffffffffff8416613e15576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82613e4c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416600081815260066020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168b018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168b01811690920217909155858452600590925290912080547fffffffff000000000000000000000000000000000000000000000000000000001683177401000000000000000000000000000000000000000042909316929092029190911790558190818501903b15613ff7575b604051829073ffffffffffffffffffffffffffffffffffffffff8816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613fa760008784806001019550876139c8565b613fdd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210613f4f578260015414613ff257600080fd5b614049565b5b60405160018301929073ffffffffffffffffffffffffffffffffffffffff8816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613ff8575b506001556124f1600085838684565b82805461406490614c34565b90600052602060002090601f01602090048101928261408657600085556140cc565b82601f1061409f57805160ff19168380011785556140cc565b828001600101855582156140cc579182015b828111156140cc5782518255916020019190600101906140b1565b506140d8929150614157565b5090565b8280546140e890614c34565b90600052602060002090601f01602090048101928261410a57600085556140cc565b82601f1061411b57805485556140cc565b828001600101855582156140cc57600052602060002091601f016020900482015b828111156140cc57825482559160010191906001019061413c565b5b808211156140d85760008155600101614158565b600067ffffffffffffffff83111561418657614186614d55565b6141b760207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601614b2d565b90508281528383830111156141cb57600080fd5b828260208301376000602084830101529392505050565b60008083601f8401126141f3578182fd5b50813567ffffffffffffffff81111561420a578182fd5b6020830191508360208260051b850101111561422557600080fd5b9250929050565b600082601f83011261423c578081fd5b6121858383356020850161416c565b803561ffff8116811461425d57600080fd5b919050565b803560ff8116811461425d57600080fd5b600060208284031215614284578081fd5b813561218581614d84565b600080604083850312156142a1578081fd5b82356142ac81614d84565b915060208301356142bc81614d84565b809150509250929050565b6000806000606084860312156142db578081fd5b83356142e681614d84565b925060208401356142f681614d84565b929592945050506040919091013590565b6000806000806080858703121561431c578081fd5b843561432781614d84565b9350602085013561433781614d84565b925060408501359150606085013567ffffffffffffffff811115614359578182fd5b8501601f81018713614369578182fd5b6143788782356020840161416c565b91505092959194509250565b60008060408385031215614396578182fd5b82356143a181614d84565b915060208301356142bc81614da6565b600080604083850312156143c3578182fd5b82356143ce81614d84565b946020939093013593505050565b6000806000606084860312156143f0578283fd5b83356143fb81614d84565b95602085013595506040909401359392505050565b60008060408385031215614422578182fd5b823561442d81614d84565b915061443b60208401614262565b90509250929050565b60008060008060608587031215614459578182fd5b843567ffffffffffffffff81111561446f578283fd5b61447b878288016141e2565b90955093505060208501359150604085013561449681614d84565b939692955090935050565b600060208083850312156144b3578182fd5b823567ffffffffffffffff808211156144ca578384fd5b818501915085601f8301126144dd578384fd5b8135818111156144ef576144ef614d55565b8060051b9150614500848301614b2d565b8181528481019084860184860187018a101561451a578788fd5b8795505b8386101561453c57803583526001959095019491860191860161451e565b5098975050505050505050565b60006020828403121561455a578081fd5b815161218581614da6565b600060208284031215614576578081fd5b813561218581614db4565b600060208284031215614592578081fd5b815161218581614db4565b6000602082840312156145ae578081fd5b813567ffffffffffffffff8111156145c4578182fd5b612a218482850161422c565b6000602082840312156145e1578081fd5b6121858261424b565b6000602082840312156145fb578081fd5b5035919050565b600060208284031215614613578081fd5b5051919050565b6000806040838503121561462c578182fd5b8235915060208301356142bc81614d84565b60006020828403121561464f578081fd5b61218582614262565b6000806000806060858703121561466d578182fd5b61467685614262565b9350602085013561468681614d84565b9250604085013567ffffffffffffffff8111156146a1578283fd5b6146ad878288016141e2565b95989497509550505050565b600080604083850312156146cb578182fd5b6143a183614262565b600080604083850312156146e6578182fd5b6143ce83614262565b60008060408385031215614701578182fd5b61470a83614262565b9150602083013567ffffffffffffffff811115614725578182fd5b6147318582860161422c565b9150509250929050565b60008060008060008060c08789031215614753578384fd5b61475c87614262565b9550602087013567ffffffffffffffff811115614777578485fd5b61478389828a0161422c565b955050604087013593506147996060880161424b565b92506147a76080880161424b565b91506147b560a08801614262565b90509295509295509295565b600080604083850312156147d3578182fd5b61442d83614262565b600081518084526147f4816020860160208601614c08565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8054600090600181811c908083168061484057607f831692505b6020808410821415614879577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b81801561488d57600181146148bc576148e9565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506148e9565b60008881526020902060005b868110156148e15781548b8201529085019083016148c8565b505084890196505b50505050505092915050565b600061490a6149048387614826565b85614826565b835161491a818360208801614c08565b0195945050505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261496360808301846147dc565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611a19576149d2838551805173ffffffffffffffffffffffffffffffffffffffff16825260208082015167ffffffffffffffff16908301526040908101511515910152565b9284019260609290920191600101614989565b6020808252825182820181905260009190848201906040850190845b81811015611a1957835183529284019291840191600101614a01565b60208152600061218560208301846147dc565b60a081526000614a4360a08301886147dc565b60208301969096525061ffff938416604082015260ff929092166060830152909116608090910152919050565b815173ffffffffffffffffffffffffffffffffffffffff16815260208083015167ffffffffffffffff169082015260408083015115159082015260608101610c49565b60ff8516815273ffffffffffffffffffffffffffffffffffffffff841660208201526060604082015281606082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614b10578081fd5b8260051b8085608085013791909101608001908152949350505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614b7457614b74614d55565b604052919050565b600061ffff808316818516808303821115614b9957614b99614cf7565b01949350505050565b60008219821115614bb557614bb5614cf7565b500190565b600082614bc957614bc9614d26565b500490565b600061ffff83811690831681811015614be957614be9614cf7565b039392505050565b600082821015614c0357614c03614cf7565b500390565b60005b83811015614c23578181015183820152602001614c0b565b838111156124f15750506000910152565b600181811c90821680614c4857607f821691505b60208210811415614c82577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600061ffff80831681811415614ca057614ca0614cf7565b6001019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614cdc57614cdc614cf7565b5060010190565b600082614cf257614cf2614d26565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114611a6b57600080fd5b8015158114611a6b57600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611a6b57600080fdfea264697066735822122066f6251c65cd6bacd403910d81704b4e3a028927b304a72ed665f5ded831cdd964736f6c63430008040033

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.