ETH Price: $3,949.44 (+1.01%)

Token

Scribbles (Scribbles)
 

Overview

Max Total Supply

5,000 Scribbles

Holders

2,453

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 Scribbles
0x8152e2844fa4532beb408ed75a29108d052f6047
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:
Scribbles

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

contract Scribbles is ERC721A, Ownable, Pausable, ReentrancyGuard {

    using Strings for uint256;

    /*****************************************
        EVENTS
    *****************************************/

    event Mint( address to, uint256 startTokenId, uint256 quantity );
    event Burn( address from, uint256 startTokenId, uint256 quantity );
    event Revealed( string metadataBase );
    event MetadataLocked();

    /*****************************************
        MODIFIERS
    *****************************************/

    modifier whenNotContract() {
        require( msg.sender == tx.origin, "Scribbles: Transactions from smart contracts not allowed" );
        _;
    }

    modifier whenWithdrawAddressSet() {
        require( address(withdrawAddress) != address(0), "Scribbles: withdrawAddress not set" );
        _;
    }

    modifier whenNotSoldOut() {
        require( totalSupply() < collectionSize, "Scribbles: Sold out" );
        _;
    }

    modifier whenBurningPaused() {
        require( burningPaused, "Scribbles: Burning not paused" );
        _;
    }

    modifier whenBurningNotPaused() {
        require( !burningPaused, "Scribbles: Burning is paused" );
        _;
    }

    /*****************************************
        VARS
    *****************************************/

    // Price
    uint256 public mintPrice;

    // Mint limit
    uint64 public freeMintLimit;
    uint64 public transactionLimit;

    // Collection size
    uint256 public collectionSize;

    // Reserve for giveaway etc
    uint256 public totalReserved;

    // Withdraw addresses
    address public withdrawAddress;

    // Burn
    bool public burningPaused;

    // Meta
    bool public isRevealed;
    bool public metadataLocked;
    string public metadataBase;


    /*****************************************
        CONSTRUCTOR
    *****************************************/

    constructor() ERC721A( "Scribbles", "Scribbles" ) {
        collectionSize = 5000;
        mintPrice = 0.01 ether;
        freeMintLimit = 2;
        transactionLimit = 10;
        totalReserved = 0;

        isRevealed = false;
        metadataLocked = false;
        metadataBase = "https://metadata.scribbles.io/pre/";

        burningPaused = true;
        pause();
    }


    /*****************************************
        MISC CONTROLS
    *****************************************/

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function pauseBurning() public onlyOwner whenBurningNotPaused {
        burningPaused = true;
    }

    function unpauseBurning() public onlyOwner whenBurningPaused {
        burningPaused = false;
    }

    function setMintPrice( uint256 newPrice_ ) public onlyOwner {
        mintPrice = newPrice_;
    }

    function setFreeMintLimit( uint64 newLimit_ ) public onlyOwner {
        freeMintLimit = newLimit_;
    }

    function setTransactionLimit( uint64 newLimit_ ) public onlyOwner {
        transactionLimit = newLimit_;
    }


    function setTotalReserved( uint256 newAmount_ ) external onlyOwner {
        uint256 remainingTokens = collectionSize - totalSupply();
        require( newAmount_ <= remainingTokens, "Scribbles: New amount exceeds remaining tokens" );
        totalReserved = newAmount_;
    }

    // just in case it's needed
    function setCollectionSize( uint256 newSize_ ) external onlyOwner {
        require( newSize_ >= totalSupply(), "Scribbles: New collection size can't be lower than current supply" );
        collectionSize = newSize_;
        // reduce totalReserved as a result, if needed
        uint256 remainingTokens = collectionSize - totalSupply();
        if ( remainingTokens < totalReserved ) {
            totalReserved = remainingTokens;
        }
    }

    function setMetadataBase( string memory newMetadataBase_ ) external onlyOwner {
        require( !metadataLocked, "Scribbles: Metadata locked" );
        require( bytes(newMetadataBase_).length != 0, "Scribbles: Metadata base can't be empty" );
        metadataBase = newMetadataBase_;
    }

    function revealMetadata( string memory newMetadataBase_ ) external onlyOwner {
        require( !isRevealed, "Scribbles: Already revealed" );
        require( bytes(newMetadataBase_).length != 0, "Scribbles: Metadata base can't be empty" );
        isRevealed = true;
        metadataBase = newMetadataBase_;
        emit Revealed( newMetadataBase_ );
    }

    function lockMetadata() external onlyOwner {
        require( !metadataLocked, "Scribbles: Already locked" );
        require( isRevealed, "Scribbles: Can't lock before reveal" );
        metadataLocked = true;
        emit MetadataLocked();
    }

    /*****************************************
        MISC GETTERS
    *****************************************/

    function totalMinted() public view returns (uint256) {
        return _totalMinted();
    }

    function totalBurned() public view returns (uint256) {
        return _burnCounter;
    }

    function numberMinted( address account_ ) public view returns (uint256) {
        return _numberMinted(account_);
    }

    function numberMintedFree( address account_ )  public view returns (uint64) {
        return _getAux(account_);
    }

    function numberBurned( address account_ ) public view returns (uint256) {
        return _numberBurned(account_);
    }

    function getOwnershipOf(uint256 tokenId_) public view returns (TokenOwnership memory) {
        return _ownershipOf(tokenId_);
    }

    function tokenExists(uint256 tokenId_) public view returns (bool) {
        return _exists(tokenId_);
    }


    /*****************************************
        LIMITS
    *****************************************/

    function freeMintLimitReached( address account_ ) public view returns (bool) {
        return freeMintLimit > 0 ? numberMintedFree(account_) >= freeMintLimit : false;
    }

    function amountExceedsFreeMintLimit( address account_, uint64 numberOfTokens_ ) public view returns (bool) {
        return freeMintLimit > 0 ? ( numberMintedFree(account_) + numberOfTokens_ ) > freeMintLimit : false;
    }

    function amountExceedsTransactionLimit( uint64 numberOfTokens_ ) public view returns (bool) {
        return transactionLimit > 0 ? numberOfTokens_ > transactionLimit : false;
    }

    function amountExceedsSupply( uint64 numberOfTokens_ ) public view returns (bool) {
        return ( totalSupply() + totalReserved + numberOfTokens_ ) > collectionSize;
    }

    /*****************************************
        MINT
    *****************************************/

    function freeMint( uint64 numberOfTokens_ ) nonReentrant external whenNotContract whenNotPaused whenNotSoldOut {
        require( numberOfTokens_ > 0, "Scribbles: Can't mint 0 tokens" );
        require( !amountExceedsFreeMintLimit(msg.sender, numberOfTokens_), "Scribbles: Amount exceeds free mint limit" );
        require( !amountExceedsSupply(numberOfTokens_), "Scribbles: Not enough tokens left" );

        _safeMint( msg.sender, numberOfTokens_ );

        uint64 freeMints = numberMintedFree( msg.sender );
        freeMints += numberOfTokens_;
        _setAux( msg.sender, freeMints );
    }

    function mint( uint64 numberOfTokens_ ) nonReentrant external whenNotContract whenNotPaused whenNotSoldOut payable {
        require( numberOfTokens_ > 0, "Scribbles: Can't mint 0 tokens" );
        require( !amountExceedsTransactionLimit(numberOfTokens_), "Scribbles: Amount exceeds limit per transaction" );
        require( !amountExceedsSupply(numberOfTokens_), "Scribbles: Not enough tokens left" );
        require( msg.value == mintPrice * numberOfTokens_, "Scribbles: Payment amount is incorrect" );

        _safeMint( msg.sender, numberOfTokens_ );
    }


    /*****************************************
        OWNER MINT
    *****************************************/

    function mintTo( address to_, uint64 numberOfTokens_ ) nonReentrant external onlyOwner whenNotSoldOut {

        require( numberOfTokens_ > 0, "Scribbles: Can't mint 0 tokens" );
        require( totalReserved > 0, "Scribbles: No tokens left in reserve" );
        require( !amountExceedsSupply(numberOfTokens_), "Scribbles: Not enough tokens left" );
        require( numberOfTokens_ <= totalReserved, "Scribbles: Exceeds reserved amount" );

        _safeMint( to_, numberOfTokens_ );

        totalReserved -= numberOfTokens_;
    }


    /*****************************************
        BURN
    *****************************************/

    function burnTokens( uint256[] calldata tokenIds_ ) nonReentrant external whenNotContract whenBurningNotPaused {
        for(uint256 i = 0; i < tokenIds_.length; i++) {
            _burn( tokenIds_[i], true );
        }
    }


    /*****************************************
        WITHDRAW
    *****************************************/

    function setWithdrawAddress( address newAddress_ ) external onlyOwner {
        require( address(newAddress_) != address(0), "Scribbles: Withdraw address can't be null" );
        withdrawAddress = newAddress_;
    }

    function contractBalance() public view returns ( uint256 ) {
        return address(this).balance;
    }

    function withdraw() external whenWithdrawAddressSet onlyOwner {
        uint256 balance = contractBalance();
        require( balance > 0, "Scribbles: Insufficient balance" );
        payable( withdrawAddress ).transfer( balance );
    }

    /*****************************************
        OVERRIDES
    *****************************************/

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

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

    function _afterTokenTransfers(
        address from_,
        address to_,
        uint256 startTokenId_,
        uint256 quantity_
    ) internal override {
        // When `from` is zero, `tokenId` has been minted for `to`
        if ( address(from_) == address(0) ) {
            emit Mint( to_, startTokenId_, quantity_ );
        }
        else if ( address(to_) == address(0) ) {
            emit Burn( from_, startTokenId_, quantity_ );
        }
    }

    /*****************************************
        OPENSEA
    *****************************************/

    /**
    * Override isApprovedForAll to auto-approve OS's proxy contract and reduce trading friction
    */
    function isApprovedForAll( address owner_, address operator_ ) public override view returns (bool isOperator) {
        if (operator_ == address(0x58807baD0B376efc12F5AD86aAc70E78ed67deaE)) {
            return true;
        }
        // otherwise, use the default isApprovedForAll()
        return super.isApprovedForAll(owner_, operator_);
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender() internal override view returns (address sender) {

        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
            // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                mload(add(array, index)),
                0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;

    }


}

File 2 of 14 : 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 3 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 4 of 14 : 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 5 of 14 : 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 6 of 14 : 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 7 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 10 of 14 : 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 11 of 14 : 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 12 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "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":"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":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[],"name":"MetadataLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"metadataBase","type":"string"}],"name":"Revealed","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":"account_","type":"address"},{"internalType":"uint64","name":"numberOfTokens_","type":"uint64"}],"name":"amountExceedsFreeMintLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"numberOfTokens_","type":"uint64"}],"name":"amountExceedsSupply","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"numberOfTokens_","type":"uint64"}],"name":"amountExceedsTransactionLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"burnTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burningPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"numberOfTokens_","type":"uint64"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMintLimit","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"}],"name":"freeMintLimitReached","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"getOwnershipOf","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":"address","name":"owner_","type":"address"},{"internalType":"address","name":"operator_","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"metadataBase","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"numberOfTokens_","type":"uint64"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint64","name":"numberOfTokens_","type":"uint64"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"}],"name":"numberBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"}],"name":"numberMintedFree","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"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":"pauseBurning","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newMetadataBase_","type":"string"}],"name":"revealMetadata","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":"uint256","name":"newSize_","type":"uint256"}],"name":"setCollectionSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"newLimit_","type":"uint64"}],"name":"setFreeMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newMetadataBase_","type":"string"}],"name":"setMetadataBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice_","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount_","type":"uint256"}],"name":"setTotalReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"newLimit_","type":"uint64"}],"name":"setTransactionLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress_","type":"address"}],"name":"setWithdrawAddress","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":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transactionLimit","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"unpauseBurning","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040805180820182526009808252685363726962626c657360b81b60208084018281528551808701909652928552840152815191929162000056916002916200031c565b5080516200006c9060039060208401906200031c565b505060016000555062000088620000826200012c565b6200018b565b6008805460ff60a01b191690556001600955611388600c55662386f26fc10000600a55600b80546001600160801b031916680a00000000000000021790556000600d55600e805461ffff60a81b191690556040805160608101909152602280825262003b6e602083013980516200010891600f916020909101906200031c565b50600e805460ff60a01b1916600160a01b17905562000126620001dd565b620003ff565b6000333014156200018557600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620001889050565b50335b90565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001e76200012c565b6001600160a01b0316620002036008546001600160a01b031690565b6001600160a01b0316146200025f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b620002696200026b565b565b6200027f600854600160a01b900460ff1690565b15620002c15760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000256565b6008805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002ff6200012c565b6040516001600160a01b03909116815260200160405180910390a1565b8280546200032a90620003c2565b90600052602060002090601f0160209004810192826200034e576000855562000399565b82601f106200036957805160ff191683800117855562000399565b8280016001018555821562000399579182015b82811115620003995782518255916020019190600101906200037c565b50620003a7929150620003ab565b5090565b5b80821115620003a75760008155600101620003ac565b600181811c90821680620003d757607f821691505b60208210811415620003f957634e487b7160e01b600052602260045260246000fd5b50919050565b61375f806200040f6000396000f3fe6080604052600436106103805760003560e01c80636817c76c116101d1578063a2309ff811610102578063d3811c0f116100a0578063f19605d61161006f578063f19605d614610a27578063f2fde38b14610a4e578063f4a0a52814610a6e578063fb9d09c814610a8e57600080fd5b8063d3811c0f146109b2578063d89135cd146109d2578063dc33e681146109e7578063e985e9c514610a0757600080fd5b8063c0c728ea116100dc578063c0c728ea1461093c578063c71b0e1c1461095c578063c87b56dd14610972578063cd55ef1f1461099257600080fd5b8063a2309ff8146108e3578063aca8ffe7146108fc578063b88d4fde1461091c57600080fd5b80638b7afe2e1161016f57806393d756aa1161014957806393d756aa1461087957806395d89b4114610899578063989bdbb6146108ae578063a22cb465146108c357600080fd5b80638b7afe2e146108285780638da5cb5b1461083b5780638df4a8e31461085957600080fd5b8063715018a6116101ab578063715018a6146107bd5780637d4c9e68146107d2578063833c1d95146107f25780638456cb591461081357600080fd5b80636817c76c1461076657806369d2ceb11461077c57806370a082311461079d57600080fd5b80632478d639116102b657806342f10933116102545780635c975abb116102235780635c975abb146106f25780636352211e1461071157806365b973c31461073157806367a531731461074657600080fd5b806342f109331461064557806345c0f5331461066557806352d8a4d11461067b57806354214f69146106d157600080fd5b80633ab1a494116102905780633ab1a494146105db5780633ccfd60b146105fb5780633f4ba83a1461061057806342842e0e1461062557600080fd5b80632478d6391461058657806338b616c1146105a657806339fc5d44146105bb57600080fd5b8063095ea7b311610323578063175290cf116102fd578063175290cf1461050357806318160ddd146105235780631a6eedb41461054657806323b872dd1461056657600080fd5b8063095ea7b3146104a35780630cb71584146104c35780631581b600146104e357600080fd5b8063059cbd9b1161035f578063059cbd9b146103fc57806306fdde0314610411578063081812fc1461043357806308346d851461046b57600080fd5b8062923f9e1461038557806301ffc9a7146103ba57806302be8bff146103da575b600080fd5b34801561039157600080fd5b506103a56103a03660046132db565b610aa1565b60405190151581526020015b60405180910390f35b3480156103c657600080fd5b506103a56103d536600461325e565b610ab2565b3480156103e657600080fd5b506103fa6103f53660046132f3565b610b02565b005b34801561040857600080fd5b506103fa610cbe565b34801561041d57600080fd5b50610426610d76565b6040516103b191906133a5565b34801561043f57600080fd5b5061045361044e3660046132db565b610e08565b6040516001600160a01b0390911681526020016103b1565b34801561047757600080fd5b50600b5461048b906001600160401b031681565b6040516001600160401b0390911681526020016103b1565b3480156104af57600080fd5b506103fa6104be36600461319d565b610e4c565b3480156104cf57600080fd5b506103fa6104de366004613296565b610ee5565b3480156104ef57600080fd5b50600e54610453906001600160a01b031681565b34801561050f57600080fd5b506103a561051e3660046132f3565b611007565b34801561052f57600080fd5b50610538611044565b6040519081526020016103b1565b34801561055257600080fd5b5061048b610561366004613064565b611052565b34801561057257600080fd5b506103fa6105813660046130b0565b611080565b34801561059257600080fd5b506105386105a1366004613064565b61108b565b3480156105b257600080fd5b506103fa6110b9565b3480156105c757600080fd5b506103fa6105d63660046132f3565b61116a565b3480156105e757600080fd5b506103fa6105f6366004613064565b6111e5565b34801561060757600080fd5b506103fa6112b8565b34801561061c57600080fd5b506103fa6113f0565b34801561063157600080fd5b506103fa6106403660046130b0565b611443565b34801561065157600080fd5b506103a5610660366004613064565b61145e565b34801561067157600080fd5b50610538600c5481565b34801561068757600080fd5b5061069b6106963660046132db565b61149e565b6040805182516001600160a01b031681526020808401516001600160401b031690820152918101511515908201526060016103b1565b3480156106dd57600080fd5b50600e546103a590600160a81b900460ff1681565b3480156106fe57600080fd5b50600854600160a01b900460ff166103a5565b34801561071d57600080fd5b5061045361072c3660046132db565b6114c4565b34801561073d57600080fd5b506104266114d6565b34801561075257600080fd5b506103fa6107613660046131ef565b611564565b34801561077257600080fd5b50610538600a5481565b34801561078857600080fd5b50600e546103a590600160b01b900460ff1681565b3480156107a957600080fd5b506105386107b8366004613064565b61165d565b3480156107c957600080fd5b506103fa6116ab565b3480156107de57600080fd5b506103fa6107ed3660046132f3565b6116fe565b3480156107fe57600080fd5b50600e546103a590600160a01b900460ff1681565b34801561081f57600080fd5b506103fa61176a565b34801561083457600080fd5b5047610538565b34801561084757600080fd5b506008546001600160a01b0316610453565b34801561086557600080fd5b506103a56108743660046132f3565b6117bb565b34801561088557600080fd5b506103fa6108943660046131c6565b6117f0565b3480156108a557600080fd5b506104266119d8565b3480156108ba57600080fd5b506103fa6119e7565b3480156108cf57600080fd5b506103fa6108de366004613163565b611b2d565b3480156108ef57600080fd5b5060005460001901610538565b34801561090857600080fd5b506103fa6109173660046132db565b611c00565b34801561092857600080fd5b506103fa6109373660046130eb565b611cfe565b34801561094857600080fd5b506103fa6109573660046132db565b611d48565b34801561096857600080fd5b50610538600d5481565b34801561097e57600080fd5b5061042661098d3660046132db565b611e17565b34801561099e57600080fd5b506103a56109ad3660046131c6565b611e9c565b3480156109be57600080fd5b506103fa6109cd366004613296565b611ee7565b3480156109de57600080fd5b50600154610538565b3480156109f357600080fd5b50610538610a02366004613064565b611fbb565b348015610a1357600080fd5b506103a5610a2236600461307e565b611fe9565b348015610a3357600080fd5b50600b5461048b90600160401b90046001600160401b031681565b348015610a5a57600080fd5b506103fa610a69366004613064565b612046565b348015610a7a57600080fd5b506103fa610a893660046132db565b612100565b6103fa610a9c3660046132f3565b61214e565b6000610aac82612333565b92915050565b60006001600160e01b031982166380ac58cd60e01b1480610ae357506001600160e01b03198216635b5e139f60e01b145b80610aac57506301ffc9a760e01b6001600160e01b0319831614610aac565b60026009541415610b2e5760405162461bcd60e51b8152600401610b2590613560565b60405180910390fd5b6002600955333214610b525760405162461bcd60e51b8152600401610b25906134d6565b600854600160a01b900460ff1615610b7c5760405162461bcd60e51b8152600401610b25906133f9565b600c54610b87611044565b10610ba45760405162461bcd60e51b8152600401610b2590613533565b6000816001600160401b031611610bcd5760405162461bcd60e51b8152600401610b2590613423565b610bd73382611e9c565b15610c365760405162461bcd60e51b815260206004820152602960248201527f5363726962626c65733a20416d6f756e7420657863656564732066726565206d6044820152681a5b9d081b1a5b5a5d60ba1b6064820152608401610b25565b610c3f816117bb565b15610c5c5760405162461bcd60e51b8152600401610b25906133b8565b610c6f33826001600160401b031661236c565b6000610c7a33611052565b9050610c8682826135af565b33600090815260056020526040902080546001600160c01b0316600160c01b6001600160401b03841602179055905050506001600955565b610cc6612386565b6001600160a01b0316610ce16008546001600160a01b031690565b6001600160a01b031614610d075760405162461bcd60e51b8152600401610b25906134a1565b600e54600160a01b900460ff1615610d615760405162461bcd60e51b815260206004820152601c60248201527f5363726962626c65733a204275726e696e6720697320706175736564000000006044820152606401610b25565b600e805460ff60a01b1916600160a01b179055565b606060028054610d8590613647565b80601f0160208091040260200160405190810160405280929190818152602001828054610db190613647565b8015610dfe5780601f10610dd357610100808354040283529160200191610dfe565b820191906000526020600020905b815481529060010190602001808311610de157829003601f168201915b5050505050905090565b6000610e1382612333565b610e30576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610e57826114c4565b9050806001600160a01b0316836001600160a01b03161415610e8c5760405163250fdee360e21b815260040160405180910390fd5b806001600160a01b0316610e9e612386565b6001600160a01b031614610ed557610eb881610a22612386565b610ed5576040516367d9dca160e11b815260040160405180910390fd5b610ee08383836123e3565b505050565b610eed612386565b6001600160a01b0316610f086008546001600160a01b031690565b6001600160a01b031614610f2e5760405162461bcd60e51b8152600401610b25906134a1565b600e54600160a81b900460ff1615610f885760405162461bcd60e51b815260206004820152601b60248201527f5363726962626c65733a20416c72656164792072657665616c656400000000006044820152606401610b25565b8051610fa65760405162461bcd60e51b8152600401610b259061345a565b600e805460ff60a81b1916600160a81b1790558051610fcc90600f906020840190612f23565b507f34f25fe82e04b6b4bb3440737372e9d5d8e7a6a2b12da5dc4abead2c0b544ad981604051610ffc91906133a5565b60405180910390a150565b600b54600090600160401b90046001600160401b0316611028576000610aac565b50600b54600160401b90046001600160401b0390811691161190565b600154600054036000190190565b6001600160a01b038116600090815260056020526040812054600160c01b90046001600160401b0316610aac565b610ee083838361243f565b6001600160a01b038116600090815260056020526040812054600160801b90046001600160401b0316610aac565b6110c1612386565b6001600160a01b03166110dc6008546001600160a01b031690565b6001600160a01b0316146111025760405162461bcd60e51b8152600401610b25906134a1565b600e54600160a01b900460ff1661115b5760405162461bcd60e51b815260206004820152601d60248201527f5363726962626c65733a204275726e696e67206e6f74207061757365640000006044820152606401610b25565b600e805460ff60a01b19169055565b611172612386565b6001600160a01b031661118d6008546001600160a01b031690565b6001600160a01b0316146111b35760405162461bcd60e51b8152600401610b25906134a1565b600b80546001600160401b03909216600160401b026fffffffffffffffff000000000000000019909216919091179055565b6111ed612386565b6001600160a01b03166112086008546001600160a01b031690565b6001600160a01b03161461122e5760405162461bcd60e51b8152600401610b25906134a1565b6001600160a01b0381166112965760405162461bcd60e51b815260206004820152602960248201527f5363726962626c65733a20576974686472617720616464726573732063616e276044820152681d081899481b9d5b1b60ba1b6064820152608401610b25565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600e546001600160a01b031661131b5760405162461bcd60e51b815260206004820152602260248201527f5363726962626c65733a20776974686472617741646472657373206e6f742073604482015261195d60f21b6064820152608401610b25565b611323612386565b6001600160a01b031661133e6008546001600160a01b031690565b6001600160a01b0316146113645760405162461bcd60e51b8152600401610b25906134a1565b47806113b25760405162461bcd60e51b815260206004820152601f60248201527f5363726962626c65733a20496e73756666696369656e742062616c616e6365006044820152606401610b25565b600e546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156113ec573d6000803e3d6000fd5b5050565b6113f8612386565b6001600160a01b03166114136008546001600160a01b031690565b6001600160a01b0316146114395760405162461bcd60e51b8152600401610b25906134a1565b611441612649565b565b610ee083838360405180602001604052806000815250611cfe565b600b546000906001600160401b0316611478576000610aac565b600b546001600160401b031661148d83611052565b6001600160401b0316101592915050565b6040805160608101825260008082526020820181905291810191909152610aac826126ec565b60006114cf826126ec565b5192915050565b600f80546114e390613647565b80601f016020809104026020016040519081016040528092919081815260200182805461150f90613647565b801561155c5780601f106115315761010080835404028352916020019161155c565b820191906000526020600020905b81548152906001019060200180831161153f57829003601f168201915b505050505081565b600260095414156115875760405162461bcd60e51b8152600401610b2590613560565b60026009553332146115ab5760405162461bcd60e51b8152600401610b25906134d6565b600e54600160a01b900460ff16156116055760405162461bcd60e51b815260206004820152601c60248201527f5363726962626c65733a204275726e696e6720697320706175736564000000006044820152606401610b25565b60005b818110156116535761164183838381811061163357634e487b7160e01b600052603260045260246000fd5b90506020020135600161280e565b8061164b81613682565b915050611608565b5050600160095550565b60006001600160a01b038216611686576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6116b3612386565b6001600160a01b03166116ce6008546001600160a01b031690565b6001600160a01b0316146116f45760405162461bcd60e51b8152600401610b25906134a1565b61144160006129f1565b611706612386565b6001600160a01b03166117216008546001600160a01b031690565b6001600160a01b0316146117475760405162461bcd60e51b8152600401610b25906134a1565b600b805467ffffffffffffffff19166001600160401b0392909216919091179055565b611772612386565b6001600160a01b031661178d6008546001600160a01b031690565b6001600160a01b0316146117b35760405162461bcd60e51b8152600401610b25906134a1565b611441612a43565b6000600c54826001600160401b0316600d546117d5611044565b6117df9190613597565b6117e99190613597565b1192915050565b600260095414156118135760405162461bcd60e51b8152600401610b2590613560565b6002600955611820612386565b6001600160a01b031661183b6008546001600160a01b031690565b6001600160a01b0316146118615760405162461bcd60e51b8152600401610b25906134a1565b600c5461186c611044565b106118895760405162461bcd60e51b8152600401610b2590613533565b6000816001600160401b0316116118b25760405162461bcd60e51b8152600401610b2590613423565b6000600d54116119105760405162461bcd60e51b8152602060048201526024808201527f5363726962626c65733a204e6f20746f6b656e73206c65667420696e207265736044820152636572766560e01b6064820152608401610b25565b611919816117bb565b156119365760405162461bcd60e51b8152600401610b25906133b8565b600d54816001600160401b0316111561199c5760405162461bcd60e51b815260206004820152602260248201527f5363726962626c65733a204578636565647320726573657276656420616d6f756044820152611b9d60f21b6064820152608401610b25565b6119af82826001600160401b031661236c565b806001600160401b0316600d60008282546119ca9190613604565b909155505060016009555050565b606060038054610d8590613647565b6119ef612386565b6001600160a01b0316611a0a6008546001600160a01b031690565b6001600160a01b031614611a305760405162461bcd60e51b8152600401610b25906134a1565b600e54600160b01b900460ff1615611a8a5760405162461bcd60e51b815260206004820152601960248201527f5363726962626c65733a20416c7265616479206c6f636b6564000000000000006044820152606401610b25565b600e54600160a81b900460ff16611aef5760405162461bcd60e51b815260206004820152602360248201527f5363726962626c65733a2043616e2774206c6f636b206265666f72652072657660448201526219585b60ea1b6064820152608401610b25565b600e805460ff60b01b1916600160b01b1790556040517f27de4862bfc92b76e402ed305829f40e9e5fcd597ab2206b4e6294cd24ed45c490600090a1565b611b35612386565b6001600160a01b0316826001600160a01b03161415611b675760405163b06307db60e01b815260040160405180910390fd5b8060076000611b74612386565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611bb8612386565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611bf4911515815260200190565b60405180910390a35050565b611c08612386565b6001600160a01b0316611c236008546001600160a01b031690565b6001600160a01b031614611c495760405162461bcd60e51b8152600401610b25906134a1565b611c51611044565b811015611cd05760405162461bcd60e51b815260206004820152604160248201527f5363726962626c65733a204e657720636f6c6c656374696f6e2073697a65206360448201527f616e2774206265206c6f776572207468616e2063757272656e7420737570706c6064820152607960f81b608482015260a401610b25565b600c8190556000611cdf611044565b600c54611cec9190613604565b9050600d548110156113ec57600d5550565b611d0984848461243f565b6001600160a01b0383163b15611d4257611d2584848484612aa9565b611d42576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b611d50612386565b6001600160a01b0316611d6b6008546001600160a01b031690565b6001600160a01b031614611d915760405162461bcd60e51b8152600401610b25906134a1565b6000611d9b611044565b600c54611da89190613604565b905080821115611e115760405162461bcd60e51b815260206004820152602e60248201527f5363726962626c65733a204e657720616d6f756e74206578636565647320726560448201526d6d61696e696e6720746f6b656e7360901b6064820152608401610b25565b50600d55565b6060611e2282612333565b611e3f57604051630a14c4b560e41b815260040160405180910390fd5b6000611e49612ba7565b9050805160001415611e6a5760405180602001604052806000815250611e95565b80611e7484612bb6565b604051602001611e85929190613339565b6040516020818303038152906040525b9392505050565b600b546000906001600160401b0316611eb6576000611e95565b600b546001600160401b031682611ecc85611052565b611ed691906135af565b6001600160401b0316119392505050565b611eef612386565b6001600160a01b0316611f0a6008546001600160a01b031690565b6001600160a01b031614611f305760405162461bcd60e51b8152600401610b25906134a1565b600e54600160b01b900460ff1615611f8a5760405162461bcd60e51b815260206004820152601a60248201527f5363726962626c65733a204d65746164617461206c6f636b65640000000000006044820152606401610b25565b8051611fa85760405162461bcd60e51b8152600401610b259061345a565b80516113ec90600f906020840190612f23565b6001600160a01b038116600090815260056020526040812054600160401b90046001600160401b0316610aac565b60006001600160a01b0382167358807bad0b376efc12f5ad86aac70e78ed67deae141561201857506001610aac565b6001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff16611e95565b61204e612386565b6001600160a01b03166120696008546001600160a01b031690565b6001600160a01b03161461208f5760405162461bcd60e51b8152600401610b25906134a1565b6001600160a01b0381166120f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b25565b6120fd816129f1565b50565b612108612386565b6001600160a01b03166121236008546001600160a01b031690565b6001600160a01b0316146121495760405162461bcd60e51b8152600401610b25906134a1565b600a55565b600260095414156121715760405162461bcd60e51b8152600401610b2590613560565b60026009553332146121955760405162461bcd60e51b8152600401610b25906134d6565b600854600160a01b900460ff16156121bf5760405162461bcd60e51b8152600401610b25906133f9565b600c546121ca611044565b106121e75760405162461bcd60e51b8152600401610b2590613533565b6000816001600160401b0316116122105760405162461bcd60e51b8152600401610b2590613423565b61221981611007565b1561227e5760405162461bcd60e51b815260206004820152602f60248201527f5363726962626c65733a20416d6f756e742065786365656473206c696d69742060448201526e3832b9103a3930b739b0b1ba34b7b760891b6064820152608401610b25565b612287816117bb565b156122a45760405162461bcd60e51b8152600401610b25906133b8565b806001600160401b0316600a546122bb91906135e5565b34146123185760405162461bcd60e51b815260206004820152602660248201527f5363726962626c65733a205061796d656e7420616d6f756e7420697320696e636044820152651bdc9c9958dd60d21b6064820152608401610b25565b61232b33826001600160401b031661236c565b506001600955565b600081600111158015612347575060005482105b8015610aac575050600090815260046020526040902054600160e01b900460ff161590565b6113ec828260405180602001604052806000815250612ccf565b6000333014156123dd57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506123e09050565b50335b90565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061244a826126ec565b9050836001600160a01b031681600001516001600160a01b0316146124815760405162a1148160e81b815260040160405180910390fd5b6000846001600160a01b0316612495612386565b6001600160a01b031614806124b157506124b185610a22612386565b806124dc57506124bf612386565b6001600160a01b03166124d184610e08565b6001600160a01b0316145b9050806124fc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661252357604051633a954ecd60e21b815260040160405180910390fd5b61252f600084876123e3565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661260357600054821461260357805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061370a83398151915260405160405180910390a46126428585856001612e68565b5050505050565b600854600160a01b900460ff166126995760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b25565b6008805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6126cf612386565b6040516001600160a01b03909116815260200160405180910390a1565b604080516060810182526000808252602082018190529181019190915281806001116127f5576000548110156127f557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906127f35780516001600160a01b03161561278a579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156127ee579392505050565b61278a565b505b604051636f96cda160e11b815260040160405180910390fd5b6000612819836126ec565b805190915082156128a1576000816001600160a01b0316612838612386565b6001600160a01b03161480612854575061285482610a22612386565b8061287f5750612862612386565b6001600160a01b031661287486610e08565b6001600160a01b0316145b90508061289f57604051632ce44b5f60e11b815260040160405180910390fd5b505b6128ad600085836123e3565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166129ab5760005482146129ab57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b0384169060008051602061370a833981519152908390a46129e3816000866001612e68565b505060018054810190555050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600854600160a01b900460ff1615612a6d5760405162461bcd60e51b8152600401610b25906133f9565b6008805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126cf612386565b6000836001600160a01b031663150b7a02612ac2612386565b8786866040518563ffffffff1660e01b8152600401612ae49493929190613368565b602060405180830381600087803b158015612afe57600080fd5b505af1925050508015612b2e575060408051601f3d908101601f19168201909252612b2b9181019061327a565b60015b612b89573d808015612b5c576040519150601f19603f3d011682016040523d82523d6000602084013e612b61565b606091505b508051612b81576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600f8054610d8590613647565b606081612bda5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c045780612bee81613682565b9150612bfd9050600a836135d1565b9150612bde565b6000816001600160401b03811115612c2c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612c56576020820181803683370190505b5090505b8415612b9f57612c6b600183613604565b9150612c78600a8661369d565b612c83906030613597565b60f81b818381518110612ca657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612cc8600a866135d1565b9450612c5a565b6000546001600160a01b038416612cf857604051622e076360e81b815260040160405180910390fd5b82612d165760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612e27575b60405182906001600160a01b0388169060009060008051602061370a833981519152908290a4612df06000878480600101955087612aa9565b612e0d576040516368d2bf6b60e11b815260040160405180910390fd5b808210612db7578260005414612e2257600080fd5b612e5a565b5b6040516001830192906001600160a01b0388169060009060008051602061370a833981519152908290a4808210612e28575b506000908155611d42908583865b6001600160a01b038416612ec557604080516001600160a01b0385168152602081018490529081018290527f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f9060600160405180910390a1611d42565b6001600160a01b038316611d4257604080516001600160a01b0386168152602081018490529081018290527f49995e5dd6158cf69ad3e9777c46755a1a826a446c6416992167462dad033b2a9060600160405180910390a150505050565b828054612f2f90613647565b90600052602060002090601f016020900481019282612f515760008555612f97565b82601f10612f6a57805160ff1916838001178555612f97565b82800160010185558215612f97579182015b82811115612f97578251825591602001919060010190612f7c565b50612fa3929150612fa7565b5090565b5b80821115612fa35760008155600101612fa8565b60006001600160401b0380841115612fd657612fd66136dd565b604051601f8501601f19908116603f01168101908282118183101715612ffe57612ffe6136dd565b8160405280935085815286868601111561301757600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461304857600080fd5b919050565b80356001600160401b038116811461304857600080fd5b600060208284031215613075578081fd5b611e9582613031565b60008060408385031215613090578081fd5b61309983613031565b91506130a760208401613031565b90509250929050565b6000806000606084860312156130c4578081fd5b6130cd84613031565b92506130db60208501613031565b9150604084013590509250925092565b60008060008060808587031215613100578081fd5b61310985613031565b935061311760208601613031565b92506040850135915060608501356001600160401b03811115613138578182fd5b8501601f81018713613148578182fd5b61315787823560208401612fbc565b91505092959194509250565b60008060408385031215613175578182fd5b61317e83613031565b915060208301358015158114613192578182fd5b809150509250929050565b600080604083850312156131af578182fd5b6131b883613031565b946020939093013593505050565b600080604083850312156131d8578182fd5b6131e183613031565b91506130a76020840161304d565b60008060208385031215613201578182fd5b82356001600160401b0380821115613217578384fd5b818501915085601f83011261322a578384fd5b813581811115613238578485fd5b8660208260051b850101111561324c578485fd5b60209290920196919550909350505050565b60006020828403121561326f578081fd5b8135611e95816136f3565b60006020828403121561328b578081fd5b8151611e95816136f3565b6000602082840312156132a7578081fd5b81356001600160401b038111156132bc578182fd5b8201601f810184136132cc578182fd5b612b9f84823560208401612fbc565b6000602082840312156132ec578081fd5b5035919050565b600060208284031215613304578081fd5b611e958261304d565b6000815180845261332581602086016020860161361b565b601f01601f19169290920160200192915050565b6000835161334b81846020880161361b565b83519083019061335f81836020880161361b565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061339b9083018461330d565b9695505050505050565b602081526000611e95602083018461330d565b60208082526021908201527f5363726962626c65733a204e6f7420656e6f75676820746f6b656e73206c65666040820152601d60fa1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601e908201527f5363726962626c65733a2043616e2774206d696e74203020746f6b656e730000604082015260600190565b60208082526027908201527f5363726962626c65733a204d6574616461746120626173652063616e277420626040820152666520656d70747960c81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526038908201527f5363726962626c65733a205472616e73616374696f6e732066726f6d20736d6160408201527f727420636f6e747261637473206e6f7420616c6c6f7765640000000000000000606082015260800190565b60208082526013908201527214d8dc9a58989b195cce8814dbdb19081bdd5d606a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600082198211156135aa576135aa6136b1565b500190565b60006001600160401b0380831681851680830382111561335f5761335f6136b1565b6000826135e0576135e06136c7565b500490565b60008160001904831182151516156135ff576135ff6136b1565b500290565b600082821015613616576136166136b1565b500390565b60005b8381101561363657818101518382015260200161361e565b83811115611d425750506000910152565b600181811c9082168061365b57607f821691505b6020821081141561367c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613696576136966136b1565b5060010190565b6000826136ac576136ac6136c7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146120fd57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212202299d755f6e3ee844e979834032d37a79ecc49f5f43b3c287ee5d187948008cf64736f6c6343000804003368747470733a2f2f6d657461646174612e7363726962626c65732e696f2f7072652f

