ETH Price: $3,813.78 (+5.42%)

Token

ERC-20: End of the Line: A Bullet Train NFT Exper... (BTA)
 

Overview

Max Total Supply

2,130 BTA

Holders

328

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
swagshakertheplaymaker.eth
Balance
1 BTA
0x1c691afa0c3c76ee55725c409d306079ac627918
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
EndoftheLineABulletTrainNFTExperience

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 400 runs

Other Settings:
default evmVersion
File 1 of 20 : EndoftheLineABulletTrainNFTExperience.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '../../NiftysERC721A.sol';
import '../../utils/NiftysDefaultOperators.sol';

/**
  _____           _        __ _   _          _     _               _    ____        _ _      _  _____          _       _   _ _____ _____ _____                      _                     
 | ____|_ __   __| | ___  / _| |_| |__   ___| |   (_)_ __   ___   / \  | __ ) _   _| | | ___| ||_   _| __ __ _(_)_ __ | \ | |  ___|_   _| ____|_  ___ __   ___ _ __(_) ___ _ __   ___ ___ 
 |  _| | '_ \ / _` |/ _ \| |_| __| '_ \ / _ \ |   | | '_ \ / _ \ / _ \ |  _ \| | | | | |/ _ \ __|| || '__/ _` | | '_ \|  \| | |_    | | |  _| \ \/ / '_ \ / _ \ '__| |/ _ \ '_ \ / __/ _ \
 | |___| | | | (_| | (_) |  _| |_| | | |  __/ |___| | | | |  __// ___ \| |_) | |_| | | |  __/ |_ | || | | (_| | | | | | |\  |  _|   | | | |___ >  <| |_) |  __/ |  | |  __/ | | | (_|  __/
 |_____|_| |_|\__,_|\___/|_|  \__|_| |_|\___|_____|_|_| |_|\___/_/   \_\____/ \__,_|_|_|\___|\__||_||_|  \__,_|_|_| |_|_| \_|_|     |_| |_____/_/\_\ .__/ \___|_|  |_|\___|_| |_|\___\___|
                                                                                                                                                   |_|=                                    
*/

contract EndoftheLineABulletTrainNFTExperience is NiftysERC721A, NiftysDefaultOperators {
    constructor(
        string memory name,
        string memory symbol,
        string memory baseURI,
        address recipient,
        uint24 value,
        address admin,
        address operator,
        address relay
    ) NiftysERC721A(name, symbol, baseURI, baseURI, recipient, value, admin) {
        _setupDefaultOperator(operator);
        grantRole(MINTER, relay);
    }

    function globalRevokeDefaultOperator() public isAdmin {
        _globalRevokeDefaultOperator();
    }

    function isApprovedForAll(address owner, address operator)
        public
        view
        override(ERC721A)
        returns (bool)
    {
        return (isDefaultOperatorFor(owner, operator) || super.isApprovedForAll(owner, operator));
    }
}

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

import './utils/NiftysAccessControl.sol';
import './utils/NiftysMetadataERC721A.sol';
import './royalties/NiftysContractWideRoyalties.sol';

import './721ALib/ERC721A.sol';
import './721ALib/extensions/ERC721ABurnable.sol';
import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';

error MaxIssuanceSet();
error MaxIssuanceReached();
error NonceAlreadyUsed();
error MintAuthorizationExpired();
error ArrayLengthMismatch();
error Unauthorized();

abstract contract NiftysERC721A is
    ERC721A,
    ERC721ABurnable,
    NiftysMetadataERC721A,
    NiftysContractWideRoyalties,
    NiftysAccessControl
{
    using ECDSA for bytes32;

    uint256 public maxIssuance;

    mapping(bytes32 => bool) public nonces;

    constructor(
        string memory name,
        string memory symbol,
        string memory baseTokenURI,
        string memory contractURI,
        address royaltyrecipient,
        uint24 royaltyvalue,
        address owner
    ) ERC721A(name, symbol) NiftysAccessControl(owner) {
        _setBaseURI(baseTokenURI);
        _setContractURI(contractURI);
        _setRoyalties(royaltyrecipient, royaltyvalue);
    }

    function setMaxIssuance(uint256 _maxIssuance) external isAdmin {
        if (maxIssuance > 0) revert MaxIssuanceSet();
        maxIssuance = _maxIssuance;
    }

    function setRoyalties(address recipient, uint24 value) external isAdmin {
        _setRoyalties(recipient, value);
    }

    function setContractURI(string memory contractURI) external isAdmin {
        _setContractURI(contractURI);
    }

    function setBaseURI(string memory uri) external isAdmin {
        _setBaseURI(uri);
    }

    function setTokenURI(uint256 tokenId, string memory tokenURI_) external isAdmin {
        _setTokenURI(tokenId, tokenURI_);
    }

    function burn(uint256 tokenId) public override {
        if (_msgSender() != ownerOf(tokenId)) revert TransferFromIncorrectOwner();
        _burn(tokenId);
    }

    function burnFrom(uint256 tokenId) public {
        _burn(tokenId, true);
    }

    function getContractHash() public view returns (bytes32) {
        return keccak256(abi.encode(block.chainid, address(this)));
    }

    function hashMintData(
        address to,
        uint256 quantity,
        bytes32 nonce,
        uint256 expires
    ) public view returns (bytes32) {
        return keccak256(abi.encode(getContractHash(), abi.encode(to, quantity, nonce, expires)));
    }

    function validateSignature(
        address to,
        uint256 quantity,
        bytes32 nonce,
        uint256 expires,
        bytes memory sig
    ) internal view returns (bool) {
        address signer = hashMintData(to, quantity, nonce, expires)
            .toEthSignedMessageHash()
            .recover(sig);
        return hasRole(SIGNER, signer);
    }

    function mint(address to, uint256 quantity) external isMinter whenNotPaused {
        _mint(to, quantity);
    }

    function mintBatch(address[] calldata tos, uint256[] calldata quantities)
        external
        isMinter
        whenNotPaused
    {
        if (tos.length != quantities.length) revert ArrayLengthMismatch();

        unchecked {
            for (uint256 i = 0; i < tos.length; i++) {
                _mint(tos[i], quantities[i]);
            }
        }
    }

    function authorizedMint(
        address to,
        uint256 quantity,
        bytes32 nonce,
        uint256 expires,
        bytes memory sig
    ) external whenNotPaused {
        if (validateSignature(to, quantity, nonce, expires, sig) == false) revert Unauthorized();
        if (expires < block.timestamp) revert MintAuthorizationExpired();
        if (nonces[nonce]) revert NonceAlreadyUsed();

        nonces[nonce] = true;
        _mint(to, quantity);
    }

    // Overides

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

    function _mint(address to, uint256 quantity) internal virtual override {
        unchecked {
            uint256 totalIssuance = _totalMinted() + quantity;

            if (maxIssuance > 0 && totalIssuance > maxIssuance) revert MaxIssuanceReached();
        }

        super._mint(to, quantity);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721A, NiftysMetadataERC721A)
        returns (string memory)
    {
        return super.tokenURI(tokenId);
    }

    function _baseURI()
        internal
        view
        virtual
        override(ERC721A, NiftysMetadataERC721A)
        returns (string memory)
    {
        return super._baseURI();
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A, NiftysContractWideRoyalties, NiftysAccessControl)
        returns (bool)
    {
        return
            interfaceId == type(NiftysContractWideRoyalties).interfaceId ||
            interfaceId == type(NiftysMetadataERC721A).interfaceId ||
            interfaceId == type(NiftysAccessControl).interfaceId ||
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f ||
            interfaceId == 0x2a55205a;
    }
}

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

