ETH Price: $3,326.03 (-4.08%)

Token

Peach Club Pass (pcp)
 

Overview

Max Total Supply

397 pcp

Holders

285

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
ad1990.eth
Balance
1 pcp
0xfcb95624971d38bca2926d05cd433cdf4948a893
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:
PeachClubPass

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : peachclub.sol
// SPDX-License-Identifier: MIT
/*                                                                                                                                                                                                                                            
                                                                                                                                               bbbbbbbb                                                                                      
PPPPPPPPPPPPPPPPP                                                       hhhhhhh                          CCCCCCCCCCCCClllllll                  b::::::b                 PPPPPPPPPPPPPPPPP                                                    
P::::::::::::::::P                                                      h:::::h                       CCC::::::::::::Cl:::::l                  b::::::b                 P::::::::::::::::P                                                   
P::::::PPPPPP:::::P                                                     h:::::h                     CC:::::::::::::::Cl:::::l                  b::::::b                 P::::::PPPPPP:::::P                                                  
PP:::::P     P:::::P                                                    h:::::h                    C:::::CCCCCCCC::::Cl:::::l                   b:::::b                 PP:::::P     P:::::P                                                 
  P::::P     P:::::P  eeeeeeeeeeee    aaaaaaaaaaaaa      cccccccccccccccch::::h hhhhh             C:::::C       CCCCCC l::::l uuuuuu    uuuuuu  b:::::bbbbbbbbb           P::::P     P:::::Paaaaaaaaaaaaa      ssssssssss       ssssssssss   
  P::::P     P:::::Pee::::::::::::ee  a::::::::::::a   cc:::::::::::::::ch::::hh:::::hhh         C:::::C               l::::l u::::u    u::::u  b::::::::::::::bb         P::::P     P:::::Pa::::::::::::a   ss::::::::::s    ss::::::::::s  
  P::::PPPPPP:::::Pe::::::eeeee:::::eeaaaaaaaaa:::::a c:::::::::::::::::ch::::::::::::::hh       C:::::C               l::::l u::::u    u::::u  b::::::::::::::::b        P::::PPPPPP:::::P aaaaaaaaa:::::ass:::::::::::::s ss:::::::::::::s 
  P:::::::::::::PPe::::::e     e:::::e         a::::ac:::::::cccccc:::::ch:::::::hhh::::::h      C:::::C               l::::l u::::u    u::::u  b:::::bbbbb:::::::b       P:::::::::::::PP           a::::as::::::ssss:::::ss::::::ssss:::::s
  P::::PPPPPPPPP  e:::::::eeeee::::::e  aaaaaaa:::::ac::::::c     ccccccch::::::h   h::::::h     C:::::C               l::::l u::::u    u::::u  b:::::b    b::::::b       P::::PPPPPPPPP      aaaaaaa:::::a s:::::s  ssssss  s:::::s  ssssss 
  P::::P          e:::::::::::::::::e aa::::::::::::ac:::::c             h:::::h     h:::::h     C:::::C               l::::l u::::u    u::::u  b:::::b     b:::::b       P::::P            aa::::::::::::a   s::::::s         s::::::s      
  P::::P          e::::::eeeeeeeeeee a::::aaaa::::::ac:::::c             h:::::h     h:::::h     C:::::C               l::::l u::::u    u::::u  b:::::b     b:::::b       P::::P           a::::aaaa::::::a      s::::::s         s::::::s   
  P::::P          e:::::::e         a::::a    a:::::ac::::::c     ccccccch:::::h     h:::::h      C:::::C       CCCCCC l::::l u:::::uuuu:::::u  b:::::b     b:::::b       P::::P          a::::a    a:::::assssss   s:::::s ssssss   s:::::s 
PP::::::PP        e::::::::e        a::::a    a:::::ac:::::::cccccc:::::ch:::::h     h:::::h       C:::::CCCCCCCC::::Cl::::::lu:::::::::::::::uub:::::bbbbbb::::::b     PP::::::PP        a::::a    a:::::as:::::ssss::::::ss:::::ssss::::::s
P::::::::P         e::::::::eeeeeeeea:::::aaaa::::::a c:::::::::::::::::ch:::::h     h:::::h        CC:::::::::::::::Cl::::::l u:::::::::::::::ub::::::::::::::::b      P::::::::P        a:::::aaaa::::::as::::::::::::::s s::::::::::::::s 
P::::::::P          ee:::::::::::::e a::::::::::aa:::a cc:::::::::::::::ch:::::h     h:::::h          CCC::::::::::::Cl::::::l  uu::::::::uu:::ub:::::::::::::::b       P::::::::P         a::::::::::aa:::as:::::::::::ss   s:::::::::::ss  
PPPPPPPPPP            eeeeeeeeeeeeee  aaaaaaaaaa  aaaa   cccccccccccccccchhhhhhh     hhhhhhh             CCCCCCCCCCCCCllllllll    uuuuuuuu  uuuubbbbbbbbbbbbbbbb        PPPPPPPPPP          aaaaaaaaaa  aaaa sssssssssss      sssssssssss    
*/

pragma solidity ^0.8.15;

import "@turtlecasedao/erc721g/contracts/ERC721G.sol";

contract PeachClubPass is ERC721G {
    uint256 private teamPC;
    bool    private isPublicActive;
    string  private baseURI = "ipfs://QmXd5672YxdDEpdX5LXPw7cZUQjrVuSsTHmDY9iC8ycwEC/";
    uint256 private amount;
    uint256 private price;
    mapping(address => uint256) private mintedPublicAddress;
    mapping(address => uint256) private addressBlockBought;


    
    modifier isSecured(uint8 mintType) {
        require(addressBlockBought[msg.sender] < block.timestamp, "CANNOT_MINT_ON_THE_SAME_BLOCK");
        require(tx.origin == msg.sender, "CONTRACTS_NOT_ALLOWED_TO_MINT");

        if(mintType == 1) {
            require(isPublicActive, "PUBLIC_MINT_IS_NOT_YET_ACTIVE");
        } 
        _;
    }

    modifier beforeAndAfter(uint256 numberOfTokens) {
        require(totalSupply() + numberOfTokens <= amount, "EXCEEDS_MAX_SUPPLY");
        // uint256 before_ = totalSupply();
        _;
        // uint256 after_ = totalSupply();
        addressBlockBought[msg.sender] = block.timestamp;
        // for (uint i = before_; i < after_; ++i) {
        //     _tokenGuardService[i] = true;
        // }
    }

    constructor() ERC721G("Peach Club Pass", "pcp") {
        teamPC = 50;
        amount = 500;
        price = 1;
    }

    function mintPublic(
        uint256 numberOfTokens
    ) external payable isSecured(1) beforeAndAfter(numberOfTokens) {
        require(msg.value >= (0.01 ether) * numberOfTokens * price, "INSUFFICIENT_PAYMENT");
        require(mintedPublicAddress[msg.sender] + numberOfTokens <= 10, "ALREADY_MINTED_MAX");

        mintedPublicAddress[msg.sender] += numberOfTokens;
        _mint(msg.sender, numberOfTokens);
    }

    function mintPCPForTeam(uint256 numberOfTokens) external onlyOwner {
        require(teamPC > 0, "NFTS_FOR_THE_TEAM_HAS_BEEN_MINTED");
        require(numberOfTokens <= teamPC, "EXCEEDS_MAX_MINT_FOR_TEAM");

        teamPC -= numberOfTokens;
        _mint(msg.sender, numberOfTokens);
    }

    function togglePublicMintActive() external onlyOwner {
        isPublicActive = !isPublicActive;
    }

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

    function setBaseURI(string calldata newBaseURI) external onlyOwner {
        baseURI = newBaseURI;
    }

    function setAmount(uint256 newAmount) external onlyOwner {
        amount = newAmount;
    }

    function setPrice(uint256 newPrice) external onlyOwner {
        price = newPrice;
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "No balance to withdraw");

        (bool success, ) = payable(msg.sender).call{value: balance}("");
        require(success, "Failed to withdraw payment");
    }

}

File 2 of 8 : ERC721G.sol
pragma solidity ^0.8.15;

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

