MATIC Price: $0.580117 (+2.34%)
Gas: 30 GWei
 

Overview

Max Total Supply

0 BoC-Battles

Holders

12

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
BotAttackNFT

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 28 : ERC1155LazyMint.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import { ERC1155 } from "../eip/ERC1155.sol";

import "../extension/ContractMetadata.sol";
import "../extension/Multicall.sol";
import "../extension/Ownable.sol";
import "../extension/Royalty.sol";
import "../extension/BatchMintMetadata.sol";
import "../extension/LazyMint.sol";
import "../extension/interface/IClaimableERC1155.sol";
import "../extension/DefaultOperatorFilterer.sol";

import "../lib/TWStrings.sol";
import "../openzeppelin-presets/security/ReentrancyGuard.sol";

/**
 *      BASE:      ERC1155Base
 *      EXTENSION: LazyMint
 *
 *  The `ERC1155LazyMint` smart contract implements the ERC1155 NFT standard.
 *  It includes the following additions to standard ERC1155 logic:
 *
 *      - Lazy minting
 *
 *      - Ability to mint NFTs via the provided `mintTo` and `batchMintTo` functions.
 *
 *      - Contract metadata for royalty support on platforms such as OpenSea that use
 *        off-chain information to distribute roaylties.
 *
 *      - Ownership of the contract, with the ability to restrict certain functions to
 *        only be called by the contract's owner.
 *
 *      - Multicall capability to perform multiple actions atomically
 *
 *      - EIP 2981 compliance for royalty support on NFT marketplaces.
 *
 *
 *  The `ERC1155LazyMint` contract uses the `LazyMint` extension.
 *
 *  'Lazy minting' means defining the metadata of NFTs without minting it to an address. Regular 'minting'
 *  of  NFTs means actually assigning an owner to an NFT.
 *
 *  As a contract admin, this lets you prepare the metadata for NFTs that will be minted by an external party,
 *  without paying the gas cost for actually minting the NFTs.
 *
 */

contract ERC1155LazyMint is
    ERC1155,
    ContractMetadata,
    Ownable,
    Royalty,
    Multicall,
    BatchMintMetadata,
    LazyMint,
    IClaimableERC1155,
    DefaultOperatorFilterer,
    ReentrancyGuard
{
    using TWStrings for uint256;

    /*//////////////////////////////////////////////////////////////
                        Mappings
    //////////////////////////////////////////////////////////////*/

    /**
     *  @notice Returns the total supply of NFTs of a given tokenId
     *  @dev Mapping from tokenId => total circulating supply of NFTs of that tokenId.
     */
    mapping(uint256 => uint256) public totalSupply;

    /*//////////////////////////////////////////////////////////////
                            Constructor
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        address _royaltyRecipient,
        uint128 _royaltyBps
    ) ERC1155(_name, _symbol) {
        _setupOwner(msg.sender);
        _setupDefaultRoyaltyInfo(_royaltyRecipient, _royaltyBps);
        _setOperatorRestriction(true);
    }

    /*//////////////////////////////////////////////////////////////
                    Overriden metadata logic
    //////////////////////////////////////////////////////////////*/

    /// @notice Returns the metadata URI for the given tokenId.
    function uri(uint256 _tokenId) public view virtual override returns (string memory) {
        string memory batchUri = _getBaseURI(_tokenId);
        return string(abi.encodePacked(batchUri, _tokenId.toString()));
    }

    /*//////////////////////////////////////////////////////////////
                            CLAIM LOGIC
    //////////////////////////////////////////////////////////////*/

    /**
     *  @notice          Lets an address claim multiple lazy minted NFTs at once to a recipient.
     *                   This function prevents any reentrant calls, and is not allowed to be overridden.
     *
     *                   Contract creators should override `verifyClaim` and `transferTokensOnClaim`
     *                   functions to create custom logic for verification and claiming,
     *                   for e.g. price collection, allowlist, max quantity, etc.
     *
     *  @dev             The logic in `verifyClaim` determines whether the caller is authorized to mint NFTs.
     *                   The logic in `transferTokensOnClaim` does actual minting of tokens,
     *                   can also be used to apply other state changes.
     *
     *  @param _receiver  The recipient of the tokens to mint.
     *  @param _tokenId   The tokenId of the lazy minted NFT to mint.
     *  @param _quantity  The number of tokens to mint.
     */
    function claim(
        address _receiver,
        uint256 _tokenId,
        uint256 _quantity
    ) public payable virtual nonReentrant {
        require(_tokenId < nextTokenIdToMint(), "invalid id");
        verifyClaim(msg.sender, _tokenId, _quantity); // Add your claim verification logic by overriding this function.

        _transferTokensOnClaim(_receiver, _tokenId, _quantity); // Mints tokens. Apply any state updates by overriding this function.
        emit TokensClaimed(msg.sender, _receiver, _tokenId, _quantity);
    }

    /**
     *  @notice          Override this function to add logic for claim verification, based on conditions
     *                   such as allowlist, price, max quantity etc.
     *
     *  @dev             Checks a request to claim NFTs against a custom condition.
     *
     *  @param _claimer   Caller of the claim function.
     *  @param _tokenId   The tokenId of the lazy minted NFT to mint.
     *  @param _quantity  The number of NFTs being claimed.
     */
    function verifyClaim(
        address _claimer,
        uint256 _tokenId,
        uint256 _quantity
    ) public view virtual {}

    /**
     *  @notice         Lets an owner or approved operator burn NFTs of the given tokenId.
     *
     *  @param _owner   The owner of the NFT to burn.
     *  @param _tokenId The tokenId of the NFT to burn.
     *  @param _amount  The amount of the NFT to burn.
     */
    function burn(
        address _owner,
        uint256 _tokenId,
        uint256 _amount
    ) external virtual {
        address caller = msg.sender;

        require(caller == _owner || isApprovedForAll[_owner][caller], "Unapproved caller");
        require(balanceOf[_owner][_tokenId] >= _amount, "Not enough tokens owned");

        _burn(_owner, _tokenId, _amount);
    }

    /**
     *  @notice         Lets an owner or approved operator burn NFTs of the given tokenIds.
     *
     *  @param _owner    The owner of the NFTs to burn.
     *  @param _tokenIds The tokenIds of the NFTs to burn.
     *  @param _amounts  The amounts of the NFTs to burn.
     */
    function burnBatch(
        address _owner,
        uint256[] memory _tokenIds,
        uint256[] memory _amounts
    ) external virtual {
        address caller = msg.sender;

        require(caller == _owner || isApprovedForAll[_owner][caller], "Unapproved caller");
        require(_tokenIds.length == _amounts.length, "Length mismatch");

        for (uint256 i = 0; i < _tokenIds.length; i += 1) {
            require(balanceOf[_owner][_tokenIds[i]] >= _amounts[i], "Not enough tokens owned");
        }

        _burnBatch(_owner, _tokenIds, _amounts);
    }

    /*//////////////////////////////////////////////////////////////
                            ERC165 Logic
    //////////////////////////////////////////////////////////////*/

    /// @notice Returns whether this contract supports the given interface.
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, IERC165) returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0xd9b67a26 || // ERC165 Interface ID for ERC1155
            interfaceId == 0x0e89341c || // ERC165 Interface ID for ERC1155MetadataURI
            interfaceId == type(IERC2981).interfaceId; // ERC165 ID for ERC2981
    }

    /*//////////////////////////////////////////////////////////////
                            View functions
    //////////////////////////////////////////////////////////////*/

    /// @notice The tokenId assigned to the next new NFT to be lazy minted.
    function nextTokenIdToMint() public view virtual returns (uint256) {
        return nextTokenIdToLazyMint;
    }

    /*//////////////////////////////////////////////////////////////
                        ERC-1155 overrides
    //////////////////////////////////////////////////////////////*/

    /// @dev See {ERC1155-setApprovalForAll}
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override(ERC1155)
        onlyAllowedOperatorApproval(operator)
    {
        super.setApprovalForAll(operator, approved);
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override(ERC1155) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override(ERC1155) onlyAllowedOperator(from) {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /*//////////////////////////////////////////////////////////////
                        Internal functions
    //////////////////////////////////////////////////////////////*/

    /**
     *  @notice          Mints tokens to receiver on claim.
     *                   Any state changes related to `claim` must be applied
     *                   here by overriding this function.
     *
     *  @dev             Override this function to add logic for state updation.
     *                   When overriding, apply any state changes before `_mint`.
     */
    function _transferTokensOnClaim(
        address _receiver,
        uint256 _tokenId,
        uint256 _quantity
    ) internal virtual {
        _mint(_receiver, _tokenId, _quantity, "");
    }

    /// @dev Returns whether lazy minting can be done in the given execution context.
    function _canLazyMint() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Returns whether contract metadata can be set in the given execution context.
    function _canSetContractURI() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Returns whether owner can be set in the given execution context.
    function _canSetOwner() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Returns whether royalty info can be set in the given execution context.
    function _canSetRoyaltyInfo() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Returns whether operator restriction can be set in the given execution context.
    function _canSetOperatorRestriction() internal virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Runs before every token transfer / mint / burn.
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}

File 2 of 28 : ERC1155.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

import "./interface/IERC1155.sol";
import "./interface/IERC1155Metadata.sol";
import "./interface/IERC1155Receiver.sol";

contract ERC1155 is IERC1155, IERC1155Metadata {
    /*//////////////////////////////////////////////////////////////
                        State variables
    //////////////////////////////////////////////////////////////*/

    string public name;
    string public symbol;

    /*//////////////////////////////////////////////////////////////
                            Mappings
    //////////////////////////////////////////////////////////////*/

    mapping(address => mapping(uint256 => uint256)) public balanceOf;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    mapping(uint256 => string) internal _uri;

    /*//////////////////////////////////////////////////////////////
                            Constructor
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                            View functions
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0xd9b67a26 || // ERC165 Interface ID for ERC1155
            interfaceId == 0x0e89341c; // ERC165 Interface ID for ERC1155MetadataURI
    }

    function uri(uint256 tokenId) public view virtual override returns (string memory) {
        return _uri[tokenId];
    }

    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "LENGTH_MISMATCH");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf[accounts[i]][ids[i]];
        }

        return batchBalances;
    }

    /*//////////////////////////////////////////////////////////////
                            ERC1155 logic
    //////////////////////////////////////////////////////////////*/

    function setApprovalForAll(address operator, bool approved) public virtual override {
        address owner = msg.sender;
        require(owner != operator, "APPROVING_SELF");
        isApprovedForAll[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(from == msg.sender || isApprovedForAll[from][msg.sender], "!OWNER_OR_APPROVED");
        _safeTransferFrom(from, to, id, amount, data);
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(from == msg.sender || isApprovedForAll[from][msg.sender], "!OWNER_OR_APPROVED");
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /*//////////////////////////////////////////////////////////////
                            Internal logic
    //////////////////////////////////////////////////////////////*/

    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "TO_ZERO_ADDR");

        address operator = msg.sender;

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = balanceOf[from][id];
        require(fromBalance >= amount, "INSUFFICIENT_BAL");
        unchecked {
            balanceOf[from][id] = fromBalance - amount;
        }
        balanceOf[to][id] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "LENGTH_MISMATCH");
        require(to != address(0), "TO_ZERO_ADDR");

        address operator = msg.sender;

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = balanceOf[from][id];
            require(fromBalance >= amount, "INSUFFICIENT_BAL");
            unchecked {
                balanceOf[from][id] = fromBalance - amount;
            }
            balanceOf[to][id] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    function _setTokenURI(uint256 tokenId, string memory newuri) internal virtual {
        _uri[tokenId] = newuri;
    }

    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "TO_ZERO_ADDR");

        address operator = msg.sender;

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        balanceOf[to][id] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "TO_ZERO_ADDR");
        require(ids.length == amounts.length, "LENGTH_MISMATCH");

        address operator = msg.sender;

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            balanceOf[to][ids[i]] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "FROM_ZERO_ADDR");

        address operator = msg.sender;

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = balanceOf[from][id];
        require(fromBalance >= amount, "INSUFFICIENT_BAL");
        unchecked {
            balanceOf[from][id] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "FROM_ZERO_ADDR");
        require(ids.length == amounts.length, "LENGTH_MISMATCH");

        address operator = msg.sender;

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = balanceOf[from][id];
            require(fromBalance >= amount, "INSUFFICIENT_BAL");
            unchecked {
                balanceOf[from][id] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.code.length > 0) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("TOKENS_REJECTED");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("!ERC1155RECEIVER");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.code.length > 0) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("TOKENS_REJECTED");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("!ERC1155RECEIVER");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 3 of 28 : IERC1155.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/**
    @title ERC-1155 Multi Token Standard
    @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md
    Note: The ERC-165 identifier for this interface is 0xd9b67a26.
 */
interface IERC1155 {
    /**
        @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard).
        The `_operator` argument MUST be msg.sender.
        The `_from` argument MUST be the address of the holder whose balance is decreased.
        The `_to` argument MUST be the address of the recipient whose balance is increased.
        The `_id` argument MUST be the token type being transferred.
        The `_value` argument MUST be the number of tokens the holder balance is decreased by and match what the recipient balance is increased by.
        When minting/creating tokens, the `_from` argument MUST be set to `0x0` (i.e. zero address).
        When burning/destroying tokens, the `_to` argument MUST be set to `0x0` (i.e. zero address).
    */
    event TransferSingle(
        address indexed _operator,
        address indexed _from,
        address indexed _to,
        uint256 _id,
        uint256 _value
    );

