ETH Price: $2,924.64 (+4.68%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw156405442022-09-29 17:39:47770 days ago1664473187IN
0x735e9F28...f5F8d7314
0 ETH0.0004912616.11325425
Mint156230162022-09-27 6:50:11773 days ago1664261411IN
0x735e9F28...f5F8d7314
0 ETH0.0069313211.15638036
Mint156230082022-09-27 6:48:35773 days ago1664261315IN
0x735e9F28...f5F8d7314
0 ETH0.0019883311.52283464
Set Approval For...156229992022-09-27 6:46:47773 days ago1664261207IN
0x735e9F28...f5F8d7314
0 ETH0.000446739.68320681
Mint156229982022-09-27 6:46:35773 days ago1664261195IN
0x735e9F28...f5F8d7314
0 ETH0.001619669.29896345
Mint156229872022-09-27 6:44:23773 days ago1664261063IN
0x735e9F28...f5F8d7314
0 ETH0.002593039.47973235
Set Approval For...156229822022-09-27 6:43:23773 days ago1664261003IN
0x735e9F28...f5F8d7314
0 ETH0.000458069.92889422
Mint156229742022-09-27 6:41:47773 days ago1664260907IN
0x735e9F28...f5F8d7314
0 ETH0.002843810.39647872
Mint156228122022-09-27 6:09:23773 days ago1664258963IN
0x735e9F28...f5F8d7314
0 ETH0.004349017
Mint156228062022-09-27 6:08:11773 days ago1664258891IN
0x735e9F28...f5F8d7314
0 ETH0.001045066
Mint156227802022-09-27 6:02:59773 days ago1664258579IN
0x735e9F28...f5F8d7314
0 ETH0.001392157.99274265
Mint156227632022-09-27 5:59:35773 days ago1664258375IN
0x735e9F28...f5F8d7314
0 ETH0.001479418.49372958
Mint156227412022-09-27 5:55:11773 days ago1664258111IN
0x735e9F28...f5F8d7314
0 ETH0.00130657.50103648
Mint156227342022-09-27 5:53:47773 days ago1664258027IN
0x735e9F28...f5F8d7314
0 ETH0.001439578.26501934
Mint156227282022-09-27 5:52:35773 days ago1664257955IN
0x735e9F28...f5F8d7314
0 ETH0.001570499.01664674
Mint156227282022-09-27 5:52:35773 days ago1664257955IN
0x735e9F28...f5F8d7314
0 ETH0.001570499.01664674
Mint156227192022-09-27 5:50:47773 days ago1664257847IN
0x735e9F28...f5F8d7314
0 ETH0.001313277.53991499
Mint156227122022-09-27 5:49:23773 days ago1664257763IN
0x735e9F28...f5F8d7314
0 ETH0.001213617.04862684
Set Free Mint St...156164802022-09-26 8:53:35774 days ago1664182415IN
0x735e9F28...f5F8d7314
0 ETH0.000423189.22246982
Mint156123722022-09-25 19:06:59774 days ago1664132819IN
0x735e9F28...f5F8d7314
0.01 ETH0.001029056.69501442
Mint156115062022-09-25 16:12:47774 days ago1664122367IN
0x735e9F28...f5F8d7314
0.01 ETH0.0027444617.85540358
Set Base URI156115022022-09-25 16:11:59774 days ago1664122319IN
0x735e9F28...f5F8d7314
0 ETH0.002207119.32036088
Flip Sale156113122022-09-25 15:33:59774 days ago1664120039IN
0x735e9F28...f5F8d7314
0 ETH0.0003698113.32491892
0x662386f2156112962022-09-25 15:30:47774 days ago1664119847IN
 Create: CyberBasketball
0 ETH0.0282594715.65114006

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
156405442022-09-29 17:39:47770 days ago1664473187
0x735e9F28...f5F8d7314
0.02 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CyberBasketball

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : CB.sol
//Powered by Ether Wars Game
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';

/**
 * @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 _amount of tokens minted must be more than zero.
     */
    error MintZeroAmount();

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

    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);
}

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

    /**
     * @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) {
        require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token');

        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, _amount, '')`.
     */
    function _safeMint(address to, uint256 _amount) internal {
        _safeMint(to, _amount, '');
    }

    /**
     * @dev Safely mints `_amount` 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.
     * - `_amount` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 _amount,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (_amount == 0) revert MintZeroAmount();

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

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

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

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + _amount;

            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, _amount);
    }

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

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

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

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

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + _amount;

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

            _currentIndex = updatedIndex;
        }

        _afterTokenTransfers(address(0), to, startTokenId, _amount);
    }

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

    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableSet for EnumerableSet.AddressSet;

    // Mapping that stores all token ids of an owner (owner => tokenIds[])
    mapping(address => EnumerableSet.UintSet) internal ownerToTokens;

    function getUserNFTIds(address user) public view returns (uint256[] memory) {
        return ownerToTokens[user].values();
    }

    function getUserMetadata(address user) public view returns (string[] memory) {
        string[] memory userMetadata = new string[](getUserNFTIds(user).length);
        for (uint256 i = 0; i < getUserNFTIds(user).length; i++) {
            userMetadata[i] = tokenURI(getUserNFTIds(user)[i]);
        }
        return userMetadata;
    }

    /**
     * @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
     * _amount - 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 _tokenId,
        uint256 _amount
    ) internal virtual {
        for (uint256 i = 0; i < _amount; i++) {
            ownerToTokens[to].add(_tokenId + i);
        }
        for (uint256 i = 0; i < _amount; i++) {
            ownerToTokens[from].remove(_tokenId + i);
        }
    }

    /**
     * @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
     * _amount - 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 _amount
    ) 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 ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

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

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

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

contract CyberBasketball is ERC721A, Ownable, Pausable {
    uint256 private constant MAX_SUPPLY = 500;
    uint256 private constant MAX_PER_WALLET = 10;
    uint256 public currentPrice = 0.01 ether;

    string private _name = 'Cyber Bassketball';
    string private _symbol = 'CyBall';

    string private baseURI;

    bool public freeMintOnly = false;
    mapping(address => uint256) public freeMintedCount;

    constructor() ERC721A(_name, _symbol) {
        _pause();
    }

    function mint(uint256 _amount) external payable whenNotPaused {
        require(totalSupply() + _amount <= MAX_SUPPLY, 'Exceeds supply');

        if (freeMintOnly) {
            currentPrice = 0 ether;
            freeMintedCount[msg.sender] += _amount;
        }

        require(msg.value == _amount * currentPrice, 'ETH sent not correct');
        require(freeMintedCount[msg.sender] <= MAX_PER_WALLET, 'You used max free mints');

        _mint(msg.sender, _amount);
    }

    function setFreeMintStatus(bool value) external onlyOwner {
        freeMintOnly = value;
    }

    function changeMintPrice(uint256 _currentPrice) external onlyOwner {
        currentPrice = _currentPrice * 10**15; // 1=0.001 10=0.01 100=0.1
    }

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

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token');

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

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

    function flipSale() external onlyOwner {
        _unpause();
    }

    function collectReserves(uint256 _amount) external onlyOwner {
        require(totalSupply() == 0, 'Reserves already taken');

        _mint(msg.sender, _amount);
    }

    function withdraw() external onlyOwner {
        require(payable(owner()).send(address(this).balance), 'Withdraw unsuccessful');
    }
}

File 2 of 5 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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 3 of 5 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

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

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

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

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

File 4 of 5 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "none"
  },
  "evmVersion": "istanbul",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroAmount","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_currentPrice","type":"uint256"}],"name":"changeMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"collectReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMintOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserMetadata","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserNFTIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setFreeMintStatus","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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

662386f26fc10000600a5560c0604052601160808190527010de58995c8810985cdcdad95d18985b1b607a1b60a09081526200003f91600b919062000319565b506040805180820190915260068082526510de50985b1b60d21b60209092019182526200006f91600c9162000319565b50600e805460ff191690553480156200008757600080fd5b50600b80546200009790620003bf565b80601f0160208091040260200160405190810160405280929190818152602001828054620000c590620003bf565b8015620001165780601f10620000ea5761010080835404028352916020019162000116565b820191906000526020600020905b815481529060010190602001808311620000f857829003601f168201915b5050505050600c80546200012a90620003bf565b80601f01602080910402602001604051908101604052809291908181526020018280546200015890620003bf565b8015620001a95780601f106200017d57610100808354040283529160200191620001a9565b820191906000526020600020905b8154815290600101906020018083116200018b57829003601f168201915b50508451620001c393506002925060208601915062000319565b508051620001d990600390602084019062000319565b5050600160005550620001ec3362000209565b6009805460ff60a01b19169055620002036200025b565b620003fc565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000265620002be565b6009805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002a13390565b6040516001600160a01b03909116815260200160405180910390a1565b620002d2600954600160a01b900460ff1690565b15620003175760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b565b8280546200032790620003bf565b90600052602060002090601f0160209004810192826200034b576000855562000396565b82601f106200036657805160ff191683800117855562000396565b8280016001018555821562000396579182015b828111156200039657825182559160200191906001019062000379565b50620003a4929150620003a8565b5090565b5b80821115620003a45760008155600101620003a9565b600181811c90821680620003d457607f821691505b60208210811415620003f657634e487b7160e01b600052602260045260246000fd5b50919050565b611c79806200040c6000396000f3fe6080604052600436106101cd5760003560e01c80638da5cb5b116100f7578063b88d4fde11610095578063e6b1fa2a11610064578063e6b1fa2a1461050b578063e985e9c514610538578063ef2a876414610558578063f2fde38b1461058557600080fd5b8063b88d4fde1461048b578063c87b56dd146104ab578063d9c0f6b6146104cb578063e5d089ff146104eb57600080fd5b80639d1b464a116100d15780639d1b464a14610428578063a0712d681461043e578063a22cb46514610451578063aca3aff51461047157600080fd5b80638da5cb5b146103c857806395d89b41146103e657806398133235146103fb57600080fd5b80633fd173661161016f5780636352211e1161013e5780636352211e1461035e57806370a082311461037e578063715018a61461039e5780637ba5e621146103b357600080fd5b80633fd17366146102df57806342842e0e146102ff57806355f804b31461031f5780635c975abb1461033f57600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461028357806323b872dd146102aa5780633ccfd60b146102ca57600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed36600461172d565b6105a5565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6105f7565b6040516101fe91906117a2565b34801561023557600080fd5b506102496102443660046117b5565b610689565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c3660046117ea565b6106cd565b005b34801561028f57600080fd5b5060015460005403600019015b6040519081526020016101fe565b3480156102b657600080fd5b506102816102c5366004611814565b6107a0565b3480156102d657600080fd5b506102816107b0565b3480156102eb57600080fd5b506102816102fa3660046117b5565b61082b565b34801561030b57600080fd5b5061028161031a366004611814565b61084a565b34801561032b57600080fd5b5061028161033a366004611850565b610865565b34801561034b57600080fd5b50600954600160a01b900460ff166101f2565b34801561036a57600080fd5b506102496103793660046117b5565b610879565b34801561038a57600080fd5b5061029c6103993660046118c2565b610884565b3480156103aa57600080fd5b506102816108d3565b3480156103bf57600080fd5b506102816108e5565b3480156103d457600080fd5b506009546001600160a01b0316610249565b3480156103f257600080fd5b5061021c6108f5565b34801561040757600080fd5b5061029c6104163660046118c2565b600f6020526000908152604090205481565b34801561043457600080fd5b5061029c600a5481565b61028161044c3660046117b5565b610904565b34801561045d57600080fd5b5061028161046c3660046118ed565b610a59565b34801561047d57600080fd5b50600e546101f29060ff1681565b34801561049757600080fd5b506102816104a6366004611936565b610aef565b3480156104b757600080fd5b5061021c6104c63660046117b5565b610b39565b3480156104d757600080fd5b506102816104e6366004611a12565b610c01565b3480156104f757600080fd5b506102816105063660046117b5565b610c1c565b34801561051757600080fd5b5061052b6105263660046118c2565b610c75565b6040516101fe9190611a2d565b34801561054457600080fd5b506101f2610553366004611a71565b610c99565b34801561056457600080fd5b506105786105733660046118c2565b610cc7565b6040516101fe9190611a9b565b34801561059157600080fd5b506102816105a03660046118c2565b610d98565b60006301ffc9a760e01b6001600160e01b0319831614806105d657506380ac58cd60e01b6001600160e01b03198316145b806105f15750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461060690611afd565b80601f016020809104026020016040519081016040528092919081815260200182805461063290611afd565b801561067f5780601f106106545761010080835404028352916020019161067f565b820191906000526020600020905b81548152906001019060200180831161066257829003601f168201915b5050505050905090565b600061069482610e0e565b6106b1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106d882610e43565b9050806001600160a01b0316836001600160a01b0316141561070d5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610744576107278133610c99565b610744576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107ab838383610eb3565b505050565b6107b8611064565b6009546040516001600160a01b03909116904780156108fc02916000818181858888f193505050506108295760405162461bcd60e51b815260206004820152601560248201527415da5d1a191c985dc81d5b9cdd58d8d95cdcd99d5b605a1b60448201526064015b60405180910390fd5b565b610833611064565b6108448166038d7ea4c68000611b4e565b600a5550565b6107ab83838360405180602001604052806000815250610aef565b61086d611064565b6107ab600d838361167e565b60006105f182610e43565b60006001600160a01b0382166108ad576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6108db611064565b61082960006110be565b6108ed611064565b610829611110565b60606003805461060690611afd565b61090c61115a565b6001546000546101f491839103600019016109279190611b6d565b11156109665760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610820565b600e5460ff161561099a576000600a819055338152600f602052604081208054839290610994908490611b6d565b90915550505b600a546109a79082611b4e565b34146109ec5760405162461bcd60e51b8152602060048201526014602482015273115512081cd95b9d081b9bdd0818dbdc9c9958dd60621b6044820152606401610820565b336000908152600f6020526040902054600a1015610a4c5760405162461bcd60e51b815260206004820152601760248201527f596f752075736564206d61782066726565206d696e74730000000000000000006044820152606401610820565b610a5633826111a7565b50565b6001600160a01b038216331415610a835760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610afa848484610eb3565b6001600160a01b0383163b15610b3357610b1684848484611292565b610b33576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610b4482610e0e565b610ba85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610820565b610bb061137a565b51610bca57604051806020016040528060008152506105f1565b610bd261137a565b610bdb83611389565b604051602001610bec929190611b85565b60405160208183030381529060405292915050565b610c09611064565b600e805460ff1916911515919091179055565b610c24611064565b600154600054036000190115610a4c5760405162461bcd60e51b81526020600482015260166024820152752932b9b2b93b32b99030b63932b0b23c903a30b5b2b760511b6044820152606401610820565b6001600160a01b03811660009081526008602052604090206060906105f1906113d8565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60606000610cd483610c75565b5167ffffffffffffffff811115610ced57610ced611920565b604051908082528060200260200182016040528015610d2057816020015b6060815260200190600190039081610d0b5790505b50905060005b610d2f84610c75565b51811015610d9157610d61610d4385610c75565b8281518110610d5457610d54611bb4565b6020026020010151610b39565b828281518110610d7357610d73611bb4565b60200260200101819052508080610d8990611bca565b915050610d26565b5092915050565b610da0611064565b6001600160a01b038116610e055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610820565b610a56816110be565b600081600111158015610e22575060005482105b80156105f1575050600090815260046020526040902054600160e01b161590565b60008180600111610e9a57600054811015610e9a57600081815260046020526040902054600160e01b8116610e98575b80610e91575060001901600081815260046020526040902054610e73565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000610ebe82610e43565b9050836001600160a01b0316816001600160a01b031614610ef15760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480610f0f5750610f0f8533610c99565b80610f2a575033610f1f84610689565b6001600160a01b0316145b905080610f4a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416610f7157604051633a954ecd60e21b815260040160405180910390fd5b610f7e85858560016113e5565b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661101b57600183016000818152600460205260409020546110195760005481146110195760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6009546001600160a01b031633146108295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610820565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611118611478565b6009805460ff60a01b191690556040805133815290517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9181900360200190a1565b600954600160a01b900460ff16156108295760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610820565b6000546001600160a01b0383166111d057604051622e076360e81b815260040160405180910390fd5b816111ee5760405163cd53609f60e01b815260040160405180910390fd5b6111fb60008483856113e5565b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106112465750600055505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906112c7903390899088908890600401611be5565b6020604051808303816000875af1925050508015611302575060408051601f3d908101601f191682019092526112ff91810190611c22565b60015b61135d573d808015611330576040519150601f19603f3d011682016040523d82523d6000602084013e611335565b606091505b508051611355576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600d805461060690611afd565b604080516080810191829052607f0190826030600a8206018353600a90045b80156113c657600183039250600a81066030018353600a90046113a8565b50819003601f19909101908152919050565b60606000610e91836114c8565b60005b8181101561142e5761141b6113fd8285611b6d565b6001600160a01b038616600090815260086020526040902090611524565b508061142681611bca565b9150506113e8565b5060005b8181101561105d576114656114478285611b6d565b6001600160a01b038716600090815260086020526040902090611530565b508061147081611bca565b915050611432565b600954600160a01b900460ff166108295760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610820565b60608160000180548060200260200160405190810160405280929190818152602001828054801561151857602002820191906000526020600020905b815481526020019060010190808311611504575b50505050509050919050565b6000610e91838361153c565b6000610e91838361158b565b6000818152600183016020526040812054611583575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105f1565b5060006105f1565b600081815260018301602052604081205480156116745760006115af600183611c3f565b85549091506000906115c390600190611c3f565b90508181146116285760008660000182815481106115e3576115e3611bb4565b906000526020600020015490508087600001848154811061160657611606611bb4565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061163957611639611c56565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105f1565b60009150506105f1565b82805461168a90611afd565b90600052602060002090601f0160209004810192826116ac57600085556116f2565b82601f106116c55782800160ff198235161785556116f2565b828001600101855582156116f2579182015b828111156116f25782358255916020019190600101906116d7565b506116fe929150611702565b5090565b5b808211156116fe5760008155600101611703565b6001600160e01b031981168114610a5657600080fd5b60006020828403121561173f57600080fd5b8135610e9181611717565b60005b8381101561176557818101518382015260200161174d565b83811115610b335750506000910152565b6000815180845261178e81602086016020860161174a565b601f01601f19169290920160200192915050565b602081526000610e916020830184611776565b6000602082840312156117c757600080fd5b5035919050565b80356001600160a01b03811681146117e557600080fd5b919050565b600080604083850312156117fd57600080fd5b611806836117ce565b946020939093013593505050565b60008060006060848603121561182957600080fd5b611832846117ce565b9250611840602085016117ce565b9150604084013590509250925092565b6000806020838503121561186357600080fd5b823567ffffffffffffffff8082111561187b57600080fd5b818501915085601f83011261188f57600080fd5b81358181111561189e57600080fd5b8660208285010111156118b057600080fd5b60209290920196919550909350505050565b6000602082840312156118d457600080fd5b610e91826117ce565b803580151581146117e557600080fd5b6000806040838503121561190057600080fd5b611909836117ce565b9150611917602084016118dd565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561194c57600080fd5b611955856117ce565b9350611963602086016117ce565b925060408501359150606085013567ffffffffffffffff8082111561198757600080fd5b818701915087601f83011261199b57600080fd5b8135818111156119ad576119ad611920565b604051601f8201601f19908116603f011681019083821181831017156119d5576119d5611920565b816040528281528a60208487010111156119ee57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215611a2457600080fd5b610e91826118dd565b6020808252825182820181905260009190848201906040850190845b81811015611a6557835183529284019291840191600101611a49565b50909695505050505050565b60008060408385031215611a8457600080fd5b611a8d836117ce565b9150611917602084016117ce565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015611af057603f19888603018452611ade858351611776565b94509285019290850190600101611ac2565b5092979650505050505050565b600181811c90821680611b1157607f821691505b60208210811415611b3257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611b6857611b68611b38565b500290565b60008219821115611b8057611b80611b38565b500190565b60008351611b9781846020880161174a565b835190830190611bab81836020880161174a565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611bde57611bde611b38565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611c1890830184611776565b9695505050505050565b600060208284031215611c3457600080fd5b8151610e9181611717565b600082821015611c5157611c51611b38565b500390565b634e487b7160e01b600052603160045260246000fdfea164736f6c634300080b000a

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c80638da5cb5b116100f7578063b88d4fde11610095578063e6b1fa2a11610064578063e6b1fa2a1461050b578063e985e9c514610538578063ef2a876414610558578063f2fde38b1461058557600080fd5b8063b88d4fde1461048b578063c87b56dd146104ab578063d9c0f6b6146104cb578063e5d089ff146104eb57600080fd5b80639d1b464a116100d15780639d1b464a14610428578063a0712d681461043e578063a22cb46514610451578063aca3aff51461047157600080fd5b80638da5cb5b146103c857806395d89b41146103e657806398133235146103fb57600080fd5b80633fd173661161016f5780636352211e1161013e5780636352211e1461035e57806370a082311461037e578063715018a61461039e5780637ba5e621146103b357600080fd5b80633fd17366146102df57806342842e0e146102ff57806355f804b31461031f5780635c975abb1461033f57600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461028357806323b872dd146102aa5780633ccfd60b146102ca57600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed36600461172d565b6105a5565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6105f7565b6040516101fe91906117a2565b34801561023557600080fd5b506102496102443660046117b5565b610689565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c3660046117ea565b6106cd565b005b34801561028f57600080fd5b5060015460005403600019015b6040519081526020016101fe565b3480156102b657600080fd5b506102816102c5366004611814565b6107a0565b3480156102d657600080fd5b506102816107b0565b3480156102eb57600080fd5b506102816102fa3660046117b5565b61082b565b34801561030b57600080fd5b5061028161031a366004611814565b61084a565b34801561032b57600080fd5b5061028161033a366004611850565b610865565b34801561034b57600080fd5b50600954600160a01b900460ff166101f2565b34801561036a57600080fd5b506102496103793660046117b5565b610879565b34801561038a57600080fd5b5061029c6103993660046118c2565b610884565b3480156103aa57600080fd5b506102816108d3565b3480156103bf57600080fd5b506102816108e5565b3480156103d457600080fd5b506009546001600160a01b0316610249565b3480156103f257600080fd5b5061021c6108f5565b34801561040757600080fd5b5061029c6104163660046118c2565b600f6020526000908152604090205481565b34801561043457600080fd5b5061029c600a5481565b61028161044c3660046117b5565b610904565b34801561045d57600080fd5b5061028161046c3660046118ed565b610a59565b34801561047d57600080fd5b50600e546101f29060ff1681565b34801561049757600080fd5b506102816104a6366004611936565b610aef565b3480156104b757600080fd5b5061021c6104c63660046117b5565b610b39565b3480156104d757600080fd5b506102816104e6366004611a12565b610c01565b3480156104f757600080fd5b506102816105063660046117b5565b610c1c565b34801561051757600080fd5b5061052b6105263660046118c2565b610c75565b6040516101fe9190611a2d565b34801561054457600080fd5b506101f2610553366004611a71565b610c99565b34801561056457600080fd5b506105786105733660046118c2565b610cc7565b6040516101fe9190611a9b565b34801561059157600080fd5b506102816105a03660046118c2565b610d98565b60006301ffc9a760e01b6001600160e01b0319831614806105d657506380ac58cd60e01b6001600160e01b03198316145b806105f15750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461060690611afd565b80601f016020809104026020016040519081016040528092919081815260200182805461063290611afd565b801561067f5780601f106106545761010080835404028352916020019161067f565b820191906000526020600020905b81548152906001019060200180831161066257829003601f168201915b5050505050905090565b600061069482610e0e565b6106b1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106d882610e43565b9050806001600160a01b0316836001600160a01b0316141561070d5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610744576107278133610c99565b610744576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107ab838383610eb3565b505050565b6107b8611064565b6009546040516001600160a01b03909116904780156108fc02916000818181858888f193505050506108295760405162461bcd60e51b815260206004820152601560248201527415da5d1a191c985dc81d5b9cdd58d8d95cdcd99d5b605a1b60448201526064015b60405180910390fd5b565b610833611064565b6108448166038d7ea4c68000611b4e565b600a5550565b6107ab83838360405180602001604052806000815250610aef565b61086d611064565b6107ab600d838361167e565b60006105f182610e43565b60006001600160a01b0382166108ad576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6108db611064565b61082960006110be565b6108ed611064565b610829611110565b60606003805461060690611afd565b61090c61115a565b6001546000546101f491839103600019016109279190611b6d565b11156109665760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610820565b600e5460ff161561099a576000600a819055338152600f602052604081208054839290610994908490611b6d565b90915550505b600a546109a79082611b4e565b34146109ec5760405162461bcd60e51b8152602060048201526014602482015273115512081cd95b9d081b9bdd0818dbdc9c9958dd60621b6044820152606401610820565b336000908152600f6020526040902054600a1015610a4c5760405162461bcd60e51b815260206004820152601760248201527f596f752075736564206d61782066726565206d696e74730000000000000000006044820152606401610820565b610a5633826111a7565b50565b6001600160a01b038216331415610a835760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610afa848484610eb3565b6001600160a01b0383163b15610b3357610b1684848484611292565b610b33576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610b4482610e0e565b610ba85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610820565b610bb061137a565b51610bca57604051806020016040528060008152506105f1565b610bd261137a565b610bdb83611389565b604051602001610bec929190611b85565b60405160208183030381529060405292915050565b610c09611064565b600e805460ff1916911515919091179055565b610c24611064565b600154600054036000190115610a4c5760405162461bcd60e51b81526020600482015260166024820152752932b9b2b93b32b99030b63932b0b23c903a30b5b2b760511b6044820152606401610820565b6001600160a01b03811660009081526008602052604090206060906105f1906113d8565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60606000610cd483610c75565b5167ffffffffffffffff811115610ced57610ced611920565b604051908082528060200260200182016040528015610d2057816020015b6060815260200190600190039081610d0b5790505b50905060005b610d2f84610c75565b51811015610d9157610d61610d4385610c75565b8281518110610d5457610d54611bb4565b6020026020010151610b39565b828281518110610d7357610d73611bb4565b60200260200101819052508080610d8990611bca565b915050610d26565b5092915050565b610da0611064565b6001600160a01b038116610e055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610820565b610a56816110be565b600081600111158015610e22575060005482105b80156105f1575050600090815260046020526040902054600160e01b161590565b60008180600111610e9a57600054811015610e9a57600081815260046020526040902054600160e01b8116610e98575b80610e91575060001901600081815260046020526040902054610e73565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000610ebe82610e43565b9050836001600160a01b0316816001600160a01b031614610ef15760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480610f0f5750610f0f8533610c99565b80610f2a575033610f1f84610689565b6001600160a01b0316145b905080610f4a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416610f7157604051633a954ecd60e21b815260040160405180910390fd5b610f7e85858560016113e5565b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661101b57600183016000818152600460205260409020546110195760005481146110195760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6009546001600160a01b031633146108295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610820565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611118611478565b6009805460ff60a01b191690556040805133815290517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9181900360200190a1565b600954600160a01b900460ff16156108295760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610820565b6000546001600160a01b0383166111d057604051622e076360e81b815260040160405180910390fd5b816111ee5760405163cd53609f60e01b815260040160405180910390fd5b6111fb60008483856113e5565b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106112465750600055505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906112c7903390899088908890600401611be5565b6020604051808303816000875af1925050508015611302575060408051601f3d908101601f191682019092526112ff91810190611c22565b60015b61135d573d808015611330576040519150601f19603f3d011682016040523d82523d6000602084013e611335565b606091505b508051611355576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600d805461060690611afd565b604080516080810191829052607f0190826030600a8206018353600a90045b80156113c657600183039250600a81066030018353600a90046113a8565b50819003601f19909101908152919050565b60606000610e91836114c8565b60005b8181101561142e5761141b6113fd8285611b6d565b6001600160a01b038616600090815260086020526040902090611524565b508061142681611bca565b9150506113e8565b5060005b8181101561105d576114656114478285611b6d565b6001600160a01b038716600090815260086020526040902090611530565b508061147081611bca565b915050611432565b600954600160a01b900460ff166108295760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610820565b60608160000180548060200260200160405190810160405280929190818152602001828054801561151857602002820191906000526020600020905b815481526020019060010190808311611504575b50505050509050919050565b6000610e91838361153c565b6000610e91838361158b565b6000818152600183016020526040812054611583575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105f1565b5060006105f1565b600081815260018301602052604081205480156116745760006115af600183611c3f565b85549091506000906115c390600190611c3f565b90508181146116285760008660000182815481106115e3576115e3611bb4565b906000526020600020015490508087600001848154811061160657611606611bb4565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061163957611639611c56565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105f1565b60009150506105f1565b82805461168a90611afd565b90600052602060002090601f0160209004810192826116ac57600085556116f2565b82601f106116c55782800160ff198235161785556116f2565b828001600101855582156116f2579182015b828111156116f25782358255916020019190600101906116d7565b506116fe929150611702565b5090565b5b808211156116fe5760008155600101611703565b6001600160e01b031981168114610a5657600080fd5b60006020828403121561173f57600080fd5b8135610e9181611717565b60005b8381101561176557818101518382015260200161174d565b83811115610b335750506000910152565b6000815180845261178e81602086016020860161174a565b601f01601f19169290920160200192915050565b602081526000610e916020830184611776565b6000602082840312156117c757600080fd5b5035919050565b80356001600160a01b03811681146117e557600080fd5b919050565b600080604083850312156117fd57600080fd5b611806836117ce565b946020939093013593505050565b60008060006060848603121561182957600080fd5b611832846117ce565b9250611840602085016117ce565b9150604084013590509250925092565b6000806020838503121561186357600080fd5b823567ffffffffffffffff8082111561187b57600080fd5b818501915085601f83011261188f57600080fd5b81358181111561189e57600080fd5b8660208285010111156118b057600080fd5b60209290920196919550909350505050565b6000602082840312156118d457600080fd5b610e91826117ce565b803580151581146117e557600080fd5b6000806040838503121561190057600080fd5b611909836117ce565b9150611917602084016118dd565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561194c57600080fd5b611955856117ce565b9350611963602086016117ce565b925060408501359150606085013567ffffffffffffffff8082111561198757600080fd5b818701915087601f83011261199b57600080fd5b8135818111156119ad576119ad611920565b604051601f8201601f19908116603f011681019083821181831017156119d5576119d5611920565b816040528281528a60208487010111156119ee57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215611a2457600080fd5b610e91826118dd565b6020808252825182820181905260009190848201906040850190845b81811015611a6557835183529284019291840191600101611a49565b50909695505050505050565b60008060408385031215611a8457600080fd5b611a8d836117ce565b9150611917602084016117ce565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015611af057603f19888603018452611ade858351611776565b94509285019290850190600101611ac2565b5092979650505050505050565b600181811c90821680611b1157607f821691505b60208210811415611b3257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611b6857611b68611b38565b500290565b60008219821115611b8057611b80611b38565b500190565b60008351611b9781846020880161174a565b835190830190611bab81836020880161174a565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611bde57611bde611b38565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611c1890830184611776565b9695505050505050565b600060208284031215611c3457600080fd5b8151610e9181611717565b600082821015611c5157611c51611b38565b500390565b634e487b7160e01b600052603160045260246000fdfea164736f6c634300080b000a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.