import '@openzeppelin/contracts/utils/Context.sol';

abstract contract NiftysDefaultOperators is Context {
    address private _defaultOperator;

    error DefaultOperatorExists();

    event DefaultOperatorRevoked(address operator, address user);

    // For each account, a mapping of its operators and revoked default operators.
    mapping(address => mapping(address => bool)) private _revokedDefaultOperators;

    /**
     * @dev Sets `_defaultOperator` to `account`.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the default operator for the system.
     *
     * Using this function in any other way is effectively circumventing the
     * sequrity of the system
     * ====
     */
    function _setupDefaultOperator(address account) internal virtual {
        if (_defaultOperator != address(0)) revert DefaultOperatorExists();
        _defaultOperator = account;
    }

    function _globalRevokeDefaultOperator() internal virtual {
        _defaultOperator = address(0);
    }

    function defaultOperator() public view virtual returns (address) {
        return _defaultOperator;
    }

    function isDefaultOperatorFor(address tokenHolder, address operator)
        public
        view
        virtual
        returns (bool)
    {
        return _defaultOperator == operator && !_revokedDefaultOperators[tokenHolder][operator];
    }

    function revokeDefaultOperator() public virtual {
        _revokedDefaultOperators[_msgSender()][_defaultOperator] = true;
        emit DefaultOperatorRevoked(_defaultOperator, _msgSender());
    }
}

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

import '@openzeppelin/contracts/access/AccessControl.sol';
import '@openzeppelin/contracts/security/Pausable.sol';

abstract contract NiftysAccessControl is AccessControl, Pausable {
    address private _owner;

    bytes32 public constant ADMIN = keccak256('ADMIN');
    bytes32 public constant MINTER = keccak256('Minter');
    bytes32 public constant SIGNER = keccak256('SIGNER');

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    modifier isAdmin() {
        require(hasRole(ADMIN, _msgSender()), 'sender must have the ADMIN role');
        _;
    }

    modifier isMinter() {
        require(hasRole(MINTER, _msgSender()), 'sender must have the MINT role');
        _;
    }

    modifier isGlobalAdmin() {
        require(
            hasRole(DEFAULT_ADMIN_ROLE, _msgSender()),
            'sender must hae the DEFAULT ADMIN ROLE'
        );
        _;
    }

    constructor(address globalAdmin) {
        if (_msgSender() != globalAdmin) {
            _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
            _setupRole(ADMIN, _msgSender());
        }
        _setupRole(DEFAULT_ADMIN_ROLE, globalAdmin);
        _setupRole(ADMIN, globalAdmin);

        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Ownership is
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual isAdmin {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(AccessControl)
        returns (bool)
    {
        return
            interfaceId == type(AccessControl).interfaceId ||
            interfaceId == type(Pausable).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

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

import '../721ALib/ERC721A.sol';
import '@openzeppelin/contracts/utils/Strings.sol';

/**
 * @dev ERC721A token with storage based token URI management.
 */
abstract contract NiftysMetadataERC721A is ERC721A {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    string private _uri;
    string private _contractURI;

    function contractURI() public view virtual returns (string memory) {
        return _contractURI;
    }

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

        string memory _tokenURI = _tokenURIs[tokenId];

        // If token has optional URI mapping, return it
        if (bytes(_tokenURI).length > 0) return _tokenURI;

        return super.tokenURI(tokenId);
    }

    // INTERNAL FUNCTIONS

    /**
     * @dev Returns `_uri` for internal functions
     *
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev Sets `_uri` as the uri
     *
     */
    function _setBaseURI(string memory uri) internal virtual {
        _uri = uri;
    }

    /**
     * @dev Sets `_contractURI` as the contractURI
     *
     */
    function _setContractURI(string memory contractURI_) internal virtual {
        _contractURI = contractURI_;
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), 'ERC721URIStorage: URI set of nonexistent token');
        _tokenURIs[tokenId] = _tokenURI;
    }
}

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

import './ERC2981Base.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/// @dev This is a contract used to add ERC2981 support to ERC721, 721A, 1155
/// @dev This implementation has the same royalties for each and every tokens
abstract contract NiftysContractWideRoyalties is ERC2981Base {
    uint256 public constant ROYALTY_FEE_DENOMINATOR = 100000;

    RoyaltyInfo private _royalties;

    /// @dev Sets token royalties
    /// @param recipient recipient of the royalties
    /// @param value percentage (10000 = 10%, 0 = 0)
    function _setRoyalties(address recipient, uint24 value) internal {
        require(value <= ROYALTY_FEE_DENOMINATOR, 'ERC2981Royalties: Too high');
        _royalties = RoyaltyInfo(recipient, uint24(value));
        emit RoyaltyFeeChanged(recipient, value);
    }

    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(uint256, uint256 value)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        RoyaltyInfo memory royalties = _royalties;
        receiver = royalties.recipient;
        royaltyAmount = (value * royalties.amount) / ROYALTY_FEE_DENOMINATOR;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC2981Base)
        returns (bool)
    {
        return interfaceId == type(ERC2981Base).interfaceId || super.supportsInterface(interfaceId);
    }

    function royaltyWallet() public view returns (address) {
        return _royalties.recipient;
    }

    function royaltyFee() public view returns (uint24) {
        return _royalties.amount;
    }

    event RoyaltyFeeChanged(address recipient, uint24 royalty);
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC165-supportsInterface}.
     */

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

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

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

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

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

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly {
            // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

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

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed)
        private
        pure
        returns (TokenOwnership memory ownership)
    {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
    }

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

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

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

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

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

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

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

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

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

    /**
     * @dev Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

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

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

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

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

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

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

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

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED |
                BITMASK_NEXT_INITIALIZED;

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

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

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

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

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

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
        unchecked {
            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;
                buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
                value /= 10;
            }
            return string(buffer);
        }
    }
}

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

pragma solidity ^0.8.4;

import './IERC721ABurnable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721A Burnable Token
 * @dev ERC721A Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual override {
        _burn(tokenId, true);
    }
}

File 9 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 10 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 11 of 20 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 12 of 20 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 13 of 20 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 14 of 20 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 15 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 16 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

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

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

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

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

import './IERC2981Royalties.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981Base is ERC165, IERC2981Royalties {
    struct RoyaltyInfo {
        address recipient;
        uint24 amount;
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return
            interfaceId == type(IERC2981Royalties).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

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

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of an ERC721ABurnable compliant contract.
 */
