Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 117 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 16076236 | 676 days ago | IN | 0.08 ETH | 0.00280204 | ||||
Mint | 16069114 | 677 days ago | IN | 0.08 ETH | 0.00674002 | ||||
Mint | 16068830 | 677 days ago | IN | 0.08 ETH | 0.00227362 | ||||
Mint | 16066156 | 678 days ago | IN | 0.08 ETH | 0.00190505 | ||||
Mint | 16064796 | 678 days ago | IN | 0.08 ETH | 0.00203255 | ||||
Mint | 16062755 | 678 days ago | IN | 0.08 ETH | 0.00193641 | ||||
Mint | 16061581 | 678 days ago | IN | 0.08 ETH | 0.00132747 | ||||
Mint | 16061076 | 678 days ago | IN | 0.08 ETH | 0.00132392 | ||||
Mint | 16055922 | 679 days ago | IN | 0.08 ETH | 0.00158728 | ||||
Mint | 16055430 | 679 days ago | IN | 0.08 ETH | 0.00151599 | ||||
Mint | 16055070 | 679 days ago | IN | 0.08 ETH | 0.00189551 | ||||
Mint | 16054722 | 679 days ago | IN | 0.08 ETH | 0.00136368 | ||||
Mint | 16054452 | 679 days ago | IN | 0.08 ETH | 0.00186237 | ||||
Mint | 16053097 | 680 days ago | IN | 0.08 ETH | 0.00187233 | ||||
Mint | 16052225 | 680 days ago | IN | 0.08 ETH | 0.00131328 | ||||
Mint | 16051638 | 680 days ago | IN | 0.08 ETH | 0.00103371 | ||||
Mint | 16051604 | 680 days ago | IN | 0.08 ETH | 0.00131087 | ||||
Mint | 16051034 | 680 days ago | IN | 0.08 ETH | 0.00146516 | ||||
Mint | 16050606 | 680 days ago | IN | 0.08 ETH | 0.00136644 | ||||
Mint | 16049560 | 680 days ago | IN | 0.08 ETH | 0.00197489 | ||||
Mint | 16049429 | 680 days ago | IN | 0.08 ETH | 0.00148179 | ||||
Mint | 16049394 | 680 days ago | IN | 0.08 ETH | 0.00147859 | ||||
Mint | 16049196 | 680 days ago | IN | 0.08 ETH | 0.00139943 | ||||
Mint | 16049098 | 680 days ago | IN | 0.08 ETH | 0.00109305 | ||||
Mint | 16049095 | 680 days ago | IN | 0.08 ETH | 0.00151757 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
16076236 | 676 days ago | 0.08 ETH | ||||
16069114 | 677 days ago | 0.08 ETH | ||||
16068830 | 677 days ago | 0.08 ETH | ||||
16066156 | 678 days ago | 0.08 ETH | ||||
16064796 | 678 days ago | 0.08 ETH | ||||
16062755 | 678 days ago | 0.08 ETH | ||||
16061581 | 678 days ago | 0.08 ETH | ||||
16061076 | 678 days ago | 0.08 ETH | ||||
16055922 | 679 days ago | 0.08 ETH | ||||
16055430 | 679 days ago | 0.08 ETH | ||||
16055070 | 679 days ago | 0.08 ETH | ||||
16054722 | 679 days ago | 0.08 ETH | ||||
16054452 | 679 days ago | 0.08 ETH | ||||
16053097 | 680 days ago | 0.08 ETH | ||||
16052225 | 680 days ago | 0.08 ETH | ||||
16051638 | 680 days ago | 0.08 ETH | ||||
16051604 | 680 days ago | 0.08 ETH | ||||
16051034 | 680 days ago | 0.08 ETH | ||||
16050606 | 680 days ago | 0.08 ETH | ||||
16049560 | 680 days ago | 0.08 ETH | ||||
16049429 | 680 days ago | 0.08 ETH | ||||
16049394 | 680 days ago | 0.08 ETH | ||||
16049196 | 680 days ago | 0.08 ETH | ||||
16049098 | 680 days ago | 0.08 ETH | ||||
16049095 | 680 days ago | 0.08 ETH |
Loading...
Loading
Contract Name:
NFThSale
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-11-22 */ pragma solidity 0.8.17; // ERC721A Contracts v4.2.3 // Creator: Chiru Labs // ERC721A Contracts v4.2.3 // Creator: Chiru Labs /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @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 payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) { revert OperatorNotAllowed(msg.sender); } } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } _; } } /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} } contract NFTh is ERC721A, DefaultOperatorFilterer { string public baseURI; bool public isRevealed; address public owner; address public minter; event AddressChanged(bytes32 parameter, address val); event URIChanged(string Uri, bool isRevealed); constructor( string memory name_, string memory symbol_, string memory baseURI_, address owner_, address minter_ ) ERC721A( name_, symbol_ ) { require(owner_ != address(0), "invalid owner"); require(minter_ != address(0), "invalid minter"); baseURI = baseURI_; owner = owner_; minter = minter_; } /** * @notice Returns the Uniform Resource Identifier (URI) for `tokenId` token. * @param tokenId Id of the token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "unexistent"); return isRevealed ? string(abi.encodePacked(baseURI, _toString(tokenId))) : baseURI; } // Privileged calls (all calls below can be performed only either by the owner or minter) /** * @notice Mint logic. Can only be called by the minter. * @param to Address of receiver of the minted tokens. * @param amount amount to be minted. */ function mint(address to, uint256 amount) external virtual { require(msg.sender == minter, "not authed"); require(!isRevealed, "minting disabled after revelation"); _mint(to, amount); } /** * @notice URI management logic. Can only be called by the owner. isRevealed can only be set to true once and dever returned to false * @param uri New URI of the token. * @param revealed Set the revealed value. Once set to true it cannot be set back to false. */ function setURI(string calldata uri, bool revealed) external { require(msg.sender == owner, "not authed"); baseURI = uri; if (!isRevealed) isRevealed = revealed; // cannot unreveal emit URIChanged(uri, revealed); } /** * @notice change addresses of minter or owner. Can only be called by the owner. * @param parameter name of the var being edited. * @param val new address being set. */ function set(bytes32 parameter, address val) external { require(msg.sender == owner, "not authed"); if (parameter == "owner") owner = val; else if (parameter == "minter") minter = val; emit AddressChanged(parameter, val); } /** * @notice Next funcitons implement the DefaultOperatorFilterer, which automatically registers the * token and subscribes it to OpenSea's curated filters. * Adding the onlyAllowedOperator modifier to the transferFrom and both safeTransferFrom methods ensures that * the msg.sender (operator) is allowed by the OperatorFilterRegistry. Adding the onlyAllowedOperatorApproval * modifier to the approval methods ensures that owners do not approve operators that are not allowed. */ function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } } /// @notice Gas optimized merkle proof verification library. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/MerkleProofLib.sol) /// @author Modified from Solady (https://github.com/Vectorized/solady/blob/main/src/utils/MerkleProofLib.sol) library MerkleProofLib { function verify( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool isValid) { assembly { if proof.length { // Left shifting by 5 is like multiplying by 32. let end := add(proof.offset, shl(5, proof.length)) // Initialize offset to the offset of the proof in calldata. let offset := proof.offset // Iterate over proof elements to compute root hash. // prettier-ignore for {} 1 {} { // Slot where the leaf should be put in scratch space. If // leaf > calldataload(offset): slot 32, otherwise: slot 0. let leafSlot := shl(5, gt(leaf, calldataload(offset))) // Store elements to hash contiguously in scratch space. // The xor puts calldataload(offset) in whichever slot leaf // is not occupying, so 0 if leafSlot is 32, and 32 otherwise. mstore(leafSlot, leaf) mstore(xor(leafSlot, 32), calldataload(offset)) // Reuse leaf to store the hash to reduce stack operations. leaf := keccak256(0, 64) // Hash both slots of scratch space. offset := add(offset, 32) // Shift 1 word per cycle. // prettier-ignore if iszero(lt(offset, end)) { break } } } isValid := eq(leaf, root) // The proof is valid if the roots match. } } } /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnerUpdated(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnerUpdated(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function setOwner(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnerUpdated(msg.sender, newOwner); } } contract NFThSale is Owned { // Address of the NFT NFTh immutable public nfth; // Address of the treasury. ETH received by the sale contract is immediately moved address payable immutable public treasury = payable(0xb020017458f92d8B301905587bb40C86571FE149); // Mint limit per address uint256 constant public perAddressLimit = 20; // Mint supply cap uint256 constant public supplyCap = 1100; // Amount minted per address mapping (address => uint256) minted; // Landmarks (start of each phase and end of sale) uint256[4] public landmarks = [1669042800, 1669215600, 1669388400, 1669734000]; // [start phase 1, phase 2, phase 3, ..., end] // Prices for each phase uint256[3] public prices = [.05 ether, .065 ether, .08 ether]; // [phase 1, phase 2, ... phase n] // Merkle roots for each whitelisted phase (whitelisted phases need to be before non-whitelisted) bytes32[2] public merkleRoots = [bytes32(0xa22d5ee516d0f5afaa49bd5904bb62fb8520f6be73a270176f3207a1066f502e), 0xa22d5ee516d0f5afaa49bd5904bb62fb8520f6be73a270176f3207a1066f502e]; // // [phase 1, phase 2, ... phase n] // true if airdrop already happened bool public airdropped; constructor(address nftAddress) Owned(0x714FEd1D6324Fc2CAadA9C0F759b6FEb4a0C3E13) { nfth = NFTh(nftAddress); } /** * @notice Returns the Uniform Resource Identifier (URI) for `tokenId` token. * @dev Make sure to send exact values (price * quanity), change is not sent back to msg.sender. * @param merkleProof Merkle proof, only necessary if buying from whitelisted phases. * @param to Receiver of the tokens. */ function mint(bytes32[] calldata merkleProof, address to) public payable { require(to != address(0), "invalid destination"); uint p = phase(); // reverts if not started uint quantity = msg.value / prices[p]; require(quantity > 0, "invalid quantity"); // check whitelist if phase has a whitelist if (p < merkleRoots.length) { require(MerkleProofLib.verify(merkleProof, merkleRoots[p], bytes32(uint256(uint160(to)))) == true, "invalid merkle proof"); } // check mint amount per user require(minted[to] + quantity <= perAddressLimit, "minting over per address limit"); minted[to] += quantity; // check mint cap require(nfth.totalSupply() + quantity <= supplyCap, "minting over supply cap"); // process payment treasury.call{value: address(this).balance}(""); // mint nfth.mint(to, quantity); } /** * @notice Returns (index of) phase of sale, reverts if not yet started or ended. */ function phase() public view returns (uint256) { uint last = landmarks.length - 1; require(block.timestamp >= landmarks[0], "sale not started"); require(block.timestamp <= landmarks[last], "sale ended"); for (uint i = last; i > 0; i--) if (block.timestamp >= landmarks[i]) return i; return 0; } /** * @notice Will send NFTs back when receiving ether. */ receive() external payable { this.mint{value: msg.value}(new bytes32[](0), msg.sender); } /** * @notice Edits merkle roots */ function _editMerkleRoots(uint256 index, bytes32 value) external onlyOwner { merkleRoots[index] = value; } /** * @notice Edit uint parameters */ function _editUintParams(bytes32 param, uint256 index, uint256 value) external onlyOwner { if (param == "landmarks") landmarks[index] = value; else if (param == "prices") prices[index] = value; else revert("invalid param"); } /** * @notice Admin manual mint */ function _manualMint(address to, uint256 amount) external onlyOwner { nfth.mint(to, amount); } function airdrop() external { require(!airdropped, "already airdropped"); airdropped = true; nfth.mint(0x3Dc81B76Bcb3B409e37DF8EF6d1003FE532c045C, 1); nfth.mint(0x18A975E38d11748D7e23E6F2119Cb16e38Dc90BA, 1); nfth.mint(0xfd30Ea87cF65EE31ac66fD7e062F624448e1a02F, 1); nfth.mint(0x15396B5f1B9C33bd46A842575FcBADD4082763a0, 1); nfth.mint(0x6B282b12F3521f82e8665a830b83d5cc2eca3196, 1); nfth.mint(0xE94bAf2C39e1cfC85007A8b91eBdB1Ee949a5f9f, 1); nfth.mint(0xFf078e3915136C373C4B5646F15b204713d91328, 1); nfth.mint(0x53aDf53122317c4a8098846d851122d59e3cC909, 1); nfth.mint(0xF2c525a1a48b09206De321160Fb097Ff62938fBB, 1); nfth.mint(0x2fA1eD9C03cdB9389b976D9059d720399ef9f814, 3); nfth.mint(0x51DFCA1CB4eac9F9207Fb8AB43E96Ff5B99Ff24F, 2); nfth.mint(0x2eD8b5c81da55558F07B68E35865b03Ec40D9019, 1); nfth.mint(0x6E448fa3421f7f62b7006f1bC5f6A684cbc96480, 1); nfth.mint(0xE9F239EDfd8ED42953462067873f8F98946EFb89, 1); nfth.mint(0x545ad63fCd9911BA0CA65f0Df2EEfC1b3BA6A107, 1); // michelagalvao.eth nfth.mint(0xF85C860fe3d4d63F8CfD9214862a476203eFfDc3, 1); // iarathamires.eth nfth.mint(0x0b3bD2B54Af505fB2F42A0091d047a852BBaD157, 1); // giovanasimao.eth nfth.mint(0xd15e0c3E56B5bA0cA9edd45011d790d541afBe90, 1); nfth.mint(0xCBCB16edA4ea78cc8E15994e58c520Af79d0A603, 81); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bytes32","name":"value","type":"bytes32"}],"name":"_editMerkleRoots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"param","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"_editUintParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"_manualMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdropped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"landmarks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"merkleRoots","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"nfth","outputs":[{"internalType":"contract NFTh","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"perAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"prices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
73b020017458f92d8b301905587bb40c86571fe14960a05261014060405263637b927060c090815263637e357060e052636380d870610100526363861e7061012052620000519060029060046200016f565b506040805160608101825266b1a2bc2ec50000815266e6ed27d6668000602082015267011c37937e0800009181019190915262000093906006906003620001ba565b50604080518082019091527fa22d5ee516d0f5afaa49bd5904bb62fb8520f6be73a270176f3207a1066f502e8082526020820152620000d7906009906002620001f6565b50348015620000e557600080fd5b5060405162001c1e38038062001c1e83398101604081905262000108916200023e565b600080546001600160a01b03191673714fed1d6324fc2caada9c0f759b6feb4a0c3e139081178255604051909182917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a3506001600160a01b031660805262000270565b8260048101928215620001a8579160200282015b82811115620001a8578251829063ffffffff1690559160200191906001019062000183565b50620001b692915062000227565b5090565b8260038101928215620001a8579160200282015b82811115620001a857825182906001600160401b0316905591602001919060010190620001ce565b8260028101928215620001a8579160200282015b82811115620001a85782518255916020019190600101906200020a565b5b80821115620001b6576000815560010162000228565b6000602082840312156200025157600080fd5b81516001600160a01b03811681146200026957600080fd5b9392505050565b60805160a0516118e76200033760003960008181610288015261130e0152600081816101c40152818161048c0152818161051c015281816105b101528181610646015281816106db01528181610770015281816108050152818161089a0152818161092f015281816109c401528181610a5901528181610aee01528181610b8301528181610c1801528181610cad01528181610d4201528181610dd701528181610e6c01528181610f010152818161122901528181611388015261157a01526118e76000f3fe6080604052600436106100f75760003560e01c806371c5ecb11161008a578063b1c9fe6e11610059578063b1c9fe6e14610313578063b9fe44c114610328578063bc31c1c114610348578063bd07e0b61461036857600080fd5b806371c5ecb1146102aa57806383af342e146102ca5780638da5cb5b146102dd5780638f770ad0146102fd57600080fd5b80633884d635116100c65780633884d6351461022c578063454ad257146102415780636007eeed1461026157806361d027b31461027657600080fd5b806313af40351461016357806319cc02aa146101835780632c84095a146101b25780632d43573d146101fe57600080fd5b3661015e57604080516000815260208101918290526341d79a1760e11b90915230906383af342e90349061012f903360248201611621565b6000604051808303818588803b15801561014857600080fd5b505af115801561015c573d6000803e3d6000fd5b005b600080fd5b34801561016f57600080fd5b5061015c61017e366004611691565b610388565b34801561018f57600080fd5b50600b5461019d9060ff1681565b60405190151581526020015b60405180910390f35b3480156101be57600080fd5b506101e67f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101a9565b34801561020a57600080fd5b5061021e6102193660046116b3565b610406565b6040519081526020016101a9565b34801561023857600080fd5b5061015c61041d565b34801561024d57600080fd5b5061015c61025c3660046116cc565b610f83565b34801561026d57600080fd5b5061021e601481565b34801561028257600080fd5b506101e67f000000000000000000000000000000000000000000000000000000000000000081565b3480156102b657600080fd5b5061021e6102c53660046116b3565b611037565b61015c6102d83660046116f8565b611047565b3480156102e957600080fd5b506000546101e6906001600160a01b031681565b34801561030957600080fd5b5061021e61044c81565b34801561031f57600080fd5b5061021e6113f9565b34801561033457600080fd5b5061015c61034336600461177c565b6114e5565b34801561035457600080fd5b5061021e6103633660046116b3565b611529565b34801561037457600080fd5b5061015c61038336600461179e565b611539565b6000546001600160a01b031633146103bb5760405162461bcd60e51b81526004016103b2906117c8565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b6002816004811061041657600080fd5b0154905081565b600b5460ff16156104655760405162461bcd60e51b8152602060048201526012602482015271185b1c9958591e48185a5c991c9bdc1c195960721b60448201526064016103b2565b600b805460ff191660019081179091556040516340c10f1960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916340c10f19916104d591733dc81b76bcb3b409e37df8ef6d1003fe532c045c916004016117ee565b600060405180830381600087803b1580156104ef57600080fd5b505af1158015610503573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f19915061056a907318a975e38d11748d7e23e6f2119cb16e38dc90ba906001906004016117ee565b600060405180830381600087803b15801561058457600080fd5b505af1158015610598573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f1991506105ff9073fd30ea87cf65ee31ac66fd7e062f624448e1a02f906001906004016117ee565b600060405180830381600087803b15801561061957600080fd5b505af115801561062d573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f199150610694907315396b5f1b9c33bd46a842575fcbadd4082763a0906001906004016117ee565b600060405180830381600087803b1580156106ae57600080fd5b505af11580156106c2573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f19915061072990736b282b12f3521f82e8665a830b83d5cc2eca3196906001906004016117ee565b600060405180830381600087803b15801561074357600080fd5b505af1158015610757573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f1991506107be9073e94baf2c39e1cfc85007a8b91ebdb1ee949a5f9f906001906004016117ee565b600060405180830381600087803b1580156107d857600080fd5b505af11580156107ec573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f1991506108539073ff078e3915136c373c4b5646f15b204713d91328906001906004016117ee565b600060405180830381600087803b15801561086d57600080fd5b505af1158015610881573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f1991506108e8907353adf53122317c4a8098846d851122d59e3cc909906001906004016117ee565b600060405180830381600087803b15801561090257600080fd5b505af1158015610916573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f19915061097d9073f2c525a1a48b09206de321160fb097ff62938fbb906001906004016117ee565b600060405180830381600087803b15801561099757600080fd5b505af11580156109ab573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f199150610a1290732fa1ed9c03cdb9389b976d9059d720399ef9f814906003906004016117ee565b600060405180830381600087803b158015610a2c57600080fd5b505af1158015610a40573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f199150610aa7907351dfca1cb4eac9f9207fb8ab43e96ff5b99ff24f906002906004016117ee565b600060405180830381600087803b158015610ac157600080fd5b505af1158015610ad5573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f199150610b3c90732ed8b5c81da55558f07b68e35865b03ec40d9019906001906004016117ee565b600060405180830381600087803b158015610b5657600080fd5b505af1158015610b6a573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f199150610bd190736e448fa3421f7f62b7006f1bc5f6a684cbc96480906001906004016117ee565b600060405180830381600087803b158015610beb57600080fd5b505af1158015610bff573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f199150610c669073e9f239edfd8ed42953462067873f8f98946efb89906001906004016117ee565b600060405180830381600087803b158015610c8057600080fd5b505af1158015610c94573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f199150610cfb9073545ad63fcd9911ba0ca65f0df2eefc1b3ba6a107906001906004016117ee565b600060405180830381600087803b158015610d1557600080fd5b505af1158015610d29573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f199150610d909073f85c860fe3d4d63f8cfd9214862a476203effdc3906001906004016117ee565b600060405180830381600087803b158015610daa57600080fd5b505af1158015610dbe573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f199150610e2590730b3bd2b54af505fb2f42a0091d047a852bbad157906001906004016117ee565b600060405180830381600087803b158015610e3f57600080fd5b505af1158015610e53573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f199150610eba9073d15e0c3e56b5ba0ca9edd45011d790d541afbe90906001906004016117ee565b600060405180830381600087803b158015610ed457600080fd5b505af1158015610ee8573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506340c10f199150610f4f9073cbcb16eda4ea78cc8e15994e58c520af79d0a603906051906004016117ee565b600060405180830381600087803b158015610f6957600080fd5b505af1158015610f7d573d6000803e3d6000fd5b50505050565b6000546001600160a01b03163314610fad5760405162461bcd60e51b81526004016103b2906117c8565b82686c616e646d61726b7360b81b03610fdb578060028360048110610fd457610fd4611807565b0155505050565b826570726963657360d01b03610fff578060068360038110610fd457610fd4611807565b60405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420706172616d60981b60448201526064016103b2565b6009816002811061041657600080fd5b6001600160a01b0381166110935760405162461bcd60e51b815260206004820152601360248201527234b73b30b634b2103232b9ba34b730ba34b7b760691b60448201526064016103b2565b600061109d6113f9565b90506000600682600381106110b4576110b4611807565b01546110c09034611833565b9050600081116111055760405162461bcd60e51b815260206004820152601060248201526f696e76616c6964207175616e7469747960801b60448201526064016103b2565b600282101561117f5761113785856009856002811061112657611126611807565b01546001600160a01b0387166115e7565b151560011461117f5760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016103b2565b6001600160a01b0383166000908152600160205260409020546014906111a6908390611855565b11156111f45760405162461bcd60e51b815260206004820152601e60248201527f6d696e74696e67206f766572207065722061646472657373206c696d6974000060448201526064016103b2565b6001600160a01b0383166000908152600160205260408120805483929061121c908490611855565b9250508190555061044c817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611285573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a9919061186e565b6112b39190611855565b11156113015760405162461bcd60e51b815260206004820152601760248201527f6d696e74696e67206f76657220737570706c792063617000000000000000000060448201526064016103b2565b6040516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016904790600081818185875af1925050503d806000811461136a576040519150601f19603f3d011682016040523d82523d6000602084013e61136f565b606091505b50506040516340c10f1960e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691506340c10f19906113c090869085906004016117ee565b600060405180830381600087803b1580156113da57600080fd5b505af11580156113ee573d6000803e3d6000fd5b505050505050505050565b60008061140860016004611887565b6002549091504210156114505760405162461bcd60e51b815260206004820152601060248201526f1cd85b19481b9bdd081cdd185c9d195960821b60448201526064016103b2565b6002816004811061146357611463611807565b01544211156114a15760405162461bcd60e51b815260206004820152600a6024820152691cd85b1948195b99195960b21b60448201526064016103b2565b805b80156114dc57600281600481106114bc576114bc611807565b015442106114ca5792915050565b806114d48161189a565b9150506114a3565b50600091505090565b6000546001600160a01b0316331461150f5760405162461bcd60e51b81526004016103b2906117c8565b806009836002811061152357611523611807565b01555050565b6006816003811061041657600080fd5b6000546001600160a01b031633146115635760405162461bcd60e51b81526004016103b2906117c8565b6040516340c10f1960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340c10f19906115b190859085906004016117ee565b600060405180830381600087803b1580156115cb57600080fd5b505af11580156115df573d6000803e3d6000fd5b505050505050565b60008315611619578360051b8501855b803580851160051b948552602094851852604060002093018181106115f75750505b501492915050565b604080825283519082018190526000906020906060840190828701845b8281101561165a5781518452928401929084019060010161163e565b5050506001600160a01b039490941692019190915250919050565b80356001600160a01b038116811461168c57600080fd5b919050565b6000602082840312156116a357600080fd5b6116ac82611675565b9392505050565b6000602082840312156116c557600080fd5b5035919050565b6000806000606084860312156116e157600080fd5b505081359360208301359350604090920135919050565b60008060006040848603121561170d57600080fd5b833567ffffffffffffffff8082111561172557600080fd5b818601915086601f83011261173957600080fd5b81358181111561174857600080fd5b8760208260051b850101111561175d57600080fd5b6020928301955093506117739186019050611675565b90509250925092565b6000806040838503121561178f57600080fd5b50508035926020909101359150565b600080604083850312156117b157600080fd5b6117ba83611675565b946020939093013593505050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b6001600160a01b03929092168252602082015260400190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008261185057634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156118685761186861181d565b92915050565b60006020828403121561188057600080fd5b5051919050565b818103818111156118685761186861181d565b6000816118a9576118a961181d565b50600019019056fea2646970667358221220daaa0db61716364a0aecbc4ef9d5bdabc0ce8c2d2cdbdfd7bddfcd9aa0d5e96864736f6c63430008110033000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c
Deployed Bytecode
0x6080604052600436106100f75760003560e01c806371c5ecb11161008a578063b1c9fe6e11610059578063b1c9fe6e14610313578063b9fe44c114610328578063bc31c1c114610348578063bd07e0b61461036857600080fd5b806371c5ecb1146102aa57806383af342e146102ca5780638da5cb5b146102dd5780638f770ad0146102fd57600080fd5b80633884d635116100c65780633884d6351461022c578063454ad257146102415780636007eeed1461026157806361d027b31461027657600080fd5b806313af40351461016357806319cc02aa146101835780632c84095a146101b25780632d43573d146101fe57600080fd5b3661015e57604080516000815260208101918290526341d79a1760e11b90915230906383af342e90349061012f903360248201611621565b6000604051808303818588803b15801561014857600080fd5b505af115801561015c573d6000803e3d6000fd5b005b600080fd5b34801561016f57600080fd5b5061015c61017e366004611691565b610388565b34801561018f57600080fd5b50600b5461019d9060ff1681565b60405190151581526020015b60405180910390f35b3480156101be57600080fd5b506101e67f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c81565b6040516001600160a01b0390911681526020016101a9565b34801561020a57600080fd5b5061021e6102193660046116b3565b610406565b6040519081526020016101a9565b34801561023857600080fd5b5061015c61041d565b34801561024d57600080fd5b5061015c61025c3660046116cc565b610f83565b34801561026d57600080fd5b5061021e601481565b34801561028257600080fd5b506101e67f000000000000000000000000b020017458f92d8b301905587bb40c86571fe14981565b3480156102b657600080fd5b5061021e6102c53660046116b3565b611037565b61015c6102d83660046116f8565b611047565b3480156102e957600080fd5b506000546101e6906001600160a01b031681565b34801561030957600080fd5b5061021e61044c81565b34801561031f57600080fd5b5061021e6113f9565b34801561033457600080fd5b5061015c61034336600461177c565b6114e5565b34801561035457600080fd5b5061021e6103633660046116b3565b611529565b34801561037457600080fd5b5061015c61038336600461179e565b611539565b6000546001600160a01b031633146103bb5760405162461bcd60e51b81526004016103b2906117c8565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b6002816004811061041657600080fd5b0154905081565b600b5460ff16156104655760405162461bcd60e51b8152602060048201526012602482015271185b1c9958591e48185a5c991c9bdc1c195960721b60448201526064016103b2565b600b805460ff191660019081179091556040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c16916340c10f19916104d591733dc81b76bcb3b409e37df8ef6d1003fe532c045c916004016117ee565b600060405180830381600087803b1580156104ef57600080fd5b505af1158015610503573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f19915061056a907318a975e38d11748d7e23e6f2119cb16e38dc90ba906001906004016117ee565b600060405180830381600087803b15801561058457600080fd5b505af1158015610598573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f1991506105ff9073fd30ea87cf65ee31ac66fd7e062f624448e1a02f906001906004016117ee565b600060405180830381600087803b15801561061957600080fd5b505af115801561062d573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f199150610694907315396b5f1b9c33bd46a842575fcbadd4082763a0906001906004016117ee565b600060405180830381600087803b1580156106ae57600080fd5b505af11580156106c2573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f19915061072990736b282b12f3521f82e8665a830b83d5cc2eca3196906001906004016117ee565b600060405180830381600087803b15801561074357600080fd5b505af1158015610757573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f1991506107be9073e94baf2c39e1cfc85007a8b91ebdb1ee949a5f9f906001906004016117ee565b600060405180830381600087803b1580156107d857600080fd5b505af11580156107ec573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f1991506108539073ff078e3915136c373c4b5646f15b204713d91328906001906004016117ee565b600060405180830381600087803b15801561086d57600080fd5b505af1158015610881573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f1991506108e8907353adf53122317c4a8098846d851122d59e3cc909906001906004016117ee565b600060405180830381600087803b15801561090257600080fd5b505af1158015610916573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f19915061097d9073f2c525a1a48b09206de321160fb097ff62938fbb906001906004016117ee565b600060405180830381600087803b15801561099757600080fd5b505af11580156109ab573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f199150610a1290732fa1ed9c03cdb9389b976d9059d720399ef9f814906003906004016117ee565b600060405180830381600087803b158015610a2c57600080fd5b505af1158015610a40573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f199150610aa7907351dfca1cb4eac9f9207fb8ab43e96ff5b99ff24f906002906004016117ee565b600060405180830381600087803b158015610ac157600080fd5b505af1158015610ad5573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f199150610b3c90732ed8b5c81da55558f07b68e35865b03ec40d9019906001906004016117ee565b600060405180830381600087803b158015610b5657600080fd5b505af1158015610b6a573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f199150610bd190736e448fa3421f7f62b7006f1bc5f6a684cbc96480906001906004016117ee565b600060405180830381600087803b158015610beb57600080fd5b505af1158015610bff573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f199150610c669073e9f239edfd8ed42953462067873f8f98946efb89906001906004016117ee565b600060405180830381600087803b158015610c8057600080fd5b505af1158015610c94573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f199150610cfb9073545ad63fcd9911ba0ca65f0df2eefc1b3ba6a107906001906004016117ee565b600060405180830381600087803b158015610d1557600080fd5b505af1158015610d29573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f199150610d909073f85c860fe3d4d63f8cfd9214862a476203effdc3906001906004016117ee565b600060405180830381600087803b158015610daa57600080fd5b505af1158015610dbe573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f199150610e2590730b3bd2b54af505fb2f42a0091d047a852bbad157906001906004016117ee565b600060405180830381600087803b158015610e3f57600080fd5b505af1158015610e53573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f199150610eba9073d15e0c3e56b5ba0ca9edd45011d790d541afbe90906001906004016117ee565b600060405180830381600087803b158015610ed457600080fd5b505af1158015610ee8573d6000803e3d6000fd5b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1692506340c10f199150610f4f9073cbcb16eda4ea78cc8e15994e58c520af79d0a603906051906004016117ee565b600060405180830381600087803b158015610f6957600080fd5b505af1158015610f7d573d6000803e3d6000fd5b50505050565b6000546001600160a01b03163314610fad5760405162461bcd60e51b81526004016103b2906117c8565b82686c616e646d61726b7360b81b03610fdb578060028360048110610fd457610fd4611807565b0155505050565b826570726963657360d01b03610fff578060068360038110610fd457610fd4611807565b60405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420706172616d60981b60448201526064016103b2565b6009816002811061041657600080fd5b6001600160a01b0381166110935760405162461bcd60e51b815260206004820152601360248201527234b73b30b634b2103232b9ba34b730ba34b7b760691b60448201526064016103b2565b600061109d6113f9565b90506000600682600381106110b4576110b4611807565b01546110c09034611833565b9050600081116111055760405162461bcd60e51b815260206004820152601060248201526f696e76616c6964207175616e7469747960801b60448201526064016103b2565b600282101561117f5761113785856009856002811061112657611126611807565b01546001600160a01b0387166115e7565b151560011461117f5760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016103b2565b6001600160a01b0383166000908152600160205260409020546014906111a6908390611855565b11156111f45760405162461bcd60e51b815260206004820152601e60248201527f6d696e74696e67206f766572207065722061646472657373206c696d6974000060448201526064016103b2565b6001600160a01b0383166000908152600160205260408120805483929061121c908490611855565b9250508190555061044c817f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611285573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a9919061186e565b6112b39190611855565b11156113015760405162461bcd60e51b815260206004820152601760248201527f6d696e74696e67206f76657220737570706c792063617000000000000000000060448201526064016103b2565b6040516001600160a01b037f000000000000000000000000b020017458f92d8b301905587bb40c86571fe14916904790600081818185875af1925050503d806000811461136a576040519150601f19603f3d011682016040523d82523d6000602084013e61136f565b606091505b50506040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c1691506340c10f19906113c090869085906004016117ee565b600060405180830381600087803b1580156113da57600080fd5b505af11580156113ee573d6000803e3d6000fd5b505050505050505050565b60008061140860016004611887565b6002549091504210156114505760405162461bcd60e51b815260206004820152601060248201526f1cd85b19481b9bdd081cdd185c9d195960821b60448201526064016103b2565b6002816004811061146357611463611807565b01544211156114a15760405162461bcd60e51b815260206004820152600a6024820152691cd85b1948195b99195960b21b60448201526064016103b2565b805b80156114dc57600281600481106114bc576114bc611807565b015442106114ca5792915050565b806114d48161189a565b9150506114a3565b50600091505090565b6000546001600160a01b0316331461150f5760405162461bcd60e51b81526004016103b2906117c8565b806009836002811061152357611523611807565b01555050565b6006816003811061041657600080fd5b6000546001600160a01b031633146115635760405162461bcd60e51b81526004016103b2906117c8565b6040516340c10f1960e01b81526001600160a01b037f000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c16906340c10f19906115b190859085906004016117ee565b600060405180830381600087803b1580156115cb57600080fd5b505af11580156115df573d6000803e3d6000fd5b505050505050565b60008315611619578360051b8501855b803580851160051b948552602094851852604060002093018181106115f75750505b501492915050565b604080825283519082018190526000906020906060840190828701845b8281101561165a5781518452928401929084019060010161163e565b5050506001600160a01b039490941692019190915250919050565b80356001600160a01b038116811461168c57600080fd5b919050565b6000602082840312156116a357600080fd5b6116ac82611675565b9392505050565b6000602082840312156116c557600080fd5b5035919050565b6000806000606084860312156116e157600080fd5b505081359360208301359350604090920135919050565b60008060006040848603121561170d57600080fd5b833567ffffffffffffffff8082111561172557600080fd5b818601915086601f83011261173957600080fd5b81358181111561174857600080fd5b8760208260051b850101111561175d57600080fd5b6020928301955093506117739186019050611675565b90509250925092565b6000806040838503121561178f57600080fd5b50508035926020909101359150565b600080604083850312156117b157600080fd5b6117ba83611675565b946020939093013593505050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b6001600160a01b03929092168252602082015260400190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008261185057634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156118685761186861181d565b92915050565b60006020828403121561188057600080fd5b5051919050565b818103818111156118685761186861181d565b6000816118a9576118a961181d565b50600019019056fea2646970667358221220daaa0db61716364a0aecbc4ef9d5bdabc0ce8c2d2cdbdfd7bddfcd9aa0d5e96864736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c
-----Decoded View---------------
Arg [0] : nftAddress (address): 0x067d58112aF1744e05d9983E62F6838833e2567C
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000067d58112af1744e05d9983e62f6838833e2567c
Deployed Bytecode Sourcemap
64274:5514:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67578:16;;;67592:1;67578:16;;;;;;;;;-1:-1:-1;;;67550:57:0;;;:4;;:9;;67567;;67550:57;;67596:10;67550:57;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64274:5514;;;;64119:148;;;;;;;;;;-1:-1:-1;64119:148:0;;;;;:::i;:::-;;:::i;65474:22::-;;;;;;;;;;-1:-1:-1;65474:22:0;;;;;;;;;;;1416:14:1;;1409:22;1391:41;;1379:2;1364:18;65474:22:0;;;;;;;;64335:26;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1620:32:1;;;1602:51;;1590:2;1575:18;64335:26:0;1443:216:1;64843:78:0;;;;;;;;;;-1:-1:-1;64843:78:0;;;;;:::i;:::-;;:::i;:::-;;;1995:25:1;;;1983:2;1968:18;64843:78:0;1849:177:1;68331:1454:0;;;;;;;;;;;;;:::i;67859:296::-;;;;;;;;;;-1:-1:-1;67859:296:0;;;;;:::i;:::-;;:::i;64589:44::-;;;;;;;;;;;;64631:2;64589:44;;64456:95;;;;;;;;;;;;;;;65211:177;;;;;;;;;;-1:-1:-1;65211:177:0;;;;;:::i;:::-;;:::i;65973:964::-;;;;;;:::i;:::-;;:::i;63483:20::-;;;;;;;;;;-1:-1:-1;63483:20:0;;;;-1:-1:-1;;;;;63483:20:0;;;64664:40;;;;;;;;;;;;64700:4;64664:40;;67048:380;;;;;;;;;;;;;:::i;67676:120::-;;;;;;;;;;-1:-1:-1;67676:120:0;;;;;:::i;:::-;;:::i;65005:61::-;;;;;;;;;;-1:-1:-1;65005:61:0;;;;;:::i;:::-;;:::i;68215:108::-;;;;;;;;;;-1:-1:-1;68215:108:0;;;;;:::i;:::-;;:::i;64119:148::-;63574:5;;-1:-1:-1;;;;;63574:5:0;63560:10;:19;63552:44;;;;-1:-1:-1;;;63552:44:0;;;;;;;:::i;:::-;;;;;;;;;64191:5:::1;:16:::0;;-1:-1:-1;;;;;;64191:16:0::1;-1:-1:-1::0;;;;;64191:16:0;::::1;::::0;;::::1;::::0;;64225:34:::1;::::0;64191:16;;64238:10:::1;::::0;64225:34:::1;::::0;64191:5;64225:34:::1;64119:148:::0;:::o;64843:78::-;;;;;;;;;;;;;;;-1:-1:-1;64843:78:0;:::o;68331:1454::-;68379:10;;;;68378:11;68370:42;;;;-1:-1:-1;;;68370:42:0;;4721:2:1;68370:42:0;;;4703:21:1;4760:2;4740:18;;;4733:30;-1:-1:-1;;;4779:18:1;;;4772:48;4837:18;;68370:42:0;4519:342:1;68370:42:0;68423:10;:17;;-1:-1:-1;;68423:17:0;68436:4;68423:17;;;;;;68453:56;;-1:-1:-1;;;68453:56:0;;-1:-1:-1;;;;;68453:4:0;:9;;;;:56;;68463:42;;68453:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68520:56:0;;-1:-1:-1;;;68520:56:0;;-1:-1:-1;;;;;68520:4:0;:9;;-1:-1:-1;68520:9:0;;-1:-1:-1;68520:56:0;;68530:42;;68574:1;;68520:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68587:56:0;;-1:-1:-1;;;68587:56:0;;-1:-1:-1;;;;;68587:4:0;:9;;-1:-1:-1;68587:9:0;;-1:-1:-1;68587:56:0;;68597:42;;68641:1;;68587:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68654:56:0;;-1:-1:-1;;;68654:56:0;;-1:-1:-1;;;;;68654:4:0;:9;;-1:-1:-1;68654:9:0;;-1:-1:-1;68654:56:0;;68664:42;;68708:1;;68654:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68721:56:0;;-1:-1:-1;;;68721:56:0;;-1:-1:-1;;;;;68721:4:0;:9;;-1:-1:-1;68721:9:0;;-1:-1:-1;68721:56:0;;68731:42;;68775:1;;68721:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68788:56:0;;-1:-1:-1;;;68788:56:0;;-1:-1:-1;;;;;68788:4:0;:9;;-1:-1:-1;68788:9:0;;-1:-1:-1;68788:56:0;;68798:42;;68842:1;;68788:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68855:56:0;;-1:-1:-1;;;68855:56:0;;-1:-1:-1;;;;;68855:4:0;:9;;-1:-1:-1;68855:9:0;;-1:-1:-1;68855:56:0;;68865:42;;68909:1;;68855:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68922:56:0;;-1:-1:-1;;;68922:56:0;;-1:-1:-1;;;;;68922:4:0;:9;;-1:-1:-1;68922:9:0;;-1:-1:-1;68922:56:0;;68932:42;;68976:1;;68922:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68989:56:0;;-1:-1:-1;;;68989:56:0;;-1:-1:-1;;;;;68989:4:0;:9;;-1:-1:-1;68989:9:0;;-1:-1:-1;68989:56:0;;68999:42;;69043:1;;68989:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69056:56:0;;-1:-1:-1;;;69056:56:0;;-1:-1:-1;;;;;69056:4:0;:9;;-1:-1:-1;69056:9:0;;-1:-1:-1;69056:56:0;;69066:42;;69110:1;;69056:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69123:56:0;;-1:-1:-1;;;69123:56:0;;-1:-1:-1;;;;;69123:4:0;:9;;-1:-1:-1;69123:9:0;;-1:-1:-1;69123:56:0;;69133:42;;69177:1;;69123:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69190:56:0;;-1:-1:-1;;;69190:56:0;;-1:-1:-1;;;;;69190:4:0;:9;;-1:-1:-1;69190:9:0;;-1:-1:-1;69190:56:0;;69200:42;;69244:1;;69190:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69257:56:0;;-1:-1:-1;;;69257:56:0;;-1:-1:-1;;;;;69257:4:0;:9;;-1:-1:-1;69257:9:0;;-1:-1:-1;69257:56:0;;69267:42;;69311:1;;69257:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69324:56:0;;-1:-1:-1;;;69324:56:0;;-1:-1:-1;;;;;69324:4:0;:9;;-1:-1:-1;69324:9:0;;-1:-1:-1;69324:56:0;;69334:42;;69378:1;;69324:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69391:56:0;;-1:-1:-1;;;69391:56:0;;-1:-1:-1;;;;;69391:4:0;:9;;-1:-1:-1;69391:9:0;;-1:-1:-1;69391:56:0;;69401:42;;69445:1;;69391:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69479:56:0;;-1:-1:-1;;;69479:56:0;;-1:-1:-1;;;;;69479:4:0;:9;;-1:-1:-1;69479:9:0;;-1:-1:-1;69479:56:0;;69489:42;;69533:1;;69479:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69566:56:0;;-1:-1:-1;;;69566:56:0;;-1:-1:-1;;;;;69566:4:0;:9;;-1:-1:-1;69566:9:0;;-1:-1:-1;69566:56:0;;69576:42;;69620:1;;69566:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69653:56:0;;-1:-1:-1;;;69653:56:0;;-1:-1:-1;;;;;69653:4:0;:9;;-1:-1:-1;69653:9:0;;-1:-1:-1;69653:56:0;;69663:42;;69707:1;;69653:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69720:57:0;;-1:-1:-1;;;69720:57:0;;-1:-1:-1;;;;;69720:4:0;:9;;-1:-1:-1;69720:9:0;;-1:-1:-1;69720:57:0;;69730:42;;69774:2;;69720:57;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68331:1454::o;67859:296::-;63574:5;;-1:-1:-1;;;;;63574:5:0;63560:10;:19;63552:44;;;;-1:-1:-1;;;63552:44:0;;;;;;;:::i;:::-;67963:5:::1;-1:-1:-1::0;;;67963:20:0;67959:188:::1;;68017:5;67998:9;68008:5;67998:16;;;;;;;:::i;:::-;;:24:::0;67859:296;;;:::o;67959:188::-:1;68042:5;-1:-1:-1::0;;;68042:17:0;68038:109:::1;;68090:5;68074:6;68081:5;68074:13;;;;;;;:::i;68038:109::-;68124:23;::::0;-1:-1:-1;;;68124:23:0;;6349:2:1;68124:23:0::1;::::0;::::1;6331:21:1::0;6388:2;6368:18;;;6361:30;-1:-1:-1;;;6407:18:1;;;6400:43;6460:18;;68124:23:0::1;6147:337:1::0;65211:177:0;;;;;;;;;;;65973:964;-1:-1:-1;;;;;66065:16:0;;66057:48;;;;-1:-1:-1;;;66057:48:0;;6691:2:1;66057:48:0;;;6673:21:1;6730:2;6710:18;;;6703:30;-1:-1:-1;;;6749:18:1;;;6742:49;6808:18;;66057:48:0;6489:343:1;66057:48:0;66118:6;66127:7;:5;:7::i;:::-;66118:16;;66171:13;66199:6;66206:1;66199:9;;;;;;;:::i;:::-;;;66187:21;;:9;:21;:::i;:::-;66171:37;;66238:1;66227:8;:12;66219:41;;;;-1:-1:-1;;;66219:41:0;;7393:2:1;66219:41:0;;;7375:21:1;7432:2;7412:18;;;7405:30;-1:-1:-1;;;7451:18:1;;;7444:46;7507:18;;66219:41:0;7191:340:1;66219:41:0;66334:18;66330:1;:22;66326:177;;;66377:81;66399:11;;66412;66424:1;66412:14;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;66436:20:0;;66377:21;:81::i;:::-;:89;;66462:4;66377:89;66369:122;;;;-1:-1:-1;;;66369:122:0;;7738:2:1;66369:122:0;;;7720:21:1;7777:2;7757:18;;;7750:30;-1:-1:-1;;;7796:18:1;;;7789:50;7856:18;;66369:122:0;7536:344:1;66369:122:0;-1:-1:-1;;;;;66562:10:0;;;;;;:6;:10;;;;;;64631:2;;66562:21;;66575:8;;66562:21;:::i;:::-;:40;;66554:83;;;;-1:-1:-1;;;66554:83:0;;8217:2:1;66554:83:0;;;8199:21:1;8256:2;8236:18;;;8229:30;8295:32;8275:18;;;8268:60;8345:18;;66554:83:0;8015:354:1;66554:83:0;-1:-1:-1;;;;;66648:10:0;;;;;;:6;:10;;;;;:22;;66662:8;;66648:10;:22;;66662:8;;66648:22;:::i;:::-;;;;;;;;64700:4;66739:8;66718:4;-1:-1:-1;;;;;66718:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:29;;;;:::i;:::-;:42;;66710:78;;;;-1:-1:-1;;;66710:78:0;;8765:2:1;66710:78:0;;;8747:21:1;8804:2;8784:18;;;8777:30;8843:25;8823:18;;;8816:53;8886:18;;66710:78:0;8563:347:1;66710:78:0;66829:47;;-1:-1:-1;;;;;66829:8:0;:13;;66850:21;;66829:47;;;;66850:21;66829:13;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;66906:23:0;;-1:-1:-1;;;66906:23:0;;-1:-1:-1;;;;;66906:4:0;:9;;-1:-1:-1;66906:9:0;;:23;;66916:2;;66920:8;;66906:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66046:891;;65973:964;;;:::o;67048:380::-;67086:7;;67118:20;67137:1;67118:16;:20;:::i;:::-;67178:9;:12;67106:32;;-1:-1:-1;67159:15:0;:31;;67151:60;;;;-1:-1:-1;;;67151:60:0;;9739:2:1;67151:60:0;;;9721:21:1;9778:2;9758:18;;;9751:30;-1:-1:-1;;;9797:18:1;;;9790:46;9853:18;;67151:60:0;9537:340:1;67151:60:0;67249:9;67259:4;67249:15;;;;;;;:::i;:::-;;;67230;:34;;67222:57;;;;-1:-1:-1;;;67222:57:0;;10084:2:1;67222:57:0;;;10066:21:1;10123:2;10103:18;;;10096:30;-1:-1:-1;;;10142:18:1;;;10135:40;10192:18;;67222:57:0;9882:334:1;67222:57:0;67306:4;67292:107;67312:5;;67292:107;;67360:9;67370:1;67360:12;;;;;;;:::i;:::-;;;67341:15;:31;67337:62;;67398:1;67048:380;-1:-1:-1;;67048:380:0:o;67337:62::-;67319:3;;;;:::i;:::-;;;;67292:107;;;;67419:1;67412:8;;;67048:380;:::o;67676:120::-;63574:5;;-1:-1:-1;;;;;63574:5:0;63560:10;:19;63552:44;;;;-1:-1:-1;;;63552:44:0;;;;;;;:::i;:::-;67783:5:::1;67762:11;67774:5;67762:18;;;;;;;:::i;:::-;;:26:::0;-1:-1:-1;;67676:120:0:o;65005:61::-;;;;;;;;;;;68215:108;63574:5;;-1:-1:-1;;;;;63574:5:0;63560:10;:19;63552:44;;;;-1:-1:-1;;;63552:44:0;;;;;;;:::i;:::-;68294:21:::1;::::0;-1:-1:-1;;;68294:21:0;;-1:-1:-1;;;;;68294:4:0::1;:9;::::0;::::1;::::0;:21:::1;::::0;68304:2;;68308:6;;68294:21:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;68215:108:::0;;:::o;61188:1661::-;61315:12;61367;61364:1384;;;61501:12;61498:1;61494:20;61480:12;61476:39;61627:12;61765:968;61992:20;;61983:30;;;61980:1;61976:38;62281:22;;;62346:2;62332:17;;;62325:47;62498:2;62495:1;62485:16;;62572:15;62688;;;61765:968;62678:36;61769:2;;61364:1384;-1:-1:-1;62775:14:0;;61188:1661;-1:-1:-1;;61188:1661:0:o;146:731:1:-;364:2;376:21;;;446:13;;349:18;;;468:22;;;316:4;;543;;521:2;506:18;;;570:15;;;316:4;613:169;627:6;624:1;621:13;613:169;;;688:13;;676:26;;722:12;;;;757:15;;;;649:1;642:9;613:169;;;-1:-1:-1;;;;;;;;838:32:1;;;;818:18;;811:60;;;;-1:-1:-1;799:3:1;146:731;-1:-1:-1;146:731:1:o;882:173::-;950:20;;-1:-1:-1;;;;;999:31:1;;989:42;;979:70;;1045:1;1042;1035:12;979:70;882:173;;;:::o;1060:186::-;1119:6;1172:2;1160:9;1151:7;1147:23;1143:32;1140:52;;;1188:1;1185;1178:12;1140:52;1211:29;1230:9;1211:29;:::i;:::-;1201:39;1060:186;-1:-1:-1;;;1060:186:1:o;1664:180::-;1723:6;1776:2;1764:9;1755:7;1751:23;1747:32;1744:52;;;1792:1;1789;1782:12;1744:52;-1:-1:-1;1815:23:1;;1664:180;-1:-1:-1;1664:180:1:o;2031:316::-;2108:6;2116;2124;2177:2;2165:9;2156:7;2152:23;2148:32;2145:52;;;2193:1;2190;2183:12;2145:52;-1:-1:-1;;2216:23:1;;;2286:2;2271:18;;2258:32;;-1:-1:-1;2337:2:1;2322:18;;;2309:32;;2031:316;-1:-1:-1;2031:316:1:o;2758:695::-;2853:6;2861;2869;2922:2;2910:9;2901:7;2897:23;2893:32;2890:52;;;2938:1;2935;2928:12;2890:52;2978:9;2965:23;3007:18;3048:2;3040:6;3037:14;3034:34;;;3064:1;3061;3054:12;3034:34;3102:6;3091:9;3087:22;3077:32;;3147:7;3140:4;3136:2;3132:13;3128:27;3118:55;;3169:1;3166;3159:12;3118:55;3209:2;3196:16;3235:2;3227:6;3224:14;3221:34;;;3251:1;3248;3241:12;3221:34;3306:7;3299:4;3289:6;3286:1;3282:14;3278:2;3274:23;3270:34;3267:47;3264:67;;;3327:1;3324;3317:12;3264:67;3358:4;3350:13;;;;-1:-1:-1;3382:6:1;-1:-1:-1;3407:40:1;;3426:20;;;-1:-1:-1;3407:40:1;:::i;:::-;3397:50;;2758:695;;;;;:::o;3666:248::-;3734:6;3742;3795:2;3783:9;3774:7;3770:23;3766:32;3763:52;;;3811:1;3808;3801:12;3763:52;-1:-1:-1;;3834:23:1;;;3904:2;3889:18;;;3876:32;;-1:-1:-1;3666:248:1:o;3919:254::-;3987:6;3995;4048:2;4036:9;4027:7;4023:23;4019:32;4016:52;;;4064:1;4061;4054:12;4016:52;4087:29;4106:9;4087:29;:::i;:::-;4077:39;4163:2;4148:18;;;;4135:32;;-1:-1:-1;;;3919:254:1:o;4178:336::-;4380:2;4362:21;;;4419:2;4399:18;;;4392:30;-1:-1:-1;;;4453:2:1;4438:18;;4431:42;4505:2;4490:18;;4178:336::o;4866:282::-;-1:-1:-1;;;;;5066:32:1;;;;5048:51;;5130:2;5115:18;;5108:34;5036:2;5021:18;;4866:282::o;6015:127::-;6076:10;6071:3;6067:20;6064:1;6057:31;6107:4;6104:1;6097:15;6131:4;6128:1;6121:15;6837:127;6898:10;6893:3;6889:20;6886:1;6879:31;6929:4;6926:1;6919:15;6953:4;6950:1;6943:15;6969:217;7009:1;7035;7025:132;;7079:10;7074:3;7070:20;7067:1;7060:31;7114:4;7111:1;7104:15;7142:4;7139:1;7132:15;7025:132;-1:-1:-1;7171:9:1;;6969:217::o;7885:125::-;7950:9;;;7971:10;;;7968:36;;;7984:18;;:::i;:::-;7885:125;;;;:::o;8374:184::-;8444:6;8497:2;8485:9;8476:7;8472:23;8468:32;8465:52;;;8513:1;8510;8503:12;8465:52;-1:-1:-1;8536:16:1;;8374:184;-1:-1:-1;8374:184:1:o;9404:128::-;9471:9;;;9492:11;;;9489:37;;;9506:18;;:::i;10221:136::-;10260:3;10288:5;10278:39;;10297:18;;:::i;:::-;-1:-1:-1;;;10333:18:1;;10221:136::o
Swarm Source
ipfs://daaa0db61716364a0aecbc4ef9d5bdabc0ce8c2d2cdbdfd7bddfcd9aa0d5e968
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.