ETH Price: $3,402.24 (+2.11%)

Token

hedsTAPE 9 (HT9)
 

Overview

Max Total Supply

36 HT9

Holders

28

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
joshphelps.eth
Balance
1 HT9
0x7d8d2c8ea18f9a3da11066f02057dad708f97e8f
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
HedsTape

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : HedsTape.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

import "ERC721K/ERC721K.sol";
import "openzeppelin-contracts/contracts/access/Ownable.sol";

error InsufficientFunds();
error ExceedsMaxSupply();
error OutsideSalePeriod();
error FailedTransfer();
error URIQueryForNonexistentToken();
error UnmatchedLength();
error NoShares();

/// @title ERC721 contract for https://heds.io/ HedsTape
/// @author https://github.com/kadenzipfel
contract HedsTape is ERC721K, Ownable {
  struct SaleConfig {
    uint64 price;
    uint32 maxSupply;
    uint32 startTime;
    uint32 endTime;
  }

  /// @notice NFT sale data
  /// @dev Sale data packed into single storage slot
  SaleConfig public saleConfig;

  string private baseUri = 'ipfs://QmYjnCPqpwaPqWWpxpTxwjQD69S3aPZHuhsL5pYBeh8W3Y';

  address private zeroXSplit = 0x14e444B02b8Fccb7e1AfD3EDD9f64727A65a2B0e;

  constructor() ERC721K("hedsTAPE 9", "HT9") {
    saleConfig.price = 0.1 ether;
    saleConfig.maxSupply = 1000;
    saleConfig.startTime = 1666983585;
    saleConfig.endTime = 1667070000;
  }

  /// @notice Mint a HedsTape token
  /// @param _amount Number of tokens to mint
  function mintHead(uint _amount) external payable {
    SaleConfig memory config = saleConfig;
    uint _price = uint(config.price);
    uint _maxSupply = uint(config.maxSupply);
    uint _startTime = uint(config.startTime);
    uint _endTime = uint(config.endTime);

    if (_amount * _price != msg.value) revert InsufficientFunds();
    if (_currentIndex + _amount > _maxSupply + 1) revert ExceedsMaxSupply();
    if (block.timestamp < _startTime || block.timestamp > _endTime) revert OutsideSalePeriod();

    _safeMint(msg.sender, _amount);
  }
 
  /// @notice Update baseUri - must be contract owner
  function setBaseUri(string calldata _baseUri) external onlyOwner {
    baseUri = _baseUri;
  }

  /// @notice Return tokenURI for a given token
  /// @dev Same tokenURI returned for all tokenId's
  function tokenURI(uint _tokenId) public view override returns (string memory) {
    if (0 == _tokenId || _tokenId > _currentIndex - 1) revert URIQueryForNonexistentToken();
    return baseUri;
  }

  /// @notice Update sale start time - must be contract owner
  function updateStartTime(uint32 _startTime) external onlyOwner {
    saleConfig.startTime = _startTime;
  }

  /// @notice Update sale end time - must be contract owner
  function updateEndTime(uint32 _endTime) external onlyOwner {
    saleConfig.endTime = _endTime;
  }

  /// @notice Update max supply - must be contract owner
  function updateMaxSupply(uint32 _maxSupply) external onlyOwner {
    saleConfig.maxSupply = _maxSupply;
  }

  /// @notice Withdraw contract balance - must be contract owner
  function withdraw() external onlyOwner {
    (bool success, ) = payable(zeroXSplit).call{value: address(this).balance}("");
    if (!success) revert FailedTransfer();
  }
}

File 2 of 4 : ERC721K.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

error ERC721__ApprovalCallerNotOwnerNorApproved(address caller);
error ERC721__ApproveToCaller();
error ERC721__ApprovalToCurrentOwner();
error ERC721__BalanceQueryForZeroAddress();
error ERC721__MintToZeroAddress();
error ERC721__MintZeroQuantity();
error ERC721__OwnerQueryForNonexistentToken(uint256 tokenId);
error ERC721__TransferCallerNotOwnerNorApproved(address caller);
error ERC721__TransferFromIncorrectOwner(address from, address owner);
error ERC721__TransferToNonERC721ReceiverImplementer(address receiver);
error ERC721__TransferToZeroAddress();

