Polygon Sponsored slots available. Book your slot here!
ERC-721
Overview
Max Total Supply
20 NIPDOE
Holders
16
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
NIPDAcademy
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "./ERC721A.sol"; import "./Ownable.sol"; /* ░░░░░░░░▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒░░░░░░░ ░░░░░░▒▒░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░▒▒░░░░░ ░░░░▒▒░░░▒▒░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒░░░ ░░▒▒░░░▒▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░▒▒░ ░▒▒░░░░▒▓▒░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░▒▒▓▓▓▓▓▒▒░ ░░░▒▒░░░░▓▓░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░▒▒▓██▓▓▒░░░ ░░░░░▒▒░░░▓▓░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░▒▒███▓▓░░░░░ ████████████████████████████████████████████████████████████████████████████████ ███▓▓▓▓████████████████████▓▓█▓▓▓▓████▓▓▓████▓▓▓█████████████████████████▓▓▓▓▓▓▓ ███░░░▒████████████████████▒▒▒▒▒░░▓██▓░░░███▒░░░█████████████████████▓▓▓▓░░░░░░░ ▒▒▒███▓▒▒▒█████████████▓▒▒▒▒░░▒▒▒▒▒▒▒▓███▒▒▒▒██▓▒▒▒██████████████▒▒▓▓▓▓▒▓░░░░░░░ ░░▒███▓░░░█████████████▒░░░░░░░▒▒▒▒░░▓███░░░▓███░░░█████████████▓░░▒▒▒▒▒▓░░░░░░░ ░░░░░░██████████████▒▒▓▓▒▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒████████████████████▓░░░░░▒▒▒▒▒▒▒░░░░░░ ░░░░░░▓█████████████▒▓▓▓▓▒▓▓▒▒▒▒▒▒▒▒▒░░░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░░░▒▒▒▒▒▒▒▒▓▒░░░░░ ░░░░░▒▒▒▒▒▓▒▒▒▒▒▒▒▒▒▓▓▓█▓▒▒░░░▒▒▒▒▒▒░░░▒▒░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░░░░░ ░░░░▒▒▓▓▒▓▓▒▒▒▒▒▒▒▒▒█▓▓▒▒▒▒▒▒▓▓▒▓▒░░░░░▒▒░░▒▒░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓░░░░ ░░░░▒▓▓▓▓▓▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▒▒▒▓▓▓▓▒░░░░░░▒▒░░░▒▒░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▒▓▒░░░ ░░░▒▓▓▓▓▓▒▓▓▓▓▓▓▒▒▒▓▒▒▒▓▓▓▓▒▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▓▒░░▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒░░▒▓░░░ ░░▒▓██▓▓▓▒▓█████▓▒▒▒▒▒▒████▓▒▒▓███▓▒▒▒████████████▓▓▒▒▒▒████████████▓▓▒▒▒░░░▒▓░░ ░░▓███▓▓▒▒▓██████▓▒▒▒▒▒▓███▒▒▒▓███▓░░▒████▓▓▓▓▓▓▓███▓▒▒▒▓███▓▓▓▓▓▓████▓▒▒▒░░░▓░░ ░▒▓███▓▒▒▒▓███████▓▒▒▒▒▓███▒▒░▓███▒░░▒████▒░▒▒░░▒▓███▒▒▒▓███▓▒▒▒▒▒▒▓███▓▒▒░░░▒▓░ ░▒███▓▓▒▒▒▓████▓███▓▒▒▒▓███▒░░▓███▒░░▒████▒▒▒▒░░░▓███▓░▒▓███▓▒▒▒▒▒▒▒▓██▓▒▒▒░░░▓░ ░▓███▓▓▒▒▒▓████▒▓███▓▒▒▓███▒░░▓███▒░░▒████▒▒▒▒░░▒▓███▒░▒▓███▓░░░░▒▒▒▓██▓▒▒▒░░░▒▒ ▒▓███▓▒▒▒▒▓████▓░▒▓██▒▒▓███▒░░▓███▓▒▒▒█████████████▓▓▒▒▒▓███▒░░░░░░▒▓██▓▒▒▒░░░▒▒ ▒▓██▓▓▒▒▒░▓████▓░░▒▓██▒▓███▒▒▒▓███▓▒░▒████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▓███▓░░░░░░▒▓██▓░▒▒░░░░▓ ▒▓██▓▓▒▒▒░▓████▓░░░▒▓██████▓▒▒▓███▓▒░▒████▒░░░░░░▒▒▒▒▒▒▒▓███▓▒▒▒▒▒▒▓███▓░▒▒░░░▒▓ ▒▓███▓▒▒░░▓████▒░░░░▒▓█████▓▓▓▓████▓▒▒████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▓█████████████▓▒░▒▒▒░░▒▒ ░▒███▓▓░░░▓████▒░░░░░▒▓████▒░▒▓████▓▓▒████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▓██████████▓▓▒░░░▒▒▒▒▒▓░ ░▒▓███▓▒░░▒▒▒▒▒▒░░░░░░░▒▒▒▒░░░▒▒▓▓█▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▒▒▓░ ░░▒▓██▓▓▒░░▒▓▒░░░░░░▓▒▒░░░░░░▒▓▓░░▒▓██▓█▓▓▓▓▓▓▓▒▓▓▓▒▒▒▒▓▒▓▒▓▒░░░░░▒▒▓▒░▒▒▒▒▒▒▓░░ ░░░▓████▓▒░▒▒▒░░░░░░▒▒▒░░░░░░▒▒▒▒░░░▒▒▒▓▓█▓▓▓▓▓▓▓▓▓▒▒▒▓▒░▒▒▒▒░░░░░░▒▒░▒▒▒▒▒▒▓░░░ ░░░░▓▓███▓▓▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▓▓▓▓▓▓▓▓▒▒▒▒▒░░░░░░░░░░░░░▒▒▒▒▒▒▒▓░░░░ ░░░░░▒▓████▓▓▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▓▓▒▒▒▒░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▓▒░░░░░ ░░░░░░░▒▓█████▓▓▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▓▓▓░░░░░░░ ░░░░░░░░░▒▓▓▓████▓▓▓▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒░░░░░░░░░ ░░░░░░░░░░░░▒▒▓▓▓█████▓▓▓▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒░░░░░░▒▒▒▓▒▒░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░▒▒▓▓▓█████▓▓▓▒▒▒░░░░░░░░░░░░░░░░▒▒▒▒▒░░░░░░▒▒▒▒▒░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░▒▒▒▓▓▓████▓▓▓▒▒▒░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▓▓▓████▓▓▒▒▒░░▒▒▒▓▓▓▓▓▓▒▓▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▓▓████▓▓▒▒▓▓███▓▓▓▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▓▓████████▓▓▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▓▓██▓▓▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▓▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ */ contract NIPDAcademy is Ownable, ERC721A { // Open Edition. uint256 public PRICE_PER_TOKEN = 0; uint256 public MAX_TOKEN_PER_TRANSACTION = 1; bool public mintPaused; string private _baseTokenURI = "https://nipd.xyz/oe/data/"; constructor() ERC721A("NIPD Academy", "NIPDOE") { mintPaused = false; } function mint(address to, uint256 quantity) external payable { require(!mintPaused, "Mint is paused"); require(msg.value >= quantity * PRICE_PER_TOKEN, "Insufficient Funds"); if (MAX_TOKEN_PER_TRANSACTION > 0) { require(quantity <= MAX_TOKEN_PER_TRANSACTION, "You cannot mint that many tokens"); } _mint(to, quantity); } function setCost(uint256 _cost) public onlyOwner { PRICE_PER_TOKEN = _cost; } function setMaxMint(uint256 _num) public onlyOwner { MAX_TOKEN_PER_TRANSACTION = _num; } function withdraw() external onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer Failed"); } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function _baseURI() internal view override returns (string memory) { return _baseTokenURI; } function pauseMint(bool _paused) external onlyOwner { mintPaused = _paused; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.19; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @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()`. * * The `_sequentialUpTo()` function can be overriden to enable spot mints * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`. * * 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; // The amount of tokens minted above `_sequentialUpTo()`. // We call these spot mints (i.e. non-sequential mints). uint256 private _spotMinted; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID for sequential mints. * * Override this function to change the starting token ID for sequential mints. * * Note: The value returned must never change after any tokens have been minted. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the maximum token ID (inclusive) for sequential mints. * * Override this function to return a value less than 2**256 - 1, * but greater than `_startTokenId()`, to enable spot (non-sequential) mints. * * Note: The value returned must never change after any tokens have been minted. */ function _sequentialUpTo() internal view virtual returns (uint256) { return type(uint256).max; } /** * @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 result) { // Counter underflow is impossible as `_burnCounter` cannot be incremented // more than `_currentIndex + _spotMinted - _startTokenId()` times. unchecked { // With spot minting, the intermediate `result` can be temporarily negative, // and the computation must be unchecked. result = _currentIndex - _burnCounter - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256 result) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { result = _currentIndex - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } /** * @dev Returns the total number of tokens that are spot-minted. */ function _totalSpotMinted() internal view virtual returns (uint256) { return _spotMinted; } // ============================================================= // 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.selector); 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.selector); 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 Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @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); } } /** * @dev Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; if (tokenId > _sequentialUpTo()) { if (_packedOwnershipExists(packed)) return packed; _revert(OwnerQueryForNonexistentToken.selector); } // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // 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, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @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. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @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.selector); 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 result) { if (_startTokenId() <= tokenId) { if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]); if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `packed` represents a token that exists. */ function _packedOwnershipExists(uint256 packed) private pure returns (bool result) { assembly { // The following is equivalent to `owner != address(0) && burned == false`. // Symbolically tested. result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_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); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (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.selector); _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; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // 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. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _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.selector); } } /** * @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.selector); } 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.selector); _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: // - `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) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); do { assembly { // 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`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _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.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _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) ); if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); 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.selector); } } while (index < end); // This prevents reentrancy to `_safeMint`. // It does not prevent reentrancy to `_safeMintSpot`. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } /** * @dev Mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * Emits a {Transfer} event for each mint. */ function _mintSpot(address to, uint256 tokenId) internal virtual { if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector); uint256 prevOwnershipPacked = _packedOwnerships[tokenId]; if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector); _beforeTokenTransfers(address(0), to, tokenId, 1); // Overflows are incredibly unrealistic. // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1. // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `true` (as `quantity == 1`). _packedOwnerships[tokenId] = _packOwnershipData( to, _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked) ); // Updates: // - `balance += 1`. // - `numberMinted += 1`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1; // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); assembly { // 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`. tokenId // `tokenId`. ) } ++_spotMinted; } _afterTokenTransfers(address(0), to, tokenId, 1); } /** * @dev Safely mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * See {_mintSpot}. * * Emits a {Transfer} event. */ function _safeMintSpot( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mintSpot(to, tokenId); unchecked { if (to.code.length != 0) { uint256 currentSpotMinted = _spotMinted; if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } // This prevents reentrancy to `_safeMintSpot`. // It does not prevent reentrancy to `_safeMint`. if (_spotMinted != currentSpotMinted) revert(); } } } /** * @dev Equivalent to `_safeMintSpot(to, tokenId, '')`. */ function _safeMintSpot(address to, uint256 tokenId) internal virtual { _safeMintSpot(to, tokenId, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // 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.selector); } _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 + _spotMinted` 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.selector); 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) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @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(); /** * `_sequentialUpTo()` must be greater than `_startTokenId()`. */ error SequentialUpToTooSmall(); /** * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`. */ error SequentialMintExceedsLimit(); /** * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`. */ error SpotMintTokenIdTooSmall(); /** * Cannot mint over a token that already exists. */ error TokenAlreadyExists(); /** * The feature is not compatible with spot mints. */ error NotCompatibleWithSpotMints(); // ============================================================= // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.19; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_TOKEN_PER_TRANSACTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"pauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_num","type":"uint256"}],"name":"setMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6000600a556001600b5560c0604052601960809081527f68747470733a2f2f6e6970642e78797a2f6f652f646174612f0000000000000060a052600d90620000489082620001e3565b503480156200005657600080fd5b506040518060400160405280600c81526020016b4e4950442041636164656d7960a01b815250604051806040016040528060068152602001654e4950444f4560d01b815250620000b5620000af620000ea60201b60201c565b620000ee565b6003620000c38382620001e3565b506004620000d28282620001e3565b5060006001555050600c805460ff19169055620002af565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200016957607f821691505b6020821081036200018a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001de57600081815260208120601f850160051c81016020861015620001b95750805b601f850160051c820191505b81811015620001da57828155600101620001c5565b5050505b505050565b81516001600160401b03811115620001ff57620001ff6200013e565b620002178162000210845462000154565b8462000190565b602080601f8311600181146200024f5760008415620002365750858301515b600019600386901b1c1916600185901b178555620001da565b600085815260208120601f198616915b8281101562000280578886015182559484019460019091019084016200025f565b50858210156200029f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6114f380620002bf6000396000f3fe6080604052600436106101815760003560e01c806370a08231116100d1578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd146103fc578063e985e9c51461041c578063f2fde38b1461043c578063f30e6e771461045c57600080fd5b8063a22cb465146103b3578063a25b8469146103d3578063b88d4fde146103e957600080fd5b806370a082311461031b578063715018a61461033b5780637e4831d314610350578063833b94991461036a5780638da5cb5b1461038057806395d89b411461039e57600080fd5b80633ccfd60b1161013e57806344a0d68a1161011857806344a0d68a1461029b578063547520fe146102bb57806355f804b3146102db5780636352211e146102fb57600080fd5b80633ccfd60b1461026057806340c10f191461027557806342842e0e1461028857600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806318160ddd1461022a57806323b872dd1461024d575b600080fd5b34801561019257600080fd5b506101a66101a1366004610f8a565b61047c565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d06104ce565b6040516101b29190610ff7565b3480156101e957600080fd5b506101fd6101f836600461100a565b610560565b6040516001600160a01b0390911681526020016101b2565b61022861022336600461103a565b61059b565b005b34801561023657600080fd5b50600254600154035b6040519081526020016101b2565b61022861025b366004611064565b6105ab565b34801561026c57600080fd5b50610228610710565b61022861028336600461103a565b6107aa565b610228610296366004611064565b6108a3565b3480156102a757600080fd5b506102286102b636600461100a565b6108c3565b3480156102c757600080fd5b506102286102d636600461100a565b6108d0565b3480156102e757600080fd5b506102286102f63660046110a0565b6108dd565b34801561030757600080fd5b506101fd61031636600461100a565b6108f2565b34801561032757600080fd5b5061023f610336366004611112565b6108fd565b34801561034757600080fd5b50610228610943565b34801561035c57600080fd5b50600c546101a69060ff1681565b34801561037657600080fd5b5061023f600a5481565b34801561038c57600080fd5b506000546001600160a01b03166101fd565b3480156103aa57600080fd5b506101d0610957565b3480156103bf57600080fd5b506102286103ce36600461113d565b610966565b3480156103df57600080fd5b5061023f600b5481565b6102286103f7366004611186565b6109d2565b34801561040857600080fd5b506101d061041736600461100a565b610a13565b34801561042857600080fd5b506101a6610437366004611262565b610a8e565b34801561044857600080fd5b50610228610457366004611112565b610abc565b34801561046857600080fd5b5061022861047736600461128c565b610b32565b60006301ffc9a760e01b6001600160e01b0319831614806104ad57506380ac58cd60e01b6001600160e01b03198316145b806104c85750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600380546104dd906112a7565b80601f0160208091040260200160405190810160405280929190818152602001828054610509906112a7565b80156105565780601f1061052b57610100808354040283529160200191610556565b820191906000526020600020905b81548152906001019060200180831161053957829003601f168201915b5050505050905090565b600061056b82610b4d565b61057f5761057f6333d1c03960e21b610b93565b506000908152600760205260409020546001600160a01b031690565b6105a782826001610b9d565b5050565b60006105b682610c40565b6001600160a01b0394851694909150811684146105dc576105dc62a1148160e81b610b93565b60008281526007602052604090208054338082146001600160a01b038816909114176106205761060c8633610a8e565b61062057610620632ce44b5f60e11b610b93565b801561062b57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b841690036106bd576001840160008181526005602052604081205490036106bb5760015481146106bb5760008181526005602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361070757610707633a954ecd60e21b610b93565b50505050505050565b610718610cd6565b604051600090339047908381818185875af1925050503d806000811461075a576040519150601f19603f3d011682016040523d82523d6000602084013e61075f565b606091505b50509050806107a75760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8811985a5b1959608a1b60448201526064015b60405180910390fd5b50565b600c5460ff16156107ee5760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d081a5cc81c185d5cd95960921b604482015260640161079e565b600a546107fb90826112f7565b34101561083f5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b604482015260640161079e565b600b541561089957600b548111156108995760405162461bcd60e51b815260206004820181905260248201527f596f752063616e6e6f74206d696e742074686174206d616e7920746f6b656e73604482015260640161079e565b6105a78282610d30565b6108be838383604051806020016040528060008152506109d2565b505050565b6108cb610cd6565b600a55565b6108d8610cd6565b600b55565b6108e5610cd6565b600d6108be82848361135c565b60006104c882610c40565b60006001600160a01b03821661091d5761091d6323d3ad8160e21b610b93565b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b61094b610cd6565b6109556000610def565b565b6060600480546104dd906112a7565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6109dd8484846105ab565b6001600160a01b0383163b15610a0d576109f984848484610e3f565b610a0d57610a0d6368d2bf6b60e11b610b93565b50505050565b6060610a1e82610b4d565b610a3257610a32630a14c4b560e41b610b93565b6000610a3c610f21565b90508051600003610a5c5760405180602001604052806000815250610a87565b80610a6684610f30565b604051602001610a7792919061141d565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b610ac4610cd6565b6001600160a01b038116610b295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161079e565b6107a781610def565b610b3a610cd6565b600c805460ff1916911515919091179055565b6000600154821015610b8e5760005b5060008281526005602052604081205490819003610b8457610b7d8361144c565b9250610b5c565b600160e01b161590505b919050565b8060005260046000fd5b6000610ba8836108f2565b9050818015610bc05750336001600160a01b03821614155b15610be357610bcf8133610a8e565b610be357610be36367d9dca160e11b610b93565b60008381526007602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b60008181526005602052604090205480600003610cb3576001548210610c7057610c70636f96cda160e11b610b93565b5b50600019016000818152600560205260409020548015610c7157600160e01b8116600003610c9e57919050565b610cae636f96cda160e11b610b93565b610c71565b600160e01b8116600003610cc657919050565b610b8e636f96cda160e11b610b93565b6000546001600160a01b031633146109555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079e565b6001546000829003610d4c57610d4c63b562e8dd60e01b610b93565b60008181526005602090815260408083206001600160a01b0387164260a01b6001881460e11b17811790915580845260069092528220805468010000000000000001860201905590819003610daa57610daa622e076360e81b610b93565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103610daf575060015550505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610e74903390899088908890600401611463565b6020604051808303816000875af1925050508015610eaf575060408051601f3d908101601f19168201909252610eac918101906114a0565b60015b610f04573d808015610edd576040519150601f19603f3d011682016040523d82523d6000602084013e610ee2565b606091505b508051600003610efc57610efc6368d2bf6b60e11b610b93565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600d80546104dd906112a7565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480610f4a5750819003601f19909101908152919050565b6001600160e01b0319811681146107a757600080fd5b600060208284031215610f9c57600080fd5b8135610a8781610f74565b60005b83811015610fc2578181015183820152602001610faa565b50506000910152565b60008151808452610fe3816020860160208601610fa7565b601f01601f19169290920160200192915050565b602081526000610a876020830184610fcb565b60006020828403121561101c57600080fd5b5035919050565b80356001600160a01b0381168114610b8e57600080fd5b6000806040838503121561104d57600080fd5b61105683611023565b946020939093013593505050565b60008060006060848603121561107957600080fd5b61108284611023565b925061109060208501611023565b9150604084013590509250925092565b600080602083850312156110b357600080fd5b823567ffffffffffffffff808211156110cb57600080fd5b818501915085601f8301126110df57600080fd5b8135818111156110ee57600080fd5b86602082850101111561110057600080fd5b60209290920196919550909350505050565b60006020828403121561112457600080fd5b610a8782611023565b80358015158114610b8e57600080fd5b6000806040838503121561115057600080fd5b61115983611023565b91506111676020840161112d565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561119c57600080fd5b6111a585611023565b93506111b360208601611023565b925060408501359150606085013567ffffffffffffffff808211156111d757600080fd5b818701915087601f8301126111eb57600080fd5b8135818111156111fd576111fd611170565b604051601f8201601f19908116603f0116810190838211818310171561122557611225611170565b816040528281528a602084870101111561123e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561127557600080fd5b61127e83611023565b915061116760208401611023565b60006020828403121561129e57600080fd5b610a878261112d565b600181811c908216806112bb57607f821691505b6020821081036112db57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176104c8576104c86112e1565b601f8211156108be57600081815260208120601f850160051c810160208610156113355750805b601f850160051c820191505b8181101561135457828155600101611341565b505050505050565b67ffffffffffffffff83111561137457611374611170565b6113888361138283546112a7565b8361130e565b6000601f8411600181146113bc57600085156113a45750838201355b600019600387901b1c1916600186901b178355611416565b600083815260209020601f19861690835b828110156113ed57868501358255602094850194600190920191016113cd565b508682101561140a5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6000835161142f818460208801610fa7565b835190830190611443818360208801610fa7565b01949350505050565b60008161145b5761145b6112e1565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061149690830184610fcb565b9695505050505050565b6000602082840312156114b257600080fd5b8151610a8781610f7456fea2646970667358221220152388ccc603a715a3433eab00cda6902787a4684c158cbf25da3ac472ad503364736f6c63430008140033
Deployed Bytecode
0x6080604052600436106101815760003560e01c806370a08231116100d1578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd146103fc578063e985e9c51461041c578063f2fde38b1461043c578063f30e6e771461045c57600080fd5b8063a22cb465146103b3578063a25b8469146103d3578063b88d4fde146103e957600080fd5b806370a082311461031b578063715018a61461033b5780637e4831d314610350578063833b94991461036a5780638da5cb5b1461038057806395d89b411461039e57600080fd5b80633ccfd60b1161013e57806344a0d68a1161011857806344a0d68a1461029b578063547520fe146102bb57806355f804b3146102db5780636352211e146102fb57600080fd5b80633ccfd60b1461026057806340c10f191461027557806342842e0e1461028857600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806318160ddd1461022a57806323b872dd1461024d575b600080fd5b34801561019257600080fd5b506101a66101a1366004610f8a565b61047c565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d06104ce565b6040516101b29190610ff7565b3480156101e957600080fd5b506101fd6101f836600461100a565b610560565b6040516001600160a01b0390911681526020016101b2565b61022861022336600461103a565b61059b565b005b34801561023657600080fd5b50600254600154035b6040519081526020016101b2565b61022861025b366004611064565b6105ab565b34801561026c57600080fd5b50610228610710565b61022861028336600461103a565b6107aa565b610228610296366004611064565b6108a3565b3480156102a757600080fd5b506102286102b636600461100a565b6108c3565b3480156102c757600080fd5b506102286102d636600461100a565b6108d0565b3480156102e757600080fd5b506102286102f63660046110a0565b6108dd565b34801561030757600080fd5b506101fd61031636600461100a565b6108f2565b34801561032757600080fd5b5061023f610336366004611112565b6108fd565b34801561034757600080fd5b50610228610943565b34801561035c57600080fd5b50600c546101a69060ff1681565b34801561037657600080fd5b5061023f600a5481565b34801561038c57600080fd5b506000546001600160a01b03166101fd565b3480156103aa57600080fd5b506101d0610957565b3480156103bf57600080fd5b506102286103ce36600461113d565b610966565b3480156103df57600080fd5b5061023f600b5481565b6102286103f7366004611186565b6109d2565b34801561040857600080fd5b506101d061041736600461100a565b610a13565b34801561042857600080fd5b506101a6610437366004611262565b610a8e565b34801561044857600080fd5b50610228610457366004611112565b610abc565b34801561046857600080fd5b5061022861047736600461128c565b610b32565b60006301ffc9a760e01b6001600160e01b0319831614806104ad57506380ac58cd60e01b6001600160e01b03198316145b806104c85750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600380546104dd906112a7565b80601f0160208091040260200160405190810160405280929190818152602001828054610509906112a7565b80156105565780601f1061052b57610100808354040283529160200191610556565b820191906000526020600020905b81548152906001019060200180831161053957829003601f168201915b5050505050905090565b600061056b82610b4d565b61057f5761057f6333d1c03960e21b610b93565b506000908152600760205260409020546001600160a01b031690565b6105a782826001610b9d565b5050565b60006105b682610c40565b6001600160a01b0394851694909150811684146105dc576105dc62a1148160e81b610b93565b60008281526007602052604090208054338082146001600160a01b038816909114176106205761060c8633610a8e565b61062057610620632ce44b5f60e11b610b93565b801561062b57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b841690036106bd576001840160008181526005602052604081205490036106bb5760015481146106bb5760008181526005602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361070757610707633a954ecd60e21b610b93565b50505050505050565b610718610cd6565b604051600090339047908381818185875af1925050503d806000811461075a576040519150601f19603f3d011682016040523d82523d6000602084013e61075f565b606091505b50509050806107a75760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8811985a5b1959608a1b60448201526064015b60405180910390fd5b50565b600c5460ff16156107ee5760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d081a5cc81c185d5cd95960921b604482015260640161079e565b600a546107fb90826112f7565b34101561083f5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b604482015260640161079e565b600b541561089957600b548111156108995760405162461bcd60e51b815260206004820181905260248201527f596f752063616e6e6f74206d696e742074686174206d616e7920746f6b656e73604482015260640161079e565b6105a78282610d30565b6108be838383604051806020016040528060008152506109d2565b505050565b6108cb610cd6565b600a55565b6108d8610cd6565b600b55565b6108e5610cd6565b600d6108be82848361135c565b60006104c882610c40565b60006001600160a01b03821661091d5761091d6323d3ad8160e21b610b93565b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b61094b610cd6565b6109556000610def565b565b6060600480546104dd906112a7565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6109dd8484846105ab565b6001600160a01b0383163b15610a0d576109f984848484610e3f565b610a0d57610a0d6368d2bf6b60e11b610b93565b50505050565b6060610a1e82610b4d565b610a3257610a32630a14c4b560e41b610b93565b6000610a3c610f21565b90508051600003610a5c5760405180602001604052806000815250610a87565b80610a6684610f30565b604051602001610a7792919061141d565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b610ac4610cd6565b6001600160a01b038116610b295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161079e565b6107a781610def565b610b3a610cd6565b600c805460ff1916911515919091179055565b6000600154821015610b8e5760005b5060008281526005602052604081205490819003610b8457610b7d8361144c565b9250610b5c565b600160e01b161590505b919050565b8060005260046000fd5b6000610ba8836108f2565b9050818015610bc05750336001600160a01b03821614155b15610be357610bcf8133610a8e565b610be357610be36367d9dca160e11b610b93565b60008381526007602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b60008181526005602052604090205480600003610cb3576001548210610c7057610c70636f96cda160e11b610b93565b5b50600019016000818152600560205260409020548015610c7157600160e01b8116600003610c9e57919050565b610cae636f96cda160e11b610b93565b610c71565b600160e01b8116600003610cc657919050565b610b8e636f96cda160e11b610b93565b6000546001600160a01b031633146109555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079e565b6001546000829003610d4c57610d4c63b562e8dd60e01b610b93565b60008181526005602090815260408083206001600160a01b0387164260a01b6001881460e11b17811790915580845260069092528220805468010000000000000001860201905590819003610daa57610daa622e076360e81b610b93565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103610daf575060015550505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610e74903390899088908890600401611463565b6020604051808303816000875af1925050508015610eaf575060408051601f3d908101601f19168201909252610eac918101906114a0565b60015b610f04573d808015610edd576040519150601f19603f3d011682016040523d82523d6000602084013e610ee2565b606091505b508051600003610efc57610efc6368d2bf6b60e11b610b93565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600d80546104dd906112a7565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480610f4a5750819003601f19909101908152919050565b6001600160e01b0319811681146107a757600080fd5b600060208284031215610f9c57600080fd5b8135610a8781610f74565b60005b83811015610fc2578181015183820152602001610faa565b50506000910152565b60008151808452610fe3816020860160208601610fa7565b601f01601f19169290920160200192915050565b602081526000610a876020830184610fcb565b60006020828403121561101c57600080fd5b5035919050565b80356001600160a01b0381168114610b8e57600080fd5b6000806040838503121561104d57600080fd5b61105683611023565b946020939093013593505050565b60008060006060848603121561107957600080fd5b61108284611023565b925061109060208501611023565b9150604084013590509250925092565b600080602083850312156110b357600080fd5b823567ffffffffffffffff808211156110cb57600080fd5b818501915085601f8301126110df57600080fd5b8135818111156110ee57600080fd5b86602082850101111561110057600080fd5b60209290920196919550909350505050565b60006020828403121561112457600080fd5b610a8782611023565b80358015158114610b8e57600080fd5b6000806040838503121561115057600080fd5b61115983611023565b91506111676020840161112d565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561119c57600080fd5b6111a585611023565b93506111b360208601611023565b925060408501359150606085013567ffffffffffffffff808211156111d757600080fd5b818701915087601f8301126111eb57600080fd5b8135818111156111fd576111fd611170565b604051601f8201601f19908116603f0116810190838211818310171561122557611225611170565b816040528281528a602084870101111561123e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561127557600080fd5b61127e83611023565b915061116760208401611023565b60006020828403121561129e57600080fd5b610a878261112d565b600181811c908216806112bb57607f821691505b6020821081036112db57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176104c8576104c86112e1565b601f8211156108be57600081815260208120601f850160051c810160208610156113355750805b601f850160051c820191505b8181101561135457828155600101611341565b505050505050565b67ffffffffffffffff83111561137457611374611170565b6113888361138283546112a7565b8361130e565b6000601f8411600181146113bc57600085156113a45750838201355b600019600387901b1c1916600186901b178355611416565b600083815260209020601f19861690835b828110156113ed57868501358255602094850194600190920191016113cd565b508682101561140a5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6000835161142f818460208801610fa7565b835190830190611443818360208801610fa7565b01949350505050565b60008161145b5761145b6112e1565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061149690830184610fcb565b9695505050505050565b6000602082840312156114b257600080fd5b8151610a8781610f7456fea2646970667358221220152388ccc603a715a3433eab00cda6902787a4684c158cbf25da3ac472ad503364736f6c63430008140033
Deployed Bytecode Sourcemap
10523:1460:3:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10979:639:1;;;;;;;;;;-1:-1:-1;10979:639:1;;;;;:::i;:::-;;:::i;:::-;;;565:14:5;;558:22;540:41;;528:2;513:18;10979:639:1;;;;;;;;11881:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;19121:227::-;;;;;;;;;;-1:-1:-1;19121:227:1;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:5;;;1679:51;;1667:2;1652:18;19121:227:1;1533:203:5;18838:124:1;;;;;;:::i;:::-;;:::i;:::-;;7083:573;;;;;;;;;;-1:-1:-1;7527:12:1;;7511:13;;:28;7083:573;;;2324:25:5;;;2312:2;2297:18;7083:573:1;2178:177:5;23393:3523:1;;;;;;:::i;:::-;;:::i;11481:172:3:-;;;;;;;;;;;;;:::i;10883:383::-;;;;;;:::i;:::-;;:::i;27012:193:1:-;;;;;;:::i;:::-;;:::i;11274:91:3:-;;;;;;;;;;-1:-1:-1;11274:91:3;;;;;:::i;:::-;;:::i;11371:102::-;;;;;;;;;;-1:-1:-1;11371:102:3;;;;;:::i;:::-;;:::i;11661:106::-;;;;;;;;;;-1:-1:-1;11661:106:3;;;;;:::i;:::-;;:::i;13283:152:1:-;;;;;;;;;;-1:-1:-1;13283:152:1;;;;;:::i;:::-;;:::i;8807:242::-;;;;;;;;;;-1:-1:-1;8807:242:1;;;;;:::i;:::-;;:::i;1867:103:4:-;;;;;;;;;;;;;:::i;10693:22:3:-;;;;;;;;;;-1:-1:-1;10693:22:3;;;;;;;;10595:34;;;;;;;;;;;;;;;;1223:87:4;;;;;;;;;;-1:-1:-1;1269:7:4;1296:6;-1:-1:-1;;;;;1296:6:4;1223:87;;12057:104:1;;;;;;;;;;;;;:::i;19688:234::-;;;;;;;;;;-1:-1:-1;19688:234:1;;;;;:::i;:::-;;:::i;10636:44:3:-;;;;;;;;;;;;;;;;27803:416:1;;;;;;:::i;:::-;;:::i;12267:327::-;;;;;;;;;;-1:-1:-1;12267:327:1;;;;;:::i;:::-;;:::i;20079:164::-;;;;;;;;;;-1:-1:-1;20079:164:1;;;;;:::i;:::-;;:::i;2123:201:4:-;;;;;;;;;;-1:-1:-1;2123:201:4;;;;;:::i;:::-;;:::i;11889:91:3:-;;;;;;;;;;-1:-1:-1;11889:91:3;;;;;:::i;:::-;;:::i;10979:639:1:-;11064:4;-1:-1:-1;;;;;;;;;11388:25:1;;;;:102;;-1:-1:-1;;;;;;;;;;11465:25:1;;;11388:102;:179;;;-1:-1:-1;;;;;;;;;;11542:25:1;;;11388:179;11368:199;10979:639;-1:-1:-1;;10979:639:1:o;11881:100::-;11935:13;11968:5;11961:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11881:100;:::o;19121:227::-;19197:7;19222:16;19230:7;19222;:16::i;:::-;19217:73;;19240:50;-1:-1:-1;;;19240:7:1;:50::i;:::-;-1:-1:-1;19310:24:1;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;19310:30:1;;19121:227::o;18838:124::-;18927:27;18936:2;18940:7;18949:4;18927:8;:27::i;:::-;18838:124;;:::o;23393:3523::-;23535:27;23565;23584:7;23565:18;:27::i;:::-;-1:-1:-1;;;;;23720:22:1;;;;23535:57;;-1:-1:-1;23780:45:1;;;;23776:95;;23827:44;-1:-1:-1;;;23827:7:1;:44::i;:::-;23885:27;22501:24;;;:15;:24;;;;;22729:26;;49078:10;22126:30;;;-1:-1:-1;;;;;21819:28:1;;22104:20;;;22101:56;24071:189;;24164:43;24181:4;49078:10;20079:164;:::i;24164:43::-;24159:101;;24209:51;-1:-1:-1;;;24209:7:1;:51::i;:::-;24409:15;24406:160;;;24549:1;24528:19;24521:30;24406:160;-1:-1:-1;;;;;24946:24:1;;;;;;;:18;:24;;;;;;24944:26;;-1:-1:-1;;24944:26:1;;;25015:22;;;;;;;;;25013:24;;-1:-1:-1;25013:24:1;;;17940:11;17915:23;17911:41;17898:63;-1:-1:-1;;;17898:63:1;25308:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;25603:47:1;;:52;;25599:627;;25708:1;25698:11;;25676:19;25831:30;;;:17;:30;;;;;;:35;;25827:384;;25969:13;;25954:11;:28;25950:242;;26116:30;;;;:17;:30;;;;;:52;;;25950:242;25657:569;25599:627;-1:-1:-1;;;;;26358:20:1;;26738:7;26358:20;26668:4;26610:25;26339:16;;26475:299;26799:8;26811:1;26799:13;26795:58;;26814:39;-1:-1:-1;;;26814:7:1;:39::i;:::-;23524:3392;;;;23393:3523;;;:::o;11481:172:3:-;1111:13:4;:11;:13::i;:::-;11550:49:3::1;::::0;11532:12:::1;::::0;11550:10:::1;::::0;11573:21:::1;::::0;11532:12;11550:49;11532:12;11550:49;11573:21;11550:10;:49:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11531:68;;;11618:7;11610:35;;;::::0;-1:-1:-1;;;11610:35:3;;6427:2:5;11610:35:3::1;::::0;::::1;6409:21:5::0;6466:2;6446:18;;;6439:30;-1:-1:-1;;;6485:18:5;;;6478:45;6540:18;;11610:35:3::1;;;;;;;;;11520:133;11481:172::o:0;10883:383::-;10964:10;;;;10963:11;10955:38;;;;-1:-1:-1;;;10955:38:3;;6771:2:5;10955:38:3;;;6753:21:5;6810:2;6790:18;;;6783:30;-1:-1:-1;;;6829:18:5;;;6822:44;6883:18;;10955:38:3;6569:338:5;10955:38:3;11036:15;;11025:26;;:8;:26;:::i;:::-;11012:9;:39;;11004:70;;;;-1:-1:-1;;;11004:70:3;;7419:2:5;11004:70:3;;;7401:21:5;7458:2;7438:18;;;7431:30;-1:-1:-1;;;7477:18:5;;;7470:48;7535:18;;11004:70:3;7217:342:5;11004:70:3;11089:25;;:29;11085:144;;11155:25;;11143:8;:37;;11135:82;;;;-1:-1:-1;;;11135:82:3;;7766:2:5;11135:82:3;;;7748:21:5;;;7785:18;;;7778:30;7844:34;7824:18;;;7817:62;7896:18;;11135:82:3;7564:356:5;11135:82:3;11239:19;11245:2;11249:8;11239:5;:19::i;27012:193:1:-;27158:39;27175:4;27181:2;27185:7;27158:39;;;;;;;;;;;;:16;:39::i;:::-;27012:193;;;:::o;11274:91:3:-;1111:13:4;:11;:13::i;:::-;11334:15:3::1;:23:::0;11274:91::o;11371:102::-;1111:13:4;:11;:13::i;:::-;11433:25:3::1;:32:::0;11371:102::o;11661:106::-;1111:13:4;:11;:13::i;:::-;11736::3::1;:23;11752:7:::0;;11736:13;:23:::1;:::i;13283:152:1:-:0;13355:7;13398:27;13417:7;13398:18;:27::i;8807:242::-;8879:7;-1:-1:-1;;;;;8903:19:1;;8899:69;;8924:44;-1:-1:-1;;;8924:7:1;:44::i;:::-;-1:-1:-1;;;;;;8986:25:1;;;;;:18;:25;;;;;;1567:13;8986:55;;8807:242::o;1867:103:4:-;1111:13;:11;:13::i;:::-;1932:30:::1;1959:1;1932:18;:30::i;:::-;1867:103::o:0;12057:104:1:-;12113:13;12146:7;12139:14;;;;;:::i;19688:234::-;49078:10;19783:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;19783:49:1;;;;;;;;;;;;:60;;-1:-1:-1;;19783:60:1;;;;;;;;;;19859:55;;540:41:5;;;19783:49:1;;49078:10;19859:55;;513:18:5;19859:55:1;;;;;;;19688:234;;:::o;27803:416::-;27978:31;27991:4;27997:2;28001:7;27978:12;:31::i;:::-;-1:-1:-1;;;;;28024:14:1;;;:19;28020:192;;28063:56;28094:4;28100:2;28104:7;28113:5;28063:30;:56::i;:::-;28058:154;;28140:56;-1:-1:-1;;;28140:7:1;:56::i;:::-;27803:416;;;;:::o;12267:327::-;12340:13;12371:16;12379:7;12371;:16::i;:::-;12366:68;;12389:45;-1:-1:-1;;;12389:7:1;:45::i;:::-;12447:21;12471:10;:8;:10::i;:::-;12447:34;;12505:7;12499:21;12524:1;12499:26;:87;;;;;;;;;;;;;;;;;12552:7;12561:18;12571:7;12561:9;:18::i;:::-;12535:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;12499:87;12492:94;12267:327;-1:-1:-1;;;12267:327:1:o;20079:164::-;-1:-1:-1;;;;;20200:25:1;;;20176:4;20200:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;20079:164::o;2123:201:4:-;1111:13;:11;:13::i;:::-;-1:-1:-1;;;;;2212:22:4;::::1;2204:73;;;::::0;-1:-1:-1;;;2204:73:4;;10686:2:5;2204:73:4::1;::::0;::::1;10668:21:5::0;10725:2;10705:18;;;10698:30;10764:34;10744:18;;;10737:62;-1:-1:-1;;;10815:18:5;;;10808:36;10861:19;;2204:73:4::1;10484:402:5::0;2204:73:4::1;2288:28;2307:8;2288:18;:28::i;11889:91:3:-:0;1111:13:4;:11;:13::i;:::-;11952:10:3::1;:20:::0;;-1:-1:-1;;11952:20:3::1;::::0;::::1;;::::0;;;::::1;::::0;;11889:91::o;20501:475:1:-;20566:11;20758:13;;20748:7;:23;20744:214;;;20792:14;20825:60;-1:-1:-1;20842:26:1;;;;:17;:26;;;;;;;20832:42;;;20825:60;;20876:9;;;:::i;:::-;;;20825:60;;;-1:-1:-1;;;20913:24:1;:29;;-1:-1:-1;20744:214:1;20501:475;;;:::o;51010:165::-;51111:13;51105:4;51098:27;51152:4;51146;51139:18;42425:474;42554:13;42570:16;42578:7;42570;:16::i;:::-;42554:32;;42603:13;:45;;;;-1:-1:-1;49078:10:1;-1:-1:-1;;;;;42620:28:1;;;;42603:45;42599:201;;;42668:44;42685:5;49078:10;20079:164;:::i;42668:44::-;42663:137;;42733:51;-1:-1:-1;;;42733:7:1;:51::i;:::-;42812:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;42812:35:1;-1:-1:-1;;;;;42812:35:1;;;;;;;;;42863:28;;42812:24;;42863:28;;;;;;;42543:356;42425:474;;;:::o;14768:2213::-;14918:26;;;;:17;:26;;;;;;15245:6;15255:1;15245:11;15241:1292;;15292:13;;15281:7;:24;15277:77;;15307:47;-1:-1:-1;;;15307:7:1;:47::i;:::-;15911:607;-1:-1:-1;;;16007:9:1;15989:28;;;;:17;:28;;;;;;16063:25;;15911:607;16063:25;-1:-1:-1;;;16115:6:1;:24;16143:1;16115:29;16111:48;;14768:2213;;;:::o;16111:48::-;16451:47;-1:-1:-1;;;16451:7:1;:47::i;:::-;15911:607;;15241:1292;-1:-1:-1;;;16860:6:1;:24;16888:1;16860:29;16856:48;;14768:2213;;;:::o;16856:48::-;16926:47;-1:-1:-1;;;16926:7:1;:47::i;1386:132:4:-;1269:7;1296:6;-1:-1:-1;;;;;1296:6:4;49078:10:1;1450:23:4;1442:68;;;;-1:-1:-1;;;1442:68:4;;11234:2:5;1442:68:4;;;11216:21:5;;;11253:18;;;11246:30;11312:34;11292:18;;;11285:62;11364:18;;1442:68:4;11032:356:5;31456:2399:1;31552:13;;31529:20;31580:13;;;31576:53;;31595:34;-1:-1:-1;;;31595:7:1;:34::i;:::-;32142:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;17766:28:1;;17940:11;17915:23;17911:41;18384:1;18371:15;;18345:24;18341:46;17908:52;17898:63;;32142:173;;;32533:22;;;:18;:22;;;;;:71;;32571:32;32559:45;;32533:71;;;17766:28;32794:13;;;32790:54;;32809:35;-1:-1:-1;;;32809:7:1;:35::i;:::-;32875:23;;;;33054:676;33473:7;33429:8;33384:1;33318:25;33255:1;33190;33159:358;33725:3;33712:9;;;;;;:16;33054:676;;-1:-1:-1;33746:13:1;:19;-1:-1:-1;27012:193:1;;;:::o;2482:191:4:-;2556:16;2575:6;;-1:-1:-1;;;;;2592:17:4;;;-1:-1:-1;;;;;;2592:17:4;;;;;;2625:40;;2575:6;;;;;;;2625:40;;2556:16;2625:40;2545:128;2482:191;:::o;30303:691:1:-;30487:88;;-1:-1:-1;;;30487:88:1;;30466:4;;-1:-1:-1;;;;;30487:45:1;;;;;:88;;49078:10;;30554:4;;30560:7;;30569:5;;30487:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30487:88:1;;;;;;;;-1:-1:-1;;30487:88:1;;;;;;;;;;;;:::i;:::-;;;30483:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30770:6;:13;30787:1;30770:18;30766:115;;30809:56;-1:-1:-1;;;30809:7:1;:56::i;:::-;30953:6;30947:13;30938:6;30934:2;30930:15;30923:38;30483:504;-1:-1:-1;;;;;;30646:64:1;-1:-1:-1;;;30646:64:1;;-1:-1:-1;30303:691:1;;;;;;:::o;11775:106:3:-;11827:13;11860;11853:20;;;;;:::i;49198:1745:1:-;49263:17;49697:4;49690;49684:11;49680:22;49789:1;49783:4;49776:15;49864:4;49861:1;49857:12;49850:19;;;49946:1;49941:3;49934:14;50050:3;50289:5;50271:428;50337:1;50332:3;50328:11;50321:18;;50508:2;50502:4;50498:13;50494:2;50490:22;50485:3;50477:36;50602:2;50592:13;;50659:25;50271:428;50659:25;-1:-1:-1;50729:13:1;;;-1:-1:-1;;50844:14:1;;;50906:19;;;50844:14;49198:1745;-1:-1:-1;49198:1745:1:o;14:131:5:-;-1:-1:-1;;;;;;88:32:5;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:5;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:5;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:5:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:5;;1348:180;-1:-1:-1;1348:180:5:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:5;;1848:42;;1838:70;;1904:1;1901;1894:12;1919:254;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:5:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:592::-;2764:6;2772;2825:2;2813:9;2804:7;2800:23;2796:32;2793:52;;;2841:1;2838;2831:12;2793:52;2881:9;2868:23;2910:18;2951:2;2943:6;2940:14;2937:34;;;2967:1;2964;2957:12;2937:34;3005:6;2994:9;2990:22;2980:32;;3050:7;3043:4;3039:2;3035:13;3031:27;3021:55;;3072:1;3069;3062:12;3021:55;3112:2;3099:16;3138:2;3130:6;3127:14;3124:34;;;3154:1;3151;3144:12;3124:34;3199:7;3194:2;3185:6;3181:2;3177:15;3173:24;3170:37;3167:57;;;3220:1;3217;3210:12;3167:57;3251:2;3243:11;;;;;3273:6;;-1:-1:-1;2693:592:5;;-1:-1:-1;;;;2693:592:5:o;3290:186::-;3349:6;3402:2;3390:9;3381:7;3377:23;3373:32;3370:52;;;3418:1;3415;3408:12;3370:52;3441:29;3460:9;3441:29;:::i;3481:160::-;3546:20;;3602:13;;3595:21;3585:32;;3575:60;;3631:1;3628;3621:12;3646:254;3711:6;3719;3772:2;3760:9;3751:7;3747:23;3743:32;3740:52;;;3788:1;3785;3778:12;3740:52;3811:29;3830:9;3811:29;:::i;:::-;3801:39;;3859:35;3890:2;3879:9;3875:18;3859:35;:::i;:::-;3849:45;;3646:254;;;;;:::o;3905:127::-;3966:10;3961:3;3957:20;3954:1;3947:31;3997:4;3994:1;3987:15;4021:4;4018:1;4011:15;4037:1138;4132:6;4140;4148;4156;4209:3;4197:9;4188:7;4184:23;4180:33;4177:53;;;4226:1;4223;4216:12;4177:53;4249:29;4268:9;4249:29;:::i;:::-;4239:39;;4297:38;4331:2;4320:9;4316:18;4297:38;:::i;:::-;4287:48;;4382:2;4371:9;4367:18;4354:32;4344:42;;4437:2;4426:9;4422:18;4409:32;4460:18;4501:2;4493:6;4490:14;4487:34;;;4517:1;4514;4507:12;4487:34;4555:6;4544:9;4540:22;4530:32;;4600:7;4593:4;4589:2;4585:13;4581:27;4571:55;;4622:1;4619;4612:12;4571:55;4658:2;4645:16;4680:2;4676;4673:10;4670:36;;;4686:18;;:::i;:::-;4761:2;4755:9;4729:2;4815:13;;-1:-1:-1;;4811:22:5;;;4835:2;4807:31;4803:40;4791:53;;;4859:18;;;4879:22;;;4856:46;4853:72;;;4905:18;;:::i;:::-;4945:10;4941:2;4934:22;4980:2;4972:6;4965:18;5020:7;5015:2;5010;5006;5002:11;4998:20;4995:33;4992:53;;;5041:1;5038;5031:12;4992:53;5097:2;5092;5088;5084:11;5079:2;5071:6;5067:15;5054:46;5142:1;5137:2;5132;5124:6;5120:15;5116:24;5109:35;5163:6;5153:16;;;;;;;4037:1138;;;;;;;:::o;5180:260::-;5248:6;5256;5309:2;5297:9;5288:7;5284:23;5280:32;5277:52;;;5325:1;5322;5315:12;5277:52;5348:29;5367:9;5348:29;:::i;:::-;5338:39;;5396:38;5430:2;5419:9;5415:18;5396:38;:::i;5445:180::-;5501:6;5554:2;5542:9;5533:7;5529:23;5525:32;5522:52;;;5570:1;5567;5560:12;5522:52;5593:26;5609:9;5593:26;:::i;5630:380::-;5709:1;5705:12;;;;5752;;;5773:61;;5827:4;5819:6;5815:17;5805:27;;5773:61;5880:2;5872:6;5869:14;5849:18;5846:38;5843:161;;5926:10;5921:3;5917:20;5914:1;5907:31;5961:4;5958:1;5951:15;5989:4;5986:1;5979:15;5843:161;;5630:380;;;:::o;6912:127::-;6973:10;6968:3;6964:20;6961:1;6954:31;7004:4;7001:1;6994:15;7028:4;7025:1;7018:15;7044:168;7117:9;;;7148;;7165:15;;;7159:22;;7145:37;7135:71;;7186:18;;:::i;8051:545::-;8153:2;8148:3;8145:11;8142:448;;;8189:1;8214:5;8210:2;8203:17;8259:4;8255:2;8245:19;8329:2;8317:10;8313:19;8310:1;8306:27;8300:4;8296:38;8365:4;8353:10;8350:20;8347:47;;;-1:-1:-1;8388:4:5;8347:47;8443:2;8438:3;8434:12;8431:1;8427:20;8421:4;8417:31;8407:41;;8498:82;8516:2;8509:5;8506:13;8498:82;;;8561:17;;;8542:1;8531:13;8498:82;;;8502:3;;;8051:545;;;:::o;8772:1206::-;8896:18;8891:3;8888:27;8885:53;;;8918:18;;:::i;:::-;8947:94;9037:3;8997:38;9029:4;9023:11;8997:38;:::i;:::-;8991:4;8947:94;:::i;:::-;9067:1;9092:2;9087:3;9084:11;9109:1;9104:616;;;;9764:1;9781:3;9778:93;;;-1:-1:-1;9837:19:5;;;9824:33;9778:93;-1:-1:-1;;8729:1:5;8725:11;;;8721:24;8717:29;8707:40;8753:1;8749:11;;;8704:57;9884:78;;9077:895;;9104:616;7998:1;7991:14;;;8035:4;8022:18;;-1:-1:-1;;9140:17:5;;;9241:9;9263:229;9277:7;9274:1;9271:14;9263:229;;;9366:19;;;9353:33;9338:49;;9473:4;9458:20;;;;9426:1;9414:14;;;;9293:12;9263:229;;;9267:3;9520;9511:7;9508:16;9505:159;;;9644:1;9640:6;9634:3;9628;9625:1;9621:11;9617:21;9613:34;9609:39;9596:9;9591:3;9587:19;9574:33;9570:79;9562:6;9555:95;9505:159;;;9707:1;9701:3;9698:1;9694:11;9690:19;9684:4;9677:33;9077:895;;;8772:1206;;;:::o;9983:496::-;10162:3;10200:6;10194:13;10216:66;10275:6;10270:3;10263:4;10255:6;10251:17;10216:66;:::i;:::-;10345:13;;10304:16;;;;10367:70;10345:13;10304:16;10414:4;10402:17;;10367:70;:::i;:::-;10453:20;;9983:496;-1:-1:-1;;;;9983:496:5:o;10891:136::-;10930:3;10958:5;10948:39;;10967:18;;:::i;:::-;-1:-1:-1;;;11003:18:5;;10891:136::o;11393:489::-;-1:-1:-1;;;;;11662:15:5;;;11644:34;;11714:15;;11709:2;11694:18;;11687:43;11761:2;11746:18;;11739:34;;;11809:3;11804:2;11789:18;;11782:31;;;11587:4;;11830:46;;11856:19;;11848:6;11830:46;:::i;:::-;11822:54;11393:489;-1:-1:-1;;;;;;11393:489:5:o;11887:249::-;11956:6;12009:2;11997:9;11988:7;11984:23;11980:32;11977:52;;;12025:1;12022;12015:12;11977:52;12057:9;12051:16;12076:30;12100:5;12076:30;:::i
Swarm Source
ipfs://152388ccc603a715a3433eab00cda6902787a4684c158cbf25da3ac472ad5033
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.