ERC-721
Overview
Max Total Supply
281 PEPE
Holders
205
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PEPELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
UniquePepe
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-10-17 */ /** *Submitted for verification at Etherscan.io on 2022-09-08 */ /** *Submitted for verification at Etherscan.io on 2022-08-18 */ /** *Submitted for verification at Etherscan.io on 2022-08-18 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/security/ReentrancyGuard.sol /** Where am i?....... */ // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_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: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * 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(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 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.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The 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 tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [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 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the 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 { 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; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev 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 See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { 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 ''; } /** * @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)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _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 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 { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); 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 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { 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 Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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 `_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) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { 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 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; } /** * @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 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 Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } } // File: erc721a/contracts/extensions/IERC721AQueryable.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // File: erc721a/contracts/extensions/ERC721AQueryable.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * - `extraData` = `0` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * - `extraData` = `<Extra data when token was burned>` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` * - `extraData` = `<Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } pragma solidity ^0.8.0; contract UniquePepe is ERC721A, Ownable, ReentrancyGuard { using Strings for uint; string public hiddenMetadataUri; bytes32 public merkleRoot; mapping(address => bool) public whitelistClaimed; string public baseTokenURI = "ipfs://"; uint256 public maxSupply = 350; uint256 public MAX_MINTS_PER_TX = 25; uint256 public PUBLIC_SALE_PRICE = 0.002 ether; uint256 public NUM_FREE_MINTS = 130; uint256 public MAX_FREE_PER_WALLET = 1; uint256 public freeNFTAlreadyMinted = 0; bool public isPublicSaleActive = false; bool public whitelistMintEnabled = false; constructor( string memory _tokenName, string memory _tokenSymbol, string memory _hiddenMetadataUri ) ERC721A(_tokenName, _tokenSymbol) { setHiddenMetadataUri(_hiddenMetadataUri); } function mint(uint256 numberOfTokens) external payable { require(isPublicSaleActive, "Public sale is not open"); require(totalSupply() + numberOfTokens < maxSupply + 1, "No more"); if(freeNFTAlreadyMinted + numberOfTokens > NUM_FREE_MINTS){ require( (PUBLIC_SALE_PRICE * numberOfTokens) <= msg.value, "Incorrect ETH value sent" ); } else { if (balanceOf(msg.sender) + numberOfTokens > MAX_FREE_PER_WALLET) { require( (PUBLIC_SALE_PRICE * numberOfTokens) <= msg.value, "Incorrect ETH value sent" ); require( numberOfTokens <= MAX_MINTS_PER_TX, "Max mints per transaction exceeded" ); } else { require( numberOfTokens <= MAX_FREE_PER_WALLET, "Max mints per transaction exceeded" ); freeNFTAlreadyMinted += numberOfTokens; } } _safeMint(msg.sender, numberOfTokens); } function setBaseURI(string memory baseURI) public onlyOwner { baseTokenURI = baseURI; } function treasuryMint(uint quantity) public onlyOwner { require( quantity > 0, "Invalid mint amount" ); require( totalSupply() + quantity <= maxSupply, "Maximum supply exceeded" ); _safeMint(msg.sender, quantity); } function withdraw() public onlyOwner nonReentrant { // This will transfer the remaining contract balance to the owner. // Do not remove this otherwise you will not be able to withdraw the funds. // ============================================================================= (bool os, ) = payable(owner()).call{value: address(this).balance}(''); require(os); // ============================================================================= } function tokenURI(uint _tokenId) public view virtual override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); return string(abi.encodePacked(baseTokenURI, "/", _tokenId.toString(), ".json")); } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setIsPublicSaleActive(bool _isPublicSaleActive) external onlyOwner { isPublicSaleActive = _isPublicSaleActive; } function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function setNumFreeMints(uint256 _numfreemints) external onlyOwner { NUM_FREE_MINTS = _numfreemints; } function setSalePrice(uint256 _price) external onlyOwner { PUBLIC_SALE_PRICE = _price; } function setMaxSupply(uint256 _maxsupply) external onlyOwner { maxSupply = _maxsupply; } function setMaxLimitPerTransaction(uint256 _limit) external onlyOwner { MAX_MINTS_PER_TX = _limit; } function setwhitelistMintEnabled(bool _wlMintEnabled) external onlyOwner { whitelistMintEnabled = _wlMintEnabled; } function whitelistMint(uint256 _price, bytes32[] calldata _merkleProof) public payable { // Verify whitelist requirements require(whitelistMintEnabled, 'The whitelist sale is not enabled!'); require(!whitelistClaimed[_msgSender()], 'Address already claimed!'); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), 'Invalid proof!'); whitelistClaimed[_msgSender()] = true; _safeMint(_msgSender(), _price); } function setFreeLimitPerWallet(uint256 _limit) external onlyOwner { MAX_FREE_PER_WALLET = _limit; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","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_FREE_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUM_FREE_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeNFTAlreadyMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setFreeLimitPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicSaleActive","type":"bool"}],"name":"setIsPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMaxLimitPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxsupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numfreemints","type":"uint256"}],"name":"setNumFreeMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_wlMintEnabled","type":"bool"}],"name":"setwhitelistMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"treasuryMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526007608081905266697066733a2f2f60c81b60a09081526200002a91600d9190620001bb565b5061015e600e556019600f5566071afd498d00006010556082601155600160125560006013556014805461ffff191690553480156200006857600080fd5b5060405162002416380380620024168339810160408190526200008b9162000318565b825183908390620000a4906002906020850190620001bb565b508051620000ba906003906020840190620001bb565b50506000805550620000cc33620000e5565b6001600955620000dc8162000137565b505050620003fc565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001416200015a565b80516200015690600a906020840190620001bb565b5050565b6008546001600160a01b03163314620001b95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b828054620001c990620003a9565b90600052602060002090601f016020900481019282620001ed576000855562000238565b82601f106200020857805160ff191683800117855562000238565b8280016001018555821562000238579182015b82811115620002385782518255916020019190600101906200021b565b50620002469291506200024a565b5090565b5b808211156200024657600081556001016200024b565b600082601f8301126200027357600080fd5b81516001600160401b0380821115620002905762000290620003e6565b604051601f8301601f19908116603f01168101908282118183101715620002bb57620002bb620003e6565b81604052838152602092508683858801011115620002d857600080fd5b600091505b83821015620002fc5785820183015181830184015290820190620002dd565b838211156200030e5760008385830101525b9695505050505050565b6000806000606084860312156200032e57600080fd5b83516001600160401b03808211156200034657600080fd5b620003548783880162000261565b945060208601519150808211156200036b57600080fd5b620003798783880162000261565b935060408601519150808211156200039057600080fd5b506200039f8682870162000261565b9150509250925092565b600181811c90821680620003be57607f821691505b60208210811415620003e057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61200a806200040c6000396000f3fe6080604052600436106102515760003560e01c80636f8b44b011610139578063a45ba8e7116100b6578063d547cfb71161007a578063d547cfb714610683578063d5abeb0114610698578063db4bec44146106ae578063e985e9c5146106de578063efdc778814610727578063f2fde38b1461074757600080fd5b8063a45ba8e714610605578063b88d4fde1461061a578063c6a91b421461063a578063c87b56dd14610650578063d2cab0561461067057600080fd5b8063982d669e116100fd578063982d669e1461058657806398710d1e1461059c5780639e9fcffc146105b2578063a0712d68146105d2578063a22cb465146105e557600080fd5b80636f8b44b0146104fe57806370a082311461051e578063715018a61461053e5780638da5cb5b1461055357806395d89b411461057157600080fd5b80631e84c413116101d25780633ccfd60b116101965780633ccfd60b1461044a57806342842e0e1461045f5780634fdd43cb1461047f57806355f804b31461049f5780636352211e146104bf5780636caede3d146104df57600080fd5b80631e84c413146103ba578063202f298a146103d457806323b872dd146103f457806328cad13d146104145780632eb4a7ab1461043457600080fd5b8063095ea7b311610219578063095ea7b31461032b5780630a00ae831461034b57806318160ddd1461036b5780631919fed714610384578063193ad7b4146103a457600080fd5b806301ffc9a71461025657806305480eee1461028b57806306fdde03146102ad57806307e89ec0146102cf578063081812fc146102f3575b600080fd5b34801561026257600080fd5b50610276610271366004611bae565b610767565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102ab6102a6366004611b93565b6107b9565b005b3480156102b957600080fd5b506102c26107db565b6040516102829190611e19565b3480156102db57600080fd5b506102e560105481565b604051908152602001610282565b3480156102ff57600080fd5b5061031361030e366004611c31565b61086d565b6040516001600160a01b039091168152602001610282565b34801561033757600080fd5b506102ab610346366004611b69565b6108b1565b34801561035757600080fd5b506102ab610366366004611c31565b610951565b34801561037757600080fd5b50600154600054036102e5565b34801561039057600080fd5b506102ab61039f366004611c31565b61095e565b3480156103b057600080fd5b506102e560135481565b3480156103c657600080fd5b506014546102769060ff1681565b3480156103e057600080fd5b506102ab6103ef366004611c31565b61096b565b34801561040057600080fd5b506102ab61040f366004611a87565b610978565b34801561042057600080fd5b506102ab61042f366004611b93565b610b09565b34801561044057600080fd5b506102e5600b5481565b34801561045657600080fd5b506102ab610b24565b34801561046b57600080fd5b506102ab61047a366004611a87565b610c02565b34801561048b57600080fd5b506102ab61049a366004611be8565b610c22565b3480156104ab57600080fd5b506102ab6104ba366004611be8565b610c41565b3480156104cb57600080fd5b506103136104da366004611c31565b610c5c565b3480156104eb57600080fd5b5060145461027690610100900460ff1681565b34801561050a57600080fd5b506102ab610519366004611c31565b610c67565b34801561052a57600080fd5b506102e5610539366004611a39565b610c74565b34801561054a57600080fd5b506102ab610cc3565b34801561055f57600080fd5b506008546001600160a01b0316610313565b34801561057d57600080fd5b506102c2610cd7565b34801561059257600080fd5b506102e560115481565b3480156105a857600080fd5b506102e560125481565b3480156105be57600080fd5b506102ab6105cd366004611c31565b610ce6565b6102ab6105e0366004611c31565b610cf3565b3480156105f157600080fd5b506102ab610600366004611b3f565b610ef4565b34801561061157600080fd5b506102c2610f8a565b34801561062657600080fd5b506102ab610635366004611ac3565b611018565b34801561064657600080fd5b506102e5600f5481565b34801561065c57600080fd5b506102c261066b366004611c31565b611062565b6102ab61067e366004611c4a565b611103565b34801561068f57600080fd5b506102c26112a0565b3480156106a457600080fd5b506102e5600e5481565b3480156106ba57600080fd5b506102766106c9366004611a39565b600c6020526000908152604090205460ff1681565b3480156106ea57600080fd5b506102766106f9366004611a54565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561073357600080fd5b506102ab610742366004611c31565b6112ad565b34801561075357600080fd5b506102ab610762366004611a39565b611364565b60006301ffc9a760e01b6001600160e01b03198316148061079857506380ac58cd60e01b6001600160e01b03198316145b806107b35750635b5e139f60e01b6001600160e01b03198316145b92915050565b6107c16113da565b601480549115156101000261ff0019909216919091179055565b6060600280546107ea90611efc565b80601f016020809104026020016040519081016040528092919081815260200182805461081690611efc565b80156108635780601f1061083857610100808354040283529160200191610863565b820191906000526020600020905b81548152906001019060200180831161084657829003601f168201915b5050505050905090565b600061087882611434565b610895576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108bc82610c5c565b9050336001600160a01b038216146108f5576108d881336106f9565b6108f5576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109596113da565b601155565b6109666113da565b601055565b6109736113da565b601255565b60006109838261145b565b9050836001600160a01b0316816001600160a01b0316146109b65760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610a03576109e686336106f9565b610a0357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a2a57604051633a954ecd60e21b815260040160405180910390fd5b8015610a3557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610ac05760018401600081815260046020526040902054610abe576000548114610abe5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610b116113da565b6014805460ff1916911515919091179055565b610b2c6113da565b60026009541415610b845760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026009556000610b9d6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610be7576040519150601f19603f3d011682016040523d82523d6000602084013e610bec565b606091505b5050905080610bfa57600080fd5b506001600955565b610c1d83838360405180602001604052806000815250611018565b505050565b610c2a6113da565b8051610c3d90600a9060208401906118fe565b5050565b610c496113da565b8051610c3d90600d9060208401906118fe565b60006107b38261145b565b610c6f6113da565b600e55565b60006001600160a01b038216610c9d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ccb6113da565b610cd560006114c3565b565b6060600380546107ea90611efc565b610cee6113da565b600f55565b60145460ff16610d455760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e0000000000000000006044820152606401610b7b565b600e54610d53906001611e6e565b81610d616001546000540390565b610d6b9190611e6e565b10610da25760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610b7b565b60115481601354610db39190611e6e565b1115610e16573481601054610dc89190611e9a565b1115610e115760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b6044820152606401610b7b565b610ee7565b60125481610e2333610c74565b610e2d9190611e6e565b1115610ead573481601054610e429190611e9a565b1115610e8b5760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b6044820152606401610b7b565b600f54811115610e115760405162461bcd60e51b8152600401610b7b90611e2c565b601254811115610ecf5760405162461bcd60e51b8152600401610b7b90611e2c565b8060136000828254610ee19190611e6e565b90915550505b610ef13382611515565b50565b6001600160a01b038216331415610f1e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a8054610f9790611efc565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc390611efc565b80156110105780601f10610fe557610100808354040283529160200191611010565b820191906000526020600020905b815481529060010190602001808311610ff357829003601f168201915b505050505081565b611023848484610978565b6001600160a01b0383163b1561105c5761103f8484848461152f565b61105c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606061106d82611434565b6110d15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b7b565b600d6110dc83611627565b6040516020016110ed929190611d11565b6040516020818303038152906040529050919050565b601454610100900460ff166111655760405162461bcd60e51b815260206004820152602260248201527f5468652077686974656c6973742073616c65206973206e6f7420656e61626c65604482015261642160f01b6064820152608401610b7b565b336000908152600c602052604090205460ff16156111c55760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c726561647920636c61696d65642100000000000000006044820152606401610b7b565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061123f83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611725565b61127c5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610b7b565b336000818152600c60205260409020805460ff1916600117905561105c9085611515565b600d8054610f9790611efc565b6112b56113da565b600081116112fb5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610b7b565b600e548161130c6001546000540390565b6113169190611e6e565b1115610ee75760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c792065786365656465640000000000000000006044820152606401610b7b565b61136c6113da565b6001600160a01b0381166113d15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b7b565b610ef1816114c3565b6008546001600160a01b03163314610cd55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7b565b60008054821080156107b3575050600090815260046020526040902054600160e01b161590565b6000816000548110156114aa57600081815260046020526040902054600160e01b81166114a8575b806114a1575060001901600081815260046020526040902054611483565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c3d82826040518060200160405280600081525061173b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611564903390899088908890600401611ddc565b602060405180830381600087803b15801561157e57600080fd5b505af19250505080156115ae575060408051601f3d908101601f191682019092526115ab91810190611bcb565b60015b611609573d8080156115dc576040519150601f19603f3d011682016040523d82523d6000602084013e6115e1565b606091505b508051611601576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161164b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611675578061165f81611f37565b915061166e9050600a83611e86565b915061164f565b60008167ffffffffffffffff81111561169057611690611fa8565b6040519080825280601f01601f1916602001820160405280156116ba576020820181803683370190505b5090505b841561161f576116cf600183611eb9565b91506116dc600a86611f52565b6116e7906030611e6e565b60f81b8183815181106116fc576116fc611f92565b60200101906001600160f81b031916908160001a90535061171e600a86611e86565b94506116be565b60008261173285846117a8565b14949350505050565b61174583836117f5565b6001600160a01b0383163b15610c1d576000548281035b61176f600086838060010194508661152f565b61178c576040516368d2bf6b60e11b815260040160405180910390fd5b81811061175c5781600054146117a157600080fd5b5050505050565b600081815b84518110156117ed576117d9828683815181106117cc576117cc611f92565b60200260200101516118d2565b9150806117e581611f37565b9150506117ad565b509392505050565b6000546001600160a01b03831661181e57604051622e076360e81b815260040160405180910390fd5b8161183c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106118865760005550505050565b60008183106118ee5760008281526020849052604090206114a1565b5060009182526020526040902090565b82805461190a90611efc565b90600052602060002090601f01602090048101928261192c5760008555611972565b82601f1061194557805160ff1916838001178555611972565b82800160010185558215611972579182015b82811115611972578251825591602001919060010190611957565b5061197e929150611982565b5090565b5b8082111561197e5760008155600101611983565b600067ffffffffffffffff808411156119b2576119b2611fa8565b604051601f8501601f19908116603f011681019082821181831017156119da576119da611fa8565b816040528093508581528686860111156119f357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611a2457600080fd5b919050565b80358015158114611a2457600080fd5b600060208284031215611a4b57600080fd5b6114a182611a0d565b60008060408385031215611a6757600080fd5b611a7083611a0d565b9150611a7e60208401611a0d565b90509250929050565b600080600060608486031215611a9c57600080fd5b611aa584611a0d565b9250611ab360208501611a0d565b9150604084013590509250925092565b60008060008060808587031215611ad957600080fd5b611ae285611a0d565b9350611af060208601611a0d565b925060408501359150606085013567ffffffffffffffff811115611b1357600080fd5b8501601f81018713611b2457600080fd5b611b3387823560208401611997565b91505092959194509250565b60008060408385031215611b5257600080fd5b611b5b83611a0d565b9150611a7e60208401611a29565b60008060408385031215611b7c57600080fd5b611b8583611a0d565b946020939093013593505050565b600060208284031215611ba557600080fd5b6114a182611a29565b600060208284031215611bc057600080fd5b81356114a181611fbe565b600060208284031215611bdd57600080fd5b81516114a181611fbe565b600060208284031215611bfa57600080fd5b813567ffffffffffffffff811115611c1157600080fd5b8201601f81018413611c2257600080fd5b61161f84823560208401611997565b600060208284031215611c4357600080fd5b5035919050565b600080600060408486031215611c5f57600080fd5b83359250602084013567ffffffffffffffff80821115611c7e57600080fd5b818601915086601f830112611c9257600080fd5b813581811115611ca157600080fd5b8760208260051b8501011115611cb657600080fd5b6020830194508093505050509250925092565b60008151808452611ce1816020860160208601611ed0565b601f01601f19169290920160200192915050565b60008151611d07818560208601611ed0565b9290920192915050565b600080845481600182811c915080831680611d2d57607f831692505b6020808410821415611d4d57634e487b7160e01b86526022600452602486fd5b818015611d615760018114611d7257611d9f565b60ff19861689528489019650611d9f565b60008b81526020902060005b86811015611d975781548b820152908501908301611d7e565b505084890196505b505050505050611dd3611dc2611dbc83602f60f81b815260010190565b86611cf5565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e0f90830184611cc9565b9695505050505050565b6020815260006114a16020830184611cc9565b60208082526022908201527f4d6178206d696e747320706572207472616e73616374696f6e20657863656564604082015261195960f21b606082015260800190565b60008219821115611e8157611e81611f66565b500190565b600082611e9557611e95611f7c565b500490565b6000816000190483118215151615611eb457611eb4611f66565b500290565b600082821015611ecb57611ecb611f66565b500390565b60005b83811015611eeb578181015183820152602001611ed3565b8381111561105c5750506000910152565b600181811c90821680611f1057607f821691505b60208210811415611f3157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611f4b57611f4b611f66565b5060010190565b600082611f6157611f61611f7c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ef157600080fdfea2646970667358221220c5e896a8ce321a0d4918aa323c73a5bc346690c8692e2c7e2da946d7910421a164736f6c63430008070033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000b556e697175652050657065000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000450455045000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102515760003560e01c80636f8b44b011610139578063a45ba8e7116100b6578063d547cfb71161007a578063d547cfb714610683578063d5abeb0114610698578063db4bec44146106ae578063e985e9c5146106de578063efdc778814610727578063f2fde38b1461074757600080fd5b8063a45ba8e714610605578063b88d4fde1461061a578063c6a91b421461063a578063c87b56dd14610650578063d2cab0561461067057600080fd5b8063982d669e116100fd578063982d669e1461058657806398710d1e1461059c5780639e9fcffc146105b2578063a0712d68146105d2578063a22cb465146105e557600080fd5b80636f8b44b0146104fe57806370a082311461051e578063715018a61461053e5780638da5cb5b1461055357806395d89b411461057157600080fd5b80631e84c413116101d25780633ccfd60b116101965780633ccfd60b1461044a57806342842e0e1461045f5780634fdd43cb1461047f57806355f804b31461049f5780636352211e146104bf5780636caede3d146104df57600080fd5b80631e84c413146103ba578063202f298a146103d457806323b872dd146103f457806328cad13d146104145780632eb4a7ab1461043457600080fd5b8063095ea7b311610219578063095ea7b31461032b5780630a00ae831461034b57806318160ddd1461036b5780631919fed714610384578063193ad7b4146103a457600080fd5b806301ffc9a71461025657806305480eee1461028b57806306fdde03146102ad57806307e89ec0146102cf578063081812fc146102f3575b600080fd5b34801561026257600080fd5b50610276610271366004611bae565b610767565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102ab6102a6366004611b93565b6107b9565b005b3480156102b957600080fd5b506102c26107db565b6040516102829190611e19565b3480156102db57600080fd5b506102e560105481565b604051908152602001610282565b3480156102ff57600080fd5b5061031361030e366004611c31565b61086d565b6040516001600160a01b039091168152602001610282565b34801561033757600080fd5b506102ab610346366004611b69565b6108b1565b34801561035757600080fd5b506102ab610366366004611c31565b610951565b34801561037757600080fd5b50600154600054036102e5565b34801561039057600080fd5b506102ab61039f366004611c31565b61095e565b3480156103b057600080fd5b506102e560135481565b3480156103c657600080fd5b506014546102769060ff1681565b3480156103e057600080fd5b506102ab6103ef366004611c31565b61096b565b34801561040057600080fd5b506102ab61040f366004611a87565b610978565b34801561042057600080fd5b506102ab61042f366004611b93565b610b09565b34801561044057600080fd5b506102e5600b5481565b34801561045657600080fd5b506102ab610b24565b34801561046b57600080fd5b506102ab61047a366004611a87565b610c02565b34801561048b57600080fd5b506102ab61049a366004611be8565b610c22565b3480156104ab57600080fd5b506102ab6104ba366004611be8565b610c41565b3480156104cb57600080fd5b506103136104da366004611c31565b610c5c565b3480156104eb57600080fd5b5060145461027690610100900460ff1681565b34801561050a57600080fd5b506102ab610519366004611c31565b610c67565b34801561052a57600080fd5b506102e5610539366004611a39565b610c74565b34801561054a57600080fd5b506102ab610cc3565b34801561055f57600080fd5b506008546001600160a01b0316610313565b34801561057d57600080fd5b506102c2610cd7565b34801561059257600080fd5b506102e560115481565b3480156105a857600080fd5b506102e560125481565b3480156105be57600080fd5b506102ab6105cd366004611c31565b610ce6565b6102ab6105e0366004611c31565b610cf3565b3480156105f157600080fd5b506102ab610600366004611b3f565b610ef4565b34801561061157600080fd5b506102c2610f8a565b34801561062657600080fd5b506102ab610635366004611ac3565b611018565b34801561064657600080fd5b506102e5600f5481565b34801561065c57600080fd5b506102c261066b366004611c31565b611062565b6102ab61067e366004611c4a565b611103565b34801561068f57600080fd5b506102c26112a0565b3480156106a457600080fd5b506102e5600e5481565b3480156106ba57600080fd5b506102766106c9366004611a39565b600c6020526000908152604090205460ff1681565b3480156106ea57600080fd5b506102766106f9366004611a54565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561073357600080fd5b506102ab610742366004611c31565b6112ad565b34801561075357600080fd5b506102ab610762366004611a39565b611364565b60006301ffc9a760e01b6001600160e01b03198316148061079857506380ac58cd60e01b6001600160e01b03198316145b806107b35750635b5e139f60e01b6001600160e01b03198316145b92915050565b6107c16113da565b601480549115156101000261ff0019909216919091179055565b6060600280546107ea90611efc565b80601f016020809104026020016040519081016040528092919081815260200182805461081690611efc565b80156108635780601f1061083857610100808354040283529160200191610863565b820191906000526020600020905b81548152906001019060200180831161084657829003601f168201915b5050505050905090565b600061087882611434565b610895576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108bc82610c5c565b9050336001600160a01b038216146108f5576108d881336106f9565b6108f5576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109596113da565b601155565b6109666113da565b601055565b6109736113da565b601255565b60006109838261145b565b9050836001600160a01b0316816001600160a01b0316146109b65760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610a03576109e686336106f9565b610a0357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a2a57604051633a954ecd60e21b815260040160405180910390fd5b8015610a3557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610ac05760018401600081815260046020526040902054610abe576000548114610abe5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610b116113da565b6014805460ff1916911515919091179055565b610b2c6113da565b60026009541415610b845760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026009556000610b9d6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610be7576040519150601f19603f3d011682016040523d82523d6000602084013e610bec565b606091505b5050905080610bfa57600080fd5b506001600955565b610c1d83838360405180602001604052806000815250611018565b505050565b610c2a6113da565b8051610c3d90600a9060208401906118fe565b5050565b610c496113da565b8051610c3d90600d9060208401906118fe565b60006107b38261145b565b610c6f6113da565b600e55565b60006001600160a01b038216610c9d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ccb6113da565b610cd560006114c3565b565b6060600380546107ea90611efc565b610cee6113da565b600f55565b60145460ff16610d455760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e0000000000000000006044820152606401610b7b565b600e54610d53906001611e6e565b81610d616001546000540390565b610d6b9190611e6e565b10610da25760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610b7b565b60115481601354610db39190611e6e565b1115610e16573481601054610dc89190611e9a565b1115610e115760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b6044820152606401610b7b565b610ee7565b60125481610e2333610c74565b610e2d9190611e6e565b1115610ead573481601054610e429190611e9a565b1115610e8b5760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b6044820152606401610b7b565b600f54811115610e115760405162461bcd60e51b8152600401610b7b90611e2c565b601254811115610ecf5760405162461bcd60e51b8152600401610b7b90611e2c565b8060136000828254610ee19190611e6e565b90915550505b610ef13382611515565b50565b6001600160a01b038216331415610f1e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a8054610f9790611efc565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc390611efc565b80156110105780601f10610fe557610100808354040283529160200191611010565b820191906000526020600020905b815481529060010190602001808311610ff357829003601f168201915b505050505081565b611023848484610978565b6001600160a01b0383163b1561105c5761103f8484848461152f565b61105c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606061106d82611434565b6110d15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b7b565b600d6110dc83611627565b6040516020016110ed929190611d11565b6040516020818303038152906040529050919050565b601454610100900460ff166111655760405162461bcd60e51b815260206004820152602260248201527f5468652077686974656c6973742073616c65206973206e6f7420656e61626c65604482015261642160f01b6064820152608401610b7b565b336000908152600c602052604090205460ff16156111c55760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c726561647920636c61696d65642100000000000000006044820152606401610b7b565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061123f83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611725565b61127c5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610b7b565b336000818152600c60205260409020805460ff1916600117905561105c9085611515565b600d8054610f9790611efc565b6112b56113da565b600081116112fb5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610b7b565b600e548161130c6001546000540390565b6113169190611e6e565b1115610ee75760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c792065786365656465640000000000000000006044820152606401610b7b565b61136c6113da565b6001600160a01b0381166113d15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b7b565b610ef1816114c3565b6008546001600160a01b03163314610cd55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7b565b60008054821080156107b3575050600090815260046020526040902054600160e01b161590565b6000816000548110156114aa57600081815260046020526040902054600160e01b81166114a8575b806114a1575060001901600081815260046020526040902054611483565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c3d82826040518060200160405280600081525061173b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611564903390899088908890600401611ddc565b602060405180830381600087803b15801561157e57600080fd5b505af19250505080156115ae575060408051601f3d908101601f191682019092526115ab91810190611bcb565b60015b611609573d8080156115dc576040519150601f19603f3d011682016040523d82523d6000602084013e6115e1565b606091505b508051611601576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161164b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611675578061165f81611f37565b915061166e9050600a83611e86565b915061164f565b60008167ffffffffffffffff81111561169057611690611fa8565b6040519080825280601f01601f1916602001820160405280156116ba576020820181803683370190505b5090505b841561161f576116cf600183611eb9565b91506116dc600a86611f52565b6116e7906030611e6e565b60f81b8183815181106116fc576116fc611f92565b60200101906001600160f81b031916908160001a90535061171e600a86611e86565b94506116be565b60008261173285846117a8565b14949350505050565b61174583836117f5565b6001600160a01b0383163b15610c1d576000548281035b61176f600086838060010194508661152f565b61178c576040516368d2bf6b60e11b815260040160405180910390fd5b81811061175c5781600054146117a157600080fd5b5050505050565b600081815b84518110156117ed576117d9828683815181106117cc576117cc611f92565b60200260200101516118d2565b9150806117e581611f37565b9150506117ad565b509392505050565b6000546001600160a01b03831661181e57604051622e076360e81b815260040160405180910390fd5b8161183c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106118865760005550505050565b60008183106118ee5760008281526020849052604090206114a1565b5060009182526020526040902090565b82805461190a90611efc565b90600052602060002090601f01602090048101928261192c5760008555611972565b82601f1061194557805160ff1916838001178555611972565b82800160010185558215611972579182015b82811115611972578251825591602001919060010190611957565b5061197e929150611982565b5090565b5b8082111561197e5760008155600101611983565b600067ffffffffffffffff808411156119b2576119b2611fa8565b604051601f8501601f19908116603f011681019082821181831017156119da576119da611fa8565b816040528093508581528686860111156119f357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611a2457600080fd5b919050565b80358015158114611a2457600080fd5b600060208284031215611a4b57600080fd5b6114a182611a0d565b60008060408385031215611a6757600080fd5b611a7083611a0d565b9150611a7e60208401611a0d565b90509250929050565b600080600060608486031215611a9c57600080fd5b611aa584611a0d565b9250611ab360208501611a0d565b9150604084013590509250925092565b60008060008060808587031215611ad957600080fd5b611ae285611a0d565b9350611af060208601611a0d565b925060408501359150606085013567ffffffffffffffff811115611b1357600080fd5b8501601f81018713611b2457600080fd5b611b3387823560208401611997565b91505092959194509250565b60008060408385031215611b5257600080fd5b611b5b83611a0d565b9150611a7e60208401611a29565b60008060408385031215611b7c57600080fd5b611b8583611a0d565b946020939093013593505050565b600060208284031215611ba557600080fd5b6114a182611a29565b600060208284031215611bc057600080fd5b81356114a181611fbe565b600060208284031215611bdd57600080fd5b81516114a181611fbe565b600060208284031215611bfa57600080fd5b813567ffffffffffffffff811115611c1157600080fd5b8201601f81018413611c2257600080fd5b61161f84823560208401611997565b600060208284031215611c4357600080fd5b5035919050565b600080600060408486031215611c5f57600080fd5b83359250602084013567ffffffffffffffff80821115611c7e57600080fd5b818601915086601f830112611c9257600080fd5b813581811115611ca157600080fd5b8760208260051b8501011115611cb657600080fd5b6020830194508093505050509250925092565b60008151808452611ce1816020860160208601611ed0565b601f01601f19169290920160200192915050565b60008151611d07818560208601611ed0565b9290920192915050565b600080845481600182811c915080831680611d2d57607f831692505b6020808410821415611d4d57634e487b7160e01b86526022600452602486fd5b818015611d615760018114611d7257611d9f565b60ff19861689528489019650611d9f565b60008b81526020902060005b86811015611d975781548b820152908501908301611d7e565b505084890196505b505050505050611dd3611dc2611dbc83602f60f81b815260010190565b86611cf5565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e0f90830184611cc9565b9695505050505050565b6020815260006114a16020830184611cc9565b60208082526022908201527f4d6178206d696e747320706572207472616e73616374696f6e20657863656564604082015261195960f21b606082015260800190565b60008219821115611e8157611e81611f66565b500190565b600082611e9557611e95611f7c565b500490565b6000816000190483118215151615611eb457611eb4611f66565b500290565b600082821015611ecb57611ecb611f66565b500390565b60005b83811015611eeb578181015183820152602001611ed3565b8381111561105c5750506000910152565b600181811c90821680611f1057607f821691505b60208210811415611f3157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611f4b57611f4b611f66565b5060010190565b600082611f6157611f61611f7c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ef157600080fdfea2646970667358221220c5e896a8ce321a0d4918aa323c73a5bc346690c8692e2c7e2da946d7910421a164736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000b556e697175652050657065000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000450455045000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): Unique Pepe
Arg [1] : _tokenSymbol (string): PEPE
Arg [2] : _hiddenMetadataUri (string):
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [4] : 556e697175652050657065000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 5045504500000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
71368:4815:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23828:615;;;;;;;;;;-1:-1:-1;23828:615:0;;;;;:::i;:::-;;:::i;:::-;;;8425:14:1;;8418:22;8400:41;;8388:2;8373:18;23828:615:0;;;;;;;;75390:142;;;;;;;;;;-1:-1:-1;75390:142:0;;;;;:::i;:::-;;:::i;:::-;;29475:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;71709:47::-;;;;;;;;;;;;;;;;;;;8598:25:1;;;8586:2;8571:18;71709:47:0;8452:177:1;31421:204:0;;;;;;;;;;-1:-1:-1;31421:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7723:32:1;;;7705:51;;7693:2;7678:18;31421:204:0;7559:203:1;30969:386:0;;;;;;;;;;-1:-1:-1;30969:386:0;;;;;:::i;:::-;;:::i;74884:129::-;;;;;;;;;;-1:-1:-1;74884:129:0;;;;;:::i;:::-;;:::i;22882:315::-;;;;;;;;;;-1:-1:-1;23148:12:0;;22935:7;23132:13;:28;22882:315;;75019:115;;;;;;;;;;-1:-1:-1;75019:115:0;;;;;:::i;:::-;;:::i;71846:39::-;;;;;;;;;;;;;;;;71890:38;;;;;;;;;;-1:-1:-1;71890:38:0;;;;;;;;76054:126;;;;;;;;;;-1:-1:-1;76054:126:0;;;;;:::i;:::-;;:::i;40686:2800::-;;;;;;;;;;-1:-1:-1;40686:2800:0;;;;;:::i;:::-;;:::i;74594:148::-;;;;;;;;;;-1:-1:-1;74594:148:0;;;;;:::i;:::-;;:::i;71499:25::-;;;;;;;;;;;;;;;;73654:475;;;;;;;;;;;;;:::i;32311:185::-;;;;;;;;;;-1:-1:-1;32311:185:0;;;;;:::i;:::-;;:::i;74746:132::-;;;;;;;;;;-1:-1:-1;74746:132:0;;;;;:::i;:::-;;:::i;73252:108::-;;;;;;;;;;-1:-1:-1;73252:108:0;;;;;:::i;:::-;;:::i;29264:144::-;;;;;;;;;;-1:-1:-1;29264:144:0;;;;;:::i;:::-;;:::i;71934:40::-;;;;;;;;;;-1:-1:-1;71934:40:0;;;;;;;;;;;75138:115;;;;;;;;;;-1:-1:-1;75138:115:0;;;;;:::i;:::-;;:::i;24507:224::-;;;;;;;;;;-1:-1:-1;24507:224:0;;;;;:::i;:::-;;:::i;8419:103::-;;;;;;;;;;;;;:::i;7771:87::-;;;;;;;;;;-1:-1:-1;7844:6:0;;-1:-1:-1;;;;;7844:6:0;7771:87;;29644:104;;;;;;;;;;;;;:::i;71761:36::-;;;;;;;;;;;;;;;;71802:39;;;;;;;;;;;;;;;;75259:127;;;;;;;;;;-1:-1:-1;75259:127:0;;;;;:::i;:::-;;:::i;72197:1049::-;;;;;;:::i;:::-;;:::i;31697:308::-;;;;;;;;;;-1:-1:-1;31697:308:0;;;;;:::i;:::-;;:::i;71462:31::-;;;;;;;;;;;;;:::i;32567:399::-;;;;;;;;;;-1:-1:-1;32567:399:0;;;;;:::i;:::-;;:::i;71667:37::-;;;;;;;;;;;;;;;;74135:312;;;;;;;;;;-1:-1:-1;74135:312:0;;;;;:::i;:::-;;:::i;75536:512::-;;;;;;:::i;:::-;;:::i;71585:40::-;;;;;;;;;;;;;:::i;71630:32::-;;;;;;;;;;;;;;;;71530:48;;;;;;;;;;-1:-1:-1;71530:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;32076:164;;;;;;;;;;-1:-1:-1;32076:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;32197:25:0;;;32173:4;32197:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;32076:164;73366:284;;;;;;;;;;-1:-1:-1;73366:284:0;;;;;:::i;:::-;;:::i;8677:201::-;;;;;;;;;;-1:-1:-1;8677:201:0;;;;;:::i;:::-;;:::i;23828:615::-;23913:4;-1:-1:-1;;;;;;;;;24213:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;24290:25:0;;;24213:102;:179;;;-1:-1:-1;;;;;;;;;;24367:25:0;;;24213:179;24193:199;23828:615;-1:-1:-1;;23828:615:0:o;75390:142::-;7657:13;:11;:13::i;:::-;75489:20:::1;:37:::0;;;::::1;;;;-1:-1:-1::0;;75489:37:0;;::::1;::::0;;;::::1;::::0;;75390:142::o;29475:100::-;29529:13;29562:5;29555:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29475:100;:::o;31421:204::-;31489:7;31514:16;31522:7;31514;:16::i;:::-;31509:64;;31539:34;;-1:-1:-1;;;31539:34:0;;;;;;;;;;;31509:64;-1:-1:-1;31593:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;31593:24:0;;31421:204::o;30969:386::-;31042:13;31058:16;31066:7;31058;:16::i;:::-;31042:32;-1:-1:-1;51869:10:0;-1:-1:-1;;;;;31091:28:0;;;31087:175;;31139:44;31156:5;51869:10;32076:164;:::i;31139:44::-;31134:128;;31211:35;;-1:-1:-1;;;31211:35:0;;;;;;;;;;;31134:128;31274:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;31274:29:0;-1:-1:-1;;;;;31274:29:0;;;;;;;;;31319:28;;31274:24;;31319:28;;;;;;;31031:324;30969:386;;:::o;74884:129::-;7657:13;:11;:13::i;:::-;74977:14:::1;:30:::0;74884:129::o;75019:115::-;7657:13;:11;:13::i;:::-;75102:17:::1;:26:::0;75019:115::o;76054:126::-;7657:13;:11;:13::i;:::-;76146:19:::1;:28:::0;76054:126::o;40686:2800::-;40820:27;40850;40869:7;40850:18;:27::i;:::-;40820:57;;40935:4;-1:-1:-1;;;;;40894:45:0;40910:19;-1:-1:-1;;;;;40894:45:0;;40890:86;;40948:28;;-1:-1:-1;;;40948:28:0;;;;;;;;;;;40890:86;40990:27;39416:21;;;39243:15;39458:4;39451:36;39540:4;39524:21;;39630:26;;51869:10;40383:30;;;-1:-1:-1;;;;;40081:26:0;;40362:19;;;40359:55;41169:174;;41256:43;41273:4;51869:10;32076:164;:::i;41256:43::-;41251:92;;41308:35;;-1:-1:-1;;;41308:35:0;;;;;;;;;;;41251:92;-1:-1:-1;;;;;41360:16:0;;41356:52;;41385:23;;-1:-1:-1;;;41385:23:0;;;;;;;;;;;41356:52;41557:15;41554:160;;;41697:1;41676:19;41669:30;41554:160;-1:-1:-1;;;;;42092:24:0;;;;;;;:18;:24;;;;;;42090:26;;-1:-1:-1;;42090:26:0;;;42161:22;;;;;;;;;42159:24;;-1:-1:-1;42159:24:0;;;29163:11;29139:22;29135:40;29122:62;-1:-1:-1;;;29122:62:0;42454:26;;;;:17;:26;;;;;:174;-1:-1:-1;;;42748:46:0;;42744:626;;42852:1;42842:11;;42820:19;42975:30;;;:17;:30;;;;;;42971:384;;43113:13;;43098:11;:28;43094:242;;43260:30;;;;:17;:30;;;;;:52;;;43094:242;42801:569;42744:626;43417:7;43413:2;-1:-1:-1;;;;;43398:27:0;43407:4;-1:-1:-1;;;;;43398:27:0;;;;;;;;;;;40809:2677;;;40686:2800;;;:::o;74594:148::-;7657:13;:11;:13::i;:::-;74696:18:::1;:40:::0;;-1:-1:-1;;74696:40:0::1;::::0;::::1;;::::0;;;::::1;::::0;;74594:148::o;73654:475::-;7657:13;:11;:13::i;:::-;2197:1:::1;2795:7;;:19;;2787:63;;;::::0;-1:-1:-1;;;2787:63:0;;13134:2:1;2787:63:0::1;::::0;::::1;13116:21:1::0;13173:2;13153:18;;;13146:30;13212:33;13192:18;;;13185:61;13263:18;;2787:63:0::1;;;;;;;;;2197:1;2928:7;:18:::0;73951:7:::2;73972;7844:6:::0;;-1:-1:-1;;;;;7844:6:0;;7771:87;73972:7:::2;-1:-1:-1::0;;;;;73964:21:0::2;73993;73964:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73950:69;;;74034:2;74026:11;;;::::0;::::2;;-1:-1:-1::0;2153:1:0::1;3107:7;:22:::0;73654:475::o;32311:185::-;32449:39;32466:4;32472:2;32476:7;32449:39;;;;;;;;;;;;:16;:39::i;:::-;32311:185;;;:::o;74746:132::-;7657:13;:11;:13::i;:::-;74834:38;;::::1;::::0;:17:::1;::::0;:38:::1;::::0;::::1;::::0;::::1;:::i;:::-;;74746:132:::0;:::o;73252:108::-;7657:13;:11;:13::i;:::-;73332:22;;::::1;::::0;:12:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;29264:144::-:0;29328:7;29371:27;29390:7;29371:18;:27::i;75138:115::-;7657:13;:11;:13::i;:::-;75225:9:::1;:22:::0;75138:115::o;24507:224::-;24571:7;-1:-1:-1;;;;;24595:19:0;;24591:60;;24623:28;;-1:-1:-1;;;24623:28:0;;;;;;;;;;;24591:60;-1:-1:-1;;;;;;24669:25:0;;;;;:18;:25;;;;;;19062:13;24669:54;;24507:224::o;8419:103::-;7657:13;:11;:13::i;:::-;8484:30:::1;8511:1;8484:18;:30::i;:::-;8419:103::o:0;29644:104::-;29700:13;29733:7;29726:14;;;;;:::i;75259:127::-;7657:13;:11;:13::i;:::-;75355:16:::1;:25:::0;75259:127::o;72197:1049::-;72284:18;;;;72276:54;;;;-1:-1:-1;;;72276:54:0;;13494:2:1;72276:54:0;;;13476:21:1;13533:2;13513:18;;;13506:30;13572:25;13552:18;;;13545:53;13615:18;;72276:54:0;13292:347:1;72276:54:0;72378:9;;:13;;72390:1;72378:13;:::i;:::-;72361:14;72345:13;23148:12;;22935:7;23132:13;:28;;22882:315;72345:13;:30;;;;:::i;:::-;:46;72337:66;;;;-1:-1:-1;;;72337:66:0;;9060:2:1;72337:66:0;;;9042:21:1;9099:1;9079:18;;;9072:29;-1:-1:-1;;;9117:18:1;;;9110:37;9164:18;;72337:66:0;8858:330:1;72337:66:0;72455:14;;72438;72415:20;;:37;;;;:::i;:::-;:54;72412:784;;;72543:9;72524:14;72504:17;;:34;;;;:::i;:::-;72503:49;;72481:123;;;;-1:-1:-1;;;72481:123:0;;12781:2:1;72481:123:0;;;12763:21:1;12820:2;12800:18;;;12793:30;-1:-1:-1;;;12839:18:1;;;12832:54;12903:18;;72481:123:0;12579:348:1;72481:123:0;72412:784;;;72674:19;;72657:14;72633:21;72643:10;72633:9;:21::i;:::-;:38;;;;:::i;:::-;:60;72629:560;;;72768:9;72749:14;72729:17;;:34;;;;:::i;:::-;72728:49;;72706:123;;;;-1:-1:-1;;;72706:123:0;;12781:2:1;72706:123:0;;;12763:21:1;12820:2;12800:18;;;12793:30;-1:-1:-1;;;12839:18:1;;;12832:54;12903:18;;72706:123:0;12579:348:1;72706:123:0;72880:16;;72862:14;:34;;72840:118;;;;-1:-1:-1;;;72840:118:0;;;;;;;:::i;72629:560::-;73035:19;;73017:14;:37;;72991:133;;;;-1:-1:-1;;;72991:133:0;;;;;;;:::i;:::-;73163:14;73139:20;;:38;;;;;;;:::i;:::-;;;;-1:-1:-1;;72629:560:0;73202:37;73212:10;73224:14;73202:9;:37::i;:::-;72197:1049;:::o;31697:308::-;-1:-1:-1;;;;;31796:31:0;;51869:10;31796:31;31792:61;;;31836:17;;-1:-1:-1;;;31836:17:0;;;;;;;;;;;31792:61;51869:10;31866:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;31866:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;31866:60:0;;;;;;;;;;31942:55;;8400:41:1;;;31866:49:0;;51869:10;31942:55;;8373:18:1;31942:55:0;;;;;;;31697:308;;:::o;71462:31::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;32567:399::-;32734:31;32747:4;32753:2;32757:7;32734:12;:31::i;:::-;-1:-1:-1;;;;;32780:14:0;;;:19;32776:183;;32819:56;32850:4;32856:2;32860:7;32869:5;32819:30;:56::i;:::-;32814:145;;32903:40;;-1:-1:-1;;;32903:40:0;;;;;;;;;;;32814:145;32567:399;;;;:::o;74135:312::-;74231:13;74272:17;74280:8;74272:7;:17::i;:::-;74256:98;;;;-1:-1:-1;;;74256:98:0;;11614:2:1;74256:98:0;;;11596:21:1;11653:2;11633:18;;;11626:30;11692:34;11672:18;;;11665:62;-1:-1:-1;;;11743:18:1;;;11736:45;11798:19;;74256:98:0;11412:411:1;74256:98:0;74392:12;74411:19;:8;:17;:19::i;:::-;74375:65;;;;;;;;;:::i;:::-;;;;;;;;;;;;;74361:80;;74135:312;;;:::o;75536:512::-;75677:20;;;;;;;75669:67;;;;-1:-1:-1;;;75669:67:0;;12030:2:1;75669:67:0;;;12012:21:1;12069:2;12049:18;;;12042:30;12108:34;12088:18;;;12081:62;-1:-1:-1;;;12159:18:1;;;12152:32;12201:19;;75669:67:0;11828:398:1;75669:67:0;51869:10;75752:30;;;;:16;:30;;;;;;;;75751:31;75743:68;;;;-1:-1:-1;;;75743:68:0;;11261:2:1;75743:68:0;;;11243:21:1;11300:2;11280:18;;;11273:30;11339:26;11319:18;;;11312:54;11383:18;;75743:68:0;11059:348:1;75743:68:0;75843:30;;-1:-1:-1;;51869:10:0;5826:2:1;5822:15;5818:53;75843:30:0;;;5806:66:1;75818:12:0;;5888::1;;75843:30:0;;;;;;;;;;;;75833:41;;;;;;75818:56;;75889:50;75908:12;;75889:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;75922:10:0;;;-1:-1:-1;75934:4:0;;-1:-1:-1;75889:18:0;:50::i;:::-;75881:77;;;;-1:-1:-1;;;75881:77:0;;9395:2:1;75881:77:0;;;9377:21:1;9434:2;9414:18;;;9407:30;-1:-1:-1;;;9453:18:1;;;9446:44;9507:18;;75881:77:0;9193:338:1;75881:77:0;51869:10;75967:30;;;;:16;:30;;;;;:37;;-1:-1:-1;;75967:37:0;76000:4;75967:37;;;76011:31;;76035:6;76011:9;:31::i;71585:40::-;;;;;;;:::i;73366:284::-;7657:13;:11;:13::i;:::-;73467:1:::1;73456:8;:12;73440:65;;;::::0;-1:-1:-1;;;73440:65:0;;12433:2:1;73440:65:0::1;::::0;::::1;12415:21:1::0;12472:2;12452:18;;;12445:30;-1:-1:-1;;;12491:18:1;;;12484:49;12550:18;;73440:65:0::1;12231:343:1::0;73440:65:0::1;73556:9;;73544:8;73528:13;23148:12:::0;;22935:7;23132:13;:28;;22882:315;73528:13:::1;:24;;;;:::i;:::-;:37;;73512:94;;;::::0;-1:-1:-1;;;73512:94:0;;10548:2:1;73512:94:0::1;::::0;::::1;10530:21:1::0;10587:2;10567:18;;;10560:30;10626:25;10606:18;;;10599:53;10669:18;;73512:94:0::1;10346:347:1::0;8677:201:0;7657:13;:11;:13::i;:::-;-1:-1:-1;;;;;8766:22:0;::::1;8758:73;;;::::0;-1:-1:-1;;;8758:73:0;;9738:2:1;8758:73:0::1;::::0;::::1;9720:21:1::0;9777:2;9757:18;;;9750:30;9816:34;9796:18;;;9789:62;-1:-1:-1;;;9867:18:1;;;9860:36;9913:19;;8758:73:0::1;9536:402:1::0;8758:73:0::1;8842:28;8861:8;8842:18;:28::i;7936:132::-:0;7844:6;;-1:-1:-1;;;;;7844:6:0;51869:10;8000:23;7992:68;;;;-1:-1:-1;;;7992:68:0;;10900:2:1;7992:68:0;;;10882:21:1;;;10919:18;;;10912:30;10978:34;10958:18;;;10951:62;11030:18;;7992:68:0;10698:356:1;33221:273:0;33278:4;33368:13;;33358:7;:23;33315:152;;;;-1:-1:-1;;33419:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;33419:43:0;:48;;33221:273::o;26181:1129::-;26248:7;26283;26385:13;;26378:4;:20;26374:869;;;26423:14;26440:23;;;:17;:23;;;;;;-1:-1:-1;;;26529:23:0;;26525:699;;27048:113;27055:11;27048:113;;-1:-1:-1;;;27126:6:0;27108:25;;;;:17;:25;;;;;;27048:113;;;27194:6;26181:1129;-1:-1:-1;;;26181:1129:0:o;26525:699::-;26400:843;26374:869;27271:31;;-1:-1:-1;;;27271:31:0;;;;;;;;;;;9038:191;9131:6;;;-1:-1:-1;;;;;9148:17:0;;;-1:-1:-1;;;;;;9148:17:0;;;;;;;9181:40;;9131:6;;;9148:17;9131:6;;9181:40;;9112:16;;9181:40;9101:128;9038:191;:::o;33578:104::-;33647:27;33657:2;33661:8;33647:27;;;;;;;;;;;;:9;:27::i;47437:716::-;47621:88;;-1:-1:-1;;;47621:88:0;;47600:4;;-1:-1:-1;;;;;47621:45:0;;;;;:88;;51869:10;;47688:4;;47694:7;;47703:5;;47621:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47621:88:0;;;;;;;;-1:-1:-1;;47621:88:0;;;;;;;;;;;;:::i;:::-;;;47617:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47904:13:0;;47900:235;;47950:40;;-1:-1:-1;;;47950:40:0;;;;;;;;;;;47900:235;48093:6;48087:13;48078:6;48074:2;48070:15;48063:38;47617:529;-1:-1:-1;;;;;;47780:64:0;-1:-1:-1;;;47780:64:0;;-1:-1:-1;47617:529:0;47437:716;;;;;;:::o;3574:723::-;3630:13;3851:10;3847:53;;-1:-1:-1;;3878:10:0;;;;;;;;;;;;-1:-1:-1;;;3878:10:0;;;;;3574:723::o;3847:53::-;3925:5;3910:12;3966:78;3973:9;;3966:78;;3999:8;;;;:::i;:::-;;-1:-1:-1;4022:10:0;;-1:-1:-1;4030:2:0;4022:10;;:::i;:::-;;;3966:78;;;4054:19;4086:6;4076:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4076:17:0;;4054:39;;4104:154;4111:10;;4104:154;;4138:11;4148:1;4138:11;;:::i;:::-;;-1:-1:-1;4207:10:0;4215:2;4207:5;:10;:::i;:::-;4194:24;;:2;:24;:::i;:::-;4181:39;;4164:6;4171;4164:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;4164:56:0;;;;;;;;-1:-1:-1;4235:11:0;4244:2;4235:11;;:::i;:::-;;;4104:154;;63835:190;63960:4;64013;63984:25;63997:5;64004:4;63984:12;:25::i;:::-;:33;;63835:190;-1:-1:-1;;;;63835:190:0:o;34098:681::-;34221:19;34227:2;34231:8;34221:5;:19::i;:::-;-1:-1:-1;;;;;34282:14:0;;;:19;34278:483;;34322:11;34336:13;34384:14;;;34417:233;34448:62;34487:1;34491:2;34495:7;;;;;;34504:5;34448:30;:62::i;:::-;34443:167;;34546:40;;-1:-1:-1;;;34546:40:0;;;;;;;;;;;34443:167;34645:3;34637:5;:11;34417:233;;34732:3;34715:13;;:20;34711:34;;34737:8;;;34711:34;34303:458;;34098:681;;;:::o;64702:296::-;64785:7;64828:4;64785:7;64843:118;64867:5;:12;64863:1;:16;64843:118;;;64916:33;64926:12;64940:5;64946:1;64940:8;;;;;;;;:::i;:::-;;;;;;;64916:9;:33::i;:::-;64901:48;-1:-1:-1;64881:3:0;;;;:::i;:::-;;;;64843:118;;;-1:-1:-1;64978:12:0;64702:296;-1:-1:-1;;;64702:296:0:o;35052:1529::-;35117:20;35140:13;-1:-1:-1;;;;;35168:16:0;;35164:48;;35193:19;;-1:-1:-1;;;35193:19:0;;;;;;;;;;;35164:48;35227:13;35223:44;;35249:18;;-1:-1:-1;;;35249:18:0;;;;;;;;;;;35223:44;-1:-1:-1;;;;;35755:22:0;;;;;;:18;:22;;19199:2;35755:22;;:70;;35793:31;35781:44;;35755:70;;;29163:11;29139:22;29135:40;-1:-1:-1;30873:15:0;;30848:23;30844:45;29132:51;29122:62;36068:31;;;;:17;:31;;;;;:173;36086:12;36317:23;;;36355:101;36382:35;;36407:9;;;;;-1:-1:-1;;;;;36382:35:0;;;36399:1;;36382:35;;36399:1;;36382:35;36451:3;36441:7;:13;36355:101;;36472:13;:19;-1:-1:-1;32311:185:0;;;:::o;70909:149::-;70972:7;71003:1;70999;:5;:51;;71134:13;71228:15;;;71264:4;71257:15;;;71311:4;71295:21;;70999:51;;;-1:-1:-1;71134:13:0;71228:15;;;71264:4;71257:15;71311:4;71295:21;;;70909:149::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:160::-;893:20;;949:13;;942:21;932:32;;922:60;;978:1;975;968:12;993:186;1052:6;1105:2;1093:9;1084:7;1080:23;1076:32;1073:52;;;1121:1;1118;1111:12;1073:52;1144:29;1163:9;1144:29;:::i;1184:260::-;1252:6;1260;1313:2;1301:9;1292:7;1288:23;1284:32;1281:52;;;1329:1;1326;1319:12;1281:52;1352:29;1371:9;1352:29;:::i;:::-;1342:39;;1400:38;1434:2;1423:9;1419:18;1400:38;:::i;:::-;1390:48;;1184:260;;;;;:::o;1449:328::-;1526:6;1534;1542;1595:2;1583:9;1574:7;1570:23;1566:32;1563:52;;;1611:1;1608;1601:12;1563:52;1634:29;1653:9;1634:29;:::i;:::-;1624:39;;1682:38;1716:2;1705:9;1701:18;1682:38;:::i;:::-;1672:48;;1767:2;1756:9;1752:18;1739:32;1729:42;;1449:328;;;;;:::o;1782:666::-;1877:6;1885;1893;1901;1954:3;1942:9;1933:7;1929:23;1925:33;1922:53;;;1971:1;1968;1961:12;1922:53;1994:29;2013:9;1994:29;:::i;:::-;1984:39;;2042:38;2076:2;2065:9;2061:18;2042:38;:::i;:::-;2032:48;;2127:2;2116:9;2112:18;2099:32;2089:42;;2182:2;2171:9;2167:18;2154:32;2209:18;2201:6;2198:30;2195:50;;;2241:1;2238;2231:12;2195:50;2264:22;;2317:4;2309:13;;2305:27;-1:-1:-1;2295:55:1;;2346:1;2343;2336:12;2295:55;2369:73;2434:7;2429:2;2416:16;2411:2;2407;2403:11;2369:73;:::i;:::-;2359:83;;;1782:666;;;;;;;:::o;2453:254::-;2518:6;2526;2579:2;2567:9;2558:7;2554:23;2550:32;2547:52;;;2595:1;2592;2585:12;2547:52;2618:29;2637:9;2618:29;:::i;:::-;2608:39;;2666:35;2697:2;2686:9;2682:18;2666:35;:::i;2712:254::-;2780:6;2788;2841:2;2829:9;2820:7;2816:23;2812:32;2809:52;;;2857:1;2854;2847:12;2809:52;2880:29;2899:9;2880:29;:::i;:::-;2870:39;2956:2;2941:18;;;;2928:32;;-1:-1:-1;;;2712:254:1:o;2971:180::-;3027:6;3080:2;3068:9;3059:7;3055:23;3051:32;3048:52;;;3096:1;3093;3086:12;3048:52;3119:26;3135:9;3119:26;:::i;3156:245::-;3214:6;3267:2;3255:9;3246:7;3242:23;3238:32;3235:52;;;3283:1;3280;3273:12;3235:52;3322:9;3309:23;3341:30;3365:5;3341:30;:::i;3406:249::-;3475:6;3528:2;3516:9;3507:7;3503:23;3499:32;3496:52;;;3544:1;3541;3534:12;3496:52;3576:9;3570:16;3595:30;3619:5;3595:30;:::i;3660:450::-;3729:6;3782:2;3770:9;3761:7;3757:23;3753:32;3750:52;;;3798:1;3795;3788:12;3750:52;3838:9;3825:23;3871:18;3863:6;3860:30;3857:50;;;3903:1;3900;3893:12;3857:50;3926:22;;3979:4;3971:13;;3967:27;-1:-1:-1;3957:55:1;;4008:1;4005;3998:12;3957:55;4031:73;4096:7;4091:2;4078:16;4073:2;4069;4065:11;4031:73;:::i;4115:180::-;4174:6;4227:2;4215:9;4206:7;4202:23;4198:32;4195:52;;;4243:1;4240;4233:12;4195:52;-1:-1:-1;4266:23:1;;4115:180;-1:-1:-1;4115:180:1:o;4300:683::-;4395:6;4403;4411;4464:2;4452:9;4443:7;4439:23;4435:32;4432:52;;;4480:1;4477;4470:12;4432:52;4516:9;4503:23;4493:33;;4577:2;4566:9;4562:18;4549:32;4600:18;4641:2;4633:6;4630:14;4627:34;;;4657:1;4654;4647:12;4627:34;4695:6;4684:9;4680:22;4670:32;;4740:7;4733:4;4729:2;4725:13;4721:27;4711:55;;4762:1;4759;4752:12;4711:55;4802:2;4789:16;4828:2;4820:6;4817:14;4814:34;;;4844:1;4841;4834:12;4814:34;4897:7;4892:2;4882:6;4879:1;4875:14;4871:2;4867:23;4863:32;4860:45;4857:65;;;4918:1;4915;4908:12;4857:65;4949:2;4945;4941:11;4931:21;;4971:6;4961:16;;;;;4300:683;;;;;:::o;4988:257::-;5029:3;5067:5;5061:12;5094:6;5089:3;5082:19;5110:63;5166:6;5159:4;5154:3;5150:14;5143:4;5136:5;5132:16;5110:63;:::i;:::-;5227:2;5206:15;-1:-1:-1;;5202:29:1;5193:39;;;;5234:4;5189:50;;4988:257;-1:-1:-1;;4988:257:1:o;5250:185::-;5292:3;5330:5;5324:12;5345:52;5390:6;5385:3;5378:4;5371:5;5367:16;5345:52;:::i;:::-;5413:16;;;;;5250:185;-1:-1:-1;;5250:185:1:o;5911:1433::-;6289:3;6318:1;6351:6;6345:13;6381:3;6403:1;6431:9;6427:2;6423:18;6413:28;;6491:2;6480:9;6476:18;6513;6503:61;;6557:4;6549:6;6545:17;6535:27;;6503:61;6583:2;6631;6623:6;6620:14;6600:18;6597:38;6594:165;;;-1:-1:-1;;;6658:33:1;;6714:4;6711:1;6704:15;6744:4;6665:3;6732:17;6594:165;6775:18;6802:104;;;;6920:1;6915:320;;;;6768:467;;6802:104;-1:-1:-1;;6835:24:1;;6823:37;;6880:16;;;;-1:-1:-1;6802:104:1;;6915:320;13899:1;13892:14;;;13936:4;13923:18;;7010:1;7024:165;7038:6;7035:1;7032:13;7024:165;;;7116:14;;7103:11;;;7096:35;7159:16;;;;7053:10;;7024:165;;;7028:3;;7218:6;7213:3;7209:16;7202:23;;6768:467;;;;;;;7251:87;7276:61;7302:34;7332:3;-1:-1:-1;;;5623:16:1;;5664:1;5655:11;;5558:114;7302:34;7294:6;7276:61;:::i;:::-;-1:-1:-1;;;5500:20:1;;5545:1;5536:11;;5440:113;7251:87;7244:94;5911:1433;-1:-1:-1;;;;;5911:1433:1:o;7767:488::-;-1:-1:-1;;;;;8036:15:1;;;8018:34;;8088:15;;8083:2;8068:18;;8061:43;8135:2;8120:18;;8113:34;;;8183:3;8178:2;8163:18;;8156:31;;;7961:4;;8204:45;;8229:19;;8221:6;8204:45;:::i;:::-;8196:53;7767:488;-1:-1:-1;;;;;;7767:488:1:o;8634:219::-;8783:2;8772:9;8765:21;8746:4;8803:44;8843:2;8832:9;8828:18;8820:6;8803:44;:::i;9943:398::-;10145:2;10127:21;;;10184:2;10164:18;;;10157:30;10223:34;10218:2;10203:18;;10196:62;-1:-1:-1;;;10289:2:1;10274:18;;10267:32;10331:3;10316:19;;9943:398::o;13952:128::-;13992:3;14023:1;14019:6;14016:1;14013:13;14010:39;;;14029:18;;:::i;:::-;-1:-1:-1;14065:9:1;;13952:128::o;14085:120::-;14125:1;14151;14141:35;;14156:18;;:::i;:::-;-1:-1:-1;14190:9:1;;14085:120::o;14210:168::-;14250:7;14316:1;14312;14308:6;14304:14;14301:1;14298:21;14293:1;14286:9;14279:17;14275:45;14272:71;;;14323:18;;:::i;:::-;-1:-1:-1;14363:9:1;;14210:168::o;14383:125::-;14423:4;14451:1;14448;14445:8;14442:34;;;14456:18;;:::i;:::-;-1:-1:-1;14493:9:1;;14383:125::o;14513:258::-;14585:1;14595:113;14609:6;14606:1;14603:13;14595:113;;;14685:11;;;14679:18;14666:11;;;14659:39;14631:2;14624:10;14595:113;;;14726:6;14723:1;14720:13;14717:48;;;-1:-1:-1;;14761:1:1;14743:16;;14736:27;14513:258::o;14776:380::-;14855:1;14851:12;;;;14898;;;14919:61;;14973:4;14965:6;14961:17;14951:27;;14919:61;15026:2;15018:6;15015:14;14995:18;14992:38;14989:161;;;15072:10;15067:3;15063:20;15060:1;15053:31;15107:4;15104:1;15097:15;15135:4;15132:1;15125:15;14989:161;;14776:380;;;:::o;15161:135::-;15200:3;-1:-1:-1;;15221:17:1;;15218:43;;;15241:18;;:::i;:::-;-1:-1:-1;15288:1:1;15277:13;;15161:135::o;15301:112::-;15333:1;15359;15349:35;;15364:18;;:::i;:::-;-1:-1:-1;15398:9:1;;15301:112::o;15418:127::-;15479:10;15474:3;15470:20;15467:1;15460:31;15510:4;15507:1;15500:15;15534:4;15531:1;15524:15;15550:127;15611:10;15606:3;15602:20;15599:1;15592:31;15642:4;15639:1;15632:15;15666:4;15663:1;15656:15;15682:127;15743:10;15738:3;15734:20;15731:1;15724:31;15774:4;15771:1;15764:15;15798:4;15795:1;15788:15;15814:127;15875:10;15870:3;15866:20;15863:1;15856:31;15906:4;15903:1;15896:15;15930:4;15927:1;15920:15;15946:131;-1:-1:-1;;;;;;16020:32:1;;16010:43;;16000:71;;16067:1;16064;16057:12
Swarm Source
ipfs://c5e896a8ce321a0d4918aa323c73a5bc346690c8692e2c7e2da946d7910421a1
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.