    /**
        @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard).
        The `_operator` argument MUST be msg.sender.
        The `_from` argument MUST be the address of the holder whose balance is decreased.
        The `_to` argument MUST be the address of the recipient whose balance is increased.
        The `_ids` argument MUST be the list of tokens being transferred.
        The `_values` argument MUST be the list of number of tokens (matching the list and order of tokens specified in _ids) the holder balance is decreased by and match what the recipient balance is increased by.
        When minting/creating tokens, the `_from` argument MUST be set to `0x0` (i.e. zero address).
        When burning/destroying tokens, the `_to` argument MUST be set to `0x0` (i.e. zero address).
    */
    event TransferBatch(
        address indexed _operator,
        address indexed _from,
        address indexed _to,
        uint256[] _ids,
        uint256[] _values
    );

    /**
        @dev MUST emit when approval for a second party/operator address to manage all tokens for an owner address is enabled or disabled (absense of an event assumes disabled).
    */
    event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);

    /**
        @dev MUST emit when the URI is updated for a token ID.
        URIs are defined in RFC 3986.
        The URI MUST point a JSON file that conforms to the "ERC-1155 Metadata URI JSON Schema".
    */
    event URI(string _value, uint256 indexed _id);

    /**
        @notice Transfers `_value` amount of an `_id` from the `_from` address to the `_to` address specified (with safety call).
        @dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard).
        MUST revert if `_to` is the zero address.
        MUST revert if balance of holder for token `_id` is lower than the `_value` sent.
        MUST revert on any other error.
        MUST emit the `TransferSingle` event to reflect the balance change (see "Safe Transfer Rules" section of the standard).
        After the above conditions are met, this function MUST check if `_to` is a smart contract (e.g. code size > 0). If so, it MUST call `onERC1155Received` on `_to` and act appropriately (see "Safe Transfer Rules" section of the standard).
        @param _from    Source address
        @param _to      Target address
        @param _id      ID of the token type
        @param _value   Transfer amount
        @param _data    Additional data with no specified format, MUST be sent unaltered in call to `onERC1155Received` on `_to`
    */
    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _id,
        uint256 _value,
        bytes calldata _data
    ) external;

    /**
        @notice Transfers `_values` amount(s) of `_ids` from the `_from` address to the `_to` address specified (with safety call).
        @dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard).
        MUST revert if `_to` is the zero address.
        MUST revert if length of `_ids` is not the same as length of `_values`.
        MUST revert if any of the balance(s) of the holder(s) for token(s) in `_ids` is lower than the respective amount(s) in `_values` sent to the recipient.
        MUST revert on any other error.
        MUST emit `TransferSingle` or `TransferBatch` event(s) such that all the balance changes are reflected (see "Safe Transfer Rules" section of the standard).
        Balance changes and events MUST follow the ordering of the arrays (_ids[0]/_values[0] before _ids[1]/_values[1], etc).
        After the above conditions for the transfer(s) in the batch are met, this function MUST check if `_to` is a smart contract (e.g. code size > 0). If so, it MUST call the relevant `ERC1155TokenReceiver` hook(s) on `_to` and act appropriately (see "Safe Transfer Rules" section of the standard).
        @param _from    Source address
        @param _to      Target address
        @param _ids     IDs of each token type (order and length must match _values array)
        @param _values  Transfer amounts per token type (order and length must match _ids array)
        @param _data    Additional data with no specified format, MUST be sent unaltered in call to the `ERC1155TokenReceiver` hook(s) on `_to`
    */
    function safeBatchTransferFrom(
        address _from,
        address _to,
        uint256[] calldata _ids,
        uint256[] calldata _values,
        bytes calldata _data
    ) external;

    /**
        @notice Get the balance of an account's Tokens.
        @param _owner  The address of the token holder
        @param _id     ID of the Token
        @return        The _owner's balance of the Token type requested
     */
    function balanceOf(address _owner, uint256 _id) external view returns (uint256);

    /**
        @notice Get the balance of multiple account/token pairs
        @param _owners The addresses of the token holders
        @param _ids    ID of the Tokens
        @return        The _owner's balance of the Token types requested (i.e. balance for each (owner, id) pair)
     */
    function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids)
        external
        view
        returns (uint256[] memory);

    /**
        @notice Enable or disable approval for a third party ("operator") to manage all of the caller's tokens.
        @dev MUST emit the ApprovalForAll event on success.
        @param _operator  Address to add to the set of authorized operators
        @param _approved  True if the operator is approved, false to revoke approval
    */
    function setApprovalForAll(address _operator, bool _approved) external;

    /**
        @notice Queries the approval status of an operator for a given owner.
        @param _owner     The owner of the Tokens
        @param _operator  Address of authorized operator
        @return           True if the operator is approved, false if not
    */
    function isApprovedForAll(address _owner, address _operator) external view returns (bool);
}

File 4 of 28 : IERC1155Metadata.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/**
    Note: The ERC-165 identifier for this interface is 0x0e89341c.
*/
interface IERC1155Metadata {
    /**
        @notice A distinct Uniform Resource Identifier (URI) for a given token.
        @dev URIs are defined in RFC 3986.
        The URI may point to a JSON file that conforms to the "ERC-1155 Metadata URI JSON Schema".
        @return URI string
    */
    function uri(uint256 _id) external view returns (string memory);
}

File 5 of 28 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * [EIP](https://eips.ethereum.org/EIPS/eip-165).
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [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 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 7 of 28 : IERC2981.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 8 of 28 : BatchMintMetadata.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  @title   Batch-mint Metadata
 *  @notice  The `BatchMintMetadata` is a contract extension for any base NFT contract. It lets the smart contract
 *           using this extension set metadata for `n` number of NFTs all at once. This is enabled by storing a single
 *           base URI for a batch of `n` NFTs, where the metadata for each NFT in a relevant batch is `baseURI/tokenId`.
 */

contract BatchMintMetadata {
    /// @dev Largest tokenId of each batch of tokens with the same baseURI.
    uint256[] private batchIds;

    /// @dev Mapping from id of a batch of tokens => to base URI for the respective batch of tokens.
    mapping(uint256 => string) private baseURI;

    /**
     *  @notice         Returns the count of batches of NFTs.
     *  @dev            Each batch of tokens has an in ID and an associated `baseURI`.
     *                  See {batchIds}.
     */
    function getBaseURICount() public view returns (uint256) {
        return batchIds.length;
    }

    /**
     *  @notice         Returns the ID for the batch of tokens the given tokenId belongs to.
     *  @dev            See {getBaseURICount}.
     *  @param _index   ID of a token.
     */
    function getBatchIdAtIndex(uint256 _index) public view returns (uint256) {
        if (_index >= getBaseURICount()) {
            revert("Invalid index");
        }
        return batchIds[_index];
    }

    /// @dev Returns the id for the batch of tokens the given tokenId belongs to.
    function _getBatchId(uint256 _tokenId) internal view returns (uint256 batchId, uint256 index) {
        uint256 numOfTokenBatches = getBaseURICount();
        uint256[] memory indices = batchIds;

        for (uint256 i = 0; i < numOfTokenBatches; i += 1) {
            if (_tokenId < indices[i]) {
                index = i;
                batchId = indices[i];

                return (batchId, index);
            }
        }

        revert("Invalid tokenId");
    }

    /// @dev Returns the baseURI for a token. The intended metadata URI for the token is baseURI + tokenId.
    function _getBaseURI(uint256 _tokenId) internal view returns (string memory) {
        uint256 numOfTokenBatches = getBaseURICount();
        uint256[] memory indices = batchIds;

        for (uint256 i = 0; i < numOfTokenBatches; i += 1) {
            if (_tokenId < indices[i]) {
                return baseURI[indices[i]];
            }
        }
        revert("Invalid tokenId");
    }

    /// @dev Sets the base URI for the batch of tokens with the given batchId.
    function _setBaseURI(uint256 _batchId, string memory _baseURI) internal {
        baseURI[_batchId] = _baseURI;
    }

    /// @dev Mints a batch of tokenIds and associates a common baseURI to all those Ids.
    function _batchMintMetadata(
        uint256 _startId,
        uint256 _amountToMint,
        string memory _baseURIForTokens
    ) internal returns (uint256 nextTokenIdToMint, uint256 batchId) {
        batchId = _startId + _amountToMint;
        nextTokenIdToMint = batchId;

        batchIds.push(batchId);

        baseURI[batchId] = _baseURIForTokens;
    }
}

File 9 of 28 : ContractMetadata.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IContractMetadata.sol";

/**
 *  @title   Contract Metadata
 *  @notice  Thirdweb's `ContractMetadata` is a contract extension for any base contracts. It lets you set a metadata URI
 *           for you contract.
 *           Additionally, `ContractMetadata` is necessary for NFT contracts that want royalties to get distributed on OpenSea.
 */

abstract contract ContractMetadata is IContractMetadata {
    /// @notice Returns the contract metadata URI.
    string public override contractURI;

    /**
     *  @notice         Lets a contract admin set the URI for contract-level metadata.
     *  @dev            Caller should be authorized to setup contractURI, e.g. contract admin.
     *                  See {_canSetContractURI}.
     *                  Emits {ContractURIUpdated Event}.
     *
     *  @param _uri     keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
     */
    function setContractURI(string memory _uri) external override {
        if (!_canSetContractURI()) {
            revert("Not authorized");
        }

        _setupContractURI(_uri);
    }

    /// @dev Lets a contract admin set the URI for contract-level metadata.
    function _setupContractURI(string memory _uri) internal {
        string memory prevURI = contractURI;
        contractURI = _uri;

        emit ContractURIUpdated(prevURI, _uri);
    }

    /// @dev Returns whether contract metadata can be set in the given execution context.
    function _canSetContractURI() internal view virtual returns (bool);
}

File 10 of 28 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import { OperatorFilterer } from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}

    function subscribeToRegistry(address _subscription) external {
        require(_canSetOperatorRestriction(), "Not authorized to subscribe to registry.");
        _register(_subscription, true);
    }
}

File 11 of 28 : LazyMint.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/ILazyMint.sol";
import "./BatchMintMetadata.sol";

/**
 *  The `LazyMint` is a contract extension for any base NFT contract. It lets you 'lazy mint' any number of NFTs
 *  at once. Here, 'lazy mint' means defining the metadata for particular tokenIds of your NFT contract, without actually
 *  minting a non-zero balance of NFTs of those tokenIds.
 */

abstract contract LazyMint is ILazyMint, BatchMintMetadata {
    /// @notice The tokenId assigned to the next new NFT to be lazy minted.
    uint256 internal nextTokenIdToLazyMint;

    /**
     *  @notice                  Lets an authorized address lazy mint a given amount of NFTs.
     *
     *  @param _amount           The number of NFTs to lazy mint.
     *  @param _baseURIForTokens The base URI for the 'n' number of NFTs being lazy minted, where the metadata for each
     *                           of those NFTs is `${baseURIForTokens}/${tokenId}`.
     *  @param _data             Additional bytes data to be used at the discretion of the consumer of the contract.
     *  @return batchId          A unique integer identifier for the batch of NFTs lazy minted together.
     */
    function lazyMint(
        uint256 _amount,
        string calldata _baseURIForTokens,
        bytes calldata _data
    ) public virtual override returns (uint256 batchId) {
        if (!_canLazyMint()) {
            revert("Not authorized");
        }

        if (_amount == 0) {
            revert("0 amt");
        }

        uint256 startId = nextTokenIdToLazyMint;

        (nextTokenIdToLazyMint, batchId) = _batchMintMetadata(startId, _amount, _baseURIForTokens);

        emit TokensLazyMinted(startId, startId + _amount - 1, _baseURIForTokens, _data);

        return batchId;
    }

    /// @dev Returns whether lazy minting can be performed in the given execution context.
    function _canLazyMint() internal view virtual returns (bool);
}

File 12 of 28 : Multicall.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "../lib/TWAddress.sol";
import "./interface/IMulticall.sol";

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
contract Multicall is IMulticall {
    /**
     *  @notice Receives and executes a batch of function calls on this contract.
     *  @dev Receives and executes a batch of function calls on this contract.
     *
     *  @param data The bytes data that makes up the batch of function calls to execute.
     *  @return results The bytes data that makes up the result of the batch of function calls executed.
     */
    function multicall(bytes[] calldata data) external virtual override returns (bytes[] memory results) {
        results = new bytes[](data.length);
        for (uint256 i = 0; i < data.length; i++) {
            results[i] = TWAddress.functionDelegateCall(address(this), data[i]);
        }
        return results;
    }
}

File 13 of 28 : OperatorFilterToggle.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IOperatorFilterToggle.sol";

abstract contract OperatorFilterToggle is IOperatorFilterToggle {
    bool public operatorRestriction;

    function setOperatorRestriction(bool _restriction) external {
        require(_canSetOperatorRestriction(), "Not authorized to set operator restriction.");
        _setOperatorRestriction(_restriction);
    }

    function _setOperatorRestriction(bool _restriction) internal {
        operatorRestriction = _restriction;
        emit OperatorRestriction(_restriction);
    }

    function _canSetOperatorRestriction() internal virtual returns (bool);
}

File 14 of 28 : OperatorFilterer.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IOperatorFilterRegistry.sol";
import "./OperatorFilterToggle.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */

abstract contract OperatorFilterer is OperatorFilterToggle {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        _register(subscriptionOrRegistrantToCopy, subscribe);
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (operatorRestriction) {
            if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
                if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                    revert OperatorNotAllowed(operator);
                }
            }
        }
    }

    function _register(address subscriptionOrRegistrantToCopy, bool subscribe) internal {
        // Is the registry deployed?
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // Is the subscription contract deployed?
            if (address(subscriptionOrRegistrantToCopy).code.length > 0) {
                // Do we want to subscribe?
                if (subscribe) {
                    OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                }
            } else {
                OPERATOR_FILTER_REGISTRY.register(address(this));
            }
        }
    }
}