interface IERC721ABurnable is IERC721A {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint24","name":"value","type":"uint24"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"relay","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"DefaultOperatorExists","type":"error"},{"inputs":[],"name":"MaxIssuanceReached","type":"error"},{"inputs":[],"name":"MaxIssuanceSet","type":"error"},{"inputs":[],"name":"MintAuthorizationExpired","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NonceAlreadyUsed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"DefaultOperatorRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint24","name":"royalty","type":"uint24"}],"name":"RoyaltyFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint256","name":"expires","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"authorizedMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalRevokeDefaultOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint256","name":"expires","type":"uint256"}],"name":"hashMintData","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenHolder","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isDefaultOperatorFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxIssuance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nonces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeDefaultOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyFee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxIssuance","type":"uint256"}],"name":"setMaxIssuance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint24","name":"value","type":"uint24"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI_","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003b5c38038062003b5c8339810160408190526200003491620007e9565b8787878888888880878781600290805190602001906200005692919062000683565b5080516200006c90600390602084019062000683565b5050600160005550600d805460ff19169055336001600160a01b03821614620000b7576200009c6000336200015f565b620000b760008051602062003b3c833981519152336200015f565b620000c46000826200015f565b620000df60008051602062003b3c833981519152826200015f565b620000ea336200016f565b50620000f685620001c9565b6200010184620001de565b6200010d8383620001f3565b505050505050506200012582620002ca60201b60201c565b620001517f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e99408262000317565b505050505050505062000a75565b6200016b828262000346565b5050565b600d80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516200016b90600990602084019062000683565b80516200016b90600a90602084019062000683565b620186a08162ffffff161115620002515760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064015b60405180910390fd5b6040805180820182526001600160a01b03841680825262ffffff84166020928301819052600b80546001600160b81b0319168317600160a01b83021790558351918252918101919091527f677be5d3069b681157d0c07d2225623f5daa4ed41cf0a448c56d2b625d76a57b910160405180910390a15050565b6010546001600160a01b031615620002f55760405163118f982160e21b815260040160405180910390fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600c6020526040902060010154620003358133620003ea565b62000341838362000346565b505050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff166200016b576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003a63390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff166200016b5762000436816001600160a01b031660146200048760201b620015671760201c565b6200044c8360206200156762000487821b17811c565b6040516020016200045f929190620008d4565b60408051601f198184030181529082905262461bcd60e51b825262000248916004016200094d565b60606000620004988360026200099d565b620004a590600262000982565b6001600160401b03811115620004cb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015620004f6576020820181803683370190505b509050600360fc1b816000815181106200052057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106200055e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000620005848460026200099d565b6200059190600162000982565b90505b60018111156200062b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110620005d557634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110620005fa57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936200062381620009f2565b905062000594565b5083156200067c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000248565b9392505050565b828054620006919062000a0c565b90600052602060002090601f016020900481019282620006b5576000855562000700565b82601f10620006d057805160ff191683800117855562000700565b8280016001018555821562000700579182015b8281111562000700578251825591602001919060010190620006e3565b506200070e92915062000712565b5090565b5b808211156200070e576000815560010162000713565b80516001600160a01b03811681146200074157600080fd5b919050565b600082601f83011262000757578081fd5b81516001600160401b038082111562000774576200077462000a5f565b604051601f8301601f19908116603f011681019082821181831017156200079f576200079f62000a5f565b81604052838152866020858801011115620007b8578485fd5b620007cb846020830160208901620009bf565b9695505050505050565b805162ffffff811681146200074157600080fd5b600080600080600080600080610100898b03121562000806578384fd5b88516001600160401b03808211156200081d578586fd5b6200082b8c838d0162000746565b995060208b015191508082111562000841578586fd5b6200084f8c838d0162000746565b985060408b015191508082111562000865578586fd5b50620008748b828c0162000746565b9650506200088560608a0162000729565b94506200089560808a01620007d5565b9350620008a560a08a0162000729565b9250620008b560c08a0162000729565b9150620008c560e08a0162000729565b90509295985092959890939650565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516200090e816017850160208801620009bf565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162000941816028840160208801620009bf565b01602801949350505050565b60208152600082518060208401526200096e816040850160208701620009bf565b601f01601f19169190910160400192915050565b6000821982111562000998576200099862000a49565b500190565b6000816000190483118215151615620009ba57620009ba62000a49565b500290565b60005b83811015620009dc578181015183820152602001620009c2565b83811115620009ec576000848401525b50505050565b60008162000a045762000a0462000a49565b506000190190565b600181811c9082168062000a2157607f821691505b6020821081141562000a4357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6130b78062000a856000396000f3fe608060405234801561001057600080fd5b50600436106103365760003560e01c806370a08231116101b2578063a217fddf116100f9578063d547741f116100a2578063e985e9c51161007c578063e985e9c514610717578063ee009c0c1461072a578063f2fde38b1461073d578063fe6d81241461075057600080fd5b8063d547741f146106f2578063e1a8bf2c14610705578063e8a3d4851461070f57600080fd5b8063b8997a97116100d3578063b8997a97146106a9578063c6e6c871146106cc578063c87b56dd146106df57600080fd5b8063a217fddf1461067b578063a22cb46514610683578063b88d4fde1461069657600080fd5b806385c67c011161015b5780639415e9bf116101355780639415e9bf1461064757806395d89b41146106505780639e317f121461065857600080fd5b806385c67c01146105f357806391d14854146105fb578063938e3d7b1461063457600080fd5b806380ca11fc1161018c57806380ca11fc146105c7578063840d4e55146105d85780638456cb59146105eb57600080fd5b806370a082311461058e578063781984db146105a15780637c88e3d9146105b457600080fd5b80632a55205a1161028157806342842e0e1161022a57806355f804b31161020457806355f804b314610536578063582abd12146105495780635c975abb146105705780636352211e1461057b57600080fd5b806342842e0e146104fd57806342966c681461051057806351841ee21461052357600080fd5b80633f0d2ec11161025b5780633f0d2ec1146104d15780633f4ba83a146104e257806340c10f19146104ea57600080fd5b80632a55205a146104795780632f2ff15d146104ab57806336568abe146104be57600080fd5b806318160ddd116102e3578063248a9ca3116102bd578063248a9ca31461042e578063274ff7ce146104515780632a0acc6a1461046457600080fd5b806318160ddd146104035780631b4566511461041357806323b872dd1461041b57600080fd5b8063081812fc11610314578063081812fc146103b0578063095ea7b3146103db578063162094c4146103f057600080fd5b806301ffc9a71461033b57806306fdde03146103635780630770e23814610378575b600080fd5b61034e610349366004612d1f565b610777565b60405190151581526020015b60405180910390f35b61036b610835565b60405161035a9190612f17565b60408051466020808301919091523082840152825180830384018152606090920190925280519101205b60405190815260200161035a565b6103c36103be366004612ce5565b6108c7565b6040516001600160a01b03909116815260200161035a565b6103ee6103e9366004612bb2565b61090b565b005b6103ee6103fe366004612d8a565b6109de565b60015460005403600019016103a2565b6103ee610a43565b6103ee610429366004612aa5565b610ab5565b6103a261043c366004612ce5565b6000908152600c602052604090206001015490565b6103ee61045f366004612ce5565b610ac5565b6103a260008051602061306283398151915281565b61048c610487366004612dc5565b610ad3565b604080516001600160a01b03909316835260208301919091520161035a565b6103ee6104b9366004612cfd565b610b29565b6103ee6104cc366004612cfd565b610b4f565b600b546001600160a01b03166103c3565b6103ee610bc9565b6103ee6104f8366004612bb2565b610c39565b6103ee61050b366004612aa5565b610cff565b6103ee61051e366004612ce5565b610d1a565b61034e610531366004612a73565b610d5c565b6103ee610544366004612d57565b610da9565b6103a27f2aeb38be3df14d720aeb10a2de6df09b0fb3cd5c5ec256283a22d4593110ca4081565b600d5460ff1661034e565b6103c3610589366004612ce5565b610e04565b6103a261059c366004612a59565b610e0f565b6103a26105af366004612bdb565b610e5e565b6103ee6105c2366004612c7c565b610ef8565b6010546001600160a01b03166103c3565b6103ee6105e6366004612c13565b611052565b6103ee611134565b6103ee6111a2565b61034e610609366004612cfd565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6103ee610642366004612d57565b611209565b6103a2600e5481565b61036b611264565b61034e610666366004612ce5565b600f6020526000908152604090205460ff1681565b6103a2600081565b6103ee610691366004612b46565b611273565b6103ee6106a4366004612ae0565b611309565b600b54600160a01b900462ffffff1660405162ffffff909116815260200161035a565b6103ee6106da366004612b80565b611353565b61036b6106ed366004612ce5565b6113af565b6103ee610700366004612cfd565b6113ba565b6103a2620186a081565b61036b6113e0565b61034e610725366004612a73565b6113ef565b6103ee610738366004612ce5565b61142f565b6103ee61074b366004612a59565b6114a7565b6103a27f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994081565b60006001600160e01b03198216634d96028760e01b14806107a857506001600160e01b0319821663041b104b60e31b145b806107c357506001600160e01b0319821663c452b91360e01b145b806107de57506301ffc9a760e01b6001600160e01b03198316145b806107f957506380ac58cd60e01b6001600160e01b03198316145b806108145750635b5e139f60e01b6001600160e01b03198316145b8061082f575063152a902d60e11b6001600160e01b03198316145b92915050565b60606002805461084490612fc4565b80601f016020809104026020016040519081016040528092919081815260200182805461087090612fc4565b80156108bd5780601f10610892576101008083540402835291602001916108bd565b820191906000526020600020905b8154815290600101906020018083116108a057829003601f168201915b5050505050905090565b60006108d282611749565b6108ef576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109168261177e565b9050806001600160a01b0316836001600160a01b0316141561094b5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146109825761096581336113ef565b610982576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109f660008051602061306283398151915233610609565b610a355760405162461bcd60e51b815260206004820152601f602482015260008051602061304283398151915260448201526064015b60405180910390fd5b610a3f82826117e7565b5050565b336000818152601160209081526040808320601080546001600160a01b03908116865291845293829020805460ff191660011790559254815193168352908201929092527f92db19f37a099ae0849afbf906815a08d61e9bb57604cc75e3385b79bac3e48491015b60405180910390a1565b610ac0838383611872565b505050565b610ad0816001611a13565b50565b60408051808201909152600b546001600160a01b038116808352600160a01b90910462ffffff16602083018190529091600091620186a090610b159086612f62565b610b1f9190612f42565b9150509250929050565b6000828152600c6020526040902060010154610b458133611b67565b610ac08383611be7565b6001600160a01b0381163314610bbf5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a2c565b610a3f8282611c89565b610bd4600033610609565b610c2f5760405162461bcd60e51b815260206004820152602660248201527f73656e646572206d75737420686165207468652044454641554c542041444d496044820152654e20524f4c4560d01b6064820152608401610a2c565b610c37611d0c565b565b610c637f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994033610609565b610caf5760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d757374206861766520746865204d494e5420726f6c6500006044820152606401610a2c565b600d5460ff1615610cf55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a2c565b610a3f8282611da3565b610ac083838360405180602001604052806000815250611309565b610d2381610e04565b6001600160a01b0316336001600160a01b031614610d535760405162a1148160e81b815260040160405180910390fd5b610ad081611df2565b6010546000906001600160a01b038381169116148015610da257506001600160a01b0380841660009081526011602090815260408083209386168352929052205460ff16155b9392505050565b610dc160008051602061306283398151915233610609565b610dfb5760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b610ad081611dfd565b600061082f8261177e565b60006001600160a01b038216610e38576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6000610e8f604080514660208083019190915230828401528251808303840181526060909201909252805191012090565b604080516001600160a01b0388166020820152908101869052606081018590526080810184905260a00160408051601f1981840301815290829052610ed79291602001612efe565b6040516020818303038152906040528051906020012090505b949350505050565b610f227f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994033610609565b610f6e5760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d757374206861766520746865204d494e5420726f6c6500006044820152606401610a2c565b600d5460ff1615610fb45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a2c565b828114610fd45760405163512509d360e11b815260040160405180910390fd5b60005b8381101561104b5761104385858381811061100257634e487b7160e01b600052603260045260246000fd5b90506020020160208101906110179190612a59565b84848481811061103757634e487b7160e01b600052603260045260246000fd5b90506020020135611da3565b600101610fd7565b5050505050565b600d5460ff16156110985760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a2c565b6110a58585858585611e10565b6110c1576040516282b42960e81b815260040160405180910390fd5b428210156110e2576040516363d656ff60e01b815260040160405180910390fd5b6000838152600f602052604090205460ff161561111157604051623f613760e71b815260040160405180910390fd5b6000838152600f60205260409020805460ff1916600117905561104b8585611da3565b61113f600033610609565b61119a5760405162461bcd60e51b815260206004820152602660248201527f73656e646572206d75737420686165207468652044454641554c542041444d496044820152654e20524f4c4560d01b6064820152608401610a2c565b610c37611ec4565b6111ba60008051602061306283398151915233610609565b6111f45760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b610c37601080546001600160a01b0319169055565b61122160008051602061306283398151915233610609565b61125b5760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b610ad081611f3f565b60606003805461084490612fc4565b6001600160a01b03821633141561129d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611314848484611872565b6001600160a01b0383163b1561134d5761133084848484611f52565b61134d576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b61136b60008051602061306283398151915233610609565b6113a55760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b610a3f8282612046565b606061082f82612127565b6000828152600c60205260409020600101546113d68133611b67565b610ac08383611c89565b6060600a805461084490612fc4565b60006113fb8383610d5c565b80610da257506001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff16610da2565b61144760008051602061306283398151915233610609565b6114815760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b600e54156114a257604051637722de1f60e11b815260040160405180910390fd5b600e55565b6114bf60008051602061306283398151915233610609565b6114f95760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b6001600160a01b03811661155e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a2c565b610ad081612256565b60606000611576836002612f62565b611581906002612f2a565b67ffffffffffffffff8111156115a757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156115d1576020820181803683370190505b509050600360fc1b816000815181106115fa57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061163757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061165b846002612f62565b611666906001612f2a565b90505b60018111156116fa576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106116a857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106116cc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936116f381612fad565b9050611669565b508315610da25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a2c565b60008160011115801561175d575060005482105b801561082f575050600090815260046020526040902054600160e01b161590565b600081806001116117ce576000548110156117ce57600081815260046020526040902054600160e01b81166117cc575b80610da25750600019016000818152600460205260409020546117ae565b505b604051636f96cda160e11b815260040160405180910390fd5b6117f082611749565b6118535760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610a2c565b60008281526008602090815260409091208251610ac0928401906128da565b600061187d8261177e565b9050836001600160a01b0316816001600160a01b0316146118b05760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806118ce57506118ce85336113ef565b806118e95750336118de846108c7565b6001600160a01b0316145b90508061190957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661193057604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b8617811790915582166119cd57600183016000818152600460205260409020546119cb5760005481146119cb5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461104b565b6000611a1e8361177e565b9050808215611a82576000336001600160a01b0383161480611a455750611a4582336113ef565b80611a60575033611a55866108c7565b6001600160a01b0316145b905080611a8057604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff01905586835260049091529020600360e01b4260a01b8317179055600160e11b8216611b215760018401600081815260046020526040902054611b1f576000548114611b1f5760008181526004602052604090208390555b505b60405184906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff16610a3f57611ba5816001600160a01b03166014611567565b611bb0836020611567565b604051602001611bc1929190612e41565b60408051601f198184030181529082905262461bcd60e51b8252610a2c91600401612f17565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff16610a3f576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611c453390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff1615610a3f576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600d5460ff16611d5e5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a2c565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b039091168152602001610aab565b600081611db36000546000190190565b0190506000600e54118015611dc95750600e5481115b15611de75760405163230f165160e11b815260040160405180910390fd5b50610a3f82826122bd565b610ad0816000611a13565b8051610a3f9060099060208401906128da565b600080611e7f83611e79611e268a8a8a8a610e5e565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b9061239b565b6001600160a01b031660009081527f464ac5829ee56341fc31a055214bfd6bbfb74fcde201918493a4609907cd607e602052604090205460ff16979650505050505050565b600d5460ff1615611f0a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a2c565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d8b3390565b8051610a3f90600a9060208401906128da565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611f87903390899088908890600401612ec2565b602060405180830381600087803b158015611fa157600080fd5b505af1925050508015611fd1575060408051601f3d908101601f19168201909252611fce91810190612d3b565b60015b61202c573d808015611fff576040519150601f19603f3d011682016040523d82523d6000602084013e612004565b606091505b508051612024576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ef0565b620186a08162ffffff16111561209e5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610a2c565b6040805180820182526001600160a01b03841680825262ffffff84166020928301819052600b805476ffffffffffffffffffffffffffffffffffffffffffffff19168317600160a01b83021790558351918252918101919091527f677be5d3069b681157d0c07d2225623f5daa4ed41cf0a448c56d2b625d76a57b910160405180910390a15050565b606061213282611749565b6121a45760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006064820152608401610a2c565b600082815260086020526040812080546121bd90612fc4565b80601f01602080910402602001604051908101604052809291908181526020018280546121e990612fc4565b80156122365780601f1061220b57610100808354040283529160200191612236565b820191906000526020600020905b81548152906001019060200180831161221957829003601f168201915b5050505050905060008151111561224d5792915050565b610da2836123bf565b600d80546001600160a01b0383811661010081810274ffffffffffffffffffffffffffffffffffffffff001985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546001600160a01b0383166122e657604051622e076360e81b815260040160405180910390fd5b816123045760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061234f5750600055505050565b60008060006123aa8585612443565b915091506123b7816124b3565b509392505050565b60606123ca82611749565b6123e757604051630a14c4b560e41b815260040160405180910390fd5b60006123f16126b4565b90508051600014156124125760405180602001604052806000815250610da2565b8061241c846126c3565b60405160200161242d929190612e12565b6040516020818303038152906040529392505050565b60008082516041141561247a5760208301516040840151606085015160001a61246e878285856127af565b945094505050506124ac565b8251604014156124a4576020830151604084015161249986838361289c565b9350935050506124ac565b506000905060025b9250929050565b60008160048111156124d557634e487b7160e01b600052602160045260246000fd5b14156124de5750565b600181600481111561250057634e487b7160e01b600052602160045260246000fd5b141561254e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a2c565b600281600481111561257057634e487b7160e01b600052602160045260246000fd5b14156125be5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a2c565b60038160048111156125e057634e487b7160e01b600052602160045260246000fd5b14156126395760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a2c565b600481600481111561265b57634e487b7160e01b600052602160045260246000fd5b1415610ad05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a2c565b60606126be6128cb565b905090565b6060816126e75750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126ff57600101600a820491506126eb565b60008167ffffffffffffffff81111561272857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612752576020820181803683370190505b5090505b8415610ef05760001990910190600a850660300160f81b81838151811061278d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600a85049450612756565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156127e65750600090506003612893565b8460ff16601b141580156127fe57508460ff16601c14155b1561280f5750600090506004612893565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612863573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661288c57600060019250925050612893565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016128bd878288856127af565b935093505050935093915050565b60606009805461084490612fc4565b8280546128e690612fc4565b90600052602060002090601f016020900481019282612908576000855561294e565b82601f1061292157805160ff191683800117855561294e565b8280016001018555821561294e579182015b8281111561294e578251825591602001919060010190612933565b5061295a92915061295e565b5090565b5b8082111561295a576000815560010161295f565b80356001600160a01b038116811461298a57600080fd5b919050565b60008083601f8401126129a0578081fd5b50813567ffffffffffffffff8111156129b7578182fd5b6020830191508360208260051b85010111156124ac57600080fd5b600082601f8301126129e2578081fd5b813567ffffffffffffffff808211156129fd576129fd613015565b604051601f8301601f19908116603f01168101908282118183101715612a2557612a25613015565b81604052838152866020858801011115612a3d578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215612a6a578081fd5b610da282612973565b60008060408385031215612a85578081fd5b612a8e83612973565b9150612a9c60208401612973565b90509250929050565b600080600060608486031215612ab9578081fd5b612ac284612973565b9250612ad060208501612973565b9150604084013590509250925092565b60008060008060808587031215612af5578081fd5b612afe85612973565b9350612b0c60208601612973565b925060408501359150606085013567ffffffffffffffff811115612b2e578182fd5b612b3a878288016129d2565b91505092959194509250565b60008060408385031215612b58578182fd5b612b6183612973565b915060208301358015158114612b75578182fd5b809150509250929050565b60008060408385031215612b92578182fd5b612b9b83612973565b9150602083013562ffffff81168114612b75578182fd5b60008060408385031215612bc4578182fd5b612bcd83612973565b946020939093013593505050565b60008060008060808587031215612bf0578384fd5b612bf985612973565b966020860135965060408601359560600135945092505050565b600080600080600060a08688031215612c2a578081fd5b612c3386612973565b9450602086013593506040860135925060608601359150608086013567ffffffffffffffff811115612c63578182fd5b612c6f888289016129d2565b9150509295509295909350565b60008060008060408587031215612c91578182fd5b843567ffffffffffffffff80821115612ca8578384fd5b612cb48883890161298f565b90965094506020870135915080821115612ccc578384fd5b50612cd98782880161298f565b95989497509550505050565b600060208284031215612cf6578081fd5b5035919050565b60008060408385031215612d0f578182fd5b82359150612a9c60208401612973565b600060208284031215612d30578081fd5b8135610da28161302b565b600060208284031215612d4c578081fd5b8151610da28161302b565b600060208284031215612d68578081fd5b813567ffffffffffffffff811115612d7e578182fd5b610ef0848285016129d2565b60008060408385031215612d9c578182fd5b82359150602083013567ffffffffffffffff811115612db9578182fd5b610b1f858286016129d2565b60008060408385031215612dd7578182fd5b50508035926020909101359150565b60008151808452612dfe816020860160208601612f81565b601f01601f19169290920160200192915050565b60008351612e24818460208801612f81565b835190830190612e38818360208801612f81565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612e79816017850160208801612f81565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612eb6816028840160208801612f81565b01602801949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612ef46080830184612de6565b9695505050505050565b828152604060208201526000610ef06040830184612de6565b602081526000610da26020830184612de6565b60008219821115612f3d57612f3d612fff565b500190565b600082612f5d57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612f7c57612f7c612fff565b500290565b60005b83811015612f9c578181015183820152602001612f84565b8381111561134d5750506000910152565b600081612fbc57612fbc612fff565b506000190190565b600181811c90821680612fd857607f821691505b60208210811415612ff957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ad057600080fdfe73656e646572206d7573742068617665207468652041444d494e20726f6c6500df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42a2646970667358221220304e7ffddd9918a29df67d52f9082d2e744254dec40b41acc5d7105017ff8dc364736f6c63430008040033df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec420000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000004d2ff6438e84460e555d71d8a983dba333a987e9000000000000000000000000000000000000000000000000000000000000271000000000000000000000000053232f9a89cde9032491a4dd70ecb60edb8aa3910000000000000000000000005eacd383b4e8340d7f7f9c2ff076217a7ed89610000000000000000000000000a10fb482873638af1e9034b1c29e16d1812f0c50000000000000000000000000000000000000000000000000000000000000002f456e64206f6620746865204c696e653a2020412042756c6c657420547261696e204e465420457870657269656e6365000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034254410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003868747470733a2f2f6170692e6e69667479732e636f6d2f76312f7075626c69632f6d657461646174612f455448455245554d2f6e756c6c2f0000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103365760003560e01c806370a08231116101b2578063a217fddf116100f9578063d547741f116100a2578063e985e9c51161007c578063e985e9c514610717578063ee009c0c1461072a578063f2fde38b1461073d578063fe6d81241461075057600080fd5b8063d547741f146106f2578063e1a8bf2c14610705578063e8a3d4851461070f57600080fd5b8063b8997a97116100d3578063b8997a97146106a9578063c6e6c871146106cc578063c87b56dd146106df57600080fd5b8063a217fddf1461067b578063a22cb46514610683578063b88d4fde1461069657600080fd5b806385c67c011161015b5780639415e9bf116101355780639415e9bf1461064757806395d89b41146106505780639e317f121461065857600080fd5b806385c67c01146105f357806391d14854146105fb578063938e3d7b1461063457600080fd5b806380ca11fc1161018c57806380ca11fc146105c7578063840d4e55146105d85780638456cb59146105eb57600080fd5b806370a082311461058e578063781984db146105a15780637c88e3d9146105b457600080fd5b80632a55205a1161028157806342842e0e1161022a57806355f804b31161020457806355f804b314610536578063582abd12146105495780635c975abb146105705780636352211e1461057b57600080fd5b806342842e0e146104fd57806342966c681461051057806351841ee21461052357600080fd5b80633f0d2ec11161025b5780633f0d2ec1146104d15780633f4ba83a146104e257806340c10f19146104ea57600080fd5b80632a55205a146104795780632f2ff15d146104ab57806336568abe146104be57600080fd5b806318160ddd116102e3578063248a9ca3116102bd578063248a9ca31461042e578063274ff7ce146104515780632a0acc6a1461046457600080fd5b806318160ddd146104035780631b4566511461041357806323b872dd1461041b57600080fd5b8063081812fc11610314578063081812fc146103b0578063095ea7b3146103db578063162094c4146103f057600080fd5b806301ffc9a71461033b57806306fdde03146103635780630770e23814610378575b600080fd5b61034e610349366004612d1f565b610777565b60405190151581526020015b60405180910390f35b61036b610835565b60405161035a9190612f17565b60408051466020808301919091523082840152825180830384018152606090920190925280519101205b60405190815260200161035a565b6103c36103be366004612ce5565b6108c7565b6040516001600160a01b03909116815260200161035a565b6103ee6103e9366004612bb2565b61090b565b005b6103ee6103fe366004612d8a565b6109de565b60015460005403600019016103a2565b6103ee610a43565b6103ee610429366004612aa5565b610ab5565b6103a261043c366004612ce5565b6000908152600c602052604090206001015490565b6103ee61045f366004612ce5565b610ac5565b6103a260008051602061306283398151915281565b61048c610487366004612dc5565b610ad3565b604080516001600160a01b03909316835260208301919091520161035a565b6103ee6104b9366004612cfd565b610b29565b6103ee6104cc366004612cfd565b610b4f565b600b546001600160a01b03166103c3565b6103ee610bc9565b6103ee6104f8366004612bb2565b610c39565b6103ee61050b366004612aa5565b610cff565b6103ee61051e366004612ce5565b610d1a565b61034e610531366004612a73565b610d5c565b6103ee610544366004612d57565b610da9565b6103a27f2aeb38be3df14d720aeb10a2de6df09b0fb3cd5c5ec256283a22d4593110ca4081565b600d5460ff1661034e565b6103c3610589366004612ce5565b610e04565b6103a261059c366004612a59565b610e0f565b6103a26105af366004612bdb565b610e5e565b6103ee6105c2366004612c7c565b610ef8565b6010546001600160a01b03166103c3565b6103ee6105e6366004612c13565b611052565b6103ee611134565b6103ee6111a2565b61034e610609366004612cfd565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6103ee610642366004612d57565b611209565b6103a2600e5481565b61036b611264565b61034e610666366004612ce5565b600f6020526000908152604090205460ff1681565b6103a2600081565b6103ee610691366004612b46565b611273565b6103ee6106a4366004612ae0565b611309565b600b54600160a01b900462ffffff1660405162ffffff909116815260200161035a565b6103ee6106da366004612b80565b611353565b61036b6106ed366004612ce5565b6113af565b6103ee610700366004612cfd565b6113ba565b6103a2620186a081565b61036b6113e0565b61034e610725366004612a73565b6113ef565b6103ee610738366004612ce5565b61142f565b6103ee61074b366004612a59565b6114a7565b6103a27f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994081565b60006001600160e01b03198216634d96028760e01b14806107a857506001600160e01b0319821663041b104b60e31b145b806107c357506001600160e01b0319821663c452b91360e01b145b806107de57506301ffc9a760e01b6001600160e01b03198316145b806107f957506380ac58cd60e01b6001600160e01b03198316145b806108145750635b5e139f60e01b6001600160e01b03198316145b8061082f575063152a902d60e11b6001600160e01b03198316145b92915050565b60606002805461084490612fc4565b80601f016020809104026020016040519081016040528092919081815260200182805461087090612fc4565b80156108bd5780601f10610892576101008083540402835291602001916108bd565b820191906000526020600020905b8154815290600101906020018083116108a057829003601f168201915b5050505050905090565b60006108d282611749565b6108ef576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109168261177e565b9050806001600160a01b0316836001600160a01b0316141561094b5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146109825761096581336113ef565b610982576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109f660008051602061306283398151915233610609565b610a355760405162461bcd60e51b815260206004820152601f602482015260008051602061304283398151915260448201526064015b60405180910390fd5b610a3f82826117e7565b5050565b336000818152601160209081526040808320601080546001600160a01b03908116865291845293829020805460ff191660011790559254815193168352908201929092527f92db19f37a099ae0849afbf906815a08d61e9bb57604cc75e3385b79bac3e48491015b60405180910390a1565b610ac0838383611872565b505050565b610ad0816001611a13565b50565b60408051808201909152600b546001600160a01b038116808352600160a01b90910462ffffff16602083018190529091600091620186a090610b159086612f62565b610b1f9190612f42565b9150509250929050565b6000828152600c6020526040902060010154610b458133611b67565b610ac08383611be7565b6001600160a01b0381163314610bbf5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a2c565b610a3f8282611c89565b610bd4600033610609565b610c2f5760405162461bcd60e51b815260206004820152602660248201527f73656e646572206d75737420686165207468652044454641554c542041444d496044820152654e20524f4c4560d01b6064820152608401610a2c565b610c37611d0c565b565b610c637f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994033610609565b610caf5760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d757374206861766520746865204d494e5420726f6c6500006044820152606401610a2c565b600d5460ff1615610cf55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a2c565b610a3f8282611da3565b610ac083838360405180602001604052806000815250611309565b610d2381610e04565b6001600160a01b0316336001600160a01b031614610d535760405162a1148160e81b815260040160405180910390fd5b610ad081611df2565b6010546000906001600160a01b038381169116148015610da257506001600160a01b0380841660009081526011602090815260408083209386168352929052205460ff16155b9392505050565b610dc160008051602061306283398151915233610609565b610dfb5760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b610ad081611dfd565b600061082f8261177e565b60006001600160a01b038216610e38576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6000610e8f604080514660208083019190915230828401528251808303840181526060909201909252805191012090565b604080516001600160a01b0388166020820152908101869052606081018590526080810184905260a00160408051601f1981840301815290829052610ed79291602001612efe565b6040516020818303038152906040528051906020012090505b949350505050565b610f227f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994033610609565b610f6e5760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d757374206861766520746865204d494e5420726f6c6500006044820152606401610a2c565b600d5460ff1615610fb45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a2c565b828114610fd45760405163512509d360e11b815260040160405180910390fd5b60005b8381101561104b5761104385858381811061100257634e487b7160e01b600052603260045260246000fd5b90506020020160208101906110179190612a59565b84848481811061103757634e487b7160e01b600052603260045260246000fd5b90506020020135611da3565b600101610fd7565b5050505050565b600d5460ff16156110985760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a2c565b6110a58585858585611e10565b6110c1576040516282b42960e81b815260040160405180910390fd5b428210156110e2576040516363d656ff60e01b815260040160405180910390fd5b6000838152600f602052604090205460ff161561111157604051623f613760e71b815260040160405180910390fd5b6000838152600f60205260409020805460ff1916600117905561104b8585611da3565b61113f600033610609565b61119a5760405162461bcd60e51b815260206004820152602660248201527f73656e646572206d75737420686165207468652044454641554c542041444d496044820152654e20524f4c4560d01b6064820152608401610a2c565b610c37611ec4565b6111ba60008051602061306283398151915233610609565b6111f45760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b610c37601080546001600160a01b0319169055565b61122160008051602061306283398151915233610609565b61125b5760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b610ad081611f3f565b60606003805461084490612fc4565b6001600160a01b03821633141561129d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611314848484611872565b6001600160a01b0383163b1561134d5761133084848484611f52565b61134d576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b61136b60008051602061306283398151915233610609565b6113a55760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b610a3f8282612046565b606061082f82612127565b6000828152600c60205260409020600101546113d68133611b67565b610ac08383611c89565b6060600a805461084490612fc4565b60006113fb8383610d5c565b80610da257506001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff16610da2565b61144760008051602061306283398151915233610609565b6114815760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b600e54156114a257604051637722de1f60e11b815260040160405180910390fd5b600e55565b6114bf60008051602061306283398151915233610609565b6114f95760405162461bcd60e51b815260206004820152601f60248201526000805160206130428339815191526044820152606401610a2c565b6001600160a01b03811661155e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a2c565b610ad081612256565b60606000611576836002612f62565b611581906002612f2a565b67ffffffffffffffff8111156115a757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156115d1576020820181803683370190505b509050600360fc1b816000815181106115fa57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061163757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061165b846002612f62565b611666906001612f2a565b90505b60018111156116fa576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106116a857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106116cc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936116f381612fad565b9050611669565b508315610da25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a2c565b60008160011115801561175d575060005482105b801561082f575050600090815260046020526040902054600160e01b161590565b600081806001116117ce576000548110156117ce57600081815260046020526040902054600160e01b81166117cc575b80610da25750600019016000818152600460205260409020546117ae565b505b604051636f96cda160e11b815260040160405180910390fd5b6117f082611749565b6118535760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610a2c565b60008281526008602090815260409091208251610ac0928401906128da565b600061187d8261177e565b9050836001600160a01b0316816001600160a01b0316146118b05760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806118ce57506118ce85336113ef565b806118e95750336118de846108c7565b6001600160a01b0316145b90508061190957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661193057604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b8617811790915582166119cd57600183016000818152600460205260409020546119cb5760005481146119cb5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461104b565b6000611a1e8361177e565b9050808215611a82576000336001600160a01b0383161480611a455750611a4582336113ef565b80611a60575033611a55866108c7565b6001600160a01b0316145b905080611a8057604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff01905586835260049091529020600360e01b4260a01b8317179055600160e11b8216611b215760018401600081815260046020526040902054611b1f576000548114611b1f5760008181526004602052604090208390555b505b60405184906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff16610a3f57611ba5816001600160a01b03166014611567565b611bb0836020611567565b604051602001611bc1929190612e41565b60408051601f198184030181529082905262461bcd60e51b8252610a2c91600401612f17565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff16610a3f576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611c453390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff1615610a3f576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600d5460ff16611d5e5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a2c565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b039091168152602001610aab565b600081611db36000546000190190565b0190506000600e54118015611dc95750600e5481115b15611de75760405163230f165160e11b815260040160405180910390fd5b50610a3f82826122bd565b610ad0816000611a13565b8051610a3f9060099060208401906128da565b600080611e7f83611e79611e268a8a8a8a610e5e565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b9061239b565b6001600160a01b031660009081527f464ac5829ee56341fc31a055214bfd6bbfb74fcde201918493a4609907cd607e602052604090205460ff16979650505050505050565b600d5460ff1615611f0a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a2c565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d8b3390565b8051610a3f90600a9060208401906128da565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611f87903390899088908890600401612ec2565b602060405180830381600087803b158015611fa157600080fd5b505af1925050508015611fd1575060408051601f3d908101601f19168201909252611fce91810190612d3b565b60015b61202c573d808015611fff576040519150601f19603f3d011682016040523d82523d6000602084013e612004565b606091505b508051612024576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ef0565b620186a08162ffffff16111561209e5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610a2c565b6040805180820182526001600160a01b03841680825262ffffff84166020928301819052600b805476ffffffffffffffffffffffffffffffffffffffffffffff19168317600160a01b83021790558351918252918101919091527f677be5d3069b681157d0c07d2225623f5daa4ed41cf0a448c56d2b625d76a57b910160405180910390a15050565b606061213282611749565b6121a45760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006064820152608401610a2c565b600082815260086020526040812080546121bd90612fc4565b80601f01602080910402602001604051908101604052809291908181526020018280546121e990612fc4565b80156122365780601f1061220b57610100808354040283529160200191612236565b820191906000526020600020905b81548152906001019060200180831161221957829003601f168201915b5050505050905060008151111561224d5792915050565b610da2836123bf565b600d80546001600160a01b0383811661010081810274ffffffffffffffffffffffffffffffffffffffff001985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546001600160a01b0383166122e657604051622e076360e81b815260040160405180910390fd5b816123045760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061234f5750600055505050565b60008060006123aa8585612443565b915091506123b7816124b3565b509392505050565b60606123ca82611749565b6123e757604051630a14c4b560e41b815260040160405180910390fd5b60006123f16126b4565b90508051600014156124125760405180602001604052806000815250610da2565b8061241c846126c3565b60405160200161242d929190612e12565b6040516020818303038152906040529392505050565b60008082516041141561247a5760208301516040840151606085015160001a61246e878285856127af565b945094505050506124ac565b8251604014156124a4576020830151604084015161249986838361289c565b9350935050506124ac565b506000905060025b9250929050565b60008160048111156124d557634e487b7160e01b600052602160045260246000fd5b14156124de5750565b600181600481111561250057634e487b7160e01b600052602160045260246000fd5b141561254e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a2c565b600281600481111561257057634e487b7160e01b600052602160045260246000fd5b14156125be5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a2c565b60038160048111156125e057634e487b7160e01b600052602160045260246000fd5b14156126395760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a2c565b600481600481111561265b57634e487b7160e01b600052602160045260246000fd5b1415610ad05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a2c565b60606126be6128cb565b905090565b6060816126e75750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126ff57600101600a820491506126eb565b60008167ffffffffffffffff81111561272857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612752576020820181803683370190505b5090505b8415610ef05760001990910190600a850660300160f81b81838151811061278d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600a85049450612756565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156127e65750600090506003612893565b8460ff16601b141580156127fe57508460ff16601c14155b1561280f5750600090506004612893565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612863573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661288c57600060019250925050612893565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016128bd878288856127af565b935093505050935093915050565b60606009805461084490612fc4565b8280546128e690612fc4565b90600052602060002090601f016020900481019282612908576000855561294e565b82601f1061292157805160ff191683800117855561294e565b8280016001018555821561294e579182015b8281111561294e578251825591602001919060010190612933565b5061295a92915061295e565b5090565b5b8082111561295a576000815560010161295f565b80356001600160a01b038116811461298a57600080fd5b919050565b60008083601f8401126129a0578081fd5b50813567ffffffffffffffff8111156129b7578182fd5b6020830191508360208260051b85010111156124ac57600080fd5b600082601f8301126129e2578081fd5b813567ffffffffffffffff808211156129fd576129fd613015565b604051601f8301601f19908116603f01168101908282118183101715612a2557612a25613015565b81604052838152866020858801011115612a3d578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215612a6a578081fd5b610da282612973565b60008060408385031215612a85578081fd5b612a8e83612973565b9150612a9c60208401612973565b90509250929050565b600080600060608486031215612ab9578081fd5b612ac284612973565b9250612ad060208501612973565b9150604084013590509250925092565b60008060008060808587031215612af5578081fd5b612afe85612973565b9350612b0c60208601612973565b925060408501359150606085013567ffffffffffffffff811115612b2e578182fd5b612b3a878288016129d2565b91505092959194509250565b60008060408385031215612b58578182fd5b612b6183612973565b915060208301358015158114612b75578182fd5b809150509250929050565b60008060408385031215612b92578182fd5b612b9b83612973565b9150602083013562ffffff81168114612b75578182fd5b60008060408385031215612bc4578182fd5b612bcd83612973565b946020939093013593505050565b60008060008060808587031215612bf0578384fd5b612bf985612973565b966020860135965060408601359560600135945092505050565b600080600080600060a08688031215612c2a578081fd5b612c3386612973565b9450602086013593506040860135925060608601359150608086013567ffffffffffffffff811115612c63578182fd5b612c6f888289016129d2565b9150509295509295909350565b60008060008060408587031215612c91578182fd5b843567ffffffffffffffff80821115612ca8578384fd5b612cb48883890161298f565b90965094506020870135915080821115612ccc578384fd5b50612cd98782880161298f565b95989497509550505050565b600060208284031215612cf6578081fd5b5035919050565b60008060408385031215612d0f578182fd5b82359150612a9c60208401612973565b600060208284031215612d30578081fd5b8135610da28161302b565b600060208284031215612d4c578081fd5b8151610da28161302b565b600060208284031215612d68578081fd5b813567ffffffffffffffff811115612d7e578182fd5b610ef0848285016129d2565b60008060408385031215612d9c578182fd5b82359150602083013567ffffffffffffffff811115612db9578182fd5b610b1f858286016129d2565b60008060408385031215612dd7578182fd5b50508035926020909101359150565b60008151808452612dfe816020860160208601612f81565b601f01601f19169290920160200192915050565b60008351612e24818460208801612f81565b835190830190612e38818360208801612f81565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612e79816017850160208801612f81565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612eb6816028840160208801612f81565b01602801949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612ef46080830184612de6565b9695505050505050565b828152604060208201526000610ef06040830184612de6565b602081526000610da26020830184612de6565b60008219821115612f3d57612f3d612fff565b500190565b600082612f5d57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612f7c57612f7c612fff565b500290565b60005b83811015612f9c578181015183820152602001612f84565b8381111561134d5750506000910152565b600081612fbc57612fbc612fff565b506000190190565b600181811c90821680612fd857607f821691505b60208210811415612ff957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ad057600080fdfe73656e646572206d7573742068617665207468652041444d494e20726f6c6500df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42a2646970667358221220304e7ffddd9918a29df67d52f9082d2e744254dec40b41acc5d7105017ff8dc364736f6c63430008040033

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