// G is short for Guard
contract ERC721G is ERC721A, Ownable {

    constructor(string memory name_, string memory symbol_) ERC721A(name_, symbol_) {}

    // =============================================================
    // Token Guard Begin
    // =============================================================
    modifier onlyOracle() {
        require(msg.sender == _oracle(), "ORACLE_ONLY");
        _;
    }

    function enableGuardMode(address oracle) external onlyOwner() {
        mode = GUARDMODE.RUN;
        __setOracle(oracle);
        bigbro = BigBroOracle(oracle);
    }

    function turboGuardMode(bool turbo) external onlyOwner() {
        if (mode != GUARDMODE.PAUSE) {
            mode = turbo ? GUARDMODE.TURBO : GUARDMODE.RUN;
        }
    }

    function disableGuardMode() external onlyOwner() {
        mode = GUARDMODE.PAUSE;
        __setOracle(address(0));
    }

    function getTokenState(uint256 tokenId) external view returns(bool, TOKENSTATE) {
        return (_tokenGuardService[tokenId], _tokenStates[tokenId]);
    }

    /**
     * Token Guard operations
     */
    function queryResponseDispatch(
        REPLYACT  res,
        address   addr, // for compatible to BigBroOracle
        uint256[] calldata tokenIds
    ) external onlyOracle {
        uint length = tokenIds.length;
        for (uint i; i < length; ++i) {
            uint256 tokenId = tokenIds[i];
            
            if (res == REPLYACT.UNLOCK) {
                // unlock token
                _normalToken(tokenId);
            } else if (res == REPLYACT.LOCK){
                // lock token
                _lockToken(tokenId);
            } else if (res == REPLYACT.GUARD) {
                // guard
                _tokenGuardService[tokenId] = true;
                _lockToken(tokenId);
            } else if (res == REPLYACT.UNGUARD) {
                // unguard
                delete _tokenGuardService[tokenId];
                _normalToken(tokenId);
            } else {
                revert("Nothong to do");
            }
        }
    }

    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override virtual {
        if (mode != GUARDMODE.PAUSE && _tokenGuardService[startTokenId]) {
            for (uint i = startTokenId; i < startTokenId + quantity; ++i) {
                _lockToken(i);
            }
            bigbro.riskRequest(from, to, startTokenId, quantity);
        }
    }

    function bigbroApprovalForAll(address msg_sender, address operator) external onlyOracle {
        if (operator == msg_sender) revert ApproveToCaller();

        _setOperatorApprpvals(msg_sender, operator);
        emit ApprovalForAll(_msgSenderERC721A(), operator, true);
    }
}