File 15 of 28 : Ownable.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IOwnable.sol";

/**
 *  @title   Ownable
 *  @notice  Thirdweb's `Ownable` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *           who the 'owner' of the inheriting smart contract is, and lets the inheriting contract perform conditional logic that uses
 *           information about who the contract's owner is.
 */

abstract contract Ownable is IOwnable {
    /// @dev Owner of the contract (purpose: OpenSea compatibility)
    address private _owner;

    /// @dev Reverts if caller is not the owner.
    modifier onlyOwner() {
        if (msg.sender != _owner) {
            revert("Not authorized");
        }
        _;
    }

    /**
     *  @notice Returns the owner of the contract.
     */
    function owner() public view override returns (address) {
        return _owner;
    }

    /**
     *  @notice Lets an authorized wallet set a new owner for the contract.
     *  @param _newOwner The address to set as the new owner of the contract.
     */
    function setOwner(address _newOwner) external override {
        if (!_canSetOwner()) {
            revert("Not authorized");
        }
        _setupOwner(_newOwner);
    }

    /// @dev Lets a contract admin set a new owner for the contract. The new owner must be a contract admin.
    function _setupOwner(address _newOwner) internal {
        address _prevOwner = _owner;
        _owner = _newOwner;

        emit OwnerUpdated(_prevOwner, _newOwner);
    }

    /// @dev Returns whether owner can be set in the given execution context.
    function _canSetOwner() internal view virtual returns (bool);
}

File 16 of 28 : Royalty.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IRoyalty.sol";

/**
 *  @title   Royalty
 *  @notice  Thirdweb's `Royalty` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *           the recipient of royalty fee and the royalty fee basis points, and lets the inheriting contract perform conditional logic
 *           that uses information about royalty fees, if desired.
 *
 *  @dev     The `Royalty` contract is ERC2981 compliant.
 */

abstract contract Royalty is IRoyalty {
    /// @dev The (default) address that receives all royalty value.
    address private royaltyRecipient;

    /// @dev The (default) % of a sale to take as royalty (in basis points).
    uint16 private royaltyBps;

    /// @dev Token ID => royalty recipient and bps for token
    mapping(uint256 => RoyaltyInfo) private royaltyInfoForToken;

    /**
     *  @notice   View royalty info for a given token and sale price.
     *  @dev      Returns royalty amount and recipient for `tokenId` and `salePrice`.
     *  @param tokenId          The tokenID of the NFT for which to query royalty info.
     *  @param salePrice        Sale price of the token.
     *
     *  @return receiver        Address of royalty recipient account.
     *  @return royaltyAmount   Royalty amount calculated at current royaltyBps value.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        virtual
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        (address recipient, uint256 bps) = getRoyaltyInfoForToken(tokenId);
        receiver = recipient;
        royaltyAmount = (salePrice * bps) / 10_000;
    }

    /**
     *  @notice          View royalty info for a given token.
     *  @dev             Returns royalty recipient and bps for `_tokenId`.
     *  @param _tokenId  The tokenID of the NFT for which to query royalty info.
     */
    function getRoyaltyInfoForToken(uint256 _tokenId) public view override returns (address, uint16) {
        RoyaltyInfo memory royaltyForToken = royaltyInfoForToken[_tokenId];

        return
            royaltyForToken.recipient == address(0)
                ? (royaltyRecipient, uint16(royaltyBps))
                : (royaltyForToken.recipient, uint16(royaltyForToken.bps));
    }

    /**
     *  @notice Returns the defualt royalty recipient and BPS for this contract's NFTs.
     */
    function getDefaultRoyaltyInfo() external view override returns (address, uint16) {
        return (royaltyRecipient, uint16(royaltyBps));
    }

    /**
     *  @notice         Updates default royalty recipient and bps.
     *  @dev            Caller should be authorized to set royalty info.
     *                  See {_canSetRoyaltyInfo}.
     *                  Emits {DefaultRoyalty Event}; See {_setupDefaultRoyaltyInfo}.
     *
     *  @param _royaltyRecipient   Address to be set as default royalty recipient.
     *  @param _royaltyBps         Updated royalty bps.
     */
    function setDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) external override {
        if (!_canSetRoyaltyInfo()) {
            revert("Not authorized");
        }

        _setupDefaultRoyaltyInfo(_royaltyRecipient, _royaltyBps);
    }

    /// @dev Lets a contract admin update the default royalty recipient and bps.
    function _setupDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) internal {
        if (_royaltyBps > 10_000) {
            revert("Exceeds max bps");
        }

        royaltyRecipient = _royaltyRecipient;
        royaltyBps = uint16(_royaltyBps);

        emit DefaultRoyalty(_royaltyRecipient, _royaltyBps);
    }

    /**
     *  @notice         Updates default royalty recipient and bps for a particular token.
     *  @dev            Sets royalty info for `_tokenId`. Caller should be authorized to set royalty info.
     *                  See {_canSetRoyaltyInfo}.
     *                  Emits {RoyaltyForToken Event}; See {_setupRoyaltyInfoForToken}.
     *
     *  @param _recipient   Address to be set as royalty recipient for given token Id.
     *  @param _bps         Updated royalty bps for the token Id.
     */
    function setRoyaltyInfoForToken(
        uint256 _tokenId,
        address _recipient,
        uint256 _bps
    ) external override {
        if (!_canSetRoyaltyInfo()) {
            revert("Not authorized");
        }

        _setupRoyaltyInfoForToken(_tokenId, _recipient, _bps);
    }

    /// @dev Lets a contract admin set the royalty recipient and bps for a particular token Id.
    function _setupRoyaltyInfoForToken(
        uint256 _tokenId,
        address _recipient,
        uint256 _bps
    ) internal {
        if (_bps > 10_000) {
            revert("Exceeds max bps");
        }

        royaltyInfoForToken[_tokenId] = RoyaltyInfo({ recipient: _recipient, bps: _bps });

        emit RoyaltyForToken(_tokenId, _recipient, _bps);
    }

    /// @dev Returns whether royalty info can be set in the given execution context.
    function _canSetRoyaltyInfo() internal view virtual returns (bool);
}

File 17 of 28 : IClaimableERC1155.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

interface IClaimableERC1155 {
    /// @dev Emitted when tokens are claimed
    event TokensClaimed(
        address indexed claimer,
        address indexed receiver,
        uint256 indexed tokenId,
        uint256 quantityClaimed
    );

    /**
     *  @notice          Lets an address claim multiple lazy minted NFTs at once to a recipient.
     *                   Contract creators should override this function to create custom logic for claiming,
     *                   for e.g. price collection, allowlist, max quantity, etc.
     *
     *  @dev             The logic in the `verifyClaim` function determines whether the caller is authorized to mint NFTs.
     *
     *  @param _receiver  The recipient of the tokens to mint.
     *  @param _tokenId   The tokenId of the lazy minted NFT to mint.
     *  @param _quantity  The number of tokens to mint.
     */
    function claim(
        address _receiver,
        uint256 _tokenId,
        uint256 _quantity
    ) external payable;

    /**
     *  @notice          Override this function to add logic for claim verification, based on conditions
     *                   such as allowlist, price, max quantity etc.
     *
     *  @dev             Checks a request to claim NFTs against a custom condition.
     *
     *  @param _claimer   Caller of the claim function.
     *  @param _tokenId   The tokenId of the lazy minted NFT to mint.
     *  @param _quantity  The number of NFTs being claimed.
     */
    function verifyClaim(
        address _claimer,
        uint256 _tokenId,
        uint256 _quantity
    ) external view;
}

File 18 of 28 : IContractMetadata.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  Thirdweb's `ContractMetadata` is a contract extension for any base contracts. It lets you set a metadata URI
 *  for you contract.
 *
 *  Additionally, `ContractMetadata` is necessary for NFT contracts that want royalties to get distributed on OpenSea.
 */

interface IContractMetadata {
    /// @dev Returns the metadata URI of the contract.
    function contractURI() external view returns (string memory);

    /**
     *  @dev Sets contract URI for the storefront-level metadata of the contract.
     *       Only module admin can call this function.
     */
    function setContractURI(string calldata _uri) external;

    /// @dev Emitted when the contract URI is updated.
    event ContractURIUpdated(string prevURI, string newURI);
}

File 19 of 28 : ILazyMint.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  Thirdweb's `LazyMint` is a contract extension for any base NFT contract. It lets you 'lazy mint' any number of NFTs
 *  at once. Here, 'lazy mint' means defining the metadata for particular tokenIds of your NFT contract, without actually
 *  minting a non-zero balance of NFTs of those tokenIds.
 */

interface ILazyMint {
    /// @dev Emitted when tokens are lazy minted.
    event TokensLazyMinted(uint256 indexed startTokenId, uint256 endTokenId, string baseURI, bytes encryptedBaseURI);

    /**
     *  @notice Lazy mints a given amount of NFTs.
     *
     *  @param amount           The number of NFTs to lazy mint.
     *
     *  @param baseURIForTokens The base URI for the 'n' number of NFTs being lazy minted, where the metadata for each
     *                          of those NFTs is `${baseURIForTokens}/${tokenId}`.
     *
     *  @param extraData        Additional bytes data to be used at the discretion of the consumer of the contract.
     *
     *  @return batchId         A unique integer identifier for the batch of NFTs lazy minted together.
     */
    function lazyMint(
        uint256 amount,
        string calldata baseURIForTokens,
        bytes calldata extraData
    ) external returns (uint256 batchId);
}

File 20 of 28 : IMulticall.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
interface IMulticall {
    /**
     * @dev Receives and executes a batch of function calls on this contract.
     */
    function multicall(bytes[] calldata data) external returns (bytes[] memory results);
}

File 21 of 28 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    function register(address registrant) external;

    function registerAndSubscribe(address registrant, address subscription) external;

    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    function unregister(address addr) external;

    function updateOperator(
        address registrant,
        address operator,
        bool filtered
    ) external;

    function updateOperators(
        address registrant,
        address[] calldata operators,
        bool filtered
    ) external;

    function updateCodeHash(
        address registrant,
        bytes32 codehash,
        bool filtered
    ) external;

    function updateCodeHashes(
        address registrant,
        bytes32[] calldata codeHashes,
        bool filtered
    ) external;

    function subscribe(address registrant, address registrantToSubscribe) external;

    function unsubscribe(address registrant, bool copyExistingEntries) external;

    function subscriptionOf(address addr) external returns (address registrant);

    function subscribers(address registrant) external returns (address[] memory);

    function subscriberAt(address registrant, uint256 index) external returns (address);

    function copyEntriesOf(address registrant, address registrantToCopy) external;

    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    function filteredOperators(address addr) external returns (address[] memory);

    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    function isRegistered(address addr) external returns (bool);

    function codeHashOf(address addr) external returns (bytes32);
}

File 22 of 28 : IOperatorFilterToggle.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

interface IOperatorFilterToggle {
    event OperatorRestriction(bool restriction);

    function operatorRestriction() external view returns (bool);

    function setOperatorRestriction(bool restriction) external;
}

File 23 of 28 : IOwnable.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  Thirdweb's `Ownable` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *  who the 'owner' of the inheriting smart contract is, and lets the inheriting contract perform conditional logic that uses
 *  information about who the contract's owner is.
 */

interface IOwnable {
    /// @dev Returns the owner of the contract.
    function owner() external view returns (address);

    /// @dev Lets a module admin set a new owner for the contract. The new owner must be a module admin.
    function setOwner(address _newOwner) external;

    /// @dev Emitted when a new Owner is set.
    event OwnerUpdated(address indexed prevOwner, address indexed newOwner);
}

File 24 of 28 : IRoyalty.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "../../eip/interface/IERC2981.sol";

/**
 *  Thirdweb's `Royalty` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *  the recipient of royalty fee and the royalty fee basis points, and lets the inheriting contract perform conditional logic
 *  that uses information about royalty fees, if desired.
 *
 *  The `Royalty` contract is ERC2981 compliant.
 */

interface IRoyalty is IERC2981 {
    struct RoyaltyInfo {
        address recipient;
        uint256 bps;
    }

    /// @dev Returns the royalty recipient and fee bps.
    function getDefaultRoyaltyInfo() external view returns (address, uint16);

    /// @dev Lets a module admin update the royalty bps and recipient.
    function setDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) external;

    /// @dev Lets a module admin set the royalty recipient for a particular token Id.
    function setRoyaltyInfoForToken(
        uint256 tokenId,
        address recipient,
        uint256 bps
    ) external;

    /// @dev Returns the royalty recipient for a particular token Id.
    function getRoyaltyInfoForToken(uint256 tokenId) external view returns (address, uint16);

    /// @dev Emitted when royalty info is updated.
    event DefaultRoyalty(address indexed newRoyaltyRecipient, uint256 newRoyaltyBps);

    /// @dev Emitted when royalty recipient for tokenId is set
    event RoyaltyForToken(uint256 indexed tokenId, address indexed royaltyRecipient, uint256 royaltyBps);
}

File 25 of 28 : TWAddress.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 26 of 28 : TWStrings.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

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

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

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

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

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

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

pragma solidity ^0.8.0;