0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000004d2ff6438e84460e555d71d8a983dba333a987e9000000000000000000000000000000000000000000000000000000000000271000000000000000000000000053232f9a89cde9032491a4dd70ecb60edb8aa3910000000000000000000000005eacd383b4e8340d7f7f9c2ff076217a7ed89610000000000000000000000000a10fb482873638af1e9034b1c29e16d1812f0c50000000000000000000000000000000000000000000000000000000000000002f456e64206f6620746865204c696e653a2020412042756c6c657420547261696e204e465420457870657269656e6365000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034254410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003868747470733a2f2f6170692e6e69667479732e636f6d2f76312f7075626c69632f6d657461646174612f455448455245554d2f6e756c6c2f0000000000000000

-----Decoded View---------------
Arg [0] : name (string): End of the Line: A Bullet Train NFT Experience
Arg [1] : symbol (string): BTA
Arg [2] : baseURI (string): https://api.niftys.com/v1/public/metadata/ETHEREUM/null/
Arg [3] : recipient (address): 0x4D2fF6438e84460e555d71D8a983dba333A987e9
Arg [4] : value (uint24): 10000
Arg [5] : admin (address): 0x53232F9a89cDE9032491A4Dd70ecB60EDb8AA391
Arg [6] : operator (address): 0x5eacD383b4e8340D7F7F9c2Ff076217a7Ed89610
Arg [7] : relay (address): 0xA10fB482873638AF1E9034b1c29e16D1812f0C50

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000004d2ff6438e84460e555d71d8a983dba333a987e9
Arg [4] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [5] : 00000000000000000000000053232f9a89cde9032491a4dd70ecb60edb8aa391
Arg [6] : 0000000000000000000000005eacd383b4e8340d7f7f9c2ff076217a7ed89610
Arg [7] : 000000000000000000000000a10fb482873638af1e9034b1c29e16d1812f0c50
Arg [8] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [9] : 456e64206f6620746865204c696e653a2020412042756c6c657420547261696e
Arg [10] : 204e465420457870657269656e63650000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [12] : 4254410000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000038
Arg [14] : 68747470733a2f2f6170692e6e69667479732e636f6d2f76312f7075626c6963
Arg [15] : 2f6d657461646174612f455448455245554d2f6e756c6c2f0000000000000000


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

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