File 3 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 4 of 8 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../BasicType.sol';
import '../BigBrother.sol';
import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A, BBTy {
    // Reference type for token approval.
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _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 {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // ==============================================================
    // Extented ERC721A -> ERC721G Begin
    // ==============================================================
    address      private  _oracleAddr;
    GUARDMODE    internal mode;
    bool         internal showup;
    BigBroOracle internal bigbro;

    mapping(uint256 => TOKENSTATE) internal _tokenStates;
    mapping(uint256 => bool)       internal _tokenGuardService;

    // errors
    error DangerousAddressDetected(address);
    error BigBroProtectingFrom(address);

    // events
    event Reclaim(string message, address indexed _addr, uint256 tokenId);
    event Judge(string message, address indexed _addr, uint256 tokenId);
    event LockToken(address indexed user, uint256 indexed tokenId);
    event UnLockToken(address indexed user, uint256 indexed tokenId);

    modifier unlockedToken(uint256 tokenId) {
        if (mode != GUARDMODE.PAUSE && !_isOracle()) {
            require(_tokenStates[tokenId] == TOKENSTATE.OK, "BigBro Is Protecting You: Token Locked");
        }
        _;
    }

    function _lockToken(uint256 tokenId) internal {
        _tokenStates[tokenId] = TOKENSTATE.LOCKED;
        emit LockToken(tx.origin, tokenId);
    }

    function _normalToken(uint256 tokenId) internal {
        _tokenStates[tokenId] = TOKENSTATE.OK;
        emit UnLockToken(tx.origin, tokenId);
    }

    function __setOracle(address _addr) internal {
        _oracleAddr = _addr;
    }

    function _oracle() internal view returns(address) {
        return _oracleAddr;
    }

    function _isOracle() internal view returns(bool) {
        return _oracleAddr == msg.sender;
    }

    function _setOperatorApprpvals(address msg_sender, address operator) internal {
        _operatorApprovals[msg_sender][operator] = true;
    }
    // =============================================================
    // Extented ERC721A -> ERC721G End
    // =============================================================

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

    /**
     * Sets the auxiliary 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 virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    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, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public virtual override unlockedToken(tokenId) {
        address owner = ownerOf(tokenId);

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

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        if (mode != GUARDMODE.PAUSE && approved) {
            if (mode != GUARDMODE.TURBO) {
                // if an address maybe safe, but blocked by the black list with some reasons
                // users still can set approval for all with BigBrother.sol::trustedSetApprovalForAll
                if (bigbro.queryBlackList(operator) == SAFEIDX.UNSAFE)
                    revert DangerousAddressDetected(operator);
            } else if (bigbro.bigBroGuardState(address(this))) {
                revert BigBroProtectingFrom(operator);
            }
        }

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

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public virtual override unlockedToken(tokenId) {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

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

    /**
     * @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 memory _data
    ) public virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, 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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @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 {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80.
            str := add(mload(0x40), 0x80)
            // Update the free memory pointer to allocate.
            mstore(0x40, str)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 5 of 8 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * 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();

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

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` 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);

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 6 of 8 : BigBrother.sol
pragma solidity ^0.8.15;

import './BasicType.sol';

interface BigBroOracle is BBTy {
    function riskRequest (
        address _from,
        address _to,
        uint256 _tokenId,
        uint256 _quantity
    ) external;

    function bigBroGuardState(
        address erc721
    ) external view returns(bool);

    function queryBlackList(
        address _operator
    ) external view returns(SAFEIDX);
}

File 7 of 8 : BasicType.sol
pragma solidity ^0.8.15;

interface BBTy {
    enum GUARDMODE  { PAUSE, RUN, TURBO } 
    enum TOKENSTATE { OK, LOCKED, RECLIAMED }
    enum REPLYACT   { NONE, UNLOCK, LOCK, RECLAIM, JUDGE, GUARD, UNGUARD }
    enum TOKENOP    { GUARD, UNGUARD, LOCK, UNLOCK }
    enum SAFEIDX    { NONE, SAFE, UNSAFE }
}

File 8 of 8 : 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;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"BigBroProtectingFrom","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"DangerousAddressDetected","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"message","type":"string"},{"indexed":true,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Judge","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"LockToken","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":"string","name":"message","type":"string"},{"indexed":true,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Reclaim","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"UnLockToken","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"msg_sender","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"bigbroApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableGuardMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oracle","type":"address"}],"name":"enableGuardMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenState","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"enum BBTy.TOKENSTATE","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPCPForTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum BBTy.REPLYACT","name":"res","type":"uint8"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"queryResponseDispatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"setAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","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":[],"name":"togglePublicMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"turbo","type":"bool"}],"name":"turboGuardMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052604051806060016040528060368152602001620046f360369139600f90816200002e919062000475565b503480156200003c57600080fd5b506040518060400160405280600f81526020017f506561636820436c7562205061737300000000000000000000000000000000008152506040518060400160405280600381526020017f706370000000000000000000000000000000000000000000000000000000000081525081818160029081620000bc919062000475565b508060039081620000ce919062000475565b50620000df6200012860201b60201c565b600081905550505062000107620000fb6200012d60201b60201c565b6200013560201b60201c565b50506032600d819055506101f460108190555060016011819055506200055c565b600090565b600033905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200027d57607f821691505b60208210810362000293576200029262000235565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620002fd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620002be565b620003098683620002be565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000356620003506200034a8462000321565b6200032b565b62000321565b9050919050565b6000819050919050565b620003728362000335565b6200038a62000381826200035d565b848454620002cb565b825550505050565b600090565b620003a162000392565b620003ae81848462000367565b505050565b5b81811015620003d657620003ca60008262000397565b600181019050620003b4565b5050565b601f8211156200042557620003ef8162000299565b620003fa84620002ae565b810160208510156200040a578190505b620004226200041985620002ae565b830182620003b3565b50505b505050565b600082821c905092915050565b60006200044a600019846008026200042a565b1980831691505092915050565b600062000465838362000437565b9150826002028217905092915050565b6200048082620001fb565b67ffffffffffffffff8111156200049c576200049b62000206565b5b620004a8825462000264565b620004b5828285620003da565b600060209050601f831160018114620004ed5760008415620004d8578287015190505b620004e4858262000457565b86555062000554565b601f198416620004fd8662000299565b60005b82811015620005275784890151825560018201915060208501945060208101905062000500565b8683101562000547578489015162000543601f89168262000437565b8355505b6001600288020188555050505b505050505050565b614187806200056c6000396000f3fe6080604052600436106101cd5760003560e01c8063715018a6116100f7578063a22cb46511610095578063e985e9c511610064578063e985e9c514610620578063efd0cbf91461065d578063f2fde38b14610679578063f45fd0f3146106a2576101cd565b8063a22cb46514610568578063a3d82b7f14610591578063b88d4fde146105ba578063c87b56dd146105e3576101cd565b806391b7f5ed116100d157806391b7f5ed146104c257806395b21f56146104eb57806395d89b41146105145780639bf8eb441461053f576101cd565b8063715018a61461046957806376527485146104805780638da5cb5b14610497576101cd565b8063271f88b41161016f57806342842e0e1161013e57806342842e0e1461039d57806355f804b3146103c65780636352211e146103ef57806370a082311461042c576101cd565b8063271f88b41461031d57806337be1daf146103465780633ccfd60b1461035d5780633d10000614610374576101cd565b8063095ea7b3116101ab578063095ea7b31461027757806318160ddd146102a05780631d45f4aa146102cb57806323b872dd146102f4576101cd565b806301ffc9a7146101d257806306fdde031461020f578063081812fc1461023a575b600080fd5b3480156101de57600080fd5b506101f960048036038101906101f49190612c3b565b6106e0565b6040516102069190612c83565b60405180910390f35b34801561021b57600080fd5b50610224610772565b6040516102319190612d2e565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c9190612d86565b610804565b60405161026e9190612df4565b60405180910390f35b34801561028357600080fd5b5061029e60048036038101906102999190612e3b565b610883565b005b3480156102ac57600080fd5b506102b5610a9f565b6040516102c29190612e8a565b60405180910390f35b3480156102d757600080fd5b506102f260048036038101906102ed9190612ed1565b610ab6565b005b34801561030057600080fd5b5061031b60048036038101906103169190612efe565b610b35565b005b34801561032957600080fd5b50610344600480360381019061033f9190612d86565b610f2f565b005b34801561035257600080fd5b5061035b610f41565b005b34801561036957600080fd5b50610372610f80565b005b34801561038057600080fd5b5061039b60048036038101906103969190612d86565b611080565b005b3480156103a957600080fd5b506103c460048036038101906103bf9190612efe565b611138565b005b3480156103d257600080fd5b506103ed60048036038101906103e89190612fb6565b611158565b005b3480156103fb57600080fd5b5061041660048036038101906104119190612d86565b611176565b6040516104239190612df4565b60405180910390f35b34801561043857600080fd5b50610453600480360381019061044e9190613003565b611188565b6040516104609190612e8a565b60405180910390f35b34801561047557600080fd5b5061047e611240565b005b34801561048c57600080fd5b50610495611254565b005b3480156104a357600080fd5b506104ac611288565b6040516104b99190612df4565b60405180910390f35b3480156104ce57600080fd5b506104e960048036038101906104e49190612d86565b6112b2565b005b3480156104f757600080fd5b50610512600480360381019061050d9190613003565b6112c4565b005b34801561052057600080fd5b50610529611344565b6040516105369190612d2e565b60405180910390f35b34801561054b57600080fd5b50610566600480360381019061056191906130ab565b6113d6565b005b34801561057457600080fd5b5061058f600480360381019061058a919061311f565b61160a565b005b34801561059d57600080fd5b506105b860048036038101906105b3919061315f565b6119e9565b005b3480156105c657600080fd5b506105e160048036038101906105dc91906132cf565b611b3e565b005b3480156105ef57600080fd5b5061060a60048036038101906106059190612d86565b611bb1565b6040516106179190612d2e565b60405180910390f35b34801561062c57600080fd5b506106476004803603810190610642919061315f565b611c4f565b6040516106549190612c83565b60405180910390f35b61067760048036038101906106729190612d86565b611ce3565b005b34801561068557600080fd5b506106a0600480360381019061069b9190613003565b612020565b005b3480156106ae57600080fd5b506106c960048036038101906106c49190612d86565b6120a3565b6040516106d79291906133c9565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061073b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061076b5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461078190613421565b80601f01602080910402602001604051908101604052809291908181526020018280546107ad90613421565b80156107fa5780601f106107cf576101008083540402835291602001916107fa565b820191906000526020600020905b8154815290600101906020018083116107dd57829003601f168201915b5050505050905090565b600061080f826120f1565b610845576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b806000600281111561089857610897613352565b5b600860149054906101000a900460ff1660028111156108ba576108b9613352565b5b141580156108cd57506108cb612150565b155b1561095a57600060028111156108e6576108e5613352565b5b600a600083815260200190815260200160002060009054906101000a900460ff16600281111561091957610918613352565b5b14610959576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610950906134c4565b60405180910390fd5b5b600061096583611176565b90508073ffffffffffffffffffffffffffffffffffffffff166109866121a8565b73ffffffffffffffffffffffffffffffffffffffff16146109e9576109b2816109ad6121a8565b611c4f565b6109e8576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b6000610aa96121b0565b6001546000540303905090565b610abe6121b5565b60006002811115610ad257610ad1613352565b5b600860149054906101000a900460ff166002811115610af457610af3613352565b5b14610b325780610b05576001610b08565b60025b600860146101000a81548160ff02191690836002811115610b2c57610b2b613352565b5b02179055505b50565b8060006002811115610b4a57610b49613352565b5b600860149054906101000a900460ff166002811115610b6c57610b6b613352565b5b14158015610b7f5750610b7d612150565b155b15610c0c5760006002811115610b9857610b97613352565b5b600a600083815260200190815260200160002060009054906101000a900460ff166002811115610bcb57610bca613352565b5b14610c0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c02906134c4565b60405180910390fd5b5b6000610c1783612233565b90508473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c7e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610c8a856122ff565b91509150610ca08188610c9b6121a8565b612326565b610cec57610cb587610cb06121a8565b611c4f565b610ceb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603610d52576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d5f878787600161236a565b8015610d6a57600082555b600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e3886610e14898987612370565b7c020000000000000000000000000000000000000000000000000000000017612398565b600460008781526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610ebe5760006001860190506000600460008381526020019081526020016000205403610ebc576000548114610ebb578360046000838152602001908152602001600020819055505b5b505b848673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f2687878760016123c3565b50505050505050565b610f376121b5565b8060108190555050565b610f496121b5565b6000600860146101000a81548160ff02191690836002811115610f6f57610f6e613352565b5b0217905550610f7e60006124f7565b565b610f886121b5565b600047905060008111610fd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc790613530565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff1682604051610ff690613581565b60006040518083038185875af1925050503d8060008114611033576040519150601f19603f3d011682016040523d82523d6000602084013e611038565b606091505b505090508061107c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611073906135e2565b60405180910390fd5b5050565b6110886121b5565b6000600d54116110cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c490613674565b60405180910390fd5b600d54811115611112576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611109906136e0565b60405180910390fd5b80600d6000828254611124919061372f565b92505081905550611135338261253b565b50565b61115383838360405180602001604052806000815250611b3e565b505050565b6111606121b5565b8181600f918261117192919061391a565b505050565b600061118182612233565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111ef576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6112486121b5565b61125260006126f6565b565b61125c6121b5565b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112ba6121b5565b8060118190555050565b6112cc6121b5565b6001600860146101000a81548160ff021916908360028111156112f2576112f1613352565b5b0217905550611300816124f7565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606003805461135390613421565b80601f016020809104026020016040519081016040528092919081815260200182805461137f90613421565b80156113cc5780601f106113a1576101008083540402835291602001916113cc565b820191906000526020600020905b8154815290600101906020018083116113af57829003601f168201915b5050505050905090565b6113de6127bc565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461144b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144290613a36565b60405180910390fd5b600082829050905060005b8181101561160257600084848381811061147357611472613a56565b5b905060200201359050600160068111156114905761148f613352565b5b8760068111156114a3576114a2613352565b5b036114b6576114b1816127e6565b6115f0565b600260068111156114ca576114c9613352565b5b8760068111156114dd576114dc613352565b5b036114f0576114eb81612869565b6115ef565b6005600681111561150457611503613352565b5b87600681111561151757611516613352565b5b03611556576001600b600083815260200190815260200160002060006101000a81548160ff02191690831515021790555061155181612869565b6115ee565b60068081111561156957611568613352565b5b87600681111561157c5761157b613352565b5b036115b257600b600082815260200190815260200160002060006101000a81549060ff02191690556115ad816127e6565b6115ed565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e490613ad1565b60405180910390fd5b5b5b5b50806115fb90613af1565b9050611456565b505050505050565b6116126121a8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611676576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600281111561168a57611689613352565b5b600860149054906101000a900460ff1660028111156116ac576116ab613352565b5b141580156116b75750805b156118de576002808111156116cf576116ce613352565b5b600860149054906101000a900460ff1660028111156116f1576116f0613352565b5b146117fe5760028081111561170957611708613352565b5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663acf4cb3e846040518263ffffffff1660e01b81526004016117649190612df4565b602060405180830381865afa158015611781573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a59190613b5e565b60028111156117b7576117b6613352565b5b036117f957816040517f2b9924170000000000000000000000000000000000000000000000000000000081526004016117f09190612df4565b60405180910390fd5b6118dd565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630ac0f29e306040518263ffffffff1660e01b81526004016118599190612df4565b602060405180830381865afa158015611876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189a9190613ba0565b156118dc57816040517fcffca0320000000000000000000000000000000000000000000000000000000081526004016118d39190612df4565b60405180910390fd5b5b5b80600760006118eb6121a8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119986121a8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119dd9190612c83565b60405180910390a35050565b6119f16127bc565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5590613a36565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ac3576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611acd82826128ec565b8073ffffffffffffffffffffffffffffffffffffffff16611aec6121a8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c316001604051611b329190612c83565b60405180910390a35050565b611b49848484610b35565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611bab57611b7484848484612985565b611baa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611bbc826120f1565b611bf2576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611bfc612ad5565b90506000815103611c1c5760405180602001604052806000815250611c47565b80611c2684612b67565b604051602001611c37929190613c09565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600142601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410611d66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5d90613c79565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611dd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dcb90613ce5565b60405180910390fd5b60018160ff1603611e2f57600e60009054906101000a900460ff16611e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2590613d51565b60405180910390fd5b5b8160105481611e3c610a9f565b611e469190613d71565b1115611e87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7e90613df1565b60405180910390fd5b60115483662386f26fc10000611e9d9190613e11565b611ea79190613e11565b341015611ee9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee090613e9f565b60405180910390fd5b600a83601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f369190613d71565b1115611f77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6e90613f0b565b60405180910390fd5b82601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fc69190613d71565b92505081905550611fd7338461253b565b42601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b6120286121b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208e90613f9d565b60405180910390fd5b6120a0816126f6565b50565b600080600b600084815260200190815260200160002060009054906101000a900460ff16600a600085815260200190815260200160002060009054906101000a900460ff1691509150915091565b6000816120fc6121b0565b1115801561210b575060005482105b8015612149575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60003373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905090565b600033905090565b600090565b6121bd612bae565b73ffffffffffffffffffffffffffffffffffffffff166121db611288565b73ffffffffffffffffffffffffffffffffffffffff1614612231576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222890614009565b60405180910390fd5b565b600080829050806122426121b0565b116122c8576000548110156122c75760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036122c5575b600081036122bb576004600083600190039350838152602001908152602001600020549050612291565b80925050506122fa565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612387868684612bb6565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b600060028111156123d7576123d6613352565b5b600860149054906101000a900460ff1660028111156123f9576123f8613352565b5b141580156124245750600b600083815260200190815260200160002060009054906101000a900460ff165b156124f15760008290505b818361243b9190613d71565b81101561245c5761244b81612869565b8061245590613af1565b905061242f565b50600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166371e6317e858585856040518563ffffffff1660e01b81526004016124be9493929190614029565b600060405180830381600087803b1580156124d857600080fd5b505af11580156124ec573d6000803e3d6000fd5b505050505b50505050565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000805490506000820361257b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612588600084838561236a565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506125ff836125f06000866000612370565b6125f985612bbf565b17612398565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146126a057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612665565b50600082036126db576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506126f160008483856123c3565b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600a600083815260200190815260200160002060006101000a81548160ff0219169083600281111561281d5761281c613352565b5b0217905550803273ffffffffffffffffffffffffffffffffffffffff167f8d6a2e6ce583151b6660808c49b1a2f21e2b91061a62ede9fd815a992a7ea41560405160405180910390a350565b6001600a600083815260200190815260200160002060006101000a81548160ff021916908360028111156128a05761289f613352565b5b0217905550803273ffffffffffffffffffffffffffffffffffffffff167f9fe029c6176f2b9fe1394354b760728bc1b5fcc32f2e5f21f981fb7a65102ed660405160405180910390a350565b6001600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026129ab6121a8565b8786866040518563ffffffff1660e01b81526004016129cd94939291906140c3565b6020604051808303816000875af1925050508015612a0957506040513d601f19601f82011682018060405250810190612a069190614124565b60015b612a82573d8060008114612a39576040519150601f19603f3d011682016040523d82523d6000602084013e612a3e565b606091505b506000815103612a7a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600f8054612ae490613421565b80601f0160208091040260200160405190810160405280929190818152602001828054612b1090613421565b8015612b5d5780601f10612b3257610100808354040283529160200191612b5d565b820191906000526020600020905b815481529060010190602001808311612b4057829003601f168201915b5050505050905090565b606060806040510190508060405280825b600115612b9a57600183039250600a81066030018353600a8104905080612b78575b508181036020830392508083525050919050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c1881612be3565b8114612c2357600080fd5b50565b600081359050612c3581612c0f565b92915050565b600060208284031215612c5157612c50612bd9565b5b6000612c5f84828501612c26565b91505092915050565b60008115159050919050565b612c7d81612c68565b82525050565b6000602082019050612c986000830184612c74565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612cd8578082015181840152602081019050612cbd565b60008484015250505050565b6000601f19601f8301169050919050565b6000612d0082612c9e565b612d0a8185612ca9565b9350612d1a818560208601612cba565b612d2381612ce4565b840191505092915050565b60006020820190508181036000830152612d488184612cf5565b905092915050565b6000819050919050565b612d6381612d50565b8114612d6e57600080fd5b50565b600081359050612d8081612d5a565b92915050565b600060208284031215612d9c57612d9b612bd9565b5b6000612daa84828501612d71565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612dde82612db3565b9050919050565b612dee81612dd3565b82525050565b6000602082019050612e096000830184612de5565b92915050565b612e1881612dd3565b8114612e2357600080fd5b50565b600081359050612e3581612e0f565b92915050565b60008060408385031215612e5257612e51612bd9565b5b6000612e6085828601612e26565b9250506020612e7185828601612d71565b9150509250929050565b612e8481612d50565b82525050565b6000602082019050612e9f6000830184612e7b565b92915050565b612eae81612c68565b8114612eb957600080fd5b50565b600081359050612ecb81612ea5565b92915050565b600060208284031215612ee757612ee6612bd9565b5b6000612ef584828501612ebc565b91505092915050565b600080600060608486031215612f1757612f16612bd9565b5b6000612f2586828701612e26565b9350506020612f3686828701612e26565b9250506040612f4786828701612d71565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f840112612f7657612f75612f51565b5b8235905067ffffffffffffffff811115612f9357612f92612f56565b5b602083019150836001820283011115612faf57612fae612f5b565b5b9250929050565b60008060208385031215612fcd57612fcc612bd9565b5b600083013567ffffffffffffffff811115612feb57612fea612bde565b5b612ff785828601612f60565b92509250509250929050565b60006020828403121561301957613018612bd9565b5b600061302784828501612e26565b91505092915050565b6007811061303d57600080fd5b50565b60008135905061304f81613030565b92915050565b60008083601f84011261306b5761306a612f51565b5b8235905067ffffffffffffffff81111561308857613087612f56565b5b6020830191508360208202830111156130a4576130a3612f5b565b5b9250929050565b600080600080606085870312156130c5576130c4612bd9565b5b60006130d387828801613040565b94505060206130e487828801612e26565b935050604085013567ffffffffffffffff81111561310557613104612bde565b5b61311187828801613055565b925092505092959194509250565b6000806040838503121561313657613135612bd9565b5b600061314485828601612e26565b925050602061315585828601612ebc565b9150509250929050565b6000806040838503121561317657613175612bd9565b5b600061318485828601612e26565b925050602061319585828601612e26565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131dc82612ce4565b810181811067ffffffffffffffff821117156131fb576131fa6131a4565b5b80604052505050565b600061320e612bcf565b905061321a82826131d3565b919050565b600067ffffffffffffffff82111561323a576132396131a4565b5b61324382612ce4565b9050602081019050919050565b82818337600083830152505050565b600061327261326d8461321f565b613204565b90508281526020810184848401111561328e5761328d61319f565b5b613299848285613250565b509392505050565b600082601f8301126132b6576132b5612f51565b5b81356132c684826020860161325f565b91505092915050565b600080600080608085870312156132e9576132e8612bd9565b5b60006132f787828801612e26565b945050602061330887828801612e26565b935050604061331987828801612d71565b925050606085013567ffffffffffffffff81111561333a57613339612bde565b5b613346878288016132a1565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061339257613391613352565b5b50565b60008190506133a382613381565b919050565b60006133b382613395565b9050919050565b6133c3816133a8565b82525050565b60006040820190506133de6000830185612c74565b6133eb60208301846133ba565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061343957607f821691505b60208210810361344c5761344b6133f2565b5b50919050565b7f42696742726f2049732050726f74656374696e6720596f753a20546f6b656e2060008201527f4c6f636b65640000000000000000000000000000000000000000000000000000602082015250565b60006134ae602683612ca9565b91506134b982613452565b604082019050919050565b600060208201905081810360008301526134dd816134a1565b9050919050565b7f4e6f2062616c616e636520746f20776974686472617700000000000000000000600082015250565b600061351a601683612ca9565b9150613525826134e4565b602082019050919050565b600060208201905081810360008301526135498161350d565b9050919050565b600081905092915050565b50565b600061356b600083613550565b91506135768261355b565b600082019050919050565b600061358c8261355e565b9150819050919050565b7f4661696c656420746f207769746864726177207061796d656e74000000000000600082015250565b60006135cc601a83612ca9565b91506135d782613596565b602082019050919050565b600060208201905081810360008301526135fb816135bf565b9050919050565b7f4e4654535f464f525f5448455f5445414d5f4841535f4245454e5f4d494e544560008201527f4400000000000000000000000000000000000000000000000000000000000000602082015250565b600061365e602183612ca9565b915061366982613602565b604082019050919050565b6000602082019050818103600083015261368d81613651565b9050919050565b7f455843454544535f4d41585f4d494e545f464f525f5445414d00000000000000600082015250565b60006136ca601983612ca9565b91506136d582613694565b602082019050919050565b600060208201905081810360008301526136f9816136bd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061373a82612d50565b915061374583612d50565b925082820390508181111561375d5761375c613700565b5b92915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026137d07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613793565b6137da8683613793565b95508019841693508086168417925050509392505050565b6000819050919050565b600061381761381261380d84612d50565b6137f2565b612d50565b9050919050565b6000819050919050565b613831836137fc565b61384561383d8261381e565b8484546137a0565b825550505050565b600090565b61385a61384d565b613865818484613828565b505050565b5b818110156138895761387e600082613852565b60018101905061386b565b5050565b601f8211156138ce5761389f8161376e565b6138a884613783565b810160208510156138b7578190505b6138cb6138c385613783565b83018261386a565b50505b505050565b600082821c905092915050565b60006138f1600019846008026138d3565b1980831691505092915050565b600061390a83836138e0565b9150826002028217905092915050565b6139248383613763565b67ffffffffffffffff81111561393d5761393c6131a4565b5b6139478254613421565b61395282828561388d565b6000601f831160018114613981576000841561396f578287013590505b61397985826138fe565b8655506139e1565b601f19841661398f8661376e565b60005b828110156139b757848901358255600182019150602085019450602081019050613992565b868310156139d457848901356139d0601f8916826138e0565b8355505b6001600288020188555050505b50505050505050565b7f4f5241434c455f4f4e4c59000000000000000000000000000000000000000000600082015250565b6000613a20600b83612ca9565b9150613a2b826139ea565b602082019050919050565b60006020820190508181036000830152613a4f81613a13565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e6f74686f6e6720746f20646f00000000000000000000000000000000000000600082015250565b6000613abb600d83612ca9565b9150613ac682613a85565b602082019050919050565b60006020820190508181036000830152613aea81613aae565b9050919050565b6000613afc82612d50565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613b2e57613b2d613700565b5b600182019050919050565b60038110613b4657600080fd5b50565b600081519050613b5881613b39565b92915050565b600060208284031215613b7457613b73612bd9565b5b6000613b8284828501613b49565b91505092915050565b600081519050613b9a81612ea5565b92915050565b600060208284031215613bb657613bb5612bd9565b5b6000613bc484828501613b8b565b91505092915050565b600081905092915050565b6000613be382612c9e565b613bed8185613bcd565b9350613bfd818560208601612cba565b80840191505092915050565b6000613c158285613bd8565b9150613c218284613bd8565b91508190509392505050565b7f43414e4e4f545f4d494e545f4f4e5f5448455f53414d455f424c4f434b000000600082015250565b6000613c63601d83612ca9565b9150613c6e82613c2d565b602082019050919050565b60006020820190508181036000830152613c9281613c56565b9050919050565b7f434f4e5452414354535f4e4f545f414c4c4f5745445f544f5f4d494e54000000600082015250565b6000613ccf601d83612ca9565b9150613cda82613c99565b602082019050919050565b60006020820190508181036000830152613cfe81613cc2565b9050919050565b7f5055424c49435f4d494e545f49535f4e4f545f5945545f414354495645000000600082015250565b6000613d3b601d83612ca9565b9150613d4682613d05565b602082019050919050565b60006020820190508181036000830152613d6a81613d2e565b9050919050565b6000613d7c82612d50565b9150613d8783612d50565b9250828201905080821115613d9f57613d9e613700565b5b92915050565b7f455843454544535f4d41585f535550504c590000000000000000000000000000600082015250565b6000613ddb601283612ca9565b9150613de682613da5565b602082019050919050565b60006020820190508181036000830152613e0a81613dce565b9050919050565b6000613e1c82612d50565b9150613e2783612d50565b9250828202613e3581612d50565b91508282048414831517613e4c57613e4b613700565b5b5092915050565b7f494e53554646494349454e545f5041594d454e54000000000000000000000000600082015250565b6000613e89601483612ca9565b9150613e9482613e53565b602082019050919050565b60006020820190508181036000830152613eb881613e7c565b9050919050565b7f414c52454144595f4d494e5445445f4d41580000000000000000000000000000600082015250565b6000613ef5601283612ca9565b9150613f0082613ebf565b602082019050919050565b60006020820190508181036000830152613f2481613ee8565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613f87602683612ca9565b9150613f9282613f2b565b604082019050919050565b60006020820190508181036000830152613fb681613f7a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613ff3602083612ca9565b9150613ffe82613fbd565b602082019050919050565b6000602082019050818103600083015261402281613fe6565b9050919050565b600060808201905061403e6000830187612de5565b61404b6020830186612de5565b6140586040830185612e7b565b6140656060830184612e7b565b95945050505050565b600081519050919050565b600082825260208201905092915050565b60006140958261406e565b61409f8185614079565b93506140af818560208601612cba565b6140b881612ce4565b840191505092915050565b60006080820190506140d86000830187612de5565b6140e56020830186612de5565b6140f26040830185612e7b565b8181036060830152614104818461408a565b905095945050505050565b60008151905061411e81612c0f565b92915050565b60006020828403121561413a57614139612bd9565b5b60006141488482850161410f565b9150509291505056fea2646970667358221220645f51e6946da513f6b8fade18c74cc4693b508c35011b2b6615e4496911194f64736f6c63430008110033697066733a2f2f516d5864353637325978644445706458354c58507737635a55516a725675537354486d44593969433879637745432f

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c8063715018a6116100f7578063a22cb46511610095578063e985e9c511610064578063e985e9c514610620578063efd0cbf91461065d578063f2fde38b14610679578063f45fd0f3146106a2576101cd565b8063a22cb46514610568578063a3d82b7f14610591578063b88d4fde146105ba578063c87b56dd146105e3576101cd565b806391b7f5ed116100d157806391b7f5ed146104c257806395b21f56146104eb57806395d89b41146105145780639bf8eb441461053f576101cd565b8063715018a61461046957806376527485146104805780638da5cb5b14610497576101cd565b8063271f88b41161016f57806342842e0e1161013e57806342842e0e1461039d57806355f804b3146103c65780636352211e146103ef57806370a082311461042c576101cd565b8063271f88b41461031d57806337be1daf146103465780633ccfd60b1461035d5780633d10000614610374576101cd565b8063095ea7b3116101ab578063095ea7b31461027757806318160ddd146102a05780631d45f4aa146102cb57806323b872dd146102f4576101cd565b806301ffc9a7146101d257806306fdde031461020f578063081812fc1461023a575b600080fd5b3480156101de57600080fd5b506101f960048036038101906101f49190612c3b565b6106e0565b6040516102069190612c83565b60405180910390f35b34801561021b57600080fd5b50610224610772565b6040516102319190612d2e565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c9190612d86565b610804565b60405161026e9190612df4565b60405180910390f35b34801561028357600080fd5b5061029e60048036038101906102999190612e3b565b610883565b005b3480156102ac57600080fd5b506102b5610a9f565b6040516102c29190612e8a565b60405180910390f35b3480156102d757600080fd5b506102f260048036038101906102ed9190612ed1565b610ab6565b005b34801561030057600080fd5b5061031b60048036038101906103169190612efe565b610b35565b005b34801561032957600080fd5b50610344600480360381019061033f9190612d86565b610f2f565b005b34801561035257600080fd5b5061035b610f41565b005b34801561036957600080fd5b50610372610f80565b005b34801561038057600080fd5b5061039b60048036038101906103969190612d86565b611080565b005b3480156103a957600080fd5b506103c460048036038101906103bf9190612efe565b611138565b005b3480156103d257600080fd5b506103ed60048036038101906103e89190612fb6565b611158565b005b3480156103fb57600080fd5b5061041660048036038101906104119190612d86565b611176565b6040516104239190612df4565b60405180910390f35b34801561043857600080fd5b50610453600480360381019061044e9190613003565b611188565b6040516104609190612e8a565b60405180910390f35b34801561047557600080fd5b5061047e611240565b005b34801561048c57600080fd5b50610495611254565b005b3480156104a357600080fd5b506104ac611288565b6040516104b99190612df4565b60405180910390f35b3480156104ce57600080fd5b506104e960048036038101906104e49190612d86565b6112b2565b005b3480156104f757600080fd5b50610512600480360381019061050d9190613003565b6112c4565b005b34801561052057600080fd5b50610529611344565b6040516105369190612d2e565b60405180910390f35b34801561054b57600080fd5b50610566600480360381019061056191906130ab565b6113d6565b005b34801561057457600080fd5b5061058f600480360381019061058a919061311f565b61160a565b005b34801561059d57600080fd5b506105b860048036038101906105b3919061315f565b6119e9565b005b3480156105c657600080fd5b506105e160048036038101906105dc91906132cf565b611b3e565b005b3480156105ef57600080fd5b5061060a60048036038101906106059190612d86565b611bb1565b6040516106179190612d2e565b60405180910390f35b34801561062c57600080fd5b506106476004803603810190610642919061315f565b611c4f565b6040516106549190612c83565b60405180910390f35b61067760048036038101906106729190612d86565b611ce3565b005b34801561068557600080fd5b506106a0600480360381019061069b9190613003565b612020565b005b3480156106ae57600080fd5b506106c960048036038101906106c49190612d86565b6120a3565b6040516106d79291906133c9565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061073b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061076b5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461078190613421565b80601f01602080910402602001604051908101604052809291908181526020018280546107ad90613421565b80156107fa5780601f106107cf576101008083540402835291602001916107fa565b820191906000526020600020905b8154815290600101906020018083116107dd57829003601f168201915b5050505050905090565b600061080f826120f1565b610845576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b806000600281111561089857610897613352565b5b600860149054906101000a900460ff1660028111156108ba576108b9613352565b5b141580156108cd57506108cb612150565b155b1561095a57600060028111156108e6576108e5613352565b5b600a600083815260200190815260200160002060009054906101000a900460ff16600281111561091957610918613352565b5b14610959576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610950906134c4565b60405180910390fd5b5b600061096583611176565b90508073ffffffffffffffffffffffffffffffffffffffff166109866121a8565b73ffffffffffffffffffffffffffffffffffffffff16146109e9576109b2816109ad6121a8565b611c4f565b6109e8576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b6000610aa96121b0565b6001546000540303905090565b610abe6121b5565b60006002811115610ad257610ad1613352565b5b600860149054906101000a900460ff166002811115610af457610af3613352565b5b14610b325780610b05576001610b08565b60025b600860146101000a81548160ff02191690836002811115610b2c57610b2b613352565b5b02179055505b50565b8060006002811115610b4a57610b49613352565b5b600860149054906101000a900460ff166002811115610b6c57610b6b613352565b5b14158015610b7f5750610b7d612150565b155b15610c0c5760006002811115610b9857610b97613352565b5b600a600083815260200190815260200160002060009054906101000a900460ff166002811115610bcb57610bca613352565b5b14610c0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c02906134c4565b60405180910390fd5b5b6000610c1783612233565b90508473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c7e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610c8a856122ff565b91509150610ca08188610c9b6121a8565b612326565b610cec57610cb587610cb06121a8565b611c4f565b610ceb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603610d52576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d5f878787600161236a565b8015610d6a57600082555b600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e3886610e14898987612370565b7c020000000000000000000000000000000000000000000000000000000017612398565b600460008781526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610ebe5760006001860190506000600460008381526020019081526020016000205403610ebc576000548114610ebb578360046000838152602001908152602001600020819055505b5b505b848673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f2687878760016123c3565b50505050505050565b610f376121b5565b8060108190555050565b610f496121b5565b6000600860146101000a81548160ff02191690836002811115610f6f57610f6e613352565b5b0217905550610f7e60006124f7565b565b610f886121b5565b600047905060008111610fd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc790613530565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff1682604051610ff690613581565b60006040518083038185875af1925050503d8060008114611033576040519150601f19603f3d011682016040523d82523d6000602084013e611038565b606091505b505090508061107c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611073906135e2565b60405180910390fd5b5050565b6110886121b5565b6000600d54116110cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c490613674565b60405180910390fd5b600d54811115611112576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611109906136e0565b60405180910390fd5b80600d6000828254611124919061372f565b92505081905550611135338261253b565b50565b61115383838360405180602001604052806000815250611b3e565b505050565b6111606121b5565b8181600f918261117192919061391a565b505050565b600061118182612233565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111ef576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6112486121b5565b61125260006126f6565b565b61125c6121b5565b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112ba6121b5565b8060118190555050565b6112cc6121b5565b6001600860146101000a81548160ff021916908360028111156112f2576112f1613352565b5b0217905550611300816124f7565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606003805461135390613421565b80601f016020809104026020016040519081016040528092919081815260200182805461137f90613421565b80156113cc5780601f106113a1576101008083540402835291602001916113cc565b820191906000526020600020905b8154815290600101906020018083116113af57829003601f168201915b5050505050905090565b6113de6127bc565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461144b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144290613a36565b60405180910390fd5b600082829050905060005b8181101561160257600084848381811061147357611472613a56565b5b905060200201359050600160068111156114905761148f613352565b5b8760068111156114a3576114a2613352565b5b036114b6576114b1816127e6565b6115f0565b600260068111156114ca576114c9613352565b5b8760068111156114dd576114dc613352565b5b036114f0576114eb81612869565b6115ef565b6005600681111561150457611503613352565b5b87600681111561151757611516613352565b5b03611556576001600b600083815260200190815260200160002060006101000a81548160ff02191690831515021790555061155181612869565b6115ee565b60068081111561156957611568613352565b5b87600681111561157c5761157b613352565b5b036115b257600b600082815260200190815260200160002060006101000a81549060ff02191690556115ad816127e6565b6115ed565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e490613ad1565b60405180910390fd5b5b5b5b50806115fb90613af1565b9050611456565b505050505050565b6116126121a8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611676576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600281111561168a57611689613352565b5b600860149054906101000a900460ff1660028111156116ac576116ab613352565b5b141580156116b75750805b156118de576002808111156116cf576116ce613352565b5b600860149054906101000a900460ff1660028111156116f1576116f0613352565b5b146117fe5760028081111561170957611708613352565b5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663acf4cb3e846040518263ffffffff1660e01b81526004016117649190612df4565b602060405180830381865afa158015611781573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a59190613b5e565b60028111156117b7576117b6613352565b5b036117f957816040517f2b9924170000000000000000000000000000000000000000000000000000000081526004016117f09190612df4565b60405180910390fd5b6118dd565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630ac0f29e306040518263ffffffff1660e01b81526004016118599190612df4565b602060405180830381865afa158015611876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189a9190613ba0565b156118dc57816040517fcffca0320000000000000000000000000000000000000000000000000000000081526004016118d39190612df4565b60405180910390fd5b5b5b80600760006118eb6121a8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119986121a8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119dd9190612c83565b60405180910390a35050565b6119f16127bc565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5590613a36565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ac3576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611acd82826128ec565b8073ffffffffffffffffffffffffffffffffffffffff16611aec6121a8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c316001604051611b329190612c83565b60405180910390a35050565b611b49848484610b35565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611bab57611b7484848484612985565b611baa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611bbc826120f1565b611bf2576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611bfc612ad5565b90506000815103611c1c5760405180602001604052806000815250611c47565b80611c2684612b67565b604051602001611c37929190613c09565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600142601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410611d66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5d90613c79565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611dd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dcb90613ce5565b60405180910390fd5b60018160ff1603611e2f57600e60009054906101000a900460ff16611e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2590613d51565b60405180910390fd5b5b8160105481611e3c610a9f565b611e469190613d71565b1115611e87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7e90613df1565b60405180910390fd5b60115483662386f26fc10000611e9d9190613e11565b611ea79190613e11565b341015611ee9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee090613e9f565b60405180910390fd5b600a83601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f369190613d71565b1115611f77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6e90613f0b565b60405180910390fd5b82601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fc69190613d71565b92505081905550611fd7338461253b565b42601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b6120286121b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208e90613f9d565b60405180910390fd5b6120a0816126f6565b50565b600080600b600084815260200190815260200160002060009054906101000a900460ff16600a600085815260200190815260200160002060009054906101000a900460ff1691509150915091565b6000816120fc6121b0565b1115801561210b575060005482105b8015612149575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60003373ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905090565b600033905090565b600090565b6121bd612bae565b73ffffffffffffffffffffffffffffffffffffffff166121db611288565b73ffffffffffffffffffffffffffffffffffffffff1614612231576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222890614009565b60405180910390fd5b565b600080829050806122426121b0565b116122c8576000548110156122c75760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036122c5575b600081036122bb576004600083600190039350838152602001908152602001600020549050612291565b80925050506122fa565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612387868684612bb6565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b600060028111156123d7576123d6613352565b5b600860149054906101000a900460ff1660028111156123f9576123f8613352565b5b141580156124245750600b600083815260200190815260200160002060009054906101000a900460ff165b156124f15760008290505b818361243b9190613d71565b81101561245c5761244b81612869565b8061245590613af1565b905061242f565b50600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166371e6317e858585856040518563ffffffff1660e01b81526004016124be9493929190614029565b600060405180830381600087803b1580156124d857600080fd5b505af11580156124ec573d6000803e3d6000fd5b505050505b50505050565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000805490506000820361257b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612588600084838561236a565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506125ff836125f06000866000612370565b6125f985612bbf565b17612398565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146126a057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612665565b50600082036126db576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506126f160008483856123c3565b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600a600083815260200190815260200160002060006101000a81548160ff0219169083600281111561281d5761281c613352565b5b0217905550803273ffffffffffffffffffffffffffffffffffffffff167f8d6a2e6ce583151b6660808c49b1a2f21e2b91061a62ede9fd815a992a7ea41560405160405180910390a350565b6001600a600083815260200190815260200160002060006101000a81548160ff021916908360028111156128a05761289f613352565b5b0217905550803273ffffffffffffffffffffffffffffffffffffffff167f9fe029c6176f2b9fe1394354b760728bc1b5fcc32f2e5f21f981fb7a65102ed660405160405180910390a350565b6001600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026129ab6121a8565b8786866040518563ffffffff1660e01b81526004016129cd94939291906140c3565b6020604051808303816000875af1925050508015612a0957506040513d601f19601f82011682018060405250810190612a069190614124565b60015b612a82573d8060008114612a39576040519150601f19603f3d011682016040523d82523d6000602084013e612a3e565b606091505b506000815103612a7a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600f8054612ae490613421565b80601f0160208091040260200160405190810160405280929190818152602001828054612b1090613421565b8015612b5d5780601f10612b3257610100808354040283529160200191612b5d565b820191906000526020600020905b815481529060010190602001808311612b4057829003601f168201915b5050505050905090565b606060806040510190508060405280825b600115612b9a57600183039250600a81066030018353600a8104905080612b78575b508181036020830392508083525050919050565b600033905090565b60009392505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c1881612be3565b8114612c2357600080fd5b50565b600081359050612c3581612c0f565b92915050565b600060208284031215612c5157612c50612bd9565b5b6000612c5f84828501612c26565b91505092915050565b60008115159050919050565b612c7d81612c68565b82525050565b6000602082019050612c986000830184612c74565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612cd8578082015181840152602081019050612cbd565b60008484015250505050565b6000601f19601f8301169050919050565b6000612d0082612c9e565b612d0a8185612ca9565b9350612d1a818560208601612cba565b612d2381612ce4565b840191505092915050565b60006020820190508181036000830152612d488184612cf5565b905092915050565b6000819050919050565b612d6381612d50565b8114612d6e57600080fd5b50565b600081359050612d8081612d5a565b92915050565b600060208284031215612d9c57612d9b612bd9565b5b6000612daa84828501612d71565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612dde82612db3565b9050919050565b612dee81612dd3565b82525050565b6000602082019050612e096000830184612de5565b92915050565b612e1881612dd3565b8114612e2357600080fd5b50565b600081359050612e3581612e0f565b92915050565b60008060408385031215612e5257612e51612bd9565b5b6000612e6085828601612e26565b9250506020612e7185828601612d71565b9150509250929050565b612e8481612d50565b82525050565b6000602082019050612e9f6000830184612e7b565b92915050565b612eae81612c68565b8114612eb957600080fd5b50565b600081359050612ecb81612ea5565b92915050565b600060208284031215612ee757612ee6612bd9565b5b6000612ef584828501612ebc565b91505092915050565b600080600060608486031215612f1757612f16612bd9565b5b6000612f2586828701612e26565b9350506020612f3686828701612e26565b9250506040612f4786828701612d71565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f840112612f7657612f75612f51565b5b8235905067ffffffffffffffff811115612f9357612f92612f56565b5b602083019150836001820283011115612faf57612fae612f5b565b5b9250929050565b60008060208385031215612fcd57612fcc612bd9565b5b600083013567ffffffffffffffff811115612feb57612fea612bde565b5b612ff785828601612f60565b92509250509250929050565b60006020828403121561301957613018612bd9565b5b600061302784828501612e26565b91505092915050565b6007811061303d57600080fd5b50565b60008135905061304f81613030565b92915050565b60008083601f84011261306b5761306a612f51565b5b8235905067ffffffffffffffff81111561308857613087612f56565b5b6020830191508360208202830111156130a4576130a3612f5b565b5b9250929050565b600080600080606085870312156130c5576130c4612bd9565b5b60006130d387828801613040565b94505060206130e487828801612e26565b935050604085013567ffffffffffffffff81111561310557613104612bde565b5b61311187828801613055565b925092505092959194509250565b6000806040838503121561313657613135612bd9565b5b600061314485828601612e26565b925050602061315585828601612ebc565b9150509250929050565b6000806040838503121561317657613175612bd9565b5b600061318485828601612e26565b925050602061319585828601612e26565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131dc82612ce4565b810181811067ffffffffffffffff821117156131fb576131fa6131a4565b5b80604052505050565b600061320e612bcf565b905061321a82826131d3565b919050565b600067ffffffffffffffff82111561323a576132396131a4565b5b61324382612ce4565b9050602081019050919050565b82818337600083830152505050565b600061327261326d8461321f565b613204565b90508281526020810184848401111561328e5761328d61319f565b5b613299848285613250565b509392505050565b600082601f8301126132b6576132b5612f51565b5b81356132c684826020860161325f565b91505092915050565b600080600080608085870312156132e9576132e8612bd9565b5b60006132f787828801612e26565b945050602061330887828801612e26565b935050604061331987828801612d71565b925050606085013567ffffffffffffffff81111561333a57613339612bde565b5b613346878288016132a1565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061339257613391613352565b5b50565b60008190506133a382613381565b919050565b60006133b382613395565b9050919050565b6133c3816133a8565b82525050565b60006040820190506133de6000830185612c74565b6133eb60208301846133ba565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061343957607f821691505b60208210810361344c5761344b6133f2565b5b50919050565b7f42696742726f2049732050726f74656374696e6720596f753a20546f6b656e2060008201527f4c6f636b65640000000000000000000000000000000000000000000000000000602082015250565b60006134ae602683612ca9565b91506134b982613452565b604082019050919050565b600060208201905081810360008301526134dd816134a1565b9050919050565b7f4e6f2062616c616e636520746f20776974686472617700000000000000000000600082015250565b600061351a601683612ca9565b9150613525826134e4565b602082019050919050565b600060208201905081810360008301526135498161350d565b9050919050565b600081905092915050565b50565b600061356b600083613550565b91506135768261355b565b600082019050919050565b600061358c8261355e565b9150819050919050565b7f4661696c656420746f207769746864726177207061796d656e74000000000000600082015250565b60006135cc601a83612ca9565b91506135d782613596565b602082019050919050565b600060208201905081810360008301526135fb816135bf565b9050919050565b7f4e4654535f464f525f5448455f5445414d5f4841535f4245454e5f4d494e544560008201527f4400000000000000000000000000000000000000000000000000000000000000602082015250565b600061365e602183612ca9565b915061366982613602565b604082019050919050565b6000602082019050818103600083015261368d81613651565b9050919050565b7f455843454544535f4d41585f4d494e545f464f525f5445414d00000000000000600082015250565b60006136ca601983612ca9565b91506136d582613694565b602082019050919050565b600060208201905081810360008301526136f9816136bd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061373a82612d50565b915061374583612d50565b925082820390508181111561375d5761375c613700565b5b92915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026137d07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613793565b6137da8683613793565b95508019841693508086168417925050509392505050565b6000819050919050565b600061381761381261380d84612d50565b6137f2565b612d50565b9050919050565b6000819050919050565b613831836137fc565b61384561383d8261381e565b8484546137a0565b825550505050565b600090565b61385a61384d565b613865818484613828565b505050565b5b818110156138895761387e600082613852565b60018101905061386b565b5050565b601f8211156138ce5761389f8161376e565b6138a884613783565b810160208510156138b7578190505b6138cb6138c385613783565b83018261386a565b50505b505050565b600082821c905092915050565b60006138f1600019846008026138d3565b1980831691505092915050565b600061390a83836138e0565b9150826002028217905092915050565b6139248383613763565b67ffffffffffffffff81111561393d5761393c6131a4565b5b6139478254613421565b61395282828561388d565b6000601f831160018114613981576000841561396f578287013590505b61397985826138fe565b8655506139e1565b601f19841661398f8661376e565b60005b828110156139b757848901358255600182019150602085019450602081019050613992565b868310156139d457848901356139d0601f8916826138e0565b8355505b6001600288020188555050505b50505050505050565b7f4f5241434c455f4f4e4c59000000000000000000000000000000000000000000600082015250565b6000613a20600b83612ca9565b9150613a2b826139ea565b602082019050919050565b60006020820190508181036000830152613a4f81613a13565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e6f74686f6e6720746f20646f00000000000000000000000000000000000000600082015250565b6000613abb600d83612ca9565b9150613ac682613a85565b602082019050919050565b60006020820190508181036000830152613aea81613aae565b9050919050565b6000613afc82612d50565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613b2e57613b2d613700565b5b600182019050919050565b60038110613b4657600080fd5b50565b600081519050613b5881613b39565b92915050565b600060208284031215613b7457613b73612bd9565b5b6000613b8284828501613b49565b91505092915050565b600081519050613b9a81612ea5565b92915050565b600060208284031215613bb657613bb5612bd9565b5b6000613bc484828501613b8b565b91505092915050565b600081905092915050565b6000613be382612c9e565b613bed8185613bcd565b9350613bfd818560208601612cba565b80840191505092915050565b6000613c158285613bd8565b9150613c218284613bd8565b91508190509392505050565b7f43414e4e4f545f4d494e545f4f4e5f5448455f53414d455f424c4f434b000000600082015250565b6000613c63601d83612ca9565b9150613c6e82613c2d565b602082019050919050565b60006020820190508181036000830152613c9281613c56565b9050919050565b7f434f4e5452414354535f4e4f545f414c4c4f5745445f544f5f4d494e54000000600082015250565b6000613ccf601d83612ca9565b9150613cda82613c99565b602082019050919050565b60006020820190508181036000830152613cfe81613cc2565b9050919050565b7f5055424c49435f4d494e545f49535f4e4f545f5945545f414354495645000000600082015250565b6000613d3b601d83612ca9565b9150613d4682613d05565b602082019050919050565b60006020820190508181036000830152613d6a81613d2e565b9050919050565b6000613d7c82612d50565b9150613d8783612d50565b9250828201905080821115613d9f57613d9e613700565b5b92915050565b7f455843454544535f4d41585f535550504c590000000000000000000000000000600082015250565b6000613ddb601283612ca9565b9150613de682613da5565b602082019050919050565b60006020820190508181036000830152613e0a81613dce565b9050919050565b6000613e1c82612d50565b9150613e2783612d50565b9250828202613e3581612d50565b91508282048414831517613e4c57613e4b613700565b5b5092915050565b7f494e53554646494349454e545f5041594d454e54000000000000000000000000600082015250565b6000613e89601483612ca9565b9150613e9482613e53565b602082019050919050565b60006020820190508181036000830152613eb881613e7c565b9050919050565b7f414c52454144595f4d494e5445445f4d41580000000000000000000000000000600082015250565b6000613ef5601283612ca9565b9150613f0082613ebf565b602082019050919050565b60006020820190508181036000830152613f2481613ee8565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613f87602683612ca9565b9150613f9282613f2b565b604082019050919050565b60006020820190508181036000830152613fb681613f7a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613ff3602083612ca9565b9150613ffe82613fbd565b602082019050919050565b6000602082019050818103600083015261402281613fe6565b9050919050565b600060808201905061403e6000830187612de5565b61404b6020830186612de5565b6140586040830185612e7b565b6140656060830184612e7b565b95945050505050565b600081519050919050565b600082825260208201905092915050565b60006140958261406e565b61409f8185614079565b93506140af818560208601612cba565b6140b881612ce4565b840191505092915050565b60006080820190506140d86000830187612de5565b6140e56020830186612de5565b6140f26040830185612e7b565b8181036060830152614104818461408a565b905095945050505050565b60008151905061411e81612c0f565b92915050565b60006020828403121561413a57614139612bd9565b5b60006141488482850161410f565b9150509291505056fea2646970667358221220645f51e6946da513f6b8fade18c74cc4693b508c35011b2b6615e4496911194f64736f6c63430008110033

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.