abstract contract ReentrancyGuard {
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 28 of 28 : BotAttack.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

import "@thirdweb-dev/contracts/base/ERC1155LazyMint.sol";

/**
 * @title BotAttackNFT - Bots of COG Battle Game on Polygon
 */
contract BotAttackNFT is ERC1155LazyMint {

    event LevelUp(address indexed account, uint256 level);
    event Dead(address indexed attacker, address indexed victim, uint256 level);

    bool public isGamePaused = false;

    constructor(
        string memory _name,
        string memory _symbol
    )
        ERC1155LazyMint(
            _name,
            _symbol,
            msg.sender,
            0
        )
    {}

    /** 
     * @notice Claim a bot to start playing, but only if you don't already own a bot
     */
    function claimBot() external {
        claim(msg.sender, 0, 1);
        // claiming a Bot enters the game at level 1
        emit LevelUp(msg.sender, 1);
    }

    function verifyClaim(
        address _claimer,
        uint256 _tokenId,
        uint256 _quantity
    ) public view override {
        require(isGamePaused == false, "GAME_PAUSED");
        require(_tokenId == 0, "Only Bots can be claimed");
        require(_quantity == 1, "Only one Worker Bot at a time!");
        require(balanceOf[_claimer][0] == 0, "Already got a Worker");
        require(balanceOf[_claimer][1] == 0, "Already got a Drone");
        require(balanceOf[_claimer][2] == 0, "Already got a Sentinal");
    }

    /** 
     * @notice Transfer Bots to level up
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public override gameNotPaused {
        // can only transfer bots
        require(id == 0, "This bot is not transferable!");
        super.safeTransferFrom(from, to, id, amount, data);
        if(from != to && id == 0) {
            // transfering level 1 NFT gives you a level 2 NFT
            _mint(from, 1, 1, "");
            emit LevelUp(to, 1); // receiver levels up to 1
            emit LevelUp(from, 2); // sender levels up to 2
        }
    }

    /** 
     * @notice Burn a Bot to either level up or attack another Bot
     */
    function burn(
        address account,
        uint256 id,
        uint256 amount
    ) external override gameNotPaused {
        // the owner can burn their NFT, but any Sentinal Bot owner can also burn anyone else's Bot
        require(msg.sender == account || balanceOf[msg.sender][2] > 0, "NOT_TOKEN_OWNER or Sentinal Bot");
        _burn(account, id, amount);
        if(id == 1) {
            // burning level 2 NFT gives you a level 3 NFT
            _mint(account, 2, 1, "");
            emit LevelUp(account, 3);
        }
    }

    /**
     * @notice Lets a Sentinal Bot owner attack another user's to burn their Bots
     */
    function attack(address victim) external gameNotPaused {
        address attacker = msg.sender;
        // only a Sentinal Bot owner can attack
        require(balanceOf[attacker][2] > 0, "You Need a Sentinal Bot to Attack!");
        // find a "victim" bot
        uint256 tokenToBurn = 0;
        if(balanceOf[victim][0] > 0) {
            tokenToBurn = 0;
        } else if(balanceOf[victim][1] > 0) {
            tokenToBurn = 1;
        } else if(balanceOf[victim][2] > 0) {
            tokenToBurn = 2;
        } else {
            revert("This Owner Doesn't Hold Anymore Bots!");
        }
        // burn it
        _burn(victim, tokenToBurn, 1);
        // mint a death COG token to the attacker
        _mint(attacker, 3, 1, "");
        emit Dead(msg.sender, victim, tokenToBurn + 1);
    }

    function getScore(address player) public view returns(uint256) {
        // Worker: 1 point
        // Drone: 2 points
        // Sentinal: 3 points
        // Death COG: 1 point
        return balanceOf[player][0] + 2 * balanceOf[player][1] + 3 * balanceOf[player][2] + balanceOf[player][3];
    }
    
    /** 
     * @notice Lets the owner restart the game
     */
    function startGame() external {
        require(msg.sender == owner(), "Only Owner can call Start");
        isGamePaused = false;
    }

    /** 
     * @notice Lets the owner pause the game
     */
    function stopGame() external {
        require(msg.sender == owner(), "Only Owner can call Stop");
        isGamePaused = true;
    }

    modifier gameNotPaused() {
        require(!isGamePaused, "Game is Currently Paused");
        _;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "evmVersion": "london",
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":false,"internalType":"bool","name":"_approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"prevURI","type":"string"},{"indexed":false,"internalType":"string","name":"newURI","type":"string"}],"name":"ContractURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"attacker","type":"address"},{"indexed":true,"internalType":"address","name":"victim","type":"address"},{"indexed":false,"internalType":"uint256","name":"level","type":"uint256"}],"name":"Dead","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newRoyaltyRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"newRoyaltyBps","type":"uint256"}],"name":"DefaultRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"level","type":"uint256"}],"name":"LevelUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"restriction","type":"bool"}],"name":"OperatorRestriction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"prevOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"royaltyRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"royaltyBps","type":"uint256"}],"name":"RoyaltyForToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantityClaimed","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"startTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"baseURI","type":"string"},{"indexed":false,"internalType":"bytes","name":"encryptedBaseURI","type":"bytes"}],"name":"TokensLazyMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"victim","type":"address"}],"name":"attack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURICount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getBatchIdAtIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDefaultRoyaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getRoyaltyInfoForToken","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"getScore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGamePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"string","name":"_baseURIForTokens","type":"string"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"lazyMint","outputs":[{"internalType":"uint256","name":"batchId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenIdToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorRestriction","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyRecipient","type":"address"},{"internalType":"uint256","name":"_royaltyBps","type":"uint256"}],"name":"setDefaultRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_restriction","type":"bool"}],"name":"setOperatorRestriction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_bps","type":"uint256"}],"name":"setRoyaltyInfoForToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_subscription","type":"address"}],"name":"subscribeToRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_claimer","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"verifyClaim","outputs":[],"stateMutability":"view","type":"function"}]

