Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
156 CHIPS
Holders
76
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 CHIPSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheBlueChips
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-10-04 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // 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(); // ============================================================= // 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); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: contracts/TheBlueChips.sol pragma solidity ^0.8.4; contract TheBlueChips is ERC721A, Ownable { using Address for address payable; bool public saleActive; uint256 public MAX_SUPPLY = 200; uint256 public PRICE = 0.09 ether; // leave this! string URI = "https://api.nftbackend.io/thebluechips2/"; // uint256 public MAX_PER_TXN = 3; constructor() ERC721A("TheBlueChips", "CHIPS") { // Claim collection on OpenSea with at least 1 minted _safeMint(msg.sender, 1); } /// @dev Flips the sale status using boolean NOT operator. function flipSale() external onlyOwner { saleActive = !saleActive; } /// @dev In case we need to fix something we can update the baseURI function updateURI(string memory newURI) external onlyOwner { URI = newURI; } function updateMaxSupply(uint256 newMaxSupply) external onlyOwner { MAX_SUPPLY = newMaxSupply; } function updatePrice(uint256 newPrice) external onlyOwner { PRICE = newPrice; } /// @dev Transfers ETH to gnosis safe. function withdraw() external onlyOwner { payable(0x26fEC40a20c150C5806f987c2bFc8185A28A9C4d).sendValue( address(this).balance ); } /// @dev Mints `amount` of tokens to `msg.sender`. function mint(uint256 amount) external payable { require(saleActive, "!saleActive"); require(msg.value == amount * PRICE, "!=PRICE"); // require(amount <= MAX_PER_TXN, ">maxTxn"); require(totalSupply() + amount <= MAX_SUPPLY, ">MAX_SUPPLY"); _safeMint(msg.sender, amount); } /// @dev Should never be used on-chain because of gas fees. function tokensOfOwner(address owner) external view returns (uint256[] memory) { uint256 tokenCount = balanceOf(owner); if (tokenCount == 0) { return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 resultIndex = 0; // Needs to go from 1 and include the last id uint256 start = _startTokenId(); uint256 end = MAX_SUPPLY + totalSupply(); for (uint256 tokenId = start; tokenId <= end; tokenId++) { if (ownerOf(tokenId) == owner) { result[resultIndex] = tokenId; resultIndex++; if (resultIndex >= tokenCount) { break; } } } return result; } } function _baseURI() internal view override returns (string memory) { return URI; } function _startTokenId() internal pure override returns (uint256) { return 201; } }
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":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","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":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"updateMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"updateURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c860095567013fbe85edc90000600a5560e0604052602860808181529062001dcc60a039600b9062000033908262000432565b503480156200004157600080fd5b506040518060400160405280600c81526020016b546865426c7565436869707360a01b81525060405180604001604052806005815260200164434849505360d81b815250816002908162000096919062000432565b506003620000a5828262000432565b505060c960005550620000b833620000cb565b620000c53360016200011d565b620005a4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200013f8282604051806020016040528060008152506200014360201b60201c565b5050565b6200014f8383620001ba565b6001600160a01b0383163b15620001b5576000548281035b60018101906200017d906000908790866200029a565b6200019b576040516368d2bf6b60e11b815260040160405180910390fd5b81811062000167578160005414620001b257600080fd5b50505b505050565b6000805490829003620001e05760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b1783179055828401908390839060008051602062001df48339815191528180a4600183015b8181146200026f578083600060008051602062001df4833981519152600080a460010162000246565b50816000036200029157604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290620002d1903390899088908890600401620004fe565b6020604051808303816000875af19250505080156200030f575060408051601f3d908101601f191682019092526200030c9181019062000571565b60015b62000371573d80801562000340576040519150601f19603f3d011682016040523d82523d6000602084013e62000345565b606091505b50805160000362000369576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003b957607f821691505b602082108103620003da57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001b557600081815260208120601f850160051c81016020861015620004095750805b601f850160051c820191505b818110156200042a5782815560010162000415565b505050505050565b81516001600160401b038111156200044e576200044e6200038e565b62000466816200045f8454620003a4565b84620003e0565b602080601f8311600181146200049e5760008415620004855750858301515b600019600386901b1c1916600185901b1785556200042a565b600085815260208120601f198616915b82811015620004cf57888601518255948401946001909101908401620004ae565b5085821015620004ee5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b828110156200054d5785810182015185820160a0015281016200052f565b5050600060a0828501015260a0601f19601f83011684010191505095945050505050565b6000602082840312156200058457600080fd5b81516001600160e01b0319811681146200059d57600080fd5b9392505050565b61181880620005b46000396000f3fe60806040526004361061019c5760003560e01c80637ba5e621116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610444578063e985e9c514610464578063f103b43314610484578063f2fde38b146104a457600080fd5b8063a22cb465146103f1578063b88d4fde14610411578063c30f4a5a1461042457600080fd5b80638d859f3e116100c65780638d859f3e146103955780638da5cb5b146103ab57806395d89b41146103c9578063a0712d68146103de57600080fd5b80637ba5e621146103335780638462151c146103485780638d6cc56d1461037557600080fd5b806332cb6b0c116101595780636352211e116101335780636352211e146102bd57806368428a1b146102dd57806370a08231146102fe578063715018a61461031e57600080fd5b806332cb6b0c1461027f5780633ccfd60b1461029557806342842e0e146102aa57600080fd5b806301ffc9a7146101a157806306fdde03146101d6578063081812fc146101f8578063095ea7b31461023057806318160ddd1461024557806323b872dd1461026c575b600080fd5b3480156101ad57600080fd5b506101c16101bc366004611276565b6104c4565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb610516565b6040516101cd91906112e3565b34801561020457600080fd5b506102186102133660046112f6565b6105a8565b6040516001600160a01b0390911681526020016101cd565b61024361023e36600461132b565b6105ec565b005b34801561025157600080fd5b506001546000540360c819015b6040519081526020016101cd565b61024361027a366004611355565b61068c565b34801561028b57600080fd5b5061025e60095481565b3480156102a157600080fd5b50610243610825565b6102436102b8366004611355565b61084d565b3480156102c957600080fd5b506102186102d83660046112f6565b61086d565b3480156102e957600080fd5b506008546101c190600160a01b900460ff1681565b34801561030a57600080fd5b5061025e610319366004611391565b610878565b34801561032a57600080fd5b506102436108c7565b34801561033f57600080fd5b506102436108d9565b34801561035457600080fd5b50610368610363366004611391565b610902565b6040516101cd91906113ac565b34801561038157600080fd5b506102436103903660046112f6565b610a1f565b3480156103a157600080fd5b5061025e600a5481565b3480156103b757600080fd5b506008546001600160a01b0316610218565b3480156103d557600080fd5b506101eb610a2c565b6102436103ec3660046112f6565b610a3b565b3480156103fd57600080fd5b5061024361040c3660046113f0565b610b30565b61024361041f3660046114b8565b610b9c565b34801561043057600080fd5b5061024361043f366004611534565b610be6565b34801561045057600080fd5b506101eb61045f3660046112f6565b610bfe565b34801561047057600080fd5b506101c161047f36600461157d565b610c82565b34801561049057600080fd5b5061024361049f3660046112f6565b610cb0565b3480156104b057600080fd5b506102436104bf366004611391565b610cbd565b60006301ffc9a760e01b6001600160e01b0319831614806104f557506380ac58cd60e01b6001600160e01b03198316145b806105105750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610525906115b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610551906115b0565b801561059e5780601f106105735761010080835404028352916020019161059e565b820191906000526020600020905b81548152906001019060200180831161058157829003601f168201915b5050505050905090565b60006105b382610d33565b6105d0576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006105f78261086d565b9050336001600160a01b03821614610630576106138133610c82565b610630576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061069782610d68565b9050836001600160a01b0316816001600160a01b0316146106ca5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610717576106fa8633610c82565b61071757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661073e57604051633a954ecd60e21b815260040160405180910390fd5b801561074957600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036107db576001840160008181526004602052604081205490036107d95760005481146107d95760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61082d610dd7565b61084b7326fec40a20c150c5806f987c2bfc8185a28a9c4d47610e31565b565b61086883838360405180602001604052806000815250610b9c565b505050565b600061051082610d68565b60006001600160a01b0382166108a1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6108cf610dd7565b61084b6000610f4a565b6108e1610dd7565b6008805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6060600061090f83610878565b90508060000361092f575050604080516000815260208101909152919050565b60008167ffffffffffffffff81111561094a5761094a61142c565b604051908082528060200260200182016040528015610973578160200160208202803683370190505b509050600060c98161098e60015460005460c8199190030190565b60095461099b91906115fa565b9050815b818111610a0d57876001600160a01b03166109b98261086d565b6001600160a01b0316036109fb57808585815181106109da576109da61160d565b6020908102919091010152836109ef81611623565b94505085841015610a0d575b80610a0581611623565b91505061099f565b50929695505050505050565b50919050565b610a27610dd7565b600a55565b606060038054610525906115b0565b600854600160a01b900460ff16610a875760405162461bcd60e51b815260206004820152600b60248201526a2173616c6541637469766560a81b60448201526064015b60405180910390fd5b600a54610a94908261163c565b3414610acc5760405162461bcd60e51b8152602060048201526007602482015266213d505249434560c81b6044820152606401610a7e565b6009546001546000548391900360c81901610ae791906115fa565b1115610b235760405162461bcd60e51b815260206004820152600b60248201526a3e4d41585f535550504c5960a81b6044820152606401610a7e565b610b2d3382610f9c565b50565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610ba784848461068c565b6001600160a01b0383163b15610be057610bc384848484610fb6565b610be0576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b610bee610dd7565b600b610bfa8282611699565b5050565b6060610c0982610d33565b610c2657604051630a14c4b560e41b815260040160405180910390fd5b6000610c306110a2565b90508051600003610c505760405180602001604052806000815250610c7b565b80610c5a846110b1565b604051602001610c6b929190611759565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610cb8610dd7565b600955565b610cc5610dd7565b6001600160a01b038116610d2a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a7e565b610b2d81610f4a565b60008160c911158015610d47575060005482105b8015610510575050600090815260046020526040902054600160e01b161590565b6000818060c911610dbe57600054811015610dbe5760008181526004602052604081205490600160e01b82169003610dbc575b80600003610c7b575060001901600081815260046020526040902054610d9b565b505b604051636f96cda160e11b815260040160405180910390fd5b6008546001600160a01b0316331461084b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a7e565b80471015610e815760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a7e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ece576040519150601f19603f3d011682016040523d82523d6000602084013e610ed3565b606091505b50509050806108685760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a7e565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610bfa8282604051806020016040528060008152506110f5565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610feb903390899088908890600401611788565b6020604051808303816000875af1925050508015611026575060408051601f3d908101601f19168201909252611023918101906117c5565b60015b611084573d808015611054576040519150601f19603f3d011682016040523d82523d6000602084013e611059565b606091505b50805160000361107c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600b8054610525906115b0565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806110cb5750819003601f19909101908152919050565b6110ff8383611162565b6001600160a01b0383163b15610868576000548281035b6111296000868380600101945086610fb6565b611146576040516368d2bf6b60e11b815260040160405180910390fd5b81811061111657816000541461115b57600080fd5b5050505050565b60008054908290036111875760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461123657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016111fe565b508160000361125757604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114610b2d57600080fd5b60006020828403121561128857600080fd5b8135610c7b81611260565b60005b838110156112ae578181015183820152602001611296565b50506000910152565b600081518084526112cf816020860160208601611293565b601f01601f19169290920160200192915050565b602081526000610c7b60208301846112b7565b60006020828403121561130857600080fd5b5035919050565b80356001600160a01b038116811461132657600080fd5b919050565b6000806040838503121561133e57600080fd5b6113478361130f565b946020939093013593505050565b60008060006060848603121561136a57600080fd5b6113738461130f565b92506113816020850161130f565b9150604084013590509250925092565b6000602082840312156113a357600080fd5b610c7b8261130f565b6020808252825182820181905260009190848201906040850190845b818110156113e4578351835292840192918401916001016113c8565b50909695505050505050565b6000806040838503121561140357600080fd5b61140c8361130f565b91506020830135801515811461142157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561145d5761145d61142c565b604051601f8501601f19908116603f011681019082821181831017156114855761148561142c565b8160405280935085815286868601111561149e57600080fd5b858560208301376000602087830101525050509392505050565b600080600080608085870312156114ce57600080fd5b6114d78561130f565b93506114e56020860161130f565b925060408501359150606085013567ffffffffffffffff81111561150857600080fd5b8501601f8101871361151957600080fd5b61152887823560208401611442565b91505092959194509250565b60006020828403121561154657600080fd5b813567ffffffffffffffff81111561155d57600080fd5b8201601f8101841361156e57600080fd5b61109a84823560208401611442565b6000806040838503121561159057600080fd5b6115998361130f565b91506115a76020840161130f565b90509250929050565b600181811c908216806115c457607f821691505b602082108103610a1957634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610510576105106115e4565b634e487b7160e01b600052603260045260246000fd5b600060018201611635576116356115e4565b5060010190565b8082028115828204841417610510576105106115e4565b601f82111561086857600081815260208120601f850160051c8101602086101561167a5750805b601f850160051c820191505b8181101561081d57828155600101611686565b815167ffffffffffffffff8111156116b3576116b361142c565b6116c7816116c184546115b0565b84611653565b602080601f8311600181146116fc57600084156116e45750858301515b600019600386901b1c1916600185901b17855561081d565b600085815260208120601f198616915b8281101561172b5788860151825594840194600190910190840161170c565b50858210156117495787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000835161176b818460208801611293565b83519083019061177f818360208801611293565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117bb908301846112b7565b9695505050505050565b6000602082840312156117d757600080fd5b8151610c7b8161126056fea2646970667358221220ff6a93982cfedb0271bcb4da5e82fced2c08957471594f28f29cec406f0a724164736f6c6343000811003368747470733a2f2f6170692e6e66746261636b656e642e696f2f746865626c75656368697073322fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x60806040526004361061019c5760003560e01c80637ba5e621116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610444578063e985e9c514610464578063f103b43314610484578063f2fde38b146104a457600080fd5b8063a22cb465146103f1578063b88d4fde14610411578063c30f4a5a1461042457600080fd5b80638d859f3e116100c65780638d859f3e146103955780638da5cb5b146103ab57806395d89b41146103c9578063a0712d68146103de57600080fd5b80637ba5e621146103335780638462151c146103485780638d6cc56d1461037557600080fd5b806332cb6b0c116101595780636352211e116101335780636352211e146102bd57806368428a1b146102dd57806370a08231146102fe578063715018a61461031e57600080fd5b806332cb6b0c1461027f5780633ccfd60b1461029557806342842e0e146102aa57600080fd5b806301ffc9a7146101a157806306fdde03146101d6578063081812fc146101f8578063095ea7b31461023057806318160ddd1461024557806323b872dd1461026c575b600080fd5b3480156101ad57600080fd5b506101c16101bc366004611276565b6104c4565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb610516565b6040516101cd91906112e3565b34801561020457600080fd5b506102186102133660046112f6565b6105a8565b6040516001600160a01b0390911681526020016101cd565b61024361023e36600461132b565b6105ec565b005b34801561025157600080fd5b506001546000540360c819015b6040519081526020016101cd565b61024361027a366004611355565b61068c565b34801561028b57600080fd5b5061025e60095481565b3480156102a157600080fd5b50610243610825565b6102436102b8366004611355565b61084d565b3480156102c957600080fd5b506102186102d83660046112f6565b61086d565b3480156102e957600080fd5b506008546101c190600160a01b900460ff1681565b34801561030a57600080fd5b5061025e610319366004611391565b610878565b34801561032a57600080fd5b506102436108c7565b34801561033f57600080fd5b506102436108d9565b34801561035457600080fd5b50610368610363366004611391565b610902565b6040516101cd91906113ac565b34801561038157600080fd5b506102436103903660046112f6565b610a1f565b3480156103a157600080fd5b5061025e600a5481565b3480156103b757600080fd5b506008546001600160a01b0316610218565b3480156103d557600080fd5b506101eb610a2c565b6102436103ec3660046112f6565b610a3b565b3480156103fd57600080fd5b5061024361040c3660046113f0565b610b30565b61024361041f3660046114b8565b610b9c565b34801561043057600080fd5b5061024361043f366004611534565b610be6565b34801561045057600080fd5b506101eb61045f3660046112f6565b610bfe565b34801561047057600080fd5b506101c161047f36600461157d565b610c82565b34801561049057600080fd5b5061024361049f3660046112f6565b610cb0565b3480156104b057600080fd5b506102436104bf366004611391565b610cbd565b60006301ffc9a760e01b6001600160e01b0319831614806104f557506380ac58cd60e01b6001600160e01b03198316145b806105105750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610525906115b0565b80601f0160208091040260200160405190810160405280929190818152602001828054610551906115b0565b801561059e5780601f106105735761010080835404028352916020019161059e565b820191906000526020600020905b81548152906001019060200180831161058157829003601f168201915b5050505050905090565b60006105b382610d33565b6105d0576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006105f78261086d565b9050336001600160a01b03821614610630576106138133610c82565b610630576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061069782610d68565b9050836001600160a01b0316816001600160a01b0316146106ca5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610717576106fa8633610c82565b61071757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661073e57604051633a954ecd60e21b815260040160405180910390fd5b801561074957600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036107db576001840160008181526004602052604081205490036107d95760005481146107d95760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61082d610dd7565b61084b7326fec40a20c150c5806f987c2bfc8185a28a9c4d47610e31565b565b61086883838360405180602001604052806000815250610b9c565b505050565b600061051082610d68565b60006001600160a01b0382166108a1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6108cf610dd7565b61084b6000610f4a565b6108e1610dd7565b6008805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6060600061090f83610878565b90508060000361092f575050604080516000815260208101909152919050565b60008167ffffffffffffffff81111561094a5761094a61142c565b604051908082528060200260200182016040528015610973578160200160208202803683370190505b509050600060c98161098e60015460005460c8199190030190565b60095461099b91906115fa565b9050815b818111610a0d57876001600160a01b03166109b98261086d565b6001600160a01b0316036109fb57808585815181106109da576109da61160d565b6020908102919091010152836109ef81611623565b94505085841015610a0d575b80610a0581611623565b91505061099f565b50929695505050505050565b50919050565b610a27610dd7565b600a55565b606060038054610525906115b0565b600854600160a01b900460ff16610a875760405162461bcd60e51b815260206004820152600b60248201526a2173616c6541637469766560a81b60448201526064015b60405180910390fd5b600a54610a94908261163c565b3414610acc5760405162461bcd60e51b8152602060048201526007602482015266213d505249434560c81b6044820152606401610a7e565b6009546001546000548391900360c81901610ae791906115fa565b1115610b235760405162461bcd60e51b815260206004820152600b60248201526a3e4d41585f535550504c5960a81b6044820152606401610a7e565b610b2d3382610f9c565b50565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610ba784848461068c565b6001600160a01b0383163b15610be057610bc384848484610fb6565b610be0576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b610bee610dd7565b600b610bfa8282611699565b5050565b6060610c0982610d33565b610c2657604051630a14c4b560e41b815260040160405180910390fd5b6000610c306110a2565b90508051600003610c505760405180602001604052806000815250610c7b565b80610c5a846110b1565b604051602001610c6b929190611759565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610cb8610dd7565b600955565b610cc5610dd7565b6001600160a01b038116610d2a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a7e565b610b2d81610f4a565b60008160c911158015610d47575060005482105b8015610510575050600090815260046020526040902054600160e01b161590565b6000818060c911610dbe57600054811015610dbe5760008181526004602052604081205490600160e01b82169003610dbc575b80600003610c7b575060001901600081815260046020526040902054610d9b565b505b604051636f96cda160e11b815260040160405180910390fd5b6008546001600160a01b0316331461084b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a7e565b80471015610e815760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a7e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ece576040519150601f19603f3d011682016040523d82523d6000602084013e610ed3565b606091505b50509050806108685760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a7e565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610bfa8282604051806020016040528060008152506110f5565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610feb903390899088908890600401611788565b6020604051808303816000875af1925050508015611026575060408051601f3d908101601f19168201909252611023918101906117c5565b60015b611084573d808015611054576040519150601f19603f3d011682016040523d82523d6000602084013e611059565b606091505b50805160000361107c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600b8054610525906115b0565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806110cb5750819003601f19909101908152919050565b6110ff8383611162565b6001600160a01b0383163b15610868576000548281035b6111296000868380600101945086610fb6565b611146576040516368d2bf6b60e11b815260040160405180910390fd5b81811061111657816000541461115b57600080fd5b5050505050565b60008054908290036111875760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461123657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016111fe565b508160000361125757604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114610b2d57600080fd5b60006020828403121561128857600080fd5b8135610c7b81611260565b60005b838110156112ae578181015183820152602001611296565b50506000910152565b600081518084526112cf816020860160208601611293565b601f01601f19169290920160200192915050565b602081526000610c7b60208301846112b7565b60006020828403121561130857600080fd5b5035919050565b80356001600160a01b038116811461132657600080fd5b919050565b6000806040838503121561133e57600080fd5b6113478361130f565b946020939093013593505050565b60008060006060848603121561136a57600080fd5b6113738461130f565b92506113816020850161130f565b9150604084013590509250925092565b6000602082840312156113a357600080fd5b610c7b8261130f565b6020808252825182820181905260009190848201906040850190845b818110156113e4578351835292840192918401916001016113c8565b50909695505050505050565b6000806040838503121561140357600080fd5b61140c8361130f565b91506020830135801515811461142157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561145d5761145d61142c565b604051601f8501601f19908116603f011681019082821181831017156114855761148561142c565b8160405280935085815286868601111561149e57600080fd5b858560208301376000602087830101525050509392505050565b600080600080608085870312156114ce57600080fd5b6114d78561130f565b93506114e56020860161130f565b925060408501359150606085013567ffffffffffffffff81111561150857600080fd5b8501601f8101871361151957600080fd5b61152887823560208401611442565b91505092959194509250565b60006020828403121561154657600080fd5b813567ffffffffffffffff81111561155d57600080fd5b8201601f8101841361156e57600080fd5b61109a84823560208401611442565b6000806040838503121561159057600080fd5b6115998361130f565b91506115a76020840161130f565b90509250929050565b600181811c908216806115c457607f821691505b602082108103610a1957634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610510576105106115e4565b634e487b7160e01b600052603260045260246000fd5b600060018201611635576116356115e4565b5060010190565b8082028115828204841417610510576105106115e4565b601f82111561086857600081815260208120601f850160051c8101602086101561167a5750805b601f850160051c820191505b8181101561081d57828155600101611686565b815167ffffffffffffffff8111156116b3576116b361142c565b6116c7816116c184546115b0565b84611653565b602080601f8311600181146116fc57600084156116e45750858301515b600019600386901b1c1916600185901b17855561081d565b600085815260208120601f198616915b8281101561172b5788860151825594840194600190910190840161170c565b50858210156117495787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000835161176b818460208801611293565b83519083019061177f818360208801611293565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117bb908301846112b7565b9695505050505050565b6000602082840312156117d757600080fd5b8151610c7b8161126056fea2646970667358221220ff6a93982cfedb0271bcb4da5e82fced2c08957471594f28f29cec406f0a724164736f6c63430008110033
Deployed Bytecode Sourcemap
69481:2830:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24228:639;;;;;;;;;;-1:-1:-1;24228:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;24228:639:0;;;;;;;;25130:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;31621:218::-;;;;;;;;;;-1:-1:-1;31621:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;31621:218:0;1533:203:1;31054:408:0;;;;;;:::i;:::-;;:::i;:::-;;20881:323;;;;;;;;;;-1:-1:-1;21155:12:0;;20942:7;21139:13;:28;-1:-1:-1;;21139:46:0;20881:323;;;2324:25:1;;;2312:2;2297:18;20881:323:0;2178:177:1;35260:2825:0;;;;;;:::i;:::-;;:::i;69603:31::-;;;;;;;;;;;;;;;;70557:166;;;;;;;;;;;;;:::i;38181:193::-;;;;;;:::i;:::-;;:::i;26523:152::-;;;;;;;;;;-1:-1:-1;26523:152:0;;;;;:::i;:::-;;:::i;69572:22::-;;;;;;;;;;-1:-1:-1;69572:22:0;;;;-1:-1:-1;;;69572:22:0;;;;;;22065:233;;;;;;;;;;-1:-1:-1;22065:233:0;;;;;:::i;:::-;;:::i;60035:103::-;;;;;;;;;;;;;:::i;70032:82::-;;;;;;;;;;;;;:::i;71184:917::-;;;;;;;;;;-1:-1:-1;71184:917:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;70412:93::-;;;;;;;;;;-1:-1:-1;70412:93:0;;;;;:::i;:::-;;:::i;69641:33::-;;;;;;;;;;;;;;;;59387:87;;;;;;;;;;-1:-1:-1;59460:6:0;;-1:-1:-1;;;;;59460:6:0;59387:87;;25306:104;;;;;;;;;;;;;:::i;70787:324::-;;;;;;:::i;:::-;;:::i;32179:234::-;;;;;;;;;;-1:-1:-1;32179:234:0;;;;;:::i;:::-;;:::i;38972:407::-;;;;;;:::i;:::-;;:::i;70195:91::-;;;;;;;;;;-1:-1:-1;70195:91:0;;;;;:::i;:::-;;:::i;25516:318::-;;;;;;;;;;-1:-1:-1;25516:318:0;;;;;:::i;:::-;;:::i;32570:164::-;;;;;;;;;;-1:-1:-1;32570:164:0;;;;;:::i;:::-;;:::i;70294:110::-;;;;;;;;;;-1:-1:-1;70294:110:0;;;;;:::i;:::-;;:::i;60293:201::-;;;;;;;;;;-1:-1:-1;60293:201:0;;;;;:::i;:::-;;:::i;24228:639::-;24313:4;-1:-1:-1;;;;;;;;;24637:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;24714:25:0;;;24637:102;:179;;;-1:-1:-1;;;;;;;;;;24791:25:0;;;24637:179;24617:199;24228:639;-1:-1:-1;;24228:639:0:o;25130:100::-;25184:13;25217:5;25210:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25130:100;:::o;31621:218::-;31697:7;31722:16;31730:7;31722;:16::i;:::-;31717:64;;31747:34;;-1:-1:-1;;;31747:34:0;;;;;;;;;;;31717:64;-1:-1:-1;31801:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;31801:30:0;;31621:218::o;31054:408::-;31143:13;31159:16;31167:7;31159;:16::i;:::-;31143:32;-1:-1:-1;55387:10:0;-1:-1:-1;;;;;31192:28:0;;;31188:175;;31240:44;31257:5;55387:10;32570:164;:::i;31240:44::-;31235:128;;31312:35;;-1:-1:-1;;;31312:35:0;;;;;;;;;;;31235:128;31375:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;31375:35:0;-1:-1:-1;;;;;31375:35:0;;;;;;;;;31426:28;;31375:24;;31426:28;;;;;;;31132:330;31054:408;;:::o;35260:2825::-;35402:27;35432;35451:7;35432:18;:27::i;:::-;35402:57;;35517:4;-1:-1:-1;;;;;35476:45:0;35492:19;-1:-1:-1;;;;;35476:45:0;;35472:86;;35530:28;;-1:-1:-1;;;35530:28:0;;;;;;;;;;;35472:86;35572:27;34368:24;;;:15;:24;;;;;34596:26;;55387:10;33993:30;;;-1:-1:-1;;;;;33686:28:0;;33971:20;;;33968:56;35758:180;;35851:43;35868:4;55387:10;32570:164;:::i;35851:43::-;35846:92;;35903:35;;-1:-1:-1;;;35903:35:0;;;;;;;;;;;35846:92;-1:-1:-1;;;;;35955:16:0;;35951:52;;35980:23;;-1:-1:-1;;;35980:23:0;;;;;;;;;;;35951:52;36152:15;36149:160;;;36292:1;36271:19;36264:30;36149:160;-1:-1:-1;;;;;36689:24:0;;;;;;;:18;:24;;;;;;36687:26;;-1:-1:-1;;36687:26:0;;;36758:22;;;;;;;;;36756:24;;-1:-1:-1;36756:24:0;;;29912:11;29887:23;29883:41;29870:63;-1:-1:-1;;;29870:63:0;37051:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;37346:47:0;;:52;;37342:627;;37451:1;37441:11;;37419:19;37574:30;;;:17;:30;;;;;;:35;;37570:384;;37712:13;;37697:11;:28;37693:242;;37859:30;;;;:17;:30;;;;;:52;;;37693:242;37400:569;37342:627;38016:7;38012:2;-1:-1:-1;;;;;37997:27:0;38006:4;-1:-1:-1;;;;;37997:27:0;;;;;;;;;;;38035:42;35391:2694;;;35260:2825;;;:::o;70557:166::-;59273:13;:11;:13::i;:::-;70607:108:::1;70615:42;70683:21;70607:61;:108::i;:::-;70557:166::o:0;38181:193::-;38327:39;38344:4;38350:2;38354:7;38327:39;;;;;;;;;;;;:16;:39::i;:::-;38181:193;;;:::o;26523:152::-;26595:7;26638:27;26657:7;26638:18;:27::i;22065:233::-;22137:7;-1:-1:-1;;;;;22161:19:0;;22157:60;;22189:28;;-1:-1:-1;;;22189:28:0;;;;;;;;;;;22157:60;-1:-1:-1;;;;;;22235:25:0;;;;;:18;:25;;;;;;16224:13;22235:55;;22065:233::o;60035:103::-;59273:13;:11;:13::i;:::-;60100:30:::1;60127:1;60100:18;:30::i;70032:82::-:0;59273:13;:11;:13::i;:::-;70096:10:::1;::::0;;-1:-1:-1;;;;70082:24:0;::::1;-1:-1:-1::0;;;70096:10:0;;;::::1;;;70095:11;70082:24:::0;;::::1;;::::0;;70032:82::o;71184:917::-;71272:16;71306:18;71327:16;71337:5;71327:9;:16::i;:::-;71306:37;;71360:10;71374:1;71360:15;71356:738;;-1:-1:-1;;71399:16:0;;;71413:1;71399:16;;;;;;;;;71392:23;-1:-1:-1;71184:917:0:o;71356:738::-;71448:23;71488:10;71474:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;71474:25:0;-1:-1:-1;71448:51:0;-1:-1:-1;71514:19:0;72297:3;71514:19;71686:13;21155:12;;20942:7;21139:13;-1:-1:-1;;21139:28:0;;;:46;;20881:323;71686:13;71673:10;;:26;;;;:::i;:::-;71659:40;-1:-1:-1;71739:5:0;71716:339;71757:3;71746:7;:14;71716:339;;71816:5;-1:-1:-1;;;;;71796:25:0;:16;71804:7;71796;:16::i;:::-;-1:-1:-1;;;;;71796:25:0;;71792:248;;71868:7;71846:6;71853:11;71846:19;;;;;;;;:::i;:::-;;;;;;;;;;:29;71898:13;;;;:::i;:::-;;;;71953:10;71938:11;:25;71934:87;71992:5;71934:87;;71762:9;;;;:::i;:::-;;;;71716:339;;;-1:-1:-1;72076:6:0;;71184:917;-1:-1:-1;;;;;;71184:917:0:o;71356:738::-;71295:806;71184:917;;;:::o;70412:93::-;59273:13;:11;:13::i;:::-;70481:5:::1;:16:::0;70412:93::o;25306:104::-;25362:13;25395:7;25388:14;;;;;:::i;70787:324::-;70853:10;;-1:-1:-1;;;70853:10:0;;;;70845:34;;;;-1:-1:-1;;;70845:34:0;;7153:2:1;70845:34:0;;;7135:21:1;7192:2;7172:18;;;7165:30;-1:-1:-1;;;7211:18:1;;;7204:41;7262:18;;70845:34:0;;;;;;;;;70920:5;;70911:14;;:6;:14;:::i;:::-;70898:9;:27;70890:47;;;;-1:-1:-1;;;70890:47:0;;7666:2:1;70890:47:0;;;7648:21:1;7705:1;7685:18;;;7678:29;-1:-1:-1;;;7723:18:1;;;7716:37;7770:18;;70890:47:0;7464:330:1;70890:47:0;71037:10;;21155:12;;20942:7;21139:13;71027:6;;21139:28;;-1:-1:-1;;21139:46:0;71011:22;;;;:::i;:::-;:36;;71003:60;;;;-1:-1:-1;;;71003:60:0;;8001:2:1;71003:60:0;;;7983:21:1;8040:2;8020:18;;;8013:30;-1:-1:-1;;;8059:18:1;;;8052:41;8110:18;;71003:60:0;7799:335:1;71003:60:0;71074:29;71084:10;71096:6;71074:9;:29::i;:::-;70787:324;:::o;32179:234::-;55387:10;32274:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;32274:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;32274:60:0;;;;;;;;;;32350:55;;540:41:1;;;32274:49:0;;55387:10;32350:55;;513:18:1;32350:55:0;;;;;;;32179:234;;:::o;38972:407::-;39147:31;39160:4;39166:2;39170:7;39147:12;:31::i;:::-;-1:-1:-1;;;;;39193:14:0;;;:19;39189:183;;39232:56;39263:4;39269:2;39273:7;39282:5;39232:30;:56::i;:::-;39227:145;;39316:40;;-1:-1:-1;;;39316:40:0;;;;;;;;;;;39227:145;38972:407;;;;:::o;70195:91::-;59273:13;:11;:13::i;:::-;70266:3:::1;:12;70272:6:::0;70266:3;:12:::1;:::i;:::-;;70195:91:::0;:::o;25516:318::-;25589:13;25620:16;25628:7;25620;:16::i;:::-;25615:59;;25645:29;;-1:-1:-1;;;25645:29:0;;;;;;;;;;;25615:59;25687:21;25711:10;:8;:10::i;:::-;25687:34;;25745:7;25739:21;25764:1;25739:26;:87;;;;;;;;;;;;;;;;;25792:7;25801:18;25811:7;25801:9;:18::i;:::-;25775:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;25739:87;25732:94;25516:318;-1:-1:-1;;;25516:318:0:o;32570:164::-;-1:-1:-1;;;;;32691:25:0;;;32667:4;32691:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;32570:164::o;70294:110::-;59273:13;:11;:13::i;:::-;70371:10:::1;:25:::0;70294:110::o;60293:201::-;59273:13;:11;:13::i;:::-;-1:-1:-1;;;;;60382:22:0;::::1;60374:73;;;::::0;-1:-1:-1;;;60374:73:0;;11046:2:1;60374:73:0::1;::::0;::::1;11028:21:1::0;11085:2;11065:18;;;11058:30;11124:34;11104:18;;;11097:62;-1:-1:-1;;;11175:18:1;;;11168:36;11221:19;;60374:73:0::1;10844:402:1::0;60374:73:0::1;60458:28;60477:8;60458:18;:28::i;32992:282::-:0;33057:4;33113:7;72297:3;33094:26;;:66;;;;;33147:13;;33137:7;:23;33094:66;:153;;;;-1:-1:-1;;33198:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;33198:44:0;:49;;32992:282::o;27678:1275::-;27745:7;27780;;72297:3;27829:23;27825:1061;;27882:13;;27875:4;:20;27871:1015;;;27920:14;27937:23;;;:17;:23;;;;;;;-1:-1:-1;;;28026:24:0;;:29;;28022:845;;28691:113;28698:6;28708:1;28698:11;28691:113;;-1:-1:-1;;;28769:6:0;28751:25;;;;:17;:25;;;;;;28691:113;;28022:845;27897:989;27871:1015;28914:31;;-1:-1:-1;;;28914:31:0;;;;;;;;;;;59552:132;59460:6;;-1:-1:-1;;;;;59460:6:0;55387:10;59616:23;59608:68;;;;-1:-1:-1;;;59608:68:0;;11453:2:1;59608:68:0;;;11435:21:1;;;11472:18;;;11465:30;11531:34;11511:18;;;11504:62;11583:18;;59608:68:0;11251:356:1;63346:317:0;63461:6;63436:21;:31;;63428:73;;;;-1:-1:-1;;;63428:73:0;;11814:2:1;63428:73:0;;;11796:21:1;11853:2;11833:18;;;11826:30;11892:31;11872:18;;;11865:59;11941:18;;63428:73:0;11612:353:1;63428:73:0;63515:12;63533:9;-1:-1:-1;;;;;63533:14:0;63555:6;63533:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63514:52;;;63585:7;63577:78;;;;-1:-1:-1;;;63577:78:0;;12382:2:1;63577:78:0;;;12364:21:1;12421:2;12401:18;;;12394:30;12460:34;12440:18;;;12433:62;12531:28;12511:18;;;12504:56;12577:19;;63577:78:0;12180:422:1;60654:191:0;60747:6;;;-1:-1:-1;;;;;60764:17:0;;;-1:-1:-1;;;;;;60764:17:0;;;;;;;60797:40;;60747:6;;;60764:17;60747:6;;60797:40;;60728:16;;60797:40;60717:128;60654:191;:::o;49132:112::-;49209:27;49219:2;49223:8;49209:27;;;;;;;;;;;;:9;:27::i;41463:716::-;41647:88;;-1:-1:-1;;;41647:88:0;;41626:4;;-1:-1:-1;;;;;41647:45:0;;;;;:88;;55387:10;;41714:4;;41720:7;;41729:5;;41647:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41647:88:0;;;;;;;;-1:-1:-1;;41647:88:0;;;;;;;;;;;;:::i;:::-;;;41643:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41930:6;:13;41947:1;41930:18;41926:235;;41976:40;;-1:-1:-1;;;41976:40:0;;;;;;;;;;;41926:235;42119:6;42113:13;42104:6;42100:2;42096:15;42089:38;41643:529;-1:-1:-1;;;;;;41806:64:0;-1:-1:-1;;;41806:64:0;;-1:-1:-1;41643:529:0;41463:716;;;;;;:::o;72109:96::-;72161:13;72194:3;72187:10;;;;;:::i;55507:1745::-;55572:17;56006:4;55999;55993:11;55989:22;56098:1;56092:4;56085:15;56173:4;56170:1;56166:12;56159:19;;;56255:1;56250:3;56243:14;56359:3;56598:5;56580:428;56646:1;56641:3;56637:11;56630:18;;56817:2;56811:4;56807:13;56803:2;56799:22;56794:3;56786:36;56911:2;56901:13;;56968:25;56580:428;56968:25;-1:-1:-1;57038:13:0;;;-1:-1:-1;;57153:14:0;;;57215:19;;;57153:14;55507:1745;-1:-1:-1;55507:1745:0:o;48359:689::-;48490:19;48496:2;48500:8;48490:5;:19::i;:::-;-1:-1:-1;;;;;48551:14:0;;;:19;48547:483;;48591:11;48605:13;48653:14;;;48686:233;48717:62;48756:1;48760:2;48764:7;;;;;;48773:5;48717:30;:62::i;:::-;48712:167;;48815:40;;-1:-1:-1;;;48815:40:0;;;;;;;;;;;48712:167;48914:3;48906:5;:11;48686:233;;49001:3;48984:13;;:20;48980:34;;49006:8;;;48980:34;48572:458;;48359:689;;;:::o;42641:2966::-;42714:20;42737:13;;;42765;;;42761:44;;42787:18;;-1:-1:-1;;;42787:18:0;;;;;;;;;;;42761:44;-1:-1:-1;;;;;43293:22:0;;;;;;:18;:22;;;;16362:2;43293:22;;;:71;;43331:32;43319:45;;43293:71;;;43607:31;;;:17;:31;;;;;-1:-1:-1;30343:15:0;;30317:24;30313:46;29912:11;29887:23;29883:41;29880:52;29870:63;;43607:173;;43842:23;;;;43607:31;;43293:22;;44607:25;43293:22;;44460:335;45121:1;45107:12;45103:20;45061:346;45162:3;45153:7;45150:16;45061:346;;45380:7;45370:8;45367:1;45340:25;45337:1;45334;45329:59;45215:1;45202:15;45061:346;;;45065:77;45440:8;45452:1;45440:13;45436:45;;45462:19;;-1:-1:-1;;;45462:19:0;;;;;;;;;;;45436:45;45498:13;:19;-1:-1:-1;38181:193:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;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:1;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:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1: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:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;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:1: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:186::-;2752:6;2805:2;2793:9;2784:7;2780:23;2776:32;2773:52;;;2821:1;2818;2811:12;2773:52;2844:29;2863:9;2844:29;:::i;2884:632::-;3055:2;3107:21;;;3177:13;;3080:18;;;3199:22;;;3026:4;;3055:2;3278:15;;;;3252:2;3237:18;;;3026:4;3321:169;3335:6;3332:1;3329:13;3321:169;;;3396:13;;3384:26;;3465:15;;;;3430:12;;;;3357:1;3350:9;3321:169;;;-1:-1:-1;3507:3:1;;2884:632;-1:-1:-1;;;;;;2884:632:1:o;3521:347::-;3586:6;3594;3647:2;3635:9;3626:7;3622:23;3618:32;3615:52;;;3663:1;3660;3653:12;3615:52;3686:29;3705:9;3686:29;:::i;:::-;3676:39;;3765:2;3754:9;3750:18;3737:32;3812:5;3805:13;3798:21;3791:5;3788:32;3778:60;;3834:1;3831;3824:12;3778:60;3857:5;3847:15;;;3521:347;;;;;:::o;3873:127::-;3934:10;3929:3;3925:20;3922:1;3915:31;3965:4;3962:1;3955:15;3989:4;3986:1;3979:15;4005:631;4069:5;4099:18;4140:2;4132:6;4129:14;4126:40;;;4146:18;;:::i;:::-;4221:2;4215:9;4189:2;4275:15;;-1:-1:-1;;4271:24:1;;;4297:2;4267:33;4263:42;4251:55;;;4321:18;;;4341:22;;;4318:46;4315:72;;;4367:18;;:::i;:::-;4407:10;4403:2;4396:22;4436:6;4427:15;;4466:6;4458;4451:22;4506:3;4497:6;4492:3;4488:16;4485:25;4482:45;;;4523:1;4520;4513:12;4482:45;4573:6;4568:3;4561:4;4553:6;4549:17;4536:44;4628:1;4621:4;4612:6;4604;4600:19;4596:30;4589:41;;;;4005:631;;;;;:::o;4641:666::-;4736:6;4744;4752;4760;4813:3;4801:9;4792:7;4788:23;4784:33;4781:53;;;4830:1;4827;4820:12;4781:53;4853:29;4872:9;4853:29;:::i;:::-;4843:39;;4901:38;4935:2;4924:9;4920:18;4901:38;:::i;:::-;4891:48;;4986:2;4975:9;4971:18;4958:32;4948:42;;5041:2;5030:9;5026:18;5013:32;5068:18;5060:6;5057:30;5054:50;;;5100:1;5097;5090:12;5054:50;5123:22;;5176:4;5168:13;;5164:27;-1:-1:-1;5154:55:1;;5205:1;5202;5195:12;5154:55;5228:73;5293:7;5288:2;5275:16;5270:2;5266;5262:11;5228:73;:::i;:::-;5218:83;;;4641:666;;;;;;;:::o;5312:450::-;5381:6;5434:2;5422:9;5413:7;5409:23;5405:32;5402:52;;;5450:1;5447;5440:12;5402:52;5490:9;5477:23;5523:18;5515:6;5512:30;5509:50;;;5555:1;5552;5545:12;5509:50;5578:22;;5631:4;5623:13;;5619:27;-1:-1:-1;5609:55:1;;5660:1;5657;5650:12;5609:55;5683:73;5748:7;5743:2;5730:16;5725:2;5721;5717:11;5683:73;:::i;5767:260::-;5835:6;5843;5896:2;5884:9;5875:7;5871:23;5867:32;5864:52;;;5912:1;5909;5902:12;5864:52;5935:29;5954:9;5935:29;:::i;:::-;5925:39;;5983:38;6017:2;6006:9;6002:18;5983:38;:::i;:::-;5973:48;;5767:260;;;;;:::o;6032:380::-;6111:1;6107:12;;;;6154;;;6175:61;;6229:4;6221:6;6217:17;6207:27;;6175:61;6282:2;6274:6;6271:14;6251:18;6248:38;6245:161;;6328:10;6323:3;6319:20;6316:1;6309:31;6363:4;6360:1;6353:15;6391:4;6388:1;6381:15;6417:127;6478:10;6473:3;6469:20;6466:1;6459:31;6509:4;6506:1;6499:15;6533:4;6530:1;6523:15;6549:125;6614:9;;;6635:10;;;6632:36;;;6648:18;;:::i;6679:127::-;6740:10;6735:3;6731:20;6728:1;6721:31;6771:4;6768:1;6761:15;6795:4;6792:1;6785:15;6811:135;6850:3;6871:17;;;6868:43;;6891:18;;:::i;:::-;-1:-1:-1;6938:1:1;6927:13;;6811:135::o;7291:168::-;7364:9;;;7395;;7412:15;;;7406:22;;7392:37;7382:71;;7433:18;;:::i;8265:545::-;8367:2;8362:3;8359:11;8356:448;;;8403:1;8428:5;8424:2;8417:17;8473:4;8469:2;8459:19;8543:2;8531:10;8527:19;8524:1;8520:27;8514:4;8510:38;8579:4;8567:10;8564:20;8561:47;;;-1:-1:-1;8602:4:1;8561:47;8657:2;8652:3;8648:12;8645:1;8641:20;8635:4;8631:31;8621:41;;8712:82;8730:2;8723:5;8720:13;8712:82;;;8775:17;;;8756:1;8745:13;8712:82;;8986:1352;9112:3;9106:10;9139:18;9131:6;9128:30;9125:56;;;9161:18;;:::i;:::-;9190:97;9280:6;9240:38;9272:4;9266:11;9240:38;:::i;:::-;9234:4;9190:97;:::i;:::-;9342:4;;9406:2;9395:14;;9423:1;9418:663;;;;10125:1;10142:6;10139:89;;;-1:-1:-1;10194:19:1;;;10188:26;10139:89;-1:-1:-1;;8943:1:1;8939:11;;;8935:24;8931:29;8921:40;8967:1;8963:11;;;8918:57;10241:81;;9388:944;;9418:663;8212:1;8205:14;;;8249:4;8236:18;;-1:-1:-1;;9454:20:1;;;9572:236;9586:7;9583:1;9580:14;9572:236;;;9675:19;;;9669:26;9654:42;;9767:27;;;;9735:1;9723:14;;;;9602:19;;9572:236;;;9576:3;9836:6;9827:7;9824:19;9821:201;;;9897:19;;;9891:26;-1:-1:-1;;9980:1:1;9976:14;;;9992:3;9972:24;9968:37;9964:42;9949:58;9934:74;;9821:201;-1:-1:-1;;;;;10068:1:1;10052:14;;;10048:22;10035:36;;-1:-1:-1;8986:1352:1:o;10343:496::-;10522:3;10560:6;10554:13;10576:66;10635:6;10630:3;10623:4;10615:6;10611:17;10576:66;:::i;:::-;10705:13;;10664:16;;;;10727:70;10705:13;10664:16;10774:4;10762:17;;10727:70;:::i;:::-;10813:20;;10343:496;-1:-1:-1;;;;10343:496:1:o;12607:489::-;-1:-1:-1;;;;;12876:15:1;;;12858:34;;12928:15;;12923:2;12908:18;;12901:43;12975:2;12960:18;;12953:34;;;13023:3;13018:2;13003:18;;12996:31;;;12801:4;;13044:46;;13070:19;;13062:6;13044:46;:::i;:::-;13036:54;12607:489;-1:-1:-1;;;;;;12607:489:1:o;13101:249::-;13170:6;13223:2;13211:9;13202:7;13198:23;13194:32;13191:52;;;13239:1;13236;13229:12;13191:52;13271:9;13265:16;13290:30;13314:5;13290:30;:::i
Swarm Source
ipfs://ff6a93982cfedb0271bcb4da5e82fced2c08957471594f28f29cec406f0a7241
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.