Deployed Bytecode

0x6080604052600436106103805760003560e01c80636817c76c116101d1578063a2309ff811610102578063d3811c0f116100a0578063f19605d61161006f578063f19605d614610a27578063f2fde38b14610a4e578063f4a0a52814610a6e578063fb9d09c814610a8e57600080fd5b8063d3811c0f146109b2578063d89135cd146109d2578063dc33e681146109e7578063e985e9c514610a0757600080fd5b8063c0c728ea116100dc578063c0c728ea1461093c578063c71b0e1c1461095c578063c87b56dd14610972578063cd55ef1f1461099257600080fd5b8063a2309ff8146108e3578063aca8ffe7146108fc578063b88d4fde1461091c57600080fd5b80638b7afe2e1161016f57806393d756aa1161014957806393d756aa1461087957806395d89b4114610899578063989bdbb6146108ae578063a22cb465146108c357600080fd5b80638b7afe2e146108285780638da5cb5b1461083b5780638df4a8e31461085957600080fd5b8063715018a6116101ab578063715018a6146107bd5780637d4c9e68146107d2578063833c1d95146107f25780638456cb591461081357600080fd5b80636817c76c1461076657806369d2ceb11461077c57806370a082311461079d57600080fd5b80632478d639116102b657806342f10933116102545780635c975abb116102235780635c975abb146106f25780636352211e1461071157806365b973c31461073157806367a531731461074657600080fd5b806342f109331461064557806345c0f5331461066557806352d8a4d11461067b57806354214f69146106d157600080fd5b80633ab1a494116102905780633ab1a494146105db5780633ccfd60b146105fb5780633f4ba83a1461061057806342842e0e1461062557600080fd5b80632478d6391461058657806338b616c1146105a657806339fc5d44146105bb57600080fd5b8063095ea7b311610323578063175290cf116102fd578063175290cf1461050357806318160ddd146105235780631a6eedb41461054657806323b872dd1461056657600080fd5b8063095ea7b3146104a35780630cb71584146104c35780631581b600146104e357600080fd5b8063059cbd9b1161035f578063059cbd9b146103fc57806306fdde0314610411578063081812fc1461043357806308346d851461046b57600080fd5b8062923f9e1461038557806301ffc9a7146103ba57806302be8bff146103da575b600080fd5b34801561039157600080fd5b506103a56103a03660046132db565b610aa1565b60405190151581526020015b60405180910390f35b3480156103c657600080fd5b506103a56103d536600461325e565b610ab2565b3480156103e657600080fd5b506103fa6103f53660046132f3565b610b02565b005b34801561040857600080fd5b506103fa610cbe565b34801561041d57600080fd5b50610426610d76565b6040516103b191906133a5565b34801561043f57600080fd5b5061045361044e3660046132db565b610e08565b6040516001600160a01b0390911681526020016103b1565b34801561047757600080fd5b50600b5461048b906001600160401b031681565b6040516001600160401b0390911681526020016103b1565b3480156104af57600080fd5b506103fa6104be36600461319d565b610e4c565b3480156104cf57600080fd5b506103fa6104de366004613296565b610ee5565b3480156104ef57600080fd5b50600e54610453906001600160a01b031681565b34801561050f57600080fd5b506103a561051e3660046132f3565b611007565b34801561052f57600080fd5b50610538611044565b6040519081526020016103b1565b34801561055257600080fd5b5061048b610561366004613064565b611052565b34801561057257600080fd5b506103fa6105813660046130b0565b611080565b34801561059257600080fd5b506105386105a1366004613064565b61108b565b3480156105b257600080fd5b506103fa6110b9565b3480156105c757600080fd5b506103fa6105d63660046132f3565b61116a565b3480156105e757600080fd5b506103fa6105f6366004613064565b6111e5565b34801561060757600080fd5b506103fa6112b8565b34801561061c57600080fd5b506103fa6113f0565b34801561063157600080fd5b506103fa6106403660046130b0565b611443565b34801561065157600080fd5b506103a5610660366004613064565b61145e565b34801561067157600080fd5b50610538600c5481565b34801561068757600080fd5b5061069b6106963660046132db565b61149e565b6040805182516001600160a01b031681526020808401516001600160401b031690820152918101511515908201526060016103b1565b3480156106dd57600080fd5b50600e546103a590600160a81b900460ff1681565b3480156106fe57600080fd5b50600854600160a01b900460ff166103a5565b34801561071d57600080fd5b5061045361072c3660046132db565b6114c4565b34801561073d57600080fd5b506104266114d6565b34801561075257600080fd5b506103fa6107613660046131ef565b611564565b34801561077257600080fd5b50610538600a5481565b34801561078857600080fd5b50600e546103a590600160b01b900460ff1681565b3480156107a957600080fd5b506105386107b8366004613064565b61165d565b3480156107c957600080fd5b506103fa6116ab565b3480156107de57600080fd5b506103fa6107ed3660046132f3565b6116fe565b3480156107fe57600080fd5b50600e546103a590600160a01b900460ff1681565b34801561081f57600080fd5b506103fa61176a565b34801561083457600080fd5b5047610538565b34801561084757600080fd5b506008546001600160a01b0316610453565b34801561086557600080fd5b506103a56108743660046132f3565b6117bb565b34801561088557600080fd5b506103fa6108943660046131c6565b6117f0565b3480156108a557600080fd5b506104266119d8565b3480156108ba57600080fd5b506103fa6119e7565b3480156108cf57600080fd5b506103fa6108de366004613163565b611b2d565b3480156108ef57600080fd5b5060005460001901610538565b34801561090857600080fd5b506103fa6109173660046132db565b611c00565b34801561092857600080fd5b506103fa6109373660046130eb565b611cfe565b34801561094857600080fd5b506103fa6109573660046132db565b611d48565b34801561096857600080fd5b50610538600d5481565b34801561097e57600080fd5b5061042661098d3660046132db565b611e17565b34801561099e57600080fd5b506103a56109ad3660046131c6565b611e9c565b3480156109be57600080fd5b506103fa6109cd366004613296565b611ee7565b3480156109de57600080fd5b50600154610538565b3480156109f357600080fd5b50610538610a02366004613064565b611fbb565b348015610a1357600080fd5b506103a5610a2236600461307e565b611fe9565b348015610a3357600080fd5b50600b5461048b90600160401b90046001600160401b031681565b348015610a5a57600080fd5b506103fa610a69366004613064565b612046565b348015610a7a57600080fd5b506103fa610a893660046132db565b612100565b6103fa610a9c3660046132f3565b61214e565b6000610aac82612333565b92915050565b60006001600160e01b031982166380ac58cd60e01b1480610ae357506001600160e01b03198216635b5e139f60e01b145b80610aac57506301ffc9a760e01b6001600160e01b0319831614610aac565b60026009541415610b2e5760405162461bcd60e51b8152600401610b2590613560565b60405180910390fd5b6002600955333214610b525760405162461bcd60e51b8152600401610b25906134d6565b600854600160a01b900460ff1615610b7c5760405162461bcd60e51b8152600401610b25906133f9565b600c54610b87611044565b10610ba45760405162461bcd60e51b8152600401610b2590613533565b6000816001600160401b031611610bcd5760405162461bcd60e51b8152600401610b2590613423565b610bd73382611e9c565b15610c365760405162461bcd60e51b815260206004820152602960248201527f5363726962626c65733a20416d6f756e7420657863656564732066726565206d6044820152681a5b9d081b1a5b5a5d60ba1b6064820152608401610b25565b610c3f816117bb565b15610c5c5760405162461bcd60e51b8152600401610b25906133b8565b610c6f33826001600160401b031661236c565b6000610c7a33611052565b9050610c8682826135af565b33600090815260056020526040902080546001600160c01b0316600160c01b6001600160401b03841602179055905050506001600955565b610cc6612386565b6001600160a01b0316610ce16008546001600160a01b031690565b6001600160a01b031614610d075760405162461bcd60e51b8152600401610b25906134a1565b600e54600160a01b900460ff1615610d615760405162461bcd60e51b815260206004820152601c60248201527f5363726962626c65733a204275726e696e6720697320706175736564000000006044820152606401610b25565b600e805460ff60a01b1916600160a01b179055565b606060028054610d8590613647565b80601f0160208091040260200160405190810160405280929190818152602001828054610db190613647565b8015610dfe5780601f10610dd357610100808354040283529160200191610dfe565b820191906000526020600020905b815481529060010190602001808311610de157829003601f168201915b5050505050905090565b6000610e1382612333565b610e30576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610e57826114c4565b9050806001600160a01b0316836001600160a01b03161415610e8c5760405163250fdee360e21b815260040160405180910390fd5b806001600160a01b0316610e9e612386565b6001600160a01b031614610ed557610eb881610a22612386565b610ed5576040516367d9dca160e11b815260040160405180910390fd5b610ee08383836123e3565b505050565b610eed612386565b6001600160a01b0316610f086008546001600160a01b031690565b6001600160a01b031614610f2e5760405162461bcd60e51b8152600401610b25906134a1565b600e54600160a81b900460ff1615610f885760405162461bcd60e51b815260206004820152601b60248201527f5363726962626c65733a20416c72656164792072657665616c656400000000006044820152606401610b25565b8051610fa65760405162461bcd60e51b8152600401610b259061345a565b600e805460ff60a81b1916600160a81b1790558051610fcc90600f906020840190612f23565b507f34f25fe82e04b6b4bb3440737372e9d5d8e7a6a2b12da5dc4abead2c0b544ad981604051610ffc91906133a5565b60405180910390a150565b600b54600090600160401b90046001600160401b0316611028576000610aac565b50600b54600160401b90046001600160401b0390811691161190565b600154600054036000190190565b6001600160a01b038116600090815260056020526040812054600160c01b90046001600160401b0316610aac565b610ee083838361243f565b6001600160a01b038116600090815260056020526040812054600160801b90046001600160401b0316610aac565b6110c1612386565b6001600160a01b03166110dc6008546001600160a01b031690565b6001600160a01b0316146111025760405162461bcd60e51b8152600401610b25906134a1565b600e54600160a01b900460ff1661115b5760405162461bcd60e51b815260206004820152601d60248201527f5363726962626c65733a204275726e696e67206e6f74207061757365640000006044820152606401610b25565b600e805460ff60a01b19169055565b611172612386565b6001600160a01b031661118d6008546001600160a01b031690565b6001600160a01b0316146111b35760405162461bcd60e51b8152600401610b25906134a1565b600b80546001600160401b03909216600160401b026fffffffffffffffff000000000000000019909216919091179055565b6111ed612386565b6001600160a01b03166112086008546001600160a01b031690565b6001600160a01b03161461122e5760405162461bcd60e51b8152600401610b25906134a1565b6001600160a01b0381166112965760405162461bcd60e51b815260206004820152602960248201527f5363726962626c65733a20576974686472617720616464726573732063616e276044820152681d081899481b9d5b1b60ba1b6064820152608401610b25565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600e546001600160a01b031661131b5760405162461bcd60e51b815260206004820152602260248201527f5363726962626c65733a20776974686472617741646472657373206e6f742073604482015261195d60f21b6064820152608401610b25565b611323612386565b6001600160a01b031661133e6008546001600160a01b031690565b6001600160a01b0316146113645760405162461bcd60e51b8152600401610b25906134a1565b47806113b25760405162461bcd60e51b815260206004820152601f60248201527f5363726962626c65733a20496e73756666696369656e742062616c616e6365006044820152606401610b25565b600e546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156113ec573d6000803e3d6000fd5b5050565b6113f8612386565b6001600160a01b03166114136008546001600160a01b031690565b6001600160a01b0316146114395760405162461bcd60e51b8152600401610b25906134a1565b611441612649565b565b610ee083838360405180602001604052806000815250611cfe565b600b546000906001600160401b0316611478576000610aac565b600b546001600160401b031661148d83611052565b6001600160401b0316101592915050565b6040805160608101825260008082526020820181905291810191909152610aac826126ec565b60006114cf826126ec565b5192915050565b600f80546114e390613647565b80601f016020809104026020016040519081016040528092919081815260200182805461150f90613647565b801561155c5780601f106115315761010080835404028352916020019161155c565b820191906000526020600020905b81548152906001019060200180831161153f57829003601f168201915b505050505081565b600260095414156115875760405162461bcd60e51b8152600401610b2590613560565b60026009553332146115ab5760405162461bcd60e51b8152600401610b25906134d6565b600e54600160a01b900460ff16156116055760405162461bcd60e51b815260206004820152601c60248201527f5363726962626c65733a204275726e696e6720697320706175736564000000006044820152606401610b25565b60005b818110156116535761164183838381811061163357634e487b7160e01b600052603260045260246000fd5b90506020020135600161280e565b8061164b81613682565b915050611608565b5050600160095550565b60006001600160a01b038216611686576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6116b3612386565b6001600160a01b03166116ce6008546001600160a01b031690565b6001600160a01b0316146116f45760405162461bcd60e51b8152600401610b25906134a1565b61144160006129f1565b611706612386565b6001600160a01b03166117216008546001600160a01b031690565b6001600160a01b0316146117475760405162461bcd60e51b8152600401610b25906134a1565b600b805467ffffffffffffffff19166001600160401b0392909216919091179055565b611772612386565b6001600160a01b031661178d6008546001600160a01b031690565b6001600160a01b0316146117b35760405162461bcd60e51b8152600401610b25906134a1565b611441612a43565b6000600c54826001600160401b0316600d546117d5611044565b6117df9190613597565b6117e99190613597565b1192915050565b600260095414156118135760405162461bcd60e51b8152600401610b2590613560565b6002600955611820612386565b6001600160a01b031661183b6008546001600160a01b031690565b6001600160a01b0316146118615760405162461bcd60e51b8152600401610b25906134a1565b600c5461186c611044565b106118895760405162461bcd60e51b8152600401610b2590613533565b6000816001600160401b0316116118b25760405162461bcd60e51b8152600401610b2590613423565b6000600d54116119105760405162461bcd60e51b8152602060048201526024808201527f5363726962626c65733a204e6f20746f6b656e73206c65667420696e207265736044820152636572766560e01b6064820152608401610b25565b611919816117bb565b156119365760405162461bcd60e51b8152600401610b25906133b8565b600d54816001600160401b0316111561199c5760405162461bcd60e51b815260206004820152602260248201527f5363726962626c65733a204578636565647320726573657276656420616d6f756044820152611b9d60f21b6064820152608401610b25565b6119af82826001600160401b031661236c565b806001600160401b0316600d60008282546119ca9190613604565b909155505060016009555050565b606060038054610d8590613647565b6119ef612386565b6001600160a01b0316611a0a6008546001600160a01b031690565b6001600160a01b031614611a305760405162461bcd60e51b8152600401610b25906134a1565b600e54600160b01b900460ff1615611a8a5760405162461bcd60e51b815260206004820152601960248201527f5363726962626c65733a20416c7265616479206c6f636b6564000000000000006044820152606401610b25565b600e54600160a81b900460ff16611aef5760405162461bcd60e51b815260206004820152602360248201527f5363726962626c65733a2043616e2774206c6f636b206265666f72652072657660448201526219585b60ea1b6064820152608401610b25565b600e805460ff60b01b1916600160b01b1790556040517f27de4862bfc92b76e402ed305829f40e9e5fcd597ab2206b4e6294cd24ed45c490600090a1565b611b35612386565b6001600160a01b0316826001600160a01b03161415611b675760405163b06307db60e01b815260040160405180910390fd5b8060076000611b74612386565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611bb8612386565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611bf4911515815260200190565b60405180910390a35050565b611c08612386565b6001600160a01b0316611c236008546001600160a01b031690565b6001600160a01b031614611c495760405162461bcd60e51b8152600401610b25906134a1565b611c51611044565b811015611cd05760405162461bcd60e51b815260206004820152604160248201527f5363726962626c65733a204e657720636f6c6c656374696f6e2073697a65206360448201527f616e2774206265206c6f776572207468616e2063757272656e7420737570706c6064820152607960f81b608482015260a401610b25565b600c8190556000611cdf611044565b600c54611cec9190613604565b9050600d548110156113ec57600d5550565b611d0984848461243f565b6001600160a01b0383163b15611d4257611d2584848484612aa9565b611d42576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b611d50612386565b6001600160a01b0316611d6b6008546001600160a01b031690565b6001600160a01b031614611d915760405162461bcd60e51b8152600401610b25906134a1565b6000611d9b611044565b600c54611da89190613604565b905080821115611e115760405162461bcd60e51b815260206004820152602e60248201527f5363726962626c65733a204e657720616d6f756e74206578636565647320726560448201526d6d61696e696e6720746f6b656e7360901b6064820152608401610b25565b50600d55565b6060611e2282612333565b611e3f57604051630a14c4b560e41b815260040160405180910390fd5b6000611e49612ba7565b9050805160001415611e6a5760405180602001604052806000815250611e95565b80611e7484612bb6565b604051602001611e85929190613339565b6040516020818303038152906040525b9392505050565b600b546000906001600160401b0316611eb6576000611e95565b600b546001600160401b031682611ecc85611052565b611ed691906135af565b6001600160401b0316119392505050565b611eef612386565b6001600160a01b0316611f0a6008546001600160a01b031690565b6001600160a01b031614611f305760405162461bcd60e51b8152600401610b25906134a1565b600e54600160b01b900460ff1615611f8a5760405162461bcd60e51b815260206004820152601a60248201527f5363726962626c65733a204d65746164617461206c6f636b65640000000000006044820152606401610b25565b8051611fa85760405162461bcd60e51b8152600401610b259061345a565b80516113ec90600f906020840190612f23565b6001600160a01b038116600090815260056020526040812054600160401b90046001600160401b0316610aac565b60006001600160a01b0382167358807bad0b376efc12f5ad86aac70e78ed67deae141561201857506001610aac565b6001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff16611e95565b61204e612386565b6001600160a01b03166120696008546001600160a01b031690565b6001600160a01b03161461208f5760405162461bcd60e51b8152600401610b25906134a1565b6001600160a01b0381166120f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b25565b6120fd816129f1565b50565b612108612386565b6001600160a01b03166121236008546001600160a01b031690565b6001600160a01b0316146121495760405162461bcd60e51b8152600401610b25906134a1565b600a55565b600260095414156121715760405162461bcd60e51b8152600401610b2590613560565b60026009553332146121955760405162461bcd60e51b8152600401610b25906134d6565b600854600160a01b900460ff16156121bf5760405162461bcd60e51b8152600401610b25906133f9565b600c546121ca611044565b106121e75760405162461bcd60e51b8152600401610b2590613533565b6000816001600160401b0316116122105760405162461bcd60e51b8152600401610b2590613423565b61221981611007565b1561227e5760405162461bcd60e51b815260206004820152602f60248201527f5363726962626c65733a20416d6f756e742065786365656473206c696d69742060448201526e3832b9103a3930b739b0b1ba34b7b760891b6064820152608401610b25565b612287816117bb565b156122a45760405162461bcd60e51b8152600401610b25906133b8565b806001600160401b0316600a546122bb91906135e5565b34146123185760405162461bcd60e51b815260206004820152602660248201527f5363726962626c65733a205061796d656e7420616d6f756e7420697320696e636044820152651bdc9c9958dd60d21b6064820152608401610b25565b61232b33826001600160401b031661236c565b506001600955565b600081600111158015612347575060005482105b8015610aac575050600090815260046020526040902054600160e01b900460ff161590565b6113ec828260405180602001604052806000815250612ccf565b6000333014156123dd57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506123e09050565b50335b90565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061244a826126ec565b9050836001600160a01b031681600001516001600160a01b0316146124815760405162a1148160e81b815260040160405180910390fd5b6000846001600160a01b0316612495612386565b6001600160a01b031614806124b157506124b185610a22612386565b806124dc57506124bf612386565b6001600160a01b03166124d184610e08565b6001600160a01b0316145b9050806124fc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661252357604051633a954ecd60e21b815260040160405180910390fd5b61252f600084876123e3565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661260357600054821461260357805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061370a83398151915260405160405180910390a46126428585856001612e68565b5050505050565b600854600160a01b900460ff166126995760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b25565b6008805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6126cf612386565b6040516001600160a01b03909116815260200160405180910390a1565b604080516060810182526000808252602082018190529181019190915281806001116127f5576000548110156127f557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906127f35780516001600160a01b03161561278a579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156127ee579392505050565b61278a565b505b604051636f96cda160e11b815260040160405180910390fd5b6000612819836126ec565b805190915082156128a1576000816001600160a01b0316612838612386565b6001600160a01b03161480612854575061285482610a22612386565b8061287f5750612862612386565b6001600160a01b031661287486610e08565b6001600160a01b0316145b90508061289f57604051632ce44b5f60e11b815260040160405180910390fd5b505b6128ad600085836123e3565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166129ab5760005482146129ab57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b0384169060008051602061370a833981519152908390a46129e3816000866001612e68565b505060018054810190555050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600854600160a01b900460ff1615612a6d5760405162461bcd60e51b8152600401610b25906133f9565b6008805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126cf612386565b6000836001600160a01b031663150b7a02612ac2612386565b8786866040518563ffffffff1660e01b8152600401612ae49493929190613368565b602060405180830381600087803b158015612afe57600080fd5b505af1925050508015612b2e575060408051601f3d908101601f19168201909252612b2b9181019061327a565b60015b612b89573d808015612b5c576040519150601f19603f3d011682016040523d82523d6000602084013e612b61565b606091505b508051612b81576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600f8054610d8590613647565b606081612bda5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c045780612bee81613682565b9150612bfd9050600a836135d1565b9150612bde565b6000816001600160401b03811115612c2c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612c56576020820181803683370190505b5090505b8415612b9f57612c6b600183613604565b9150612c78600a8661369d565b612c83906030613597565b60f81b818381518110612ca657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612cc8600a866135d1565b9450612c5a565b6000546001600160a01b038416612cf857604051622e076360e81b815260040160405180910390fd5b82612d165760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612e27575b60405182906001600160a01b0388169060009060008051602061370a833981519152908290a4612df06000878480600101955087612aa9565b612e0d576040516368d2bf6b60e11b815260040160405180910390fd5b808210612db7578260005414612e2257600080fd5b612e5a565b5b6040516001830192906001600160a01b0388169060009060008051602061370a833981519152908290a4808210612e28575b506000908155611d42908583865b6001600160a01b038416612ec557604080516001600160a01b0385168152602081018490529081018290527f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f9060600160405180910390a1611d42565b6001600160a01b038316611d4257604080516001600160a01b0386168152602081018490529081018290527f49995e5dd6158cf69ad3e9777c46755a1a826a446c6416992167462dad033b2a9060600160405180910390a150505050565b828054612f2f90613647565b90600052602060002090601f016020900481019282612f515760008555612f97565b82601f10612f6a57805160ff1916838001178555612f97565b82800160010185558215612f97579182015b82811115612f97578251825591602001919060010190612f7c565b50612fa3929150612fa7565b5090565b5b80821115612fa35760008155600101612fa8565b60006001600160401b0380841115612fd657612fd66136dd565b604051601f8501601f19908116603f01168101908282118183101715612ffe57612ffe6136dd565b8160405280935085815286868601111561301757600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461304857600080fd5b919050565b80356001600160401b038116811461304857600080fd5b600060208284031215613075578081fd5b611e9582613031565b60008060408385031215613090578081fd5b61309983613031565b91506130a760208401613031565b90509250929050565b6000806000606084860312156130c4578081fd5b6130cd84613031565b92506130db60208501613031565b9150604084013590509250925092565b60008060008060808587031215613100578081fd5b61310985613031565b935061311760208601613031565b92506040850135915060608501356001600160401b03811115613138578182fd5b8501601f81018713613148578182fd5b61315787823560208401612fbc565b91505092959194509250565b60008060408385031215613175578182fd5b61317e83613031565b915060208301358015158114613192578182fd5b809150509250929050565b600080604083850312156131af578182fd5b6131b883613031565b946020939093013593505050565b600080604083850312156131d8578182fd5b6131e183613031565b91506130a76020840161304d565b60008060208385031215613201578182fd5b82356001600160401b0380821115613217578384fd5b818501915085601f83011261322a578384fd5b813581811115613238578485fd5b8660208260051b850101111561324c578485fd5b60209290920196919550909350505050565b60006020828403121561326f578081fd5b8135611e95816136f3565b60006020828403121561328b578081fd5b8151611e95816136f3565b6000602082840312156132a7578081fd5b81356001600160401b038111156132bc578182fd5b8201601f810184136132cc578182fd5b612b9f84823560208401612fbc565b6000602082840312156132ec578081fd5b5035919050565b600060208284031215613304578081fd5b611e958261304d565b6000815180845261332581602086016020860161361b565b601f01601f19169290920160200192915050565b6000835161334b81846020880161361b565b83519083019061335f81836020880161361b565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061339b9083018461330d565b9695505050505050565b602081526000611e95602083018461330d565b60208082526021908201527f5363726962626c65733a204e6f7420656e6f75676820746f6b656e73206c65666040820152601d60fa1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601e908201527f5363726962626c65733a2043616e2774206d696e74203020746f6b656e730000604082015260600190565b60208082526027908201527f5363726962626c65733a204d6574616461746120626173652063616e277420626040820152666520656d70747960c81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526038908201527f5363726962626c65733a205472616e73616374696f6e732066726f6d20736d6160408201527f727420636f6e747261637473206e6f7420616c6c6f7765640000000000000000606082015260800190565b60208082526013908201527214d8dc9a58989b195cce8814dbdb19081bdd5d606a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600082198211156135aa576135aa6136b1565b500190565b60006001600160401b0380831681851680830382111561335f5761335f6136b1565b6000826135e0576135e06136c7565b500490565b60008160001904831182151516156135ff576135ff6136b1565b500290565b600082821015613616576136166136b1565b500390565b60005b8381101561363657818101518382015260200161361e565b83811115611d425750506000910152565b600181811c9082168061365b57607f821691505b6020821081141561367c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613696576136966136b1565b5060010190565b6000826136ac576136ac6136c7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146120fd57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212202299d755f6e3ee844e979834032d37a79ecc49f5f43b3c287ee5d187948008cf64736f6c63430008040033

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.