6080604052600f805460ff191690553480156200001b57600080fd5b506040516200465e3803806200465e8339810160408190526200003e9162000403565b8181336000733cc6cdda760b79bafa08df41ecfa224f810dceb66001858584620000698382620004f8565b506001620000788282620004f8565b5050506200008d8282620000cc60201b60201c565b50506001600d556200009f33620001fa565b620000b4826001600160801b0383166200024c565b620000c06001620002f7565b505050505050620005c4565b6daaeb6d7670e522a718067333cd4e3b15620001f6576001600160a01b0382163b15620001af5780156200016e57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200015157600080fd5b505af115801562000166573d6000803e3d6000fd5b505050505050565b60405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000136565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200015157600080fd5b5050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a35050565b612710811115620002955760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d61782062707360881b604482015260640160405180910390fd5b600780546001600160a01b0384166001600160b01b03199091168117600160a01b61ffff851602179091556040518281527f90d7ec04bcb8978719414f82e52e4cb651db41d0e6f8cea6118c2191e6183adb9060200160405180910390a25050565b600c805460ff19168215159081179091556040519081527f38475885990d8dfe9ca01f0ef160a1b5514426eab9ddbc953a3353410ba780969060200160405180910390a150565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200036657600080fd5b81516001600160401b03808211156200038357620003836200033e565b604051601f8301601f19908116603f01168101908282118183101715620003ae57620003ae6200033e565b81604052838152602092508683858801011115620003cb57600080fd5b600091505b83821015620003ef5785820183015181830184015290820190620003d0565b600093810190920192909252949350505050565b600080604083850312156200041757600080fd5b82516001600160401b03808211156200042f57600080fd5b6200043d8683870162000354565b935060208501519150808211156200045457600080fd5b50620004638582860162000354565b9150509250929050565b600181811c908216806200048257607f821691505b602082108103620004a357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004f357600081815260208120601f850160051c81016020861015620004d25750805b601f850160051c820191505b818110156200016657828155600101620004de565b505050565b81516001600160401b038111156200051457620005146200033e565b6200052c816200052584546200046d565b84620004a9565b602080601f8311600181146200056457600084156200054b5750858301515b600019600386901b1c1916600185901b17855562000166565b600085815260208120601f198616915b82811015620005955788860151825594840194600190910190840162000574565b5085821015620005b45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61408a80620005d46000396000f3fe60806040526004361061029f5760003560e01c8063600dd5ea1161016e578063b24f2d39116100cb578063d65ab5f21161007f578063e985e9c511610064578063e985e9c514610788578063f242432a146107c3578063f5298aca146107e357600080fd5b8063d65ab5f21461075e578063e8a3d4851461077357600080fd5b8063d018db3e116100b0578063d018db3e146106fe578063d37c353b1461071e578063d47875d01461073e57600080fd5b8063b24f2d39146106a6578063bd85b039146106d157600080fd5b8063938e3d7b116101225780639bcf7a15116101075780639bcf7a1514610639578063a22cb46514610659578063ac9650d81461067957600080fd5b8063938e3d7b1461060457806395d89b411461062457600080fd5b80636b20c454116101535780636b20c454146105b157806383bd72ba146105d15780638da5cb5b146105e657600080fd5b8063600dd5ea1461057c57806363b45e2d1461059c57600080fd5b80632eb2c2d61161021c5780634bbb1abf116101d05780634e1273f4116101b55780634e1273f414610515578063504c6e011461054257806357fd84551461055c57600080fd5b80634bbb1abf146104b35780634cc157df146104d357600080fd5b80633b1475a7116102015780633b1475a71461044f5780633d1a634e1461046457806341f434341461047957600080fd5b80632eb2c2d61461040f57806332f0cd641461042f57600080fd5b80630e89341c116102735780632419f51b116102585780632419f51b1461039d5780632a55205a146103bd5780632bc43fd9146103fc57600080fd5b80630e89341c1461035b57806313af40351461037b57600080fd5b8062fdd58e146102a457806301ffc9a7146102ef5780630422ddf31461031f57806306fdde0314610339575b600080fd5b3480156102b057600080fd5b506102dc6102bf366004613389565b600260209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b3480156102fb57600080fd5b5061030f61030a3660046133c9565b610803565b60405190151581526020016102e6565b34801561032b57600080fd5b50600f5461030f9060ff1681565b34801561034557600080fd5b5061034e610870565b6040516102e69190613436565b34801561036757600080fd5b5061034e610376366004613449565b6108fe565b34801561038757600080fd5b5061039b610396366004613462565b61093f565b005b3480156103a957600080fd5b506102dc6103b8366004613449565b610995565b3480156103c957600080fd5b506103dd6103d836600461347d565b610a13565b604080516001600160a01b0390931683526020830191909152016102e6565b61039b61040a36600461349f565b610a50565b34801561041b57600080fd5b5061039b61042a366004613628565b610b66565b34801561043b57600080fd5b5061039b61044a3660046136e0565b610b95565b34801561045b57600080fd5b50600b546102dc565b34801561047057600080fd5b5061039b610c18565b34801561048557600080fd5b5061049b6daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b0390911681526020016102e6565b3480156104bf57600080fd5b5061039b6104ce36600461349f565b610c5d565b3480156104df57600080fd5b506104f36104ee366004613449565b610ea7565b604080516001600160a01b03909316835261ffff9091166020830152016102e6565b34801561052157600080fd5b506105356105303660046136fd565b610f12565b6040516102e69190613803565b34801561054e57600080fd5b50600c5461030f9060ff1681565b34801561056857600080fd5b5061039b610577366004613462565b611049565b34801561058857600080fd5b5061039b610597366004613389565b6110ce565b3480156105a857600080fd5b506009546102dc565b3480156105bd57600080fd5b5061039b6105cc366004613816565b611121565b3480156105dd57600080fd5b5061039b6112e3565b3480156105f257600080fd5b506006546001600160a01b031661049b565b34801561061057600080fd5b5061039b61061f36600461388a565b61134c565b34801561063057600080fd5b5061034e61139a565b34801561064557600080fd5b5061039b6106543660046138d3565b6113a7565b34801561066557600080fd5b5061039b610674366004613908565b6113f7565b34801561068557600080fd5b5061069961069436600461393f565b61140b565b6040516102e691906139b4565b3480156106b257600080fd5b506007546001600160a01b03811690600160a01b900461ffff166104f3565b3480156106dd57600080fd5b506102dc6106ec366004613449565b600e6020526000908152604090205481565b34801561070a57600080fd5b5061039b610719366004613462565b611500565b34801561072a57600080fd5b506102dc610739366004613a5f565b61173e565b34801561074a57600080fd5b506102dc610759366004613462565b611884565b34801561076a57600080fd5b5061039b61192a565b34801561077f57600080fd5b5061034e611990565b34801561079457600080fd5b5061030f6107a3366004613ad9565b600360209081526000928352604080842090915290825290205460ff1681565b3480156107cf57600080fd5b5061039b6107de366004613b0c565b61199d565b3480156107ef57600080fd5b5061039b6107fe36600461349f565b611b1c565b60006301ffc9a760e01b6001600160e01b0319831614806108345750636cdb3d1360e11b6001600160e01b03198316145b8061084f57506303a24d0760e21b6001600160e01b03198316145b8061086a57506001600160e01b0319821663152a902d60e11b145b92915050565b6000805461087d90613b71565b80601f01602080910402602001604051908101604052809291908181526020018280546108a990613b71565b80156108f65780601f106108cb576101008083540402835291602001916108f6565b820191906000526020600020905b8154815290600101906020018083116108d957829003601f168201915b505050505081565b6060600061090b83611c64565b90508061091784611e0e565b604051602001610928929190613bab565b604051602081830303815290604052915050919050565b610947611f2f565b6109895760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b61099281611f5c565b50565b60006109a060095490565b82106109ee5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c696420696e646578000000000000000000000000000000000000006044820152606401610980565b60098281548110610a0157610a01613bda565b90600052602060002001549050919050565b600080600080610a2286610ea7565b90945084925061ffff169050612710610a3b8287613c06565b610a459190613c33565b925050509250929050565b6002600d5403610aa25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610980565b6002600d55600b548210610af85760405162461bcd60e51b815260206004820152600a60248201527f696e76616c6964206964000000000000000000000000000000000000000000006044820152606401610980565b610b03338383610c5d565b610b0e838383611fbb565b81836001600160a01b0316336001600160a01b03167fff097c7d8b1957a4ff09ef1361b5fb54dcede3941ba836d0beb9d10bec725de684604051610b5491815260200190565b60405180910390a450506001600d5550565b846001600160a01b0381163314610b8057610b8033611fd6565b610b8d868686868661209a565b505050505050565b610b9d611f2f565b610c0f5760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420617574686f72697a656420746f20736574206f70657261746f72207260448201527f65737472696374696f6e2e0000000000000000000000000000000000000000006064820152608401610980565b6109928161212d565b610c253360006001610a50565b6040516001815233907f91e51c29e7e87a74ad3b8ccba98538970f50a4309242735467f41e27c6b0fbac9060200160405180910390a2565b600f5460ff1615610cb05760405162461bcd60e51b815260206004820152600b60248201527f47414d455f5041555345440000000000000000000000000000000000000000006044820152606401610980565b8115610cfe5760405162461bcd60e51b815260206004820152601860248201527f4f6e6c7920426f74732063616e20626520636c61696d656400000000000000006044820152606401610980565b80600114610d4e5760405162461bcd60e51b815260206004820152601e60248201527f4f6e6c79206f6e6520576f726b657220426f7420617420612074696d652100006044820152606401610980565b6001600160a01b038316600090815260026020908152604080832083805290915290205415610dbf5760405162461bcd60e51b815260206004820152601460248201527f416c726561647920676f74206120576f726b65720000000000000000000000006044820152606401610980565b6001600160a01b03831660009081526002602090815260408083206001845290915290205415610e315760405162461bcd60e51b815260206004820152601360248201527f416c726561647920676f7420612044726f6e65000000000000000000000000006044820152606401610980565b6001600160a01b038316600090815260026020818152604080842092845291905290205415610ea25760405162461bcd60e51b815260206004820152601660248201527f416c726561647920676f7420612053656e74696e616c000000000000000000006044820152606401610980565b505050565b6000818152600860209081526040808320815180830190925280546001600160a01b031680835260019091015492820192909252829115610eee5780516020820151610f08565b6007546001600160a01b03811690600160a01b900461ffff165b9250925050915091565b60608151835114610f575760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610980565b6000835167ffffffffffffffff811115610f7357610f736134d2565b604051908082528060200260200182016040528015610f9c578160200160208202803683370190505b50905060005b84518110156110415760026000868381518110610fc157610fc1613bda565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000858381518110610ffd57610ffd613bda565b602002602001015181526020019081526020016000205482828151811061102657611026613bda565b602090810291909101015261103a81613c47565b9050610fa2565b509392505050565b611051611f2f565b6110c35760405162461bcd60e51b815260206004820152602860248201527f4e6f7420617574686f72697a656420746f2073756273637269626520746f207260448201527f656769737472792e0000000000000000000000000000000000000000000000006064820152608401610980565b610992816001612174565b6110d6611f2f565b6111135760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610980565b61111d828261227a565b5050565b336001600160a01b03841681148061115e57506001600160a01b0380851660009081526003602090815260408083209385168352929052205460ff165b6111aa5760405162461bcd60e51b815260206004820152601160248201527f556e617070726f7665642063616c6c65720000000000000000000000000000006044820152606401610980565b81518351146111fb5760405162461bcd60e51b815260206004820152600f60248201527f4c656e677468206d69736d6174636800000000000000000000000000000000006044820152606401610980565b60005b83518110156112d15782818151811061121957611219613bda565b602002602001015160026000876001600160a01b03166001600160a01b03168152602001908152602001600020600086848151811061125a5761125a613bda565b602002602001015181526020019081526020016000205410156112bf5760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820746f6b656e73206f776e65640000000000000000006044820152606401610980565b6112ca600182613c60565b90506111fe565b506112dd848484612338565b50505050565b6006546001600160a01b0316331461133d5760405162461bcd60e51b815260206004820152601860248201527f4f6e6c79204f776e65722063616e2063616c6c2053746f7000000000000000006044820152606401610980565b600f805460ff19166001179055565b611354611f2f565b6113915760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610980565b61099281612532565b6001805461087d90613b71565b6113af611f2f565b6113ec5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610980565b610ea283838361260e565b8161140181611fd6565b610ea283836126dc565b60608167ffffffffffffffff811115611426576114266134d2565b60405190808252806020026020018201604052801561145957816020015b60608152602001906001900390816114445790505b50905060005b828110156114f9576114c93085858481811061147d5761147d613bda565b905060200281019061148f9190613c73565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061279a92505050565b8282815181106114db576114db613bda565b602002602001018190525080806114f190613c47565b91505061145f565b5092915050565b600f5460ff16156115535760405162461bcd60e51b815260206004820152601860248201527f47616d652069732043757272656e746c792050617573656400000000000000006044820152606401610980565b3360008181526002602081815260408084209284529190529020546115c55760405162461bcd60e51b815260206004820152602260248201527f596f75204e65656420612053656e74696e616c20426f7420746f2041747461636044820152616b2160f01b6064820152608401610980565b6001600160a01b0382166000908152600260209081526040808320838052909152812054156115f6575060006116c7565b6001600160a01b03831660009081526002602090815260408083206001845290915290205415611628575060016116c7565b6001600160a01b038316600090815260026020818152604080842092845291905290205415611659575060026116c7565b60405162461bcd60e51b815260206004820152602560248201527f54686973204f776e657220446f65736e277420486f6c6420416e796d6f72652060448201527f426f7473210000000000000000000000000000000000000000000000000000006064820152608401610980565b6116d3838260016127c6565b6116f082600360016040518060200160405280600081525061290e565b6001600160a01b038316337f0fb4c4c5f8d16a41c99560a1e385784e85fccd7393b82b225c46b8273caf0706611727846001613c60565b6040519081526020015b60405180910390a3505050565b6000611748611f2f565b6117855760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610980565b856000036117d55760405162461bcd60e51b815260206004820152600560248201527f3020616d740000000000000000000000000000000000000000000000000000006044820152606401610980565b6000600b54905061181d818888888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612a0692505050565b600b919091559150807f2a0365091ef1a40953c670dce28177e37520648a6fdc91506bffac0ab045570d60016118538a84613c60565b61185d9190613cba565b88888888604051611872959493929190613cf6565b60405180910390a25095945050505050565b6001600160a01b038116600090815260026020818152604080842060038086529252808420549284528320546118b991613c06565b6001600160a01b038416600090815260026020818152604080842060018552909152909120546118e891613c06565b6001600160a01b03851660009081526002602090815260408083208380529091529020546119169190613c60565b6119209190613c60565b61086a9190613c60565b6006546001600160a01b031633146119845760405162461bcd60e51b815260206004820152601960248201527f4f6e6c79204f776e65722063616e2063616c6c205374617274000000000000006044820152606401610980565b600f805460ff19169055565b6005805461087d90613b71565b600f5460ff16156119f05760405162461bcd60e51b815260206004820152601860248201527f47616d652069732043757272656e746c792050617573656400000000000000006044820152606401610980565b8215611a3e5760405162461bcd60e51b815260206004820152601d60248201527f5468697320626f74206973206e6f74207472616e7366657261626c65210000006044820152606401610980565b611a4b8585858585612a6a565b836001600160a01b0316856001600160a01b031614158015611a6b575082155b15611b1557611a8c856001806040518060200160405280600081525061290e565b836001600160a01b03167f91e51c29e7e87a74ad3b8ccba98538970f50a4309242735467f41e27c6b0fbac6001604051611ac891815260200190565b60405180910390a2846001600160a01b03167f91e51c29e7e87a74ad3b8ccba98538970f50a4309242735467f41e27c6b0fbac6002604051611b0c91815260200190565b60405180910390a25b5050505050565b600f5460ff1615611b6f5760405162461bcd60e51b815260206004820152601860248201527f47616d652069732043757272656e746c792050617573656400000000000000006044820152606401610980565b336001600160a01b0384161480611b9f575033600090815260026020818152604080842092845291905290205415155b611beb5760405162461bcd60e51b815260206004820152601f60248201527f4e4f545f544f4b454e5f4f574e4552206f722053656e74696e616c20426f74006044820152606401610980565b611bf68383836127c6565b81600103610ea257611c1b83600260016040518060200160405280600081525061290e565b826001600160a01b03167f91e51c29e7e87a74ad3b8ccba98538970f50a4309242735467f41e27c6b0fbac6003604051611c5791815260200190565b60405180910390a2505050565b60606000611c7160095490565b905060006009805480602002602001604051908101604052809291908181526020018280548015611cc157602002820191906000526020600020905b815481526020019060010190808311611cad575b5050505050905060005b82811015611dc557818181518110611ce557611ce5613bda565b6020026020010151851015611db357600a6000838381518110611d0a57611d0a613bda565b602002602001015181526020019081526020016000208054611d2b90613b71565b80601f0160208091040260200160405190810160405280929190818152602001828054611d5790613b71565b8015611da45780601f10611d7957610100808354040283529160200191611da4565b820191906000526020600020905b815481529060010190602001808311611d8757829003601f168201915b50505050509350505050919050565b611dbe600182613c60565b9050611ccb565b5060405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610980565b606081600003611e355750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e5f5780611e4981613c47565b9150611e589050600a83613c33565b9150611e39565b60008167ffffffffffffffff811115611e7a57611e7a6134d2565b6040519080825280601f01601f191660200182016040528015611ea4576020820181803683370190505b5090505b8415611f2757611eb9600183613cba565b9150611ec6600a86613d2f565b611ed1906030613c60565b60f81b818381518110611ee657611ee6613bda565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611f20600a86613c33565b9450611ea8565b949350505050565b6000611f436006546001600160a01b031690565b6001600160a01b0316336001600160a01b031614905090565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a35050565b610ea28383836040518060200160405280600081525061290e565b600c5460ff1615610992576daaeb6d7670e522a718067333cd4e3b1561099257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561204e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120729190613d43565b61099257604051633b79c77360e21b81526001600160a01b0382166004820152602401610980565b6001600160a01b0385163314806120d457506001600160a01b038516600090815260036020908152604080832033845290915290205460ff165b6121205760405162461bcd60e51b815260206004820152601260248201527f214f574e45525f4f525f415050524f56454400000000000000000000000000006044820152606401610980565b611b158585858585612a91565b600c805460ff19168215159081179091556040519081527f38475885990d8dfe9ca01f0ef160a1b5514426eab9ddbc953a3353410ba780969060200160405180910390a150565b6daaeb6d7670e522a718067333cd4e3b1561111d576001600160a01b0382163b1561224957801561220957604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156121f557600080fd5b505af1158015610b8d573d6000803e3d6000fd5b60405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016121db565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e486906024016121db565b6127108111156122be5760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d61782062707360881b6044820152606401610980565b600780546001600160a01b0384167fffffffffffffffffffff000000000000000000000000000000000000000000009091168117600160a01b61ffff851602179091556040518281527f90d7ec04bcb8978719414f82e52e4cb651db41d0e6f8cea6118c2191e6183adb9060200160405180910390a25050565b6001600160a01b03831661237f5760405162461bcd60e51b815260206004820152600e60248201526d232927a6afad22a927afa0a2222960911b6044820152606401610980565b80518251146123c25760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610980565b60003390506123e581856000868660405180602001604052806000815250612ca8565b60005b83518110156124d357600084828151811061240557612405613bda565b60200260200101519050600084838151811061242357612423613bda565b6020908102919091018101516001600160a01b03891660009081526002835260408082208683529093529190912054909150818110156124985760405162461bcd60e51b815260206004820152601060248201526f125394d551919250d251539517d0905360821b6044820152606401610980565b6001600160a01b03881660009081526002602090815260408083209583529490529290922091039055806124cb81613c47565b9150506123e8565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612524929190613d60565b60405180910390a450505050565b60006005805461254190613b71565b80601f016020809104026020016040519081016040528092919081815260200182805461256d90613b71565b80156125ba5780601f1061258f576101008083540402835291602001916125ba565b820191906000526020600020905b81548152906001019060200180831161259d57829003601f168201915b5050505050905081600590816125d09190613dd4565b507fc9c7c3fe08b88b4df9d4d47ef47d2c43d55c025a0ba88ca442580ed9e7348a168183604051612602929190613e94565b60405180910390a15050565b6127108111156126525760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d61782062707360881b6044820152606401610980565b6040805180820182526001600160a01b0384811680835260208084018681526000898152600883528690209451855473ffffffffffffffffffffffffffffffffffffffff1916941693909317845591516001909301929092559151838152909185917f7365cf4122f072a3365c20d54eff9b38d73c096c28e1892ec8f5b0e403a0f12d9101611731565b336001600160a01b03831681036127355760405162461bcd60e51b815260206004820152600e60248201527f415050524f56494e475f53454c460000000000000000000000000000000000006044820152606401610980565b6001600160a01b03818116600081815260036020908152604080832094881680845294825291829020805460ff191687151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101611731565b60606127bf838360405180606001604052806027815260200161402e60279139612dbd565b9392505050565b6001600160a01b03831661280d5760405162461bcd60e51b815260206004820152600e60248201526d232927a6afad22a927afa0a2222960911b6044820152606401610980565b3361283c8185600061281e87612eb1565b61282787612eb1565b60405180602001604052806000815250612ca8565b6001600160a01b0384166000908152600260209081526040808320868452909152902054828110156128a35760405162461bcd60e51b815260206004820152601060248201526f125394d551919250d251539517d0905360821b6044820152606401610980565b6001600160a01b03858116600081815260026020908152604080832089845282528083208887039055805189815291820188905291938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384166129535760405162461bcd60e51b815260206004820152600c60248201526b2a27afad22a927afa0a2222960a11b6044820152606401610980565b336129738160008761296488612eb1565b61296d88612eb1565b87612ca8565b6001600160a01b0385166000908152600260209081526040808320878452909152812080548592906129a6908490613c60565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611b1581600087878787612efc565b600080612a138486613c60565b60098054600181019091557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af018190556000818152600a60205260409020909250829150612a618482613dd4565b50935093915050565b846001600160a01b0381163314612a8457612a8433611fd6565b610b8d868686868661305c565b8151835114612ad45760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610980565b6001600160a01b038416612b195760405162461bcd60e51b815260206004820152600c60248201526b2a27afad22a927afa0a2222960a11b6044820152606401610980565b33612b28818787878787612ca8565b60005b8451811015612c42576000858281518110612b4857612b48613bda565b602002602001015190506000858381518110612b6657612b66613bda565b6020908102919091018101516001600160a01b038b166000908152600283526040808220868352909352919091205490915081811015612bdb5760405162461bcd60e51b815260206004820152601060248201526f125394d551919250d251539517d0905360821b6044820152606401610980565b6001600160a01b03808b16600090815260026020818152604080842088855282528084208787039055938d16835290815282822086835290529081208054849290612c27908490613c60565b9250508190555050505080612c3b90613c47565b9050612b2b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612c92929190613d60565b60405180910390a4610b8d8187878787876130ef565b6001600160a01b038516612d2f5760005b8351811015612d2d57828181518110612cd457612cd4613bda565b6020026020010151600e6000868481518110612cf257612cf2613bda565b602002602001015181526020019081526020016000206000828254612d179190613c60565b90915550612d26905081613c47565b9050612cb9565b505b6001600160a01b038416610b8d5760005b8351811015612db457828181518110612d5b57612d5b613bda565b6020026020010151600e6000868481518110612d7957612d79613bda565b602002602001015181526020019081526020016000206000828254612d9e9190613cba565b90915550612dad905081613c47565b9050612d40565b50505050505050565b60606001600160a01b0384163b612e3c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610980565b600080856001600160a01b031685604051612e579190613eb9565b600060405180830381855af49150503d8060008114612e92576040519150601f19603f3d011682016040523d82523d6000602084013e612e97565b606091505b5091509150612ea78282866131cc565b9695505050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612eeb57612eeb613bda565b602090810291909101015292915050565b6001600160a01b0384163b15610b8d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612f409089908990889088908890600401613ed5565b6020604051808303816000875af1925050508015612f7b575060408051601f3d908101601f19168201909252612f7891810190613f18565b60015b61300a57612f87613f35565b806308c379a003612fc05750612f9b613f51565b80612fa65750612fc2565b8060405162461bcd60e51b81526004016109809190613436565b505b60405162461bcd60e51b815260206004820152601060248201527f21455243313135355245434549564552000000000000000000000000000000006044820152606401610980565b6001600160e01b0319811663f23a6e6160e01b14612db45760405162461bcd60e51b815260206004820152600f60248201526e1513d2d15394d7d491529150d51151608a1b6044820152606401610980565b6001600160a01b03851633148061309657506001600160a01b038516600090815260036020908152604080832033845290915290205460ff165b6130e25760405162461bcd60e51b815260206004820152601260248201527f214f574e45525f4f525f415050524f56454400000000000000000000000000006044820152606401610980565b611b158585858585613205565b6001600160a01b0384163b15610b8d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906131339089908990889088908890600401613fdb565b6020604051808303816000875af192505050801561316e575060408051601f3d908101601f1916820190925261316b91810190613f18565b60015b61317a57612f87613f35565b6001600160e01b0319811663bc197c8160e01b14612db45760405162461bcd60e51b815260206004820152600f60248201526e1513d2d15394d7d491529150d51151608a1b6044820152606401610980565b606083156131db5750816127bf565b8251156131eb5782518084602001fd5b8160405162461bcd60e51b81526004016109809190613436565b6001600160a01b03841661324a5760405162461bcd60e51b815260206004820152600c60248201526b2a27afad22a927afa0a2222960a11b6044820152606401610980565b3361325a81878761296488612eb1565b6001600160a01b0386166000908152600260209081526040808320878452909152902054838110156132c15760405162461bcd60e51b815260206004820152601060248201526f125394d551919250d251539517d0905360821b6044820152606401610980565b6001600160a01b0380881660009081526002602081815260408084208a855282528084208987039055938a1683529081528282208883529052908120805486929061330d908490613c60565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612db4828888888888612efc565b80356001600160a01b038116811461338457600080fd5b919050565b6000806040838503121561339c57600080fd5b6133a58361336d565b946020939093013593505050565b6001600160e01b03198116811461099257600080fd5b6000602082840312156133db57600080fd5b81356127bf816133b3565b60005b838110156134015781810151838201526020016133e9565b50506000910152565b600081518084526134228160208601602086016133e6565b601f01601f19169290920160200192915050565b6020815260006127bf602083018461340a565b60006020828403121561345b57600080fd5b5035919050565b60006020828403121561347457600080fd5b6127bf8261336d565b6000806040838503121561349057600080fd5b50508035926020909101359150565b6000806000606084860312156134b457600080fd5b6134bd8461336d565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561350e5761350e6134d2565b6040525050565b600067ffffffffffffffff82111561352f5761352f6134d2565b5060051b60200190565b600082601f83011261354a57600080fd5b8135602061355782613515565b60405161356482826134e8565b83815260059390931b850182019282810191508684111561358457600080fd5b8286015b8481101561359f5780358352918301918301613588565b509695505050505050565b600067ffffffffffffffff8311156135c4576135c46134d2565b6040516135db601f8501601f1916602001826134e8565b8091508381528484840111156135f057600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261361957600080fd5b6127bf838335602085016135aa565b600080600080600060a0868803121561364057600080fd5b6136498661336d565b94506136576020870161336d565b9350604086013567ffffffffffffffff8082111561367457600080fd5b61368089838a01613539565b9450606088013591508082111561369657600080fd5b6136a289838a01613539565b935060808801359150808211156136b857600080fd5b506136c588828901613608565b9150509295509295909350565b801515811461099257600080fd5b6000602082840312156136f257600080fd5b81356127bf816136d2565b6000806040838503121561371057600080fd5b823567ffffffffffffffff8082111561372857600080fd5b818501915085601f83011261373c57600080fd5b8135602061374982613515565b60405161375682826134e8565b83815260059390931b850182019282810191508984111561377657600080fd5b948201945b8386101561379b5761378c8661336d565b8252948201949082019061377b565b965050860135925050808211156137b157600080fd5b506137be85828601613539565b9150509250929050565b600081518084526020808501945080840160005b838110156137f8578151875295820195908201906001016137dc565b509495945050505050565b6020815260006127bf60208301846137c8565b60008060006060848603121561382b57600080fd5b6138348461336d565b9250602084013567ffffffffffffffff8082111561385157600080fd5b61385d87838801613539565b9350604086013591508082111561387357600080fd5b5061388086828701613539565b9150509250925092565b60006020828403121561389c57600080fd5b813567ffffffffffffffff8111156138b357600080fd5b8201601f810184136138c457600080fd5b611f27848235602084016135aa565b6000806000606084860312156138e857600080fd5b833592506138f86020850161336d565b9150604084013590509250925092565b6000806040838503121561391b57600080fd5b6139248361336d565b91506020830135613934816136d2565b809150509250929050565b6000806020838503121561395257600080fd5b823567ffffffffffffffff8082111561396a57600080fd5b818501915085601f83011261397e57600080fd5b81358181111561398d57600080fd5b8660208260051b85010111156139a257600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015613a0957603f198886030184526139f785835161340a565b945092850192908501906001016139db565b5092979650505050505050565b60008083601f840112613a2857600080fd5b50813567ffffffffffffffff811115613a4057600080fd5b602083019150836020828501011115613a5857600080fd5b9250929050565b600080600080600060608688031215613a7757600080fd5b85359450602086013567ffffffffffffffff80821115613a9657600080fd5b613aa289838a01613a16565b90965094506040880135915080821115613abb57600080fd5b50613ac888828901613a16565b969995985093965092949392505050565b60008060408385031215613aec57600080fd5b613af58361336d565b9150613b036020840161336d565b90509250929050565b600080600080600060a08688031215613b2457600080fd5b613b2d8661336d565b9450613b3b6020870161336d565b93506040860135925060608601359150608086013567ffffffffffffffff811115613b6557600080fd5b6136c588828901613608565b600181811c90821680613b8557607f821691505b602082108103613ba557634e487b7160e01b600052602260045260246000fd5b50919050565b60008351613bbd8184602088016133e6565b835190830190613bd18183602088016133e6565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761086a5761086a613bf0565b634e487b7160e01b600052601260045260246000fd5b600082613c4257613c42613c1d565b500490565b600060018201613c5957613c59613bf0565b5060010190565b8082018082111561086a5761086a613bf0565b6000808335601e19843603018112613c8a57600080fd5b83018035915067ffffffffffffffff821115613ca557600080fd5b602001915036819003821315613a5857600080fd5b8181038181111561086a5761086a613bf0565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b858152606060208201526000613d10606083018688613ccd565b8281036040840152613d23818587613ccd565b98975050505050505050565b600082613d3e57613d3e613c1d565b500690565b600060208284031215613d5557600080fd5b81516127bf816136d2565b604081526000613d7360408301856137c8565b8281036020840152613d8581856137c8565b95945050505050565b601f821115610ea257600081815260208120601f850160051c81016020861015613db55750805b601f850160051c820191505b81811015610b8d57828155600101613dc1565b815167ffffffffffffffff811115613dee57613dee6134d2565b613e0281613dfc8454613b71565b84613d8e565b602080601f831160018114613e375760008415613e1f5750858301515b600019600386901b1c1916600185901b178555610b8d565b600085815260208120601f198616915b82811015613e6657888601518255948401946001909101908401613e47565b5085821015613e845787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000613ea7604083018561340a565b8281036020840152613d85818561340a565b60008251613ecb8184602087016133e6565b9190910192915050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152613f0d60a083018461340a565b979650505050505050565b600060208284031215613f2a57600080fd5b81516127bf816133b3565b600060033d1115613f4e5760046000803e5060005160e01c5b90565b600060443d1015613f5f5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613f8f57505050505090565b8285019150815181811115613fa75750505050505090565b843d8701016020828501011115613fc15750505050505090565b613fd0602082860101876134e8565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261400760a08301866137c8565b828103606084015261401981866137c8565b90508281036080840152613d23818561340a56fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220043df97edd46178bc03fb34c91ce552f9bd05702c880af311c0eae5f60b867c364736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000d426f434e4654426174746c657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b426f432d426174746c6573000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061029f5760003560e01c8063600dd5ea1161016e578063b24f2d39116100cb578063d65ab5f21161007f578063e985e9c511610064578063e985e9c514610788578063f242432a146107c3578063f5298aca146107e357600080fd5b8063d65ab5f21461075e578063e8a3d4851461077357600080fd5b8063d018db3e116100b0578063d018db3e146106fe578063d37c353b1461071e578063d47875d01461073e57600080fd5b8063b24f2d39146106a6578063bd85b039146106d157600080fd5b8063938e3d7b116101225780639bcf7a15116101075780639bcf7a1514610639578063a22cb46514610659578063ac9650d81461067957600080fd5b8063938e3d7b1461060457806395d89b411461062457600080fd5b80636b20c454116101535780636b20c454146105b157806383bd72ba146105d15780638da5cb5b146105e657600080fd5b8063600dd5ea1461057c57806363b45e2d1461059c57600080fd5b80632eb2c2d61161021c5780634bbb1abf116101d05780634e1273f4116101b55780634e1273f414610515578063504c6e011461054257806357fd84551461055c57600080fd5b80634bbb1abf146104b35780634cc157df146104d357600080fd5b80633b1475a7116102015780633b1475a71461044f5780633d1a634e1461046457806341f434341461047957600080fd5b80632eb2c2d61461040f57806332f0cd641461042f57600080fd5b80630e89341c116102735780632419f51b116102585780632419f51b1461039d5780632a55205a146103bd5780632bc43fd9146103fc57600080fd5b80630e89341c1461035b57806313af40351461037b57600080fd5b8062fdd58e146102a457806301ffc9a7146102ef5780630422ddf31461031f57806306fdde0314610339575b600080fd5b3480156102b057600080fd5b506102dc6102bf366004613389565b600260209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b3480156102fb57600080fd5b5061030f61030a3660046133c9565b610803565b60405190151581526020016102e6565b34801561032b57600080fd5b50600f5461030f9060ff1681565b34801561034557600080fd5b5061034e610870565b6040516102e69190613436565b34801561036757600080fd5b5061034e610376366004613449565b6108fe565b34801561038757600080fd5b5061039b610396366004613462565b61093f565b005b3480156103a957600080fd5b506102dc6103b8366004613449565b610995565b3480156103c957600080fd5b506103dd6103d836600461347d565b610a13565b604080516001600160a01b0390931683526020830191909152016102e6565b61039b61040a36600461349f565b610a50565b34801561041b57600080fd5b5061039b61042a366004613628565b610b66565b34801561043b57600080fd5b5061039b61044a3660046136e0565b610b95565b34801561045b57600080fd5b50600b546102dc565b34801561047057600080fd5b5061039b610c18565b34801561048557600080fd5b5061049b6daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b0390911681526020016102e6565b3480156104bf57600080fd5b5061039b6104ce36600461349f565b610c5d565b3480156104df57600080fd5b506104f36104ee366004613449565b610ea7565b604080516001600160a01b03909316835261ffff9091166020830152016102e6565b34801561052157600080fd5b506105356105303660046136fd565b610f12565b6040516102e69190613803565b34801561054e57600080fd5b50600c5461030f9060ff1681565b34801561056857600080fd5b5061039b610577366004613462565b611049565b34801561058857600080fd5b5061039b610597366004613389565b6110ce565b3480156105a857600080fd5b506009546102dc565b3480156105bd57600080fd5b5061039b6105cc366004613816565b611121565b3480156105dd57600080fd5b5061039b6112e3565b3480156105f257600080fd5b506006546001600160a01b031661049b565b34801561061057600080fd5b5061039b61061f36600461388a565b61134c565b34801561063057600080fd5b5061034e61139a565b34801561064557600080fd5b5061039b6106543660046138d3565b6113a7565b34801561066557600080fd5b5061039b610674366004613908565b6113f7565b34801561068557600080fd5b5061069961069436600461393f565b61140b565b6040516102e691906139b4565b3480156106b257600080fd5b506007546001600160a01b03811690600160a01b900461ffff166104f3565b3480156106dd57600080fd5b506102dc6106ec366004613449565b600e6020526000908152604090205481565b34801561070a57600080fd5b5061039b610719366004613462565b611500565b34801561072a57600080fd5b506102dc610739366004613a5f565b61173e565b34801561074a57600080fd5b506102dc610759366004613462565b611884565b34801561076a57600080fd5b5061039b61192a565b34801561077f57600080fd5b5061034e611990565b34801561079457600080fd5b5061030f6107a3366004613ad9565b600360209081526000928352604080842090915290825290205460ff1681565b3480156107cf57600080fd5b5061039b6107de366004613b0c565b61199d565b3480156107ef57600080fd5b5061039b6107fe36600461349f565b611b1c565b60006301ffc9a760e01b6001600160e01b0319831614806108345750636cdb3d1360e11b6001600160e01b03198316145b8061084f57506303a24d0760e21b6001600160e01b03198316145b8061086a57506001600160e01b0319821663152a902d60e11b145b92915050565b6000805461087d90613b71565b80601f01602080910402602001604051908101604052809291908181526020018280546108a990613b71565b80156108f65780601f106108cb576101008083540402835291602001916108f6565b820191906000526020600020905b8154815290600101906020018083116108d957829003601f168201915b505050505081565b6060600061090b83611c64565b90508061091784611e0e565b604051602001610928929190613bab565b604051602081830303815290604052915050919050565b610947611f2f565b6109895760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b61099281611f5c565b50565b60006109a060095490565b82106109ee5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c696420696e646578000000000000000000000000000000000000006044820152606401610980565b60098281548110610a0157610a01613bda565b90600052602060002001549050919050565b600080600080610a2286610ea7565b90945084925061ffff169050612710610a3b8287613c06565b610a459190613c33565b925050509250929050565b6002600d5403610aa25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610980565b6002600d55600b548210610af85760405162461bcd60e51b815260206004820152600a60248201527f696e76616c6964206964000000000000000000000000000000000000000000006044820152606401610980565b610b03338383610c5d565b610b0e838383611fbb565b81836001600160a01b0316336001600160a01b03167fff097c7d8b1957a4ff09ef1361b5fb54dcede3941ba836d0beb9d10bec725de684604051610b5491815260200190565b60405180910390a450506001600d5550565b846001600160a01b0381163314610b8057610b8033611fd6565b610b8d868686868661209a565b505050505050565b610b9d611f2f565b610c0f5760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420617574686f72697a656420746f20736574206f70657261746f72207260448201527f65737472696374696f6e2e0000000000000000000000000000000000000000006064820152608401610980565b6109928161212d565b610c253360006001610a50565b6040516001815233907f91e51c29e7e87a74ad3b8ccba98538970f50a4309242735467f41e27c6b0fbac9060200160405180910390a2565b600f5460ff1615610cb05760405162461bcd60e51b815260206004820152600b60248201527f47414d455f5041555345440000000000000000000000000000000000000000006044820152606401610980565b8115610cfe5760405162461bcd60e51b815260206004820152601860248201527f4f6e6c7920426f74732063616e20626520636c61696d656400000000000000006044820152606401610980565b80600114610d4e5760405162461bcd60e51b815260206004820152601e60248201527f4f6e6c79206f6e6520576f726b657220426f7420617420612074696d652100006044820152606401610980565b6001600160a01b038316600090815260026020908152604080832083805290915290205415610dbf5760405162461bcd60e51b815260206004820152601460248201527f416c726561647920676f74206120576f726b65720000000000000000000000006044820152606401610980565b6001600160a01b03831660009081526002602090815260408083206001845290915290205415610e315760405162461bcd60e51b815260206004820152601360248201527f416c726561647920676f7420612044726f6e65000000000000000000000000006044820152606401610980565b6001600160a01b038316600090815260026020818152604080842092845291905290205415610ea25760405162461bcd60e51b815260206004820152601660248201527f416c726561647920676f7420612053656e74696e616c000000000000000000006044820152606401610980565b505050565b6000818152600860209081526040808320815180830190925280546001600160a01b031680835260019091015492820192909252829115610eee5780516020820151610f08565b6007546001600160a01b03811690600160a01b900461ffff165b9250925050915091565b60608151835114610f575760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610980565b6000835167ffffffffffffffff811115610f7357610f736134d2565b604051908082528060200260200182016040528015610f9c578160200160208202803683370190505b50905060005b84518110156110415760026000868381518110610fc157610fc1613bda565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000858381518110610ffd57610ffd613bda565b602002602001015181526020019081526020016000205482828151811061102657611026613bda565b602090810291909101015261103a81613c47565b9050610fa2565b509392505050565b611051611f2f565b6110c35760405162461bcd60e51b815260206004820152602860248201527f4e6f7420617574686f72697a656420746f2073756273637269626520746f207260448201527f656769737472792e0000000000000000000000000000000000000000000000006064820152608401610980565b610992816001612174565b6110d6611f2f565b6111135760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610980565b61111d828261227a565b5050565b336001600160a01b03841681148061115e57506001600160a01b0380851660009081526003602090815260408083209385168352929052205460ff165b6111aa5760405162461bcd60e51b815260206004820152601160248201527f556e617070726f7665642063616c6c65720000000000000000000000000000006044820152606401610980565b81518351146111fb5760405162461bcd60e51b815260206004820152600f60248201527f4c656e677468206d69736d6174636800000000000000000000000000000000006044820152606401610980565b60005b83518110156112d15782818151811061121957611219613bda565b602002602001015160026000876001600160a01b03166001600160a01b03168152602001908152602001600020600086848151811061125a5761125a613bda565b602002602001015181526020019081526020016000205410156112bf5760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820746f6b656e73206f776e65640000000000000000006044820152606401610980565b6112ca600182613c60565b90506111fe565b506112dd848484612338565b50505050565b6006546001600160a01b0316331461133d5760405162461bcd60e51b815260206004820152601860248201527f4f6e6c79204f776e65722063616e2063616c6c2053746f7000000000000000006044820152606401610980565b600f805460ff19166001179055565b611354611f2f565b6113915760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610980565b61099281612532565b6001805461087d90613b71565b6113af611f2f565b6113ec5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610980565b610ea283838361260e565b8161140181611fd6565b610ea283836126dc565b60608167ffffffffffffffff811115611426576114266134d2565b60405190808252806020026020018201604052801561145957816020015b60608152602001906001900390816114445790505b50905060005b828110156114f9576114c93085858481811061147d5761147d613bda565b905060200281019061148f9190613c73565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061279a92505050565b8282815181106114db576114db613bda565b602002602001018190525080806114f190613c47565b91505061145f565b5092915050565b600f5460ff16156115535760405162461bcd60e51b815260206004820152601860248201527f47616d652069732043757272656e746c792050617573656400000000000000006044820152606401610980565b3360008181526002602081815260408084209284529190529020546115c55760405162461bcd60e51b815260206004820152602260248201527f596f75204e65656420612053656e74696e616c20426f7420746f2041747461636044820152616b2160f01b6064820152608401610980565b6001600160a01b0382166000908152600260209081526040808320838052909152812054156115f6575060006116c7565b6001600160a01b03831660009081526002602090815260408083206001845290915290205415611628575060016116c7565b6001600160a01b038316600090815260026020818152604080842092845291905290205415611659575060026116c7565b60405162461bcd60e51b815260206004820152602560248201527f54686973204f776e657220446f65736e277420486f6c6420416e796d6f72652060448201527f426f7473210000000000000000000000000000000000000000000000000000006064820152608401610980565b6116d3838260016127c6565b6116f082600360016040518060200160405280600081525061290e565b6001600160a01b038316337f0fb4c4c5f8d16a41c99560a1e385784e85fccd7393b82b225c46b8273caf0706611727846001613c60565b6040519081526020015b60405180910390a3505050565b6000611748611f2f565b6117855760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610980565b856000036117d55760405162461bcd60e51b815260206004820152600560248201527f3020616d740000000000000000000000000000000000000000000000000000006044820152606401610980565b6000600b54905061181d818888888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612a0692505050565b600b919091559150807f2a0365091ef1a40953c670dce28177e37520648a6fdc91506bffac0ab045570d60016118538a84613c60565b61185d9190613cba565b88888888604051611872959493929190613cf6565b60405180910390a25095945050505050565b6001600160a01b038116600090815260026020818152604080842060038086529252808420549284528320546118b991613c06565b6001600160a01b038416600090815260026020818152604080842060018552909152909120546118e891613c06565b6001600160a01b03851660009081526002602090815260408083208380529091529020546119169190613c60565b6119209190613c60565b61086a9190613c60565b6006546001600160a01b031633146119845760405162461bcd60e51b815260206004820152601960248201527f4f6e6c79204f776e65722063616e2063616c6c205374617274000000000000006044820152606401610980565b600f805460ff19169055565b6005805461087d90613b71565b600f5460ff16156119f05760405162461bcd60e51b815260206004820152601860248201527f47616d652069732043757272656e746c792050617573656400000000000000006044820152606401610980565b8215611a3e5760405162461bcd60e51b815260206004820152601d60248201527f5468697320626f74206973206e6f74207472616e7366657261626c65210000006044820152606401610980565b611a4b8585858585612a6a565b836001600160a01b0316856001600160a01b031614158015611a6b575082155b15611b1557611a8c856001806040518060200160405280600081525061290e565b836001600160a01b03167f91e51c29e7e87a74ad3b8ccba98538970f50a4309242735467f41e27c6b0fbac6001604051611ac891815260200190565b60405180910390a2846001600160a01b03167f91e51c29e7e87a74ad3b8ccba98538970f50a4309242735467f41e27c6b0fbac6002604051611b0c91815260200190565b60405180910390a25b5050505050565b600f5460ff1615611b6f5760405162461bcd60e51b815260206004820152601860248201527f47616d652069732043757272656e746c792050617573656400000000000000006044820152606401610980565b336001600160a01b0384161480611b9f575033600090815260026020818152604080842092845291905290205415155b611beb5760405162461bcd60e51b815260206004820152601f60248201527f4e4f545f544f4b454e5f4f574e4552206f722053656e74696e616c20426f74006044820152606401610980565b611bf68383836127c6565b81600103610ea257611c1b83600260016040518060200160405280600081525061290e565b826001600160a01b03167f91e51c29e7e87a74ad3b8ccba98538970f50a4309242735467f41e27c6b0fbac6003604051611c5791815260200190565b60405180910390a2505050565b60606000611c7160095490565b905060006009805480602002602001604051908101604052809291908181526020018280548015611cc157602002820191906000526020600020905b815481526020019060010190808311611cad575b5050505050905060005b82811015611dc557818181518110611ce557611ce5613bda565b6020026020010151851015611db357600a6000838381518110611d0a57611d0a613bda565b602002602001015181526020019081526020016000208054611d2b90613b71565b80601f0160208091040260200160405190810160405280929190818152602001828054611d5790613b71565b8015611da45780601f10611d7957610100808354040283529160200191611da4565b820191906000526020600020905b815481529060010190602001808311611d8757829003601f168201915b50505050509350505050919050565b611dbe600182613c60565b9050611ccb565b5060405162461bcd60e51b815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610980565b606081600003611e355750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e5f5780611e4981613c47565b9150611e589050600a83613c33565b9150611e39565b60008167ffffffffffffffff811115611e7a57611e7a6134d2565b6040519080825280601f01601f191660200182016040528015611ea4576020820181803683370190505b5090505b8415611f2757611eb9600183613cba565b9150611ec6600a86613d2f565b611ed1906030613c60565b60f81b818381518110611ee657611ee6613bda565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611f20600a86613c33565b9450611ea8565b949350505050565b6000611f436006546001600160a01b031690565b6001600160a01b0316336001600160a01b031614905090565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a35050565b610ea28383836040518060200160405280600081525061290e565b600c5460ff1615610992576daaeb6d7670e522a718067333cd4e3b1561099257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561204e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120729190613d43565b61099257604051633b79c77360e21b81526001600160a01b0382166004820152602401610980565b6001600160a01b0385163314806120d457506001600160a01b038516600090815260036020908152604080832033845290915290205460ff165b6121205760405162461bcd60e51b815260206004820152601260248201527f214f574e45525f4f525f415050524f56454400000000000000000000000000006044820152606401610980565b611b158585858585612a91565b600c805460ff19168215159081179091556040519081527f38475885990d8dfe9ca01f0ef160a1b5514426eab9ddbc953a3353410ba780969060200160405180910390a150565b6daaeb6d7670e522a718067333cd4e3b1561111d576001600160a01b0382163b1561224957801561220957604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156121f557600080fd5b505af1158015610b8d573d6000803e3d6000fd5b60405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016121db565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e486906024016121db565b6127108111156122be5760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d61782062707360881b6044820152606401610980565b600780546001600160a01b0384167fffffffffffffffffffff000000000000000000000000000000000000000000009091168117600160a01b61ffff851602179091556040518281527f90d7ec04bcb8978719414f82e52e4cb651db41d0e6f8cea6118c2191e6183adb9060200160405180910390a25050565b6001600160a01b03831661237f5760405162461bcd60e51b815260206004820152600e60248201526d232927a6afad22a927afa0a2222960911b6044820152606401610980565b80518251146123c25760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610980565b60003390506123e581856000868660405180602001604052806000815250612ca8565b60005b83518110156124d357600084828151811061240557612405613bda565b60200260200101519050600084838151811061242357612423613bda565b6020908102919091018101516001600160a01b03891660009081526002835260408082208683529093529190912054909150818110156124985760405162461bcd60e51b815260206004820152601060248201526f125394d551919250d251539517d0905360821b6044820152606401610980565b6001600160a01b03881660009081526002602090815260408083209583529490529290922091039055806124cb81613c47565b9150506123e8565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612524929190613d60565b60405180910390a450505050565b60006005805461254190613b71565b80601f016020809104026020016040519081016040528092919081815260200182805461256d90613b71565b80156125ba5780601f1061258f576101008083540402835291602001916125ba565b820191906000526020600020905b81548152906001019060200180831161259d57829003601f168201915b5050505050905081600590816125d09190613dd4565b507fc9c7c3fe08b88b4df9d4d47ef47d2c43d55c025a0ba88ca442580ed9e7348a168183604051612602929190613e94565b60405180910390a15050565b6127108111156126525760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d61782062707360881b6044820152606401610980565b6040805180820182526001600160a01b0384811680835260208084018681526000898152600883528690209451855473ffffffffffffffffffffffffffffffffffffffff1916941693909317845591516001909301929092559151838152909185917f7365cf4122f072a3365c20d54eff9b38d73c096c28e1892ec8f5b0e403a0f12d9101611731565b336001600160a01b03831681036127355760405162461bcd60e51b815260206004820152600e60248201527f415050524f56494e475f53454c460000000000000000000000000000000000006044820152606401610980565b6001600160a01b03818116600081815260036020908152604080832094881680845294825291829020805460ff191687151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101611731565b60606127bf838360405180606001604052806027815260200161402e60279139612dbd565b9392505050565b6001600160a01b03831661280d5760405162461bcd60e51b815260206004820152600e60248201526d232927a6afad22a927afa0a2222960911b6044820152606401610980565b3361283c8185600061281e87612eb1565b61282787612eb1565b60405180602001604052806000815250612ca8565b6001600160a01b0384166000908152600260209081526040808320868452909152902054828110156128a35760405162461bcd60e51b815260206004820152601060248201526f125394d551919250d251539517d0905360821b6044820152606401610980565b6001600160a01b03858116600081815260026020908152604080832089845282528083208887039055805189815291820188905291938616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384166129535760405162461bcd60e51b815260206004820152600c60248201526b2a27afad22a927afa0a2222960a11b6044820152606401610980565b336129738160008761296488612eb1565b61296d88612eb1565b87612ca8565b6001600160a01b0385166000908152600260209081526040808320878452909152812080548592906129a6908490613c60565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611b1581600087878787612efc565b600080612a138486613c60565b60098054600181019091557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af018190556000818152600a60205260409020909250829150612a618482613dd4565b50935093915050565b846001600160a01b0381163314612a8457612a8433611fd6565b610b8d868686868661305c565b8151835114612ad45760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610980565b6001600160a01b038416612b195760405162461bcd60e51b815260206004820152600c60248201526b2a27afad22a927afa0a2222960a11b6044820152606401610980565b33612b28818787878787612ca8565b60005b8451811015612c42576000858281518110612b4857612b48613bda565b602002602001015190506000858381518110612b6657612b66613bda565b6020908102919091018101516001600160a01b038b166000908152600283526040808220868352909352919091205490915081811015612bdb5760405162461bcd60e51b815260206004820152601060248201526f125394d551919250d251539517d0905360821b6044820152606401610980565b6001600160a01b03808b16600090815260026020818152604080842088855282528084208787039055938d16835290815282822086835290529081208054849290612c27908490613c60565b9250508190555050505080612c3b90613c47565b9050612b2b565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612c92929190613d60565b60405180910390a4610b8d8187878787876130ef565b6001600160a01b038516612d2f5760005b8351811015612d2d57828181518110612cd457612cd4613bda565b6020026020010151600e6000868481518110612cf257612cf2613bda565b602002602001015181526020019081526020016000206000828254612d179190613c60565b90915550612d26905081613c47565b9050612cb9565b505b6001600160a01b038416610b8d5760005b8351811015612db457828181518110612d5b57612d5b613bda565b6020026020010151600e6000868481518110612d7957612d79613bda565b602002602001015181526020019081526020016000206000828254612d9e9190613cba565b90915550612dad905081613c47565b9050612d40565b50505050505050565b60606001600160a01b0384163b612e3c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610980565b600080856001600160a01b031685604051612e579190613eb9565b600060405180830381855af49150503d8060008114612e92576040519150601f19603f3d011682016040523d82523d6000602084013e612e97565b606091505b5091509150612ea78282866131cc565b9695505050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612eeb57612eeb613bda565b602090810291909101015292915050565b6001600160a01b0384163b15610b8d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612f409089908990889088908890600401613ed5565b6020604051808303816000875af1925050508015612f7b575060408051601f3d908101601f19168201909252612f7891810190613f18565b60015b61300a57612f87613f35565b806308c379a003612fc05750612f9b613f51565b80612fa65750612fc2565b8060405162461bcd60e51b81526004016109809190613436565b505b60405162461bcd60e51b815260206004820152601060248201527f21455243313135355245434549564552000000000000000000000000000000006044820152606401610980565b6001600160e01b0319811663f23a6e6160e01b14612db45760405162461bcd60e51b815260206004820152600f60248201526e1513d2d15394d7d491529150d51151608a1b6044820152606401610980565b6001600160a01b03851633148061309657506001600160a01b038516600090815260036020908152604080832033845290915290205460ff165b6130e25760405162461bcd60e51b815260206004820152601260248201527f214f574e45525f4f525f415050524f56454400000000000000000000000000006044820152606401610980565b611b158585858585613205565b6001600160a01b0384163b15610b8d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906131339089908990889088908890600401613fdb565b6020604051808303816000875af192505050801561316e575060408051601f3d908101601f1916820190925261316b91810190613f18565b60015b61317a57612f87613f35565b6001600160e01b0319811663bc197c8160e01b14612db45760405162461bcd60e51b815260206004820152600f60248201526e1513d2d15394d7d491529150d51151608a1b6044820152606401610980565b606083156131db5750816127bf565b8251156131eb5782518084602001fd5b8160405162461bcd60e51b81526004016109809190613436565b6001600160a01b03841661324a5760405162461bcd60e51b815260206004820152600c60248201526b2a27afad22a927afa0a2222960a11b6044820152606401610980565b3361325a81878761296488612eb1565b6001600160a01b0386166000908152600260209081526040808320878452909152902054838110156132c15760405162461bcd60e51b815260206004820152601060248201526f125394d551919250d251539517d0905360821b6044820152606401610980565b6001600160a01b0380881660009081526002602081815260408084208a855282528084208987039055938a1683529081528282208883529052908120805486929061330d908490613c60565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612db4828888888888612efc565b80356001600160a01b038116811461338457600080fd5b919050565b6000806040838503121561339c57600080fd5b6133a58361336d565b946020939093013593505050565b6001600160e01b03198116811461099257600080fd5b6000602082840312156133db57600080fd5b81356127bf816133b3565b60005b838110156134015781810151838201526020016133e9565b50506000910152565b600081518084526134228160208601602086016133e6565b601f01601f19169290920160200192915050565b6020815260006127bf602083018461340a565b60006020828403121561345b57600080fd5b5035919050565b60006020828403121561347457600080fd5b6127bf8261336d565b6000806040838503121561349057600080fd5b50508035926020909101359150565b6000806000606084860312156134b457600080fd5b6134bd8461336d565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561350e5761350e6134d2565b6040525050565b600067ffffffffffffffff82111561352f5761352f6134d2565b5060051b60200190565b600082601f83011261354a57600080fd5b8135602061355782613515565b60405161356482826134e8565b83815260059390931b850182019282810191508684111561358457600080fd5b8286015b8481101561359f5780358352918301918301613588565b509695505050505050565b600067ffffffffffffffff8311156135c4576135c46134d2565b6040516135db601f8501601f1916602001826134e8565b8091508381528484840111156135f057600080fd5b83836020830137600060208583010152509392505050565b600082601f83011261361957600080fd5b6127bf838335602085016135aa565b600080600080600060a0868803121561364057600080fd5b6136498661336d565b94506136576020870161336d565b9350604086013567ffffffffffffffff8082111561367457600080fd5b61368089838a01613539565b9450606088013591508082111561369657600080fd5b6136a289838a01613539565b935060808801359150808211156136b857600080fd5b506136c588828901613608565b9150509295509295909350565b801515811461099257600080fd5b6000602082840312156136f257600080fd5b81356127bf816136d2565b6000806040838503121561371057600080fd5b823567ffffffffffffffff8082111561372857600080fd5b818501915085601f83011261373c57600080fd5b8135602061374982613515565b60405161375682826134e8565b83815260059390931b850182019282810191508984111561377657600080fd5b948201945b8386101561379b5761378c8661336d565b8252948201949082019061377b565b965050860135925050808211156137b157600080fd5b506137be85828601613539565b9150509250929050565b600081518084526020808501945080840160005b838110156137f8578151875295820195908201906001016137dc565b509495945050505050565b6020815260006127bf60208301846137c8565b60008060006060848603121561382b57600080fd5b6138348461336d565b9250602084013567ffffffffffffffff8082111561385157600080fd5b61385d87838801613539565b9350604086013591508082111561387357600080fd5b5061388086828701613539565b9150509250925092565b60006020828403121561389c57600080fd5b813567ffffffffffffffff8111156138b357600080fd5b8201601f810184136138c457600080fd5b611f27848235602084016135aa565b6000806000606084860312156138e857600080fd5b833592506138f86020850161336d565b9150604084013590509250925092565b6000806040838503121561391b57600080fd5b6139248361336d565b91506020830135613934816136d2565b809150509250929050565b6000806020838503121561395257600080fd5b823567ffffffffffffffff8082111561396a57600080fd5b818501915085601f83011261397e57600080fd5b81358181111561398d57600080fd5b8660208260051b85010111156139a257600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015613a0957603f198886030184526139f785835161340a565b945092850192908501906001016139db565b5092979650505050505050565b60008083601f840112613a2857600080fd5b50813567ffffffffffffffff811115613a4057600080fd5b602083019150836020828501011115613a5857600080fd5b9250929050565b600080600080600060608688031215613a7757600080fd5b85359450602086013567ffffffffffffffff80821115613a9657600080fd5b613aa289838a01613a16565b90965094506040880135915080821115613abb57600080fd5b50613ac888828901613a16565b969995985093965092949392505050565b60008060408385031215613aec57600080fd5b613af58361336d565b9150613b036020840161336d565b90509250929050565b600080600080600060a08688031215613b2457600080fd5b613b2d8661336d565b9450613b3b6020870161336d565b93506040860135925060608601359150608086013567ffffffffffffffff811115613b6557600080fd5b6136c588828901613608565b600181811c90821680613b8557607f821691505b602082108103613ba557634e487b7160e01b600052602260045260246000fd5b50919050565b60008351613bbd8184602088016133e6565b835190830190613bd18183602088016133e6565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761086a5761086a613bf0565b634e487b7160e01b600052601260045260246000fd5b600082613c4257613c42613c1d565b500490565b600060018201613c5957613c59613bf0565b5060010190565b8082018082111561086a5761086a613bf0565b6000808335601e19843603018112613c8a57600080fd5b83018035915067ffffffffffffffff821115613ca557600080fd5b602001915036819003821315613a5857600080fd5b8181038181111561086a5761086a613bf0565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b858152606060208201526000613d10606083018688613ccd565b8281036040840152613d23818587613ccd565b98975050505050505050565b600082613d3e57613d3e613c1d565b500690565b600060208284031215613d5557600080fd5b81516127bf816136d2565b604081526000613d7360408301856137c8565b8281036020840152613d8581856137c8565b95945050505050565b601f821115610ea257600081815260208120601f850160051c81016020861015613db55750805b601f850160051c820191505b81811015610b8d57828155600101613dc1565b815167ffffffffffffffff811115613dee57613dee6134d2565b613e0281613dfc8454613b71565b84613d8e565b602080601f831160018114613e375760008415613e1f5750858301515b600019600386901b1c1916600185901b178555610b8d565b600085815260208120601f198616915b82811015613e6657888601518255948401946001909101908401613e47565b5085821015613e845787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000613ea7604083018561340a565b8281036020840152613d85818561340a565b60008251613ecb8184602087016133e6565b9190910192915050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152613f0d60a083018461340a565b979650505050505050565b600060208284031215613f2a57600080fd5b81516127bf816133b3565b600060033d1115613f4e5760046000803e5060005160e01c5b90565b600060443d1015613f5f5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613f8f57505050505090565b8285019150815181811115613fa75750505050505090565b843d8701016020828501011115613fc15750505050505090565b613fd0602082860101876134e8565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261400760a08301866137c8565b828103606084015261401981866137c8565b90508281036080840152613d23818561340a56fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220043df97edd46178bc03fb34c91ce552f9bd05702c880af311c0eae5f60b867c364736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000d426f434e4654426174746c657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b426f432d426174746c6573000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): BoCNFTBattles
Arg [1] : _symbol (string): BoC-Battles

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [3] : 426f434e4654426174746c657300000000000000000000000000000000000000
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [5] : 426f432d426174746c6573000000000000000000000000000000000000000000


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.