/**
 * @notice Maximally optimized, minimalist ERC-721 implementation.
 *
 * @dev Assumes serials are sequentially minted starting at 1 (e.g. 1, 2, 3..),
 * and that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * 
 * @author https://github.com/kadenzipfel - fork of https://github.com/chiru-labs/ERC721A, 
 * inspired by https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol.
 */
abstract contract ERC721K {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

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

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    // Token name
    string public name;

    // Token symbol
    string public symbol;

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

    /*//////////////////////////////////////////////////////////////
                             ERC721 STORAGE
    //////////////////////////////////////////////////////////////*/    

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex = 1;

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

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // Mapping from token ID to approved address
    mapping(uint256 => address) public getApproved;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) public isApprovedForAll;

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

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

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - 1 times
        unchecked {
            return _currentIndex - _burnCounter - 1;
        }
    }

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view returns (uint256) {
        if (owner == address(0)) revert ERC721__BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * @dev Returns the owner of the `tokenId` token.
     */
    function ownerOf(uint256 tokenId) public view returns (address) {
        return _ownershipOf(tokenId).addr;
    }

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

        if (msg.sender != owner && !isApprovedForAll[owner][msg.sender]) {
            revert ERC721__ApprovalCallerNotOwnerNorApproved(msg.sender);
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual {
        if (operator == msg.sender) revert ERC721__ApproveToCaller();

        isApprovedForAll[msg.sender][operator] = approved;
        emit ApprovalForAll(msg.sender, operator, approved);
    }

    /**
     * @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
    ) public virtual {
        _transfer(from, to, tokenId);
    }

    /**
     * @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
    ) public virtual {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual {
        _transfer(from, to, tokenId);
        if (to.code.length != 0 && ERC721TokenReceiver(to).onERC721Received(msg.sender, from, tokenId, _data) !=
                ERC721TokenReceiver.onERC721Received.selector) {
            revert ERC721__TransferToNonERC721ReceiverImplementer(to);
        }
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return  
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                            INTERNAL LOGIC
    //////////////////////////////////////////////////////////////*/

    /**
     * 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 1
        unchecked {
            return _currentIndex - 1;
        }
    }

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

        unchecked {
            if (curr != 0 && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert ERC721__OwnerQueryForNonexistentToken(tokenId);
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

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

            if (safe && to.code.length != 0) {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
                if (ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), end - 1, _data) !=
                ERC721TokenReceiver.onERC721Received.selector) {
                    revert ERC721__TransferToNonERC721ReceiverImplementer(to);
                }
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
    }

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

        if (prevOwnership.addr != from) revert ERC721__TransferFromIncorrectOwner(from, prevOwnership.addr);

        bool isApprovedOrOwner = (msg.sender == from ||
            getApproved[tokenId] == msg.sender) ||
            isApprovedForAll[from][msg.sender];

        if (!isApprovedOrOwner) revert ERC721__TransferCallerNotOwnerNorApproved(msg.sender);
        if (to == address(0)) revert ERC721__TransferToZeroAddress();

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

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

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        delete getApproved[tokenId];

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (msg.sender == from ||
                getApproved[tokenId] == msg.sender) ||
                isApprovedForAll[from][msg.sender];

            if (!isApprovedOrOwner) revert ERC721__TransferCallerNotOwnerNorApproved(msg.sender);
        }

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        delete getApproved[tokenId];

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

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

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        getApproved[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
interface ERC721TokenReceiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 id,
        bytes calldata data
    ) external returns (bytes4);
}

File 3 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 4 of 4 : 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
{
  "remappings": [
    "ERC721K/=lib/ERC721K/src/",
    "ds-test/=lib/ds-test/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"ERC721__ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ERC721__ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ERC721__ApproveToCaller","type":"error"},{"inputs":[],"name":"ERC721__BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ERC721__MintToZeroAddress","type":"error"},{"inputs":[],"name":"ERC721__MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721__OwnerQueryForNonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"ERC721__TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721__TransferFromIncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721__TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"ERC721__TransferToZeroAddress","type":"error"},{"inputs":[],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"FailedTransfer","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"OutsideSalePeriod","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"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":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintHead","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":"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":[],"name":"saleConfig","outputs":[{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint32","name":"maxSupply","type":"uint32"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"}],"stateMutability":"view","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":"_baseUri","type":"string"}],"name":"setBaseUri","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":[{"internalType":"uint32","name":"_endTime","type":"uint32"}],"name":"updateEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_maxSupply","type":"uint32"}],"name":"updateMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_startTime","type":"uint32"}],"name":"updateStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600160025560e0604052603560808181529062001af660a03980516200002e91600a9160209091019062000165565b50600b80546001600160a01b0319167314e444b02b8fccb7e1afd3edd9f64727a65a2b0e1790553480156200006257600080fd5b50604080518082018252600a8152696865647354415045203960b01b60208083019182528351808501909452600384526248543960e81b908401528151919291620000b09160009162000165565b508051620000c690600190602084019062000165565b505050620000e3620000dd6200010f60201b60201c565b62000113565b600980546001600160a01b03191673635d7830635c26a1000003e8016345785d8a000017905562000248565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000173906200020b565b90600052602060002090601f016020900481019282620001975760008555620001e2565b82601f10620001b257805160ff1916838001178555620001e2565b82800160010185558215620001e2579182015b82811115620001e2578251825591602001919060010190620001c5565b50620001f0929150620001f4565b5090565b5b80821115620001f05760008155600101620001f5565b600181811c908216806200022057607f821691505b602082108114156200024257634e487b7160e01b600052602260045260246000fd5b50919050565b61189e80620002586000396000f3fe60806040526004361061014b5760003560e01c80638198c4c3116100b6578063aa2889f01161006f578063aa2889f014610417578063b88d4fde1461042a578063c87b56dd1461044a578063e6687ca71461046a578063e985e9c51461048a578063f2fde38b146104c557600080fd5b80638198c4c3146103085780638da5cb5b1461032857806390aa0b0f1461034657806395d89b41146103c2578063a0bcfc7f146103d7578063a22cb465146103f757600080fd5b80633ccfd60b116101085780633ccfd60b1461025e57806342842e0e146102735780636352211e1461029357806370a08231146102b3578063715018a6146102d357806380915df2146102e857600080fd5b806301ffc9a71461015057806306fdde0314610185578063081812fc146101a7578063095ea7b3146101f557806318160ddd1461021757806323b872dd1461023e575b600080fd5b34801561015c57600080fd5b5061017061016b366004611407565b6104e5565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5061019a610537565b60405161017c9190611478565b3480156101b357600080fd5b506101dd6101c236600461148b565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b34801561020157600080fd5b506102156102103660046114c0565b6105c5565b005b34801561022357600080fd5b5060035460025403600019015b60405190815260200161017c565b34801561024a57600080fd5b506102156102593660046114ea565b610677565b34801561026a57600080fd5b50610215610682565b34801561027f57600080fd5b5061021561028e3660046114ea565b610723565b34801561029f57600080fd5b506101dd6102ae36600461148b565b61073e565b3480156102bf57600080fd5b506102306102ce366004611526565b610750565b3480156102df57600080fd5b5061021561079f565b3480156102f457600080fd5b50610215610303366004611541565b6107d5565b34801561031457600080fd5b50610215610323366004611541565b610825565b34801561033457600080fd5b506008546001600160a01b03166101dd565b34801561035257600080fd5b5060095461038b9067ffffffffffffffff81169063ffffffff600160401b8204811691600160601b8104821691600160801b9091041684565b6040805167ffffffffffffffff909516855263ffffffff93841660208601529183169184019190915216606082015260800161017c565b3480156103ce57600080fd5b5061019a610875565b3480156103e357600080fd5b506102156103f2366004611567565b610882565b34801561040357600080fd5b506102156104123660046115d9565b6108b8565b61021561042536600461148b565b61094e565b34801561043657600080fd5b5061021561044536600461162b565b610a3f565b34801561045657600080fd5b5061019a61046536600461148b565b610b11565b34801561047657600080fd5b50610215610485366004611541565b610bdd565b34801561049657600080fd5b506101706104a5366004611707565b600760209081526000928352604080842090915290825290205460ff1681565b3480156104d157600080fd5b506102156104e0366004611526565b610c32565b60006301ffc9a760e01b6001600160e01b03198316148061051657506380ac58cd60e01b6001600160e01b03198316145b806105315750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546105449061173a565b80601f01602080910402602001604051908101604052809291908181526020018280546105709061173a565b80156105bd5780601f10610592576101008083540402835291602001916105bd565b820191906000526020600020905b8154815290600101906020018083116105a057829003601f168201915b505050505081565b60006105d08261073e565b9050806001600160a01b0316836001600160a01b0316141561060557604051634be9270b60e01b815260040160405180910390fd5b336001600160a01b0382161480159061064257506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b1561066757604051636663333f60e11b81523360048201526024015b60405180910390fd5b610672838383610cca565b505050565b610672838383610d26565b6008546001600160a01b031633146106ac5760405162461bcd60e51b815260040161065e90611775565b600b546040516000916001600160a01b03169047908381818185875af1925050503d80600081146106f9576040519150601f19603f3d011682016040523d82523d6000602084013e6106fe565b606091505b50509050806107205760405163bfa871c560e01b815260040160405180910390fd5b50565b61067283838360405180602001604052806000815250610a3f565b600061074982610f64565b5192915050565b60006001600160a01b03821661077957604051636c31fa5360e11b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146107c95760405162461bcd60e51b815260040161065e90611775565b6107d3600061108e565b565b6008546001600160a01b031633146107ff5760405162461bcd60e51b815260040161065e90611775565b6009805463ffffffff909216600160601b0263ffffffff60601b19909216919091179055565b6008546001600160a01b0316331461084f5760405162461bcd60e51b815260040161065e90611775565b6009805463ffffffff909216600160801b0263ffffffff60801b19909216919091179055565b600180546105449061173a565b6008546001600160a01b031633146108ac5760405162461bcd60e51b815260040161065e90611775565b610672600a8383611358565b6001600160a01b0382163314156108e25760405163134efed760e31b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6040805160808101825260095467ffffffffffffffff811680835263ffffffff600160401b8304811660208501819052600160601b84048216958501869052600160801b909304166060840181905292939092346109ac85886117c0565b146109ca5760405163356680b760e01b815260040160405180910390fd5b6109d58360016117df565b866002546109e391906117df565b1115610a025760405163c30436e960e01b815260040160405180910390fd5b81421080610a0f57508042115b15610a2d57604051632e98bb4f60e01b815260040160405180910390fd5b610a3733876110e0565b505050505050565b610a4a848484610d26565b6001600160a01b0383163b15801590610ae25750604051630a85bd0160e11b808252906001600160a01b0385169063150b7a0290610a929033908990889088906004016117f7565b6020604051808303816000875af1158015610ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad59190611834565b6001600160e01b03191614155b15610b0b576040516324ac878f60e01b81526001600160a01b038416600482015260240161065e565b50505050565b6060811580610b2d57506001600254610b2a9190611851565b82115b15610b4b57604051630a14c4b560e41b815260040160405180910390fd5b600a8054610b589061173a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b849061173a565b8015610bd15780601f10610ba657610100808354040283529160200191610bd1565b820191906000526020600020905b815481529060010190602001808311610bb457829003601f168201915b50505050509050919050565b6008546001600160a01b03163314610c075760405162461bcd60e51b815260040161065e90611775565b6009805463ffffffff909216600160401b026bffffffff000000000000000019909216919091179055565b6008546001600160a01b03163314610c5c5760405162461bcd60e51b815260040161065e90611775565b6001600160a01b038116610cc15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161065e565b6107208161108e565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d3182610f64565b9050836001600160a01b031681600001516001600160a01b031614610d7f5780516040516306a0c65b60e21b81526001600160a01b038087166004830152909116602482015260440161065e565b6000336001600160a01b0386161480610dae57506000838152600660205260409020546001600160a01b031633145b80610ddc57506001600160a01b038516600090815260076020908152604080832033845290915290205460ff165b905080610dfe5760405163857cab9f60e01b815233600482015260240161065e565b6001600160a01b038416610e2557604051634f19f1b760e11b815260040160405180910390fd5b610e3160008487610cca565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116610f07576002548214610f07578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505060008381526006602052604080822080546001600160a01b03191690555184916001600160a01b0387811692908916917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a45050505050565b6040805160608101825260008082526020820181905291810191909152818015801590610f92575060025481105b1561107257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906110705780516001600160a01b031615611006579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff161515928101929092521561106b579392505050565b611006565b505b6040516380004ec960e01b81526004810184905260240161065e565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6110fa8282604051806020016040528060008152506110fe565b5050565b61067283838360016002546001600160a01b03851661113057604051636dc482b360e01b815260040160405180910390fd5b8361114e5760405163b5c4c3a760e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156111fb57506001600160a01b0387163b15155b15611307575b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561120157604051630a85bd0160e11b808252906001600160a01b0389169063150b7a029061127e9033906000906000198801908c906004016117f7565b6020604051808303816000875af115801561129d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c19190611834565b6001600160e01b031916146112f4576040516324ac878f60e01b81526001600160a01b038816600482015260240161065e565b826002541461130257600080fd5b61134d565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415611308575b506002555050505050565b8280546113649061173a565b90600052602060002090601f01602090048101928261138657600085556113cc565b82601f1061139f5782800160ff198235161785556113cc565b828001600101855582156113cc579182015b828111156113cc5782358255916020019190600101906113b1565b506113d89291506113dc565b5090565b5b808211156113d857600081556001016113dd565b6001600160e01b03198116811461072057600080fd5b60006020828403121561141957600080fd5b8135611424816113f1565b9392505050565b6000815180845260005b8181101561145157602081850181015186830182015201611435565b81811115611463576000602083870101525b50601f01601f19169290920160200192915050565b602081526000611424602083018461142b565b60006020828403121561149d57600080fd5b5035919050565b80356001600160a01b03811681146114bb57600080fd5b919050565b600080604083850312156114d357600080fd5b6114dc836114a4565b946020939093013593505050565b6000806000606084860312156114ff57600080fd5b611508846114a4565b9250611516602085016114a4565b9150604084013590509250925092565b60006020828403121561153857600080fd5b611424826114a4565b60006020828403121561155357600080fd5b813563ffffffff8116811461142457600080fd5b6000806020838503121561157a57600080fd5b823567ffffffffffffffff8082111561159257600080fd5b818501915085601f8301126115a657600080fd5b8135818111156115b557600080fd5b8660208285010111156115c757600080fd5b60209290920196919550909350505050565b600080604083850312156115ec57600080fd5b6115f5836114a4565b91506020830135801515811461160a57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561164157600080fd5b61164a856114a4565b9350611658602086016114a4565b925060408501359150606085013567ffffffffffffffff8082111561167c57600080fd5b818701915087601f83011261169057600080fd5b8135818111156116a2576116a2611615565b604051601f8201601f19908116603f011681019083821181831017156116ca576116ca611615565b816040528281528a60208487010111156116e357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561171a57600080fd5b611723836114a4565b9150611731602084016114a4565b90509250929050565b600181811c9082168061174e57607f821691505b6020821081141561176f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156117da576117da6117aa565b500290565b600082198211156117f2576117f26117aa565b500190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061182a9083018461142b565b9695505050505050565b60006020828403121561184657600080fd5b8151611424816113f1565b600082821015611863576118636117aa565b50039056fea2646970667358221220e6867dc75e0c447836f8f2a30d7479af8f71772e91bb5dc5ec53fc0622c7e49664736f6c634300080a0033697066733a2f2f516d596a6e435071707761507157577078705478776a51443639533361505a487568734c35705942656838573359

Deployed Bytecode

0x60806040526004361061014b5760003560e01c80638198c4c3116100b6578063aa2889f01161006f578063aa2889f014610417578063b88d4fde1461042a578063c87b56dd1461044a578063e6687ca71461046a578063e985e9c51461048a578063f2fde38b146104c557600080fd5b80638198c4c3146103085780638da5cb5b1461032857806390aa0b0f1461034657806395d89b41146103c2578063a0bcfc7f146103d7578063a22cb465146103f757600080fd5b80633ccfd60b116101085780633ccfd60b1461025e57806342842e0e146102735780636352211e1461029357806370a08231146102b3578063715018a6146102d357806380915df2146102e857600080fd5b806301ffc9a71461015057806306fdde0314610185578063081812fc146101a7578063095ea7b3146101f557806318160ddd1461021757806323b872dd1461023e575b600080fd5b34801561015c57600080fd5b5061017061016b366004611407565b6104e5565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5061019a610537565b60405161017c9190611478565b3480156101b357600080fd5b506101dd6101c236600461148b565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b34801561020157600080fd5b506102156102103660046114c0565b6105c5565b005b34801561022357600080fd5b5060035460025403600019015b60405190815260200161017c565b34801561024a57600080fd5b506102156102593660046114ea565b610677565b34801561026a57600080fd5b50610215610682565b34801561027f57600080fd5b5061021561028e3660046114ea565b610723565b34801561029f57600080fd5b506101dd6102ae36600461148b565b61073e565b3480156102bf57600080fd5b506102306102ce366004611526565b610750565b3480156102df57600080fd5b5061021561079f565b3480156102f457600080fd5b50610215610303366004611541565b6107d5565b34801561031457600080fd5b50610215610323366004611541565b610825565b34801561033457600080fd5b506008546001600160a01b03166101dd565b34801561035257600080fd5b5060095461038b9067ffffffffffffffff81169063ffffffff600160401b8204811691600160601b8104821691600160801b9091041684565b6040805167ffffffffffffffff909516855263ffffffff93841660208601529183169184019190915216606082015260800161017c565b3480156103ce57600080fd5b5061019a610875565b3480156103e357600080fd5b506102156103f2366004611567565b610882565b34801561040357600080fd5b506102156104123660046115d9565b6108b8565b61021561042536600461148b565b61094e565b34801561043657600080fd5b5061021561044536600461162b565b610a3f565b34801561045657600080fd5b5061019a61046536600461148b565b610b11565b34801561047657600080fd5b50610215610485366004611541565b610bdd565b34801561049657600080fd5b506101706104a5366004611707565b600760209081526000928352604080842090915290825290205460ff1681565b3480156104d157600080fd5b506102156104e0366004611526565b610c32565b60006301ffc9a760e01b6001600160e01b03198316148061051657506380ac58cd60e01b6001600160e01b03198316145b806105315750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546105449061173a565b80601f01602080910402602001604051908101604052809291908181526020018280546105709061173a565b80156105bd5780601f10610592576101008083540402835291602001916105bd565b820191906000526020600020905b8154815290600101906020018083116105a057829003601f168201915b505050505081565b60006105d08261073e565b9050806001600160a01b0316836001600160a01b0316141561060557604051634be9270b60e01b815260040160405180910390fd5b336001600160a01b0382161480159061064257506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b1561066757604051636663333f60e11b81523360048201526024015b60405180910390fd5b610672838383610cca565b505050565b610672838383610d26565b6008546001600160a01b031633146106ac5760405162461bcd60e51b815260040161065e90611775565b600b546040516000916001600160a01b03169047908381818185875af1925050503d80600081146106f9576040519150601f19603f3d011682016040523d82523d6000602084013e6106fe565b606091505b50509050806107205760405163bfa871c560e01b815260040160405180910390fd5b50565b61067283838360405180602001604052806000815250610a3f565b600061074982610f64565b5192915050565b60006001600160a01b03821661077957604051636c31fa5360e11b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146107c95760405162461bcd60e51b815260040161065e90611775565b6107d3600061108e565b565b6008546001600160a01b031633146107ff5760405162461bcd60e51b815260040161065e90611775565b6009805463ffffffff909216600160601b0263ffffffff60601b19909216919091179055565b6008546001600160a01b0316331461084f5760405162461bcd60e51b815260040161065e90611775565b6009805463ffffffff909216600160801b0263ffffffff60801b19909216919091179055565b600180546105449061173a565b6008546001600160a01b031633146108ac5760405162461bcd60e51b815260040161065e90611775565b610672600a8383611358565b6001600160a01b0382163314156108e25760405163134efed760e31b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6040805160808101825260095467ffffffffffffffff811680835263ffffffff600160401b8304811660208501819052600160601b84048216958501869052600160801b909304166060840181905292939092346109ac85886117c0565b146109ca5760405163356680b760e01b815260040160405180910390fd5b6109d58360016117df565b866002546109e391906117df565b1115610a025760405163c30436e960e01b815260040160405180910390fd5b81421080610a0f57508042115b15610a2d57604051632e98bb4f60e01b815260040160405180910390fd5b610a3733876110e0565b505050505050565b610a4a848484610d26565b6001600160a01b0383163b15801590610ae25750604051630a85bd0160e11b808252906001600160a01b0385169063150b7a0290610a929033908990889088906004016117f7565b6020604051808303816000875af1158015610ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad59190611834565b6001600160e01b03191614155b15610b0b576040516324ac878f60e01b81526001600160a01b038416600482015260240161065e565b50505050565b6060811580610b2d57506001600254610b2a9190611851565b82115b15610b4b57604051630a14c4b560e41b815260040160405180910390fd5b600a8054610b589061173a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b849061173a565b8015610bd15780601f10610ba657610100808354040283529160200191610bd1565b820191906000526020600020905b815481529060010190602001808311610bb457829003601f168201915b50505050509050919050565b6008546001600160a01b03163314610c075760405162461bcd60e51b815260040161065e90611775565b6009805463ffffffff909216600160401b026bffffffff000000000000000019909216919091179055565b6008546001600160a01b03163314610c5c5760405162461bcd60e51b815260040161065e90611775565b6001600160a01b038116610cc15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161065e565b6107208161108e565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d3182610f64565b9050836001600160a01b031681600001516001600160a01b031614610d7f5780516040516306a0c65b60e21b81526001600160a01b038087166004830152909116602482015260440161065e565b6000336001600160a01b0386161480610dae57506000838152600660205260409020546001600160a01b031633145b80610ddc57506001600160a01b038516600090815260076020908152604080832033845290915290205460ff165b905080610dfe5760405163857cab9f60e01b815233600482015260240161065e565b6001600160a01b038416610e2557604051634f19f1b760e11b815260040160405180910390fd5b610e3160008487610cca565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116610f07576002548214610f07578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505060008381526006602052604080822080546001600160a01b03191690555184916001600160a01b0387811692908916917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a45050505050565b6040805160608101825260008082526020820181905291810191909152818015801590610f92575060025481105b1561107257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906110705780516001600160a01b031615611006579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff161515928101929092521561106b579392505050565b611006565b505b6040516380004ec960e01b81526004810184905260240161065e565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6110fa8282604051806020016040528060008152506110fe565b5050565b61067283838360016002546001600160a01b03851661113057604051636dc482b360e01b815260040160405180910390fd5b8361114e5760405163b5c4c3a760e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156111fb57506001600160a01b0387163b15155b15611307575b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561120157604051630a85bd0160e11b808252906001600160a01b0389169063150b7a029061127e9033906000906000198801908c906004016117f7565b6020604051808303816000875af115801561129d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c19190611834565b6001600160e01b031916146112f4576040516324ac878f60e01b81526001600160a01b038816600482015260240161065e565b826002541461130257600080fd5b61134d565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415611308575b506002555050505050565b8280546113649061173a565b90600052602060002090601f01602090048101928261138657600085556113cc565b82601f1061139f5782800160ff198235161785556113cc565b828001600101855582156113cc579182015b828111156113cc5782358255916020019190600101906113b1565b506113d89291506113dc565b5090565b5b808211156113d857600081556001016113dd565b6001600160e01b03198116811461072057600080fd5b60006020828403121561141957600080fd5b8135611424816113f1565b9392505050565b6000815180845260005b8181101561145157602081850181015186830182015201611435565b81811115611463576000602083870101525b50601f01601f19169290920160200192915050565b602081526000611424602083018461142b565b60006020828403121561149d57600080fd5b5035919050565b80356001600160a01b03811681146114bb57600080fd5b919050565b600080604083850312156114d357600080fd5b6114dc836114a4565b946020939093013593505050565b6000806000606084860312156114ff57600080fd5b611508846114a4565b9250611516602085016114a4565b9150604084013590509250925092565b60006020828403121561153857600080fd5b611424826114a4565b60006020828403121561155357600080fd5b813563ffffffff8116811461142457600080fd5b6000806020838503121561157a57600080fd5b823567ffffffffffffffff8082111561159257600080fd5b818501915085601f8301126115a657600080fd5b8135818111156115b557600080fd5b8660208285010111156115c757600080fd5b60209290920196919550909350505050565b600080604083850312156115ec57600080fd5b6115f5836114a4565b91506020830135801515811461160a57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561164157600080fd5b61164a856114a4565b9350611658602086016114a4565b925060408501359150606085013567ffffffffffffffff8082111561167c57600080fd5b818701915087601f83011261169057600080fd5b8135818111156116a2576116a2611615565b604051601f8201601f19908116603f011681019083821181831017156116ca576116ca611615565b816040528281528a60208487010111156116e357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561171a57600080fd5b611723836114a4565b9150611731602084016114a4565b90509250929050565b600181811c9082168061174e57607f821691505b6020821081141561176f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156117da576117da6117aa565b500290565b600082198211156117f2576117f26117aa565b500190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061182a9083018461142b565b9695505050505050565b60006020828403121561184657600080fd5b8151611424816113f1565b600082821015611863576118636117aa565b50039056fea2646970667358221220e6867dc75e0c447836f8f2a30d7479af8f71772e91bb5dc5ec53fc0622c7e49664736f6c634300080a0033

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

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