ERC-721
Overview
Max Total Supply
4,444 DMF
Holders
1,069
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
11 DMFLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DegenMoonFrensNFT
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: UNLICENSED /** _____ _____ _____ _____ _____ /\ \ /\ \ /\ \ /\ \ /\ \ /::\ \ /::\ \ /::\ \ /::\ \ /::\____\ /::::\ \ /::::\ \ /::::\ \ /::::\ \ /::::| | /::::::\ \ /::::::\ \ /::::::\ \ /::::::\ \ /:::::| | /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /::::::| | /:::/ \:::\ \ /:::/__\:::\ \ /:::/ \:::\ \ /:::/__\:::\ \ /:::/|::| | /:::/ \:::\ \ /::::\ \:::\ \ /:::/ \:::\ \ /::::\ \:::\ \ /:::/ |::| | /:::/ / \:::\ \ /::::::\ \:::\ \ /:::/ / \:::\ \ /::::::\ \:::\ \ /:::/ |::| | _____ /:::/ / \:::\ ___\ /:::/\:::\ \:::\ \ /:::/ / \:::\ ___\ /:::/\:::\ \:::\ \ /:::/ |::| |/\ \ /:::/____/ \:::| |/:::/__\:::\ \:::\____\/:::/____/ ___\:::| |/:::/__\:::\ \:::\____\/:: / |::| /::\____\ \:::\ \ /:::|____|\:::\ \:::\ \::/ /\:::\ \ /\ /:::|____|\:::\ \:::\ \::/ /\::/ /|::| /:::/ / \:::\ \ /:::/ / \:::\ \:::\ \/____/ \:::\ /::\ \::/ / \:::\ \:::\ \/____/ \/____/ |::| /:::/ / \:::\ \ /:::/ / \:::\ \:::\ \ \:::\ \:::\ \/____/ \:::\ \:::\ \ |::|/:::/ / \:::\ /:::/ / \:::\ \:::\____\ \:::\ \:::\____\ \:::\ \:::\____\ |::::::/ / \:::\ /:::/ / \:::\ \::/ / \:::\ /:::/ / \:::\ \::/ / |:::::/ / \:::\/:::/ / \:::\ \/____/ \:::\/:::/ / \:::\ \/____/ |::::/ / \::::::/ / \:::\ \ \::::::/ / \:::\ \ /:::/ / \::::/ / \:::\____\ \::::/ / \:::\____\ /:::/ / \::/____/ \::/ / \::/____/ \::/ / \::/ / ~~ \/____/ \/____/ \/____/ _____ _______ _______ _____ /\ \ /::\ \ /::\ \ /\ \ /::\____\ /::::\ \ /::::\ \ /::\____\ /::::| | /::::::\ \ /::::::\ \ /::::| | /:::::| | /::::::::\ \ /::::::::\ \ /:::::| | /::::::| | /:::/~~\:::\ \ /:::/~~\:::\ \ /::::::| | /:::/|::| | /:::/ \:::\ \ /:::/ \:::\ \ /:::/|::| | /:::/ |::| | /:::/ / \:::\ \ /:::/ / \:::\ \ /:::/ |::| | /:::/ |::|___|______ /:::/____/ \:::\____\ /:::/____/ \:::\____\ /:::/ |::| | _____ /:::/ |::::::::\ \ |:::| | |:::| ||:::| | |:::| | /:::/ |::| |/\ \ /:::/ |:::::::::\____\|:::|____| |:::| ||:::|____| |:::| |/:: / |::| /::\____\ \::/ / ~~~~~/:::/ / \:::\ \ /:::/ / \:::\ \ /:::/ / \::/ /|::| /:::/ / \/____/ /:::/ / \:::\ \ /:::/ / \:::\ \ /:::/ / \/____/ |::| /:::/ / /:::/ / \:::\ /:::/ / \:::\ /:::/ / |::|/:::/ / /:::/ / \:::\__/:::/ / \:::\__/:::/ / |::::::/ / /:::/ / \::::::::/ / \::::::::/ / |:::::/ / /:::/ / \::::::/ / \::::::/ / |::::/ / /:::/ / \::::/ / \::::/ / /:::/ / /:::/ / \::/____/ \::/____/ /:::/ / \::/ / ~~ ~~ \::/ / \/____/ \/____/ _____ _____ _____ _____ _____ /\ \ /\ \ /\ \ /\ \ /\ \ /::\ \ /::\ \ /::\ \ /::\____\ /::\ \ /::::\ \ /::::\ \ /::::\ \ /::::| | /::::\ \ /::::::\ \ /::::::\ \ /::::::\ \ /:::::| | /::::::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /::::::| | /:::/\:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ /:::/|::| | /:::/__\:::\ \ /::::\ \:::\ \ /::::\ \:::\ \ /::::\ \:::\ \ /:::/ |::| | \:::\ \:::\ \ /::::::\ \:::\ \ /::::::\ \:::\ \ /::::::\ \:::\ \ /:::/ |::| | _____ ___\:::\ \:::\ \ /:::/\:::\ \:::\ \ /:::/\:::\ \:::\____\ /:::/\:::\ \:::\ \ /:::/ |::| |/\ \ /\ \:::\ \:::\ \ /:::/ \:::\ \:::\____\/:::/ \:::\ \:::| |/:::/__\:::\ \:::\____\/:: / |::| /::\____\/::\ \:::\ \:::\____\ \::/ \:::\ \::/ /\::/ |::::\ /:::|____|\:::\ \:::\ \::/ /\::/ /|::| /:::/ /\:::\ \:::\ \::/ / \/____/ \:::\ \/____/ \/____|:::::\/:::/ / \:::\ \:::\ \/____/ \/____/ |::| /:::/ / \:::\ \:::\ \/____/ \:::\ \ |:::::::::/ / \:::\ \:::\ \ |::|/:::/ / \:::\ \:::\ \ \:::\____\ |::|\::::/ / \:::\ \:::\____\ |::::::/ / \:::\ \:::\____\ \::/ / |::| \::/____/ \:::\ \::/ / |:::::/ / \:::\ /:::/ / \/____/ |::| ~| \:::\ \/____/ |::::/ / \:::\/:::/ / |::| | \:::\ \ /:::/ / \::::::/ / \::| | \:::\____\ /:::/ / \::::/ / \:| | \::/ / \::/ / \::/ / \|___| \/____/ \/____/ \/____/ */ pragma solidity ^0.8.14; import "./erc721a/contracts/ERC721A.sol"; import './@openzeppelin/contracts/access/Ownable.sol'; import './@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import './@openzeppelin/contracts/utils/Strings.sol'; import './@openzeppelin/contracts/security/ReentrancyGuard.sol'; contract DegenMoonFrensNFT is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; address payable gnosisSafe = payable(0xF15e4633E7c3a530fB56179c08dc1D6FE604Ef9e); bool public paused = true; bool public revealed = false; bool public whitelistMintEnabled = false; bytes32 public merkleRoot; mapping(address => uint256) public numberOfWLMintsOnAddress; string public hiddenMetadataUri; string public uriPrefix = ''; string public uriSuffix = '.json'; uint256 public cost = 0.02 ether; uint256 public freeMints = 1; uint256 public maxMintAmountWL = 4; uint256 public maxMintAmountPerTx = 7; uint256 public maxSupply = 8888; uint256 public reservedTeamSupply = 300; constructor( string memory _tokenName, string memory _tokenSymbol, string memory _hiddenMetadataUri ) ERC721A(_tokenName, _tokenSymbol) { setHiddenMetadataUri(_hiddenMetadataUri); } function _startTokenId() internal view override virtual returns (uint256) { return 1; } modifier mintCompliance(uint256 _mintAmount) { require(tx.origin == msg.sender); require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, 'Invalid mint amount!'); require(totalSupply() + _mintAmount <= maxSupply - reservedTeamSupply, 'Max supply exceeded!'); _; } modifier mintComplianceWL(uint256 _mintAmount) { require(tx.origin == msg.sender); require( _mintAmount <= maxMintAmountWL, 'Invalid mint amount!'); require(totalSupply() + _mintAmount + freeMints <= maxSupply - reservedTeamSupply, 'Max supply exceeded!'); _; } modifier mintComplianceReserved(uint256 _mintAmount) { require(totalSupply() + _mintAmount <= maxSupply, 'Max supply exceeded!'); _; } modifier mintPriceCompliance(uint256 _mintAmount) { require(msg.value >= cost * _mintAmount, 'Insufficient funds!'); _; } function whitelistMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable mintComplianceWL(_mintAmount) mintPriceCompliance(_mintAmount) nonReentrant { require(whitelistMintEnabled, 'The whitelist sale is not enabled!'); require(numberOfWLMintsOnAddress[msg.sender] <= 0, "You have already minted, please check secondary."); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), 'Invalid proof!'); _mintAmount += freeMints; numberOfWLMintsOnAddress[msg.sender] += _mintAmount; _safeMint(_msgSender(), _mintAmount); } function mint(uint256 _mintAmount) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount) nonReentrant { require(!paused, 'The contract is paused!'); _safeMint(_msgSender(), _mintAmount); } function mintForAddress(uint256 _mintAmount, address _receiver) public mintComplianceReserved(_mintAmount) onlyOwner { _safeMint(_receiver, _mintAmount); } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount); uint256 startTokenId = 1; uint256 ownedTokenIndex = 0; address latestOwnerAddress; while (ownedTokenIndex < ownerTokenCount && startTokenId <= maxSupply) { TokenOwnership memory ownership = _ownershipAt(startTokenId); if (!ownership.burned && ownership.addr != address(0)) { latestOwnerAddress = ownership.addr; } if (latestOwnerAddress == _owner) { ownedTokenIds[ownedTokenIndex] = startTokenId; startTokenId++; } startTokenId++; } return ownedTokenIds; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); if (revealed == false) { return string(abi.encodePacked(hiddenMetadataUri, _tokenId.toString(), uriSuffix)); } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : ''; } function setRevealed(bool _state) public onlyOwner { revealed = _state; } function setCost(uint256 _cost) public onlyOwner { cost = _cost; } function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner { maxMintAmountPerTx = _maxMintAmountPerTx; } function setMaxMintAmountPerAddress(uint256 _maxMintAmountPerAddress) public onlyOwner { maxMintAmountPerTx = _maxMintAmountPerAddress; } function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function setPaused(bool _state) public onlyOwner { paused = _state; } function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function setWhitelistMintEnabled(bool _state) public onlyOwner { whitelistMintEnabled = _state; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } function withdraw() public onlyOwner nonReentrant { (bool success, ) = gnosisSafe.call{ value: address(this).balance }(''); require(success); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @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 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` 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 auxillary 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 auxillary 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; assembly { // Cast aux without masking. 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; } /** * 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 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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); 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-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @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 { _transfer(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. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) 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 or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) 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 or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // 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)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // 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 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) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees 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 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++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } }
// SPDX-License-Identifier: MIT // 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; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.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(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * 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(); 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; } /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
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":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMints","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":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberOfWLMintsOnAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedTeamSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerAddress","type":"uint256"}],"name":"setMaxMintAmountPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","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":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","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
608060405273f15e4633e7c3a530fb56179c08dc1d6fe604ef9e600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600a60146101000a81548160ff0219169083151502179055506000600a60156101000a81548160ff0219169083151502179055506000600a60166101000a81548160ff02191690831515021790555060405180602001604052806000815250600e9080519060200190620000d1929190620003b3565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600f90805190602001906200011f929190620003b3565b5066470de4df8200006010556001601155600460125560076013556122b860145561012c6015553480156200015357600080fd5b5060405162004f5938038062004f59833981810160405281019062000179919062000600565b8282816002908051906020019062000193929190620003b3565b508060039080519060200190620001ac929190620003b3565b50620001bd6200020760201b60201c565b6000819055505050620001e5620001d96200021060201b60201c565b6200021860201b60201c565b6001600981905550620001fe81620002de60201b60201c565b505050620007a0565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002ee6200021060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003146200038960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200036d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000364906200071a565b60405180910390fd5b80600d908051906020019062000385929190620003b3565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003c1906200076b565b90600052602060002090601f016020900481019282620003e5576000855562000431565b82601f106200040057805160ff191683800117855562000431565b8280016001018555821562000431579182015b828111156200043057825182559160200191906001019062000413565b5b50905062000440919062000444565b5090565b5b808211156200045f57600081600090555060010162000445565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620004cc8262000481565b810181811067ffffffffffffffff82111715620004ee57620004ed62000492565b5b80604052505050565b60006200050362000463565b9050620005118282620004c1565b919050565b600067ffffffffffffffff82111562000534576200053362000492565b5b6200053f8262000481565b9050602081019050919050565b60005b838110156200056c5780820151818401526020810190506200054f565b838111156200057c576000848401525b50505050565b600062000599620005938462000516565b620004f7565b905082815260208101848484011115620005b857620005b76200047c565b5b620005c58482856200054c565b509392505050565b600082601f830112620005e557620005e462000477565b5b8151620005f784826020860162000582565b91505092915050565b6000806000606084860312156200061c576200061b6200046d565b5b600084015167ffffffffffffffff8111156200063d576200063c62000472565b5b6200064b86828701620005cd565b935050602084015167ffffffffffffffff8111156200066f576200066e62000472565b5b6200067d86828701620005cd565b925050604084015167ffffffffffffffff811115620006a157620006a062000472565b5b620006af86828701620005cd565b9150509250925092565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000702602083620006b9565b91506200070f82620006ca565b602082019050919050565b600060208201905081810360008301526200073581620006f3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200078457607f821691505b6020821081036200079a57620007996200073c565b5b50919050565b6147a980620007b06000396000f3fe60806040526004361061027d5760003560e01c80636caede3d1161014f578063a22cb465116100c1578063d2cab0561161007a578063d2cab05614610965578063d5abeb0114610981578063e0a80853146109ac578063e985e9c5146109d5578063efbd73f414610a12578063f2fde38b14610a3b5761027d565b8063a22cb46514610859578063a45ba8e714610882578063b071401b146108ad578063b767a098146108d6578063b88d4fde146108ff578063c87b56dd146109285761027d565b806380b173351161011357806380b173351461076657806383cc3c51146107915780638da5cb5b146107bc57806394354fd0146107e757806395d89b4114610812578063a0712d681461083d5761027d565b80636caede3d1461069557806370a08231146106c0578063715018a6146106fd5780637cb64759146107145780637ec4a6591461073d5761027d565b80633ccfd60b116101f357806351830227116101ac57806351830227146105835780635503a0e8146105ae5780635697f53e146105d95780635c975abb1461060257806362b99ad41461062d5780636352211e146106585761027d565b80633ccfd60b1461047757806342842e0e1461048e578063438b6300146104b757806343d0d356146104f457806344a0d68a146105315780634fdd43cb1461055a5761027d565b806313faede61161024557806313faede61461037b57806316ba10e0146103a657806316c38b3c146103cf57806318160ddd146103f857806323b872dd146104235780632eb4a7ab1461044c5761027d565b806301ffc9a71461028257806306fdde03146102bf578063081812fc146102ea578063095ea7b31461032757806313093b1d14610350575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190613423565b610a64565b6040516102b6919061346b565b60405180910390f35b3480156102cb57600080fd5b506102d4610af6565b6040516102e1919061351f565b60405180910390f35b3480156102f657600080fd5b50610311600480360381019061030c9190613577565b610b88565b60405161031e91906135e5565b60405180910390f35b34801561033357600080fd5b5061034e6004803603810190610349919061362c565b610c04565b005b34801561035c57600080fd5b50610365610daa565b604051610372919061367b565b60405180910390f35b34801561038757600080fd5b50610390610db0565b60405161039d919061367b565b60405180910390f35b3480156103b257600080fd5b506103cd60048036038101906103c891906137cb565b610db6565b005b3480156103db57600080fd5b506103f660048036038101906103f19190613840565b610e4c565b005b34801561040457600080fd5b5061040d610ee5565b60405161041a919061367b565b60405180910390f35b34801561042f57600080fd5b5061044a6004803603810190610445919061386d565b610efc565b005b34801561045857600080fd5b50610461610f0c565b60405161046e91906138d9565b60405180910390f35b34801561048357600080fd5b5061048c610f12565b005b34801561049a57600080fd5b506104b560048036038101906104b0919061386d565b61107e565b005b3480156104c357600080fd5b506104de60048036038101906104d991906138f4565b61109e565b6040516104eb91906139df565b60405180910390f35b34801561050057600080fd5b5061051b600480360381019061051691906138f4565b6111fa565b604051610528919061367b565b60405180910390f35b34801561053d57600080fd5b5061055860048036038101906105539190613577565b611212565b005b34801561056657600080fd5b50610581600480360381019061057c91906137cb565b611298565b005b34801561058f57600080fd5b5061059861132e565b6040516105a5919061346b565b60405180910390f35b3480156105ba57600080fd5b506105c3611341565b6040516105d0919061351f565b60405180910390f35b3480156105e557600080fd5b5061060060048036038101906105fb9190613577565b6113cf565b005b34801561060e57600080fd5b50610617611455565b604051610624919061346b565b60405180910390f35b34801561063957600080fd5b50610642611468565b60405161064f919061351f565b60405180910390f35b34801561066457600080fd5b5061067f600480360381019061067a9190613577565b6114f6565b60405161068c91906135e5565b60405180910390f35b3480156106a157600080fd5b506106aa611508565b6040516106b7919061346b565b60405180910390f35b3480156106cc57600080fd5b506106e760048036038101906106e291906138f4565b61151b565b6040516106f4919061367b565b60405180910390f35b34801561070957600080fd5b506107126115d3565b005b34801561072057600080fd5b5061073b60048036038101906107369190613a2d565b61165b565b005b34801561074957600080fd5b50610764600480360381019061075f91906137cb565b6116e1565b005b34801561077257600080fd5b5061077b611777565b604051610788919061367b565b60405180910390f35b34801561079d57600080fd5b506107a661177d565b6040516107b3919061367b565b60405180910390f35b3480156107c857600080fd5b506107d1611783565b6040516107de91906135e5565b60405180910390f35b3480156107f357600080fd5b506107fc6117ad565b604051610809919061367b565b60405180910390f35b34801561081e57600080fd5b506108276117b3565b604051610834919061351f565b60405180910390f35b61085760048036038101906108529190613577565b611845565b005b34801561086557600080fd5b50610880600480360381019061087b9190613a5a565b611a3f565b005b34801561088e57600080fd5b50610897611bb6565b6040516108a4919061351f565b60405180910390f35b3480156108b957600080fd5b506108d460048036038101906108cf9190613577565b611c44565b005b3480156108e257600080fd5b506108fd60048036038101906108f89190613840565b611cca565b005b34801561090b57600080fd5b5061092660048036038101906109219190613b3b565b611d63565b005b34801561093457600080fd5b5061094f600480360381019061094a9190613577565b611dd6565b60405161095c919061351f565b60405180910390f35b61097f600480360381019061097a9190613c1e565b611ed1565b005b34801561098d57600080fd5b50610996612276565b6040516109a3919061367b565b60405180910390f35b3480156109b857600080fd5b506109d360048036038101906109ce9190613840565b61227c565b005b3480156109e157600080fd5b506109fc60048036038101906109f79190613c7e565b612315565b604051610a09919061346b565b60405180910390f35b348015610a1e57600080fd5b50610a396004803603810190610a349190613cbe565b6123a9565b005b348015610a4757600080fd5b50610a626004803603810190610a5d91906138f4565b61248c565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610abf57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610aef5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610b0590613d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3190613d2d565b8015610b7e5780601f10610b5357610100808354040283529160200191610b7e565b820191906000526020600020905b815481529060010190602001808311610b6157829003601f168201915b5050505050905090565b6000610b9382612583565b610bc9576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0f826125e2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c76576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c956126ae565b73ffffffffffffffffffffffffffffffffffffffff1614610cf857610cc181610cbc6126ae565b612315565b610cf7576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60125481565b60105481565b610dbe6126b6565b73ffffffffffffffffffffffffffffffffffffffff16610ddc611783565b73ffffffffffffffffffffffffffffffffffffffff1614610e32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2990613daa565b60405180910390fd5b80600f9080519060200190610e489291906132d1565b5050565b610e546126b6565b73ffffffffffffffffffffffffffffffffffffffff16610e72611783565b73ffffffffffffffffffffffffffffffffffffffff1614610ec8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebf90613daa565b60405180910390fd5b80600a60146101000a81548160ff02191690831515021790555050565b6000610eef6126be565b6001546000540303905090565b610f078383836126c7565b505050565b600b5481565b610f1a6126b6565b73ffffffffffffffffffffffffffffffffffffffff16610f38611783565b73ffffffffffffffffffffffffffffffffffffffff1614610f8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8590613daa565b60405180910390fd5b600260095403610fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fca90613e16565b60405180910390fd5b60026009819055506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161102390613e67565b60006040518083038185875af1925050503d8060008114611060576040519150601f19603f3d011682016040523d82523d6000602084013e611065565b606091505b505090508061107357600080fd5b506001600981905550565b61109983838360405180602001604052806000815250611d63565b505050565b606060006110ab8361151b565b905060008167ffffffffffffffff8111156110c9576110c86136a0565b5b6040519080825280602002602001820160405280156110f75781602001602082028036833780820191505090505b5090506000600190506000805b848210801561111557506014548311155b156111ed57600061112584612a6e565b9050806040015115801561116a5750600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614155b1561117757806000015191505b8773ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111d957838584815181106111be576111bd613e7c565b5b60200260200101818152505083806111d590613eda565b9450505b83806111e490613eda565b94505050611104565b8395505050505050919050565b600c6020528060005260406000206000915090505481565b61121a6126b6565b73ffffffffffffffffffffffffffffffffffffffff16611238611783565b73ffffffffffffffffffffffffffffffffffffffff161461128e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128590613daa565b60405180910390fd5b8060108190555050565b6112a06126b6565b73ffffffffffffffffffffffffffffffffffffffff166112be611783565b73ffffffffffffffffffffffffffffffffffffffff1614611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b90613daa565b60405180910390fd5b80600d908051906020019061132a9291906132d1565b5050565b600a60159054906101000a900460ff1681565b600f805461134e90613d2d565b80601f016020809104026020016040519081016040528092919081815260200182805461137a90613d2d565b80156113c75780601f1061139c576101008083540402835291602001916113c7565b820191906000526020600020905b8154815290600101906020018083116113aa57829003601f168201915b505050505081565b6113d76126b6565b73ffffffffffffffffffffffffffffffffffffffff166113f5611783565b73ffffffffffffffffffffffffffffffffffffffff161461144b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144290613daa565b60405180910390fd5b8060138190555050565b600a60149054906101000a900460ff1681565b600e805461147590613d2d565b80601f01602080910402602001604051908101604052809291908181526020018280546114a190613d2d565b80156114ee5780601f106114c3576101008083540402835291602001916114ee565b820191906000526020600020905b8154815290600101906020018083116114d157829003601f168201915b505050505081565b6000611501826125e2565b9050919050565b600a60169054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611582576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6115db6126b6565b73ffffffffffffffffffffffffffffffffffffffff166115f9611783565b73ffffffffffffffffffffffffffffffffffffffff161461164f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164690613daa565b60405180910390fd5b6116596000612a99565b565b6116636126b6565b73ffffffffffffffffffffffffffffffffffffffff16611681611783565b73ffffffffffffffffffffffffffffffffffffffff16146116d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ce90613daa565b60405180910390fd5b80600b8190555050565b6116e96126b6565b73ffffffffffffffffffffffffffffffffffffffff16611707611783565b73ffffffffffffffffffffffffffffffffffffffff161461175d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175490613daa565b60405180910390fd5b80600e90805190602001906117739291906132d1565b5050565b60115481565b60155481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60135481565b6060600380546117c290613d2d565b80601f01602080910402602001604051908101604052809291908181526020018280546117ee90613d2d565b801561183b5780601f106118105761010080835404028352916020019161183b565b820191906000526020600020905b81548152906001019060200180831161181e57829003601f168201915b5050505050905090565b803373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461187e57600080fd5b60008111801561189057506013548111155b6118cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c690613f6e565b60405180910390fd5b6015546014546118df9190613f8e565b816118e8610ee5565b6118f29190613fc2565b1115611933576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192a90614064565b60405180910390fd5b81806010546119429190614084565b341015611984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197b9061412a565b60405180910390fd5b6002600954036119c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c090613e16565b60405180910390fd5b6002600981905550600a60149054906101000a900460ff1615611a21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1890614196565b60405180910390fd5b611a32611a2c6126b6565b84612b5f565b6001600981905550505050565b611a476126ae565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611aab576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611ab86126ae565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b656126ae565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611baa919061346b565b60405180910390a35050565b600d8054611bc390613d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054611bef90613d2d565b8015611c3c5780601f10611c1157610100808354040283529160200191611c3c565b820191906000526020600020905b815481529060010190602001808311611c1f57829003601f168201915b505050505081565b611c4c6126b6565b73ffffffffffffffffffffffffffffffffffffffff16611c6a611783565b73ffffffffffffffffffffffffffffffffffffffff1614611cc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb790613daa565b60405180910390fd5b8060138190555050565b611cd26126b6565b73ffffffffffffffffffffffffffffffffffffffff16611cf0611783565b73ffffffffffffffffffffffffffffffffffffffff1614611d46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3d90613daa565b60405180910390fd5b80600a60166101000a81548160ff02191690831515021790555050565b611d6e8484846126c7565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611dd057611d9984848484612b7d565b611dcf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611de182612583565b611e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1790614228565b60405180910390fd5b60001515600a60159054906101000a900460ff16151503611e7057600d611e4683612ccd565b600f604051602001611e5a93929190614318565b6040516020818303038152906040529050611ecc565b6000611e7a612e2d565b90506000815111611e9a5760405180602001604052806000815250611ec8565b80611ea484612ccd565b600f604051602001611eb893929190614349565b6040516020818303038152906040525b9150505b919050565b823373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611f0a57600080fd5b601254811115611f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4690613f6e565b60405180910390fd5b601554601454611f5f9190613f8e565b60115482611f6b610ee5565b611f759190613fc2565b611f7f9190613fc2565b1115611fc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb790614064565b60405180910390fd5b8380601054611fcf9190614084565b341015612011576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120089061412a565b60405180910390fd5b600260095403612056576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204d90613e16565b60405180910390fd5b6002600981905550600a60169054906101000a900460ff166120ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a4906143ec565b60405180910390fd5b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612130576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121279061447e565b60405180910390fd5b600061213a6126b6565b60405160200161214a91906144e6565b6040516020818303038152906040528051906020012090506121b0858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b5483612ebf565b6121ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e69061454d565b60405180910390fd5b601154866121fd9190613fc2565b955085600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461224e9190613fc2565b925050819055506122666122606126b6565b87612b5f565b5060016009819055505050505050565b60145481565b6122846126b6565b73ffffffffffffffffffffffffffffffffffffffff166122a2611783565b73ffffffffffffffffffffffffffffffffffffffff16146122f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ef90613daa565b60405180910390fd5b80600a60156101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b81601454816123b6610ee5565b6123c09190613fc2565b1115612401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f890614064565b60405180910390fd5b6124096126b6565b73ffffffffffffffffffffffffffffffffffffffff16612427611783565b73ffffffffffffffffffffffffffffffffffffffff161461247d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247490613daa565b60405180910390fd5b6124878284612b5f565b505050565b6124946126b6565b73ffffffffffffffffffffffffffffffffffffffff166124b2611783565b73ffffffffffffffffffffffffffffffffffffffff1614612508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ff90613daa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256e906145df565b60405180910390fd5b61258081612a99565b50565b60008161258e6126be565b1115801561259d575060005482105b80156125db575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600080829050806125f16126be565b11612677576000548110156126765760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612674575b6000810361266a576004600083600190039350838152602001908152602001600020549050612640565b80925050506126a9565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b600033905090565b60006001905090565b60006126d2826125e2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612739576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1661275a6126ae565b73ffffffffffffffffffffffffffffffffffffffff1614806127895750612788856127836126ae565b612315565b5b806127ce57506127976126ae565b73ffffffffffffffffffffffffffffffffffffffff166127b684610b88565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612807576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361286d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61287a8585856001612ed6565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b61297786612edc565b1717600460008581526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008316036129ff57600060018401905060006004600083815260200190815260200160002054036129fd5760005481146129fc578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a678585856001612ee6565b5050505050565b612a76613357565b612a926004600084815260200190815260200160002054612eec565b9050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612b79828260405180602001604052806000815250612f88565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ba36126ae565b8786866040518563ffffffff1660e01b8152600401612bc59493929190614654565b6020604051808303816000875af1925050508015612c0157506040513d601f19601f82011682018060405250810190612bfe91906146b5565b60015b612c7a573d8060008114612c31576040519150601f19603f3d011682016040523d82523d6000602084013e612c36565b606091505b506000815103612c72576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203612d14576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e28565b600082905060005b60008214612d46578080612d2f90613eda565b915050600a82612d3f9190614711565b9150612d1c565b60008167ffffffffffffffff811115612d6257612d616136a0565b5b6040519080825280601f01601f191660200182016040528015612d945781602001600182028036833780820191505090505b5090505b60008514612e2157600182612dad9190613f8e565b9150600a85612dbc9190614742565b6030612dc89190613fc2565b60f81b818381518110612dde57612ddd613e7c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e1a9190614711565b9450612d98565b8093505050505b919050565b6060600e8054612e3c90613d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054612e6890613d2d565b8015612eb55780601f10612e8a57610100808354040283529160200191612eb5565b820191906000526020600020905b815481529060010190602001808311612e9857829003601f168201915b5050505050905090565b600082612ecc858461323b565b1490509392505050565b50505050565b6000819050919050565b50505050565b612ef4613357565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c010000000000000000000000000000000000000000000000000000000083161415816040019015159081151581525050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612ff4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000830361302e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61303b6000858386612ed6565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e16130a0600185146132b0565b901b60a042901b6130b086612edc565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b146131b4575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131646000878480600101955087612b7d565b61319a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106130f55782600054146131af57600080fd5b61321f565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106131b5575b8160008190555050506132356000858386612ee6565b50505050565b60008082905060005b84518110156132a557600085828151811061326257613261613e7c565b5b602002602001015190508083116132845761327d83826132ba565b9250613291565b61328e81846132ba565b92505b50808061329d90613eda565b915050613244565b508091505092915050565b6000819050919050565b600082600052816020526040600020905092915050565b8280546132dd90613d2d565b90600052602060002090601f0160209004810192826132ff5760008555613346565b82601f1061331857805160ff1916838001178555613346565b82800160010185558215613346579182015b8281111561334557825182559160200191906001019061332a565b5b509050613353919061339a565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156133b357600081600090555060010161339b565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613400816133cb565b811461340b57600080fd5b50565b60008135905061341d816133f7565b92915050565b600060208284031215613439576134386133c1565b5b60006134478482850161340e565b91505092915050565b60008115159050919050565b61346581613450565b82525050565b6000602082019050613480600083018461345c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156134c05780820151818401526020810190506134a5565b838111156134cf576000848401525b50505050565b6000601f19601f8301169050919050565b60006134f182613486565b6134fb8185613491565b935061350b8185602086016134a2565b613514816134d5565b840191505092915050565b6000602082019050818103600083015261353981846134e6565b905092915050565b6000819050919050565b61355481613541565b811461355f57600080fd5b50565b6000813590506135718161354b565b92915050565b60006020828403121561358d5761358c6133c1565b5b600061359b84828501613562565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006135cf826135a4565b9050919050565b6135df816135c4565b82525050565b60006020820190506135fa60008301846135d6565b92915050565b613609816135c4565b811461361457600080fd5b50565b60008135905061362681613600565b92915050565b60008060408385031215613643576136426133c1565b5b600061365185828601613617565b925050602061366285828601613562565b9150509250929050565b61367581613541565b82525050565b6000602082019050613690600083018461366c565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136d8826134d5565b810181811067ffffffffffffffff821117156136f7576136f66136a0565b5b80604052505050565b600061370a6133b7565b905061371682826136cf565b919050565b600067ffffffffffffffff821115613736576137356136a0565b5b61373f826134d5565b9050602081019050919050565b82818337600083830152505050565b600061376e6137698461371b565b613700565b90508281526020810184848401111561378a5761378961369b565b5b61379584828561374c565b509392505050565b600082601f8301126137b2576137b1613696565b5b81356137c284826020860161375b565b91505092915050565b6000602082840312156137e1576137e06133c1565b5b600082013567ffffffffffffffff8111156137ff576137fe6133c6565b5b61380b8482850161379d565b91505092915050565b61381d81613450565b811461382857600080fd5b50565b60008135905061383a81613814565b92915050565b600060208284031215613856576138556133c1565b5b60006138648482850161382b565b91505092915050565b600080600060608486031215613886576138856133c1565b5b600061389486828701613617565b93505060206138a586828701613617565b92505060406138b686828701613562565b9150509250925092565b6000819050919050565b6138d3816138c0565b82525050565b60006020820190506138ee60008301846138ca565b92915050565b60006020828403121561390a576139096133c1565b5b600061391884828501613617565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61395681613541565b82525050565b6000613968838361394d565b60208301905092915050565b6000602082019050919050565b600061398c82613921565b613996818561392c565b93506139a18361393d565b8060005b838110156139d25781516139b9888261395c565b97506139c483613974565b9250506001810190506139a5565b5085935050505092915050565b600060208201905081810360008301526139f98184613981565b905092915050565b613a0a816138c0565b8114613a1557600080fd5b50565b600081359050613a2781613a01565b92915050565b600060208284031215613a4357613a426133c1565b5b6000613a5184828501613a18565b91505092915050565b60008060408385031215613a7157613a706133c1565b5b6000613a7f85828601613617565b9250506020613a908582860161382b565b9150509250929050565b600067ffffffffffffffff821115613ab557613ab46136a0565b5b613abe826134d5565b9050602081019050919050565b6000613ade613ad984613a9a565b613700565b905082815260208101848484011115613afa57613af961369b565b5b613b0584828561374c565b509392505050565b600082601f830112613b2257613b21613696565b5b8135613b32848260208601613acb565b91505092915050565b60008060008060808587031215613b5557613b546133c1565b5b6000613b6387828801613617565b9450506020613b7487828801613617565b9350506040613b8587828801613562565b925050606085013567ffffffffffffffff811115613ba657613ba56133c6565b5b613bb287828801613b0d565b91505092959194509250565b600080fd5b600080fd5b60008083601f840112613bde57613bdd613696565b5b8235905067ffffffffffffffff811115613bfb57613bfa613bbe565b5b602083019150836020820283011115613c1757613c16613bc3565b5b9250929050565b600080600060408486031215613c3757613c366133c1565b5b6000613c4586828701613562565b935050602084013567ffffffffffffffff811115613c6657613c656133c6565b5b613c7286828701613bc8565b92509250509250925092565b60008060408385031215613c9557613c946133c1565b5b6000613ca385828601613617565b9250506020613cb485828601613617565b9150509250929050565b60008060408385031215613cd557613cd46133c1565b5b6000613ce385828601613562565b9250506020613cf485828601613617565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d4557607f821691505b602082108103613d5857613d57613cfe565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d94602083613491565b9150613d9f82613d5e565b602082019050919050565b60006020820190508181036000830152613dc381613d87565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613e00601f83613491565b9150613e0b82613dca565b602082019050919050565b60006020820190508181036000830152613e2f81613df3565b9050919050565b600081905092915050565b50565b6000613e51600083613e36565b9150613e5c82613e41565b600082019050919050565b6000613e7282613e44565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613ee582613541565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f1757613f16613eab565b5b600182019050919050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b6000613f58601483613491565b9150613f6382613f22565b602082019050919050565b60006020820190508181036000830152613f8781613f4b565b9050919050565b6000613f9982613541565b9150613fa483613541565b925082821015613fb757613fb6613eab565b5b828203905092915050565b6000613fcd82613541565b9150613fd883613541565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561400d5761400c613eab565b5b828201905092915050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b600061404e601483613491565b915061405982614018565b602082019050919050565b6000602082019050818103600083015261407d81614041565b9050919050565b600061408f82613541565b915061409a83613541565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156140d3576140d2613eab565b5b828202905092915050565b7f496e73756666696369656e742066756e64732100000000000000000000000000600082015250565b6000614114601383613491565b915061411f826140de565b602082019050919050565b6000602082019050818103600083015261414381614107565b9050919050565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b6000614180601783613491565b915061418b8261414a565b602082019050919050565b600060208201905081810360008301526141af81614173565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614212602f83613491565b915061421d826141b6565b604082019050919050565b6000602082019050818103600083015261424181614205565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461427581613d2d565b61427f8186614248565b9450600182166000811461429a57600181146142ab576142de565b60ff198316865281860193506142de565b6142b485614253565b60005b838110156142d6578154818901526001820191506020810190506142b7565b838801955050505b50505092915050565b60006142f282613486565b6142fc8185614248565b935061430c8185602086016134a2565b80840191505092915050565b60006143248286614268565b915061433082856142e7565b915061433c8284614268565b9150819050949350505050565b600061435582866142e7565b915061436182856142e7565b915061436d8284614268565b9150819050949350505050565b7f5468652077686974656c6973742073616c65206973206e6f7420656e61626c6560008201527f6421000000000000000000000000000000000000000000000000000000000000602082015250565b60006143d6602283613491565b91506143e18261437a565b604082019050919050565b60006020820190508181036000830152614405816143c9565b9050919050565b7f596f75206861766520616c7265616479206d696e7465642c20706c656173652060008201527f636865636b207365636f6e646172792e00000000000000000000000000000000602082015250565b6000614468603083613491565b91506144738261440c565b604082019050919050565b600060208201905081810360008301526144978161445b565b9050919050565b60008160601b9050919050565b60006144b68261449e565b9050919050565b60006144c8826144ab565b9050919050565b6144e06144db826135c4565b6144bd565b82525050565b60006144f282846144cf565b60148201915081905092915050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b6000614537600e83613491565b915061454282614501565b602082019050919050565b600060208201905081810360008301526145668161452a565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006145c9602683613491565b91506145d48261456d565b604082019050919050565b600060208201905081810360008301526145f8816145bc565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614626826145ff565b614630818561460a565b93506146408185602086016134a2565b614649816134d5565b840191505092915050565b600060808201905061466960008301876135d6565b61467660208301866135d6565b614683604083018561366c565b8181036060830152614695818461461b565b905095945050505050565b6000815190506146af816133f7565b92915050565b6000602082840312156146cb576146ca6133c1565b5b60006146d9848285016146a0565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061471c82613541565b915061472783613541565b925082614737576147366146e2565b5b828204905092915050565b600061474d82613541565b915061475883613541565b925082614768576147676146e2565b5b82820690509291505056fea264697066735822122078e5e129c8e6bc1102e284a93b17edc0d37d8ddd0f3d5852c84e11fd1da98b8864736f6c634300080e0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000e446567656e4d6f6f6e4672656e730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003444d4600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061027d5760003560e01c80636caede3d1161014f578063a22cb465116100c1578063d2cab0561161007a578063d2cab05614610965578063d5abeb0114610981578063e0a80853146109ac578063e985e9c5146109d5578063efbd73f414610a12578063f2fde38b14610a3b5761027d565b8063a22cb46514610859578063a45ba8e714610882578063b071401b146108ad578063b767a098146108d6578063b88d4fde146108ff578063c87b56dd146109285761027d565b806380b173351161011357806380b173351461076657806383cc3c51146107915780638da5cb5b146107bc57806394354fd0146107e757806395d89b4114610812578063a0712d681461083d5761027d565b80636caede3d1461069557806370a08231146106c0578063715018a6146106fd5780637cb64759146107145780637ec4a6591461073d5761027d565b80633ccfd60b116101f357806351830227116101ac57806351830227146105835780635503a0e8146105ae5780635697f53e146105d95780635c975abb1461060257806362b99ad41461062d5780636352211e146106585761027d565b80633ccfd60b1461047757806342842e0e1461048e578063438b6300146104b757806343d0d356146104f457806344a0d68a146105315780634fdd43cb1461055a5761027d565b806313faede61161024557806313faede61461037b57806316ba10e0146103a657806316c38b3c146103cf57806318160ddd146103f857806323b872dd146104235780632eb4a7ab1461044c5761027d565b806301ffc9a71461028257806306fdde03146102bf578063081812fc146102ea578063095ea7b31461032757806313093b1d14610350575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190613423565b610a64565b6040516102b6919061346b565b60405180910390f35b3480156102cb57600080fd5b506102d4610af6565b6040516102e1919061351f565b60405180910390f35b3480156102f657600080fd5b50610311600480360381019061030c9190613577565b610b88565b60405161031e91906135e5565b60405180910390f35b34801561033357600080fd5b5061034e6004803603810190610349919061362c565b610c04565b005b34801561035c57600080fd5b50610365610daa565b604051610372919061367b565b60405180910390f35b34801561038757600080fd5b50610390610db0565b60405161039d919061367b565b60405180910390f35b3480156103b257600080fd5b506103cd60048036038101906103c891906137cb565b610db6565b005b3480156103db57600080fd5b506103f660048036038101906103f19190613840565b610e4c565b005b34801561040457600080fd5b5061040d610ee5565b60405161041a919061367b565b60405180910390f35b34801561042f57600080fd5b5061044a6004803603810190610445919061386d565b610efc565b005b34801561045857600080fd5b50610461610f0c565b60405161046e91906138d9565b60405180910390f35b34801561048357600080fd5b5061048c610f12565b005b34801561049a57600080fd5b506104b560048036038101906104b0919061386d565b61107e565b005b3480156104c357600080fd5b506104de60048036038101906104d991906138f4565b61109e565b6040516104eb91906139df565b60405180910390f35b34801561050057600080fd5b5061051b600480360381019061051691906138f4565b6111fa565b604051610528919061367b565b60405180910390f35b34801561053d57600080fd5b5061055860048036038101906105539190613577565b611212565b005b34801561056657600080fd5b50610581600480360381019061057c91906137cb565b611298565b005b34801561058f57600080fd5b5061059861132e565b6040516105a5919061346b565b60405180910390f35b3480156105ba57600080fd5b506105c3611341565b6040516105d0919061351f565b60405180910390f35b3480156105e557600080fd5b5061060060048036038101906105fb9190613577565b6113cf565b005b34801561060e57600080fd5b50610617611455565b604051610624919061346b565b60405180910390f35b34801561063957600080fd5b50610642611468565b60405161064f919061351f565b60405180910390f35b34801561066457600080fd5b5061067f600480360381019061067a9190613577565b6114f6565b60405161068c91906135e5565b60405180910390f35b3480156106a157600080fd5b506106aa611508565b6040516106b7919061346b565b60405180910390f35b3480156106cc57600080fd5b506106e760048036038101906106e291906138f4565b61151b565b6040516106f4919061367b565b60405180910390f35b34801561070957600080fd5b506107126115d3565b005b34801561072057600080fd5b5061073b60048036038101906107369190613a2d565b61165b565b005b34801561074957600080fd5b50610764600480360381019061075f91906137cb565b6116e1565b005b34801561077257600080fd5b5061077b611777565b604051610788919061367b565b60405180910390f35b34801561079d57600080fd5b506107a661177d565b6040516107b3919061367b565b60405180910390f35b3480156107c857600080fd5b506107d1611783565b6040516107de91906135e5565b60405180910390f35b3480156107f357600080fd5b506107fc6117ad565b604051610809919061367b565b60405180910390f35b34801561081e57600080fd5b506108276117b3565b604051610834919061351f565b60405180910390f35b61085760048036038101906108529190613577565b611845565b005b34801561086557600080fd5b50610880600480360381019061087b9190613a5a565b611a3f565b005b34801561088e57600080fd5b50610897611bb6565b6040516108a4919061351f565b60405180910390f35b3480156108b957600080fd5b506108d460048036038101906108cf9190613577565b611c44565b005b3480156108e257600080fd5b506108fd60048036038101906108f89190613840565b611cca565b005b34801561090b57600080fd5b5061092660048036038101906109219190613b3b565b611d63565b005b34801561093457600080fd5b5061094f600480360381019061094a9190613577565b611dd6565b60405161095c919061351f565b60405180910390f35b61097f600480360381019061097a9190613c1e565b611ed1565b005b34801561098d57600080fd5b50610996612276565b6040516109a3919061367b565b60405180910390f35b3480156109b857600080fd5b506109d360048036038101906109ce9190613840565b61227c565b005b3480156109e157600080fd5b506109fc60048036038101906109f79190613c7e565b612315565b604051610a09919061346b565b60405180910390f35b348015610a1e57600080fd5b50610a396004803603810190610a349190613cbe565b6123a9565b005b348015610a4757600080fd5b50610a626004803603810190610a5d91906138f4565b61248c565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610abf57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610aef5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610b0590613d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3190613d2d565b8015610b7e5780601f10610b5357610100808354040283529160200191610b7e565b820191906000526020600020905b815481529060010190602001808311610b6157829003601f168201915b5050505050905090565b6000610b9382612583565b610bc9576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0f826125e2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c76576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c956126ae565b73ffffffffffffffffffffffffffffffffffffffff1614610cf857610cc181610cbc6126ae565b612315565b610cf7576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60125481565b60105481565b610dbe6126b6565b73ffffffffffffffffffffffffffffffffffffffff16610ddc611783565b73ffffffffffffffffffffffffffffffffffffffff1614610e32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2990613daa565b60405180910390fd5b80600f9080519060200190610e489291906132d1565b5050565b610e546126b6565b73ffffffffffffffffffffffffffffffffffffffff16610e72611783565b73ffffffffffffffffffffffffffffffffffffffff1614610ec8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebf90613daa565b60405180910390fd5b80600a60146101000a81548160ff02191690831515021790555050565b6000610eef6126be565b6001546000540303905090565b610f078383836126c7565b505050565b600b5481565b610f1a6126b6565b73ffffffffffffffffffffffffffffffffffffffff16610f38611783565b73ffffffffffffffffffffffffffffffffffffffff1614610f8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8590613daa565b60405180910390fd5b600260095403610fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fca90613e16565b60405180910390fd5b60026009819055506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161102390613e67565b60006040518083038185875af1925050503d8060008114611060576040519150601f19603f3d011682016040523d82523d6000602084013e611065565b606091505b505090508061107357600080fd5b506001600981905550565b61109983838360405180602001604052806000815250611d63565b505050565b606060006110ab8361151b565b905060008167ffffffffffffffff8111156110c9576110c86136a0565b5b6040519080825280602002602001820160405280156110f75781602001602082028036833780820191505090505b5090506000600190506000805b848210801561111557506014548311155b156111ed57600061112584612a6e565b9050806040015115801561116a5750600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614155b1561117757806000015191505b8773ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111d957838584815181106111be576111bd613e7c565b5b60200260200101818152505083806111d590613eda565b9450505b83806111e490613eda565b94505050611104565b8395505050505050919050565b600c6020528060005260406000206000915090505481565b61121a6126b6565b73ffffffffffffffffffffffffffffffffffffffff16611238611783565b73ffffffffffffffffffffffffffffffffffffffff161461128e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128590613daa565b60405180910390fd5b8060108190555050565b6112a06126b6565b73ffffffffffffffffffffffffffffffffffffffff166112be611783565b73ffffffffffffffffffffffffffffffffffffffff1614611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b90613daa565b60405180910390fd5b80600d908051906020019061132a9291906132d1565b5050565b600a60159054906101000a900460ff1681565b600f805461134e90613d2d565b80601f016020809104026020016040519081016040528092919081815260200182805461137a90613d2d565b80156113c75780601f1061139c576101008083540402835291602001916113c7565b820191906000526020600020905b8154815290600101906020018083116113aa57829003601f168201915b505050505081565b6113d76126b6565b73ffffffffffffffffffffffffffffffffffffffff166113f5611783565b73ffffffffffffffffffffffffffffffffffffffff161461144b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144290613daa565b60405180910390fd5b8060138190555050565b600a60149054906101000a900460ff1681565b600e805461147590613d2d565b80601f01602080910402602001604051908101604052809291908181526020018280546114a190613d2d565b80156114ee5780601f106114c3576101008083540402835291602001916114ee565b820191906000526020600020905b8154815290600101906020018083116114d157829003601f168201915b505050505081565b6000611501826125e2565b9050919050565b600a60169054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611582576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6115db6126b6565b73ffffffffffffffffffffffffffffffffffffffff166115f9611783565b73ffffffffffffffffffffffffffffffffffffffff161461164f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164690613daa565b60405180910390fd5b6116596000612a99565b565b6116636126b6565b73ffffffffffffffffffffffffffffffffffffffff16611681611783565b73ffffffffffffffffffffffffffffffffffffffff16146116d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ce90613daa565b60405180910390fd5b80600b8190555050565b6116e96126b6565b73ffffffffffffffffffffffffffffffffffffffff16611707611783565b73ffffffffffffffffffffffffffffffffffffffff161461175d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175490613daa565b60405180910390fd5b80600e90805190602001906117739291906132d1565b5050565b60115481565b60155481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60135481565b6060600380546117c290613d2d565b80601f01602080910402602001604051908101604052809291908181526020018280546117ee90613d2d565b801561183b5780601f106118105761010080835404028352916020019161183b565b820191906000526020600020905b81548152906001019060200180831161181e57829003601f168201915b5050505050905090565b803373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461187e57600080fd5b60008111801561189057506013548111155b6118cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c690613f6e565b60405180910390fd5b6015546014546118df9190613f8e565b816118e8610ee5565b6118f29190613fc2565b1115611933576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192a90614064565b60405180910390fd5b81806010546119429190614084565b341015611984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197b9061412a565b60405180910390fd5b6002600954036119c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c090613e16565b60405180910390fd5b6002600981905550600a60149054906101000a900460ff1615611a21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1890614196565b60405180910390fd5b611a32611a2c6126b6565b84612b5f565b6001600981905550505050565b611a476126ae565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611aab576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611ab86126ae565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b656126ae565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611baa919061346b565b60405180910390a35050565b600d8054611bc390613d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054611bef90613d2d565b8015611c3c5780601f10611c1157610100808354040283529160200191611c3c565b820191906000526020600020905b815481529060010190602001808311611c1f57829003601f168201915b505050505081565b611c4c6126b6565b73ffffffffffffffffffffffffffffffffffffffff16611c6a611783565b73ffffffffffffffffffffffffffffffffffffffff1614611cc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb790613daa565b60405180910390fd5b8060138190555050565b611cd26126b6565b73ffffffffffffffffffffffffffffffffffffffff16611cf0611783565b73ffffffffffffffffffffffffffffffffffffffff1614611d46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3d90613daa565b60405180910390fd5b80600a60166101000a81548160ff02191690831515021790555050565b611d6e8484846126c7565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611dd057611d9984848484612b7d565b611dcf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611de182612583565b611e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1790614228565b60405180910390fd5b60001515600a60159054906101000a900460ff16151503611e7057600d611e4683612ccd565b600f604051602001611e5a93929190614318565b6040516020818303038152906040529050611ecc565b6000611e7a612e2d565b90506000815111611e9a5760405180602001604052806000815250611ec8565b80611ea484612ccd565b600f604051602001611eb893929190614349565b6040516020818303038152906040525b9150505b919050565b823373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611f0a57600080fd5b601254811115611f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4690613f6e565b60405180910390fd5b601554601454611f5f9190613f8e565b60115482611f6b610ee5565b611f759190613fc2565b611f7f9190613fc2565b1115611fc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb790614064565b60405180910390fd5b8380601054611fcf9190614084565b341015612011576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120089061412a565b60405180910390fd5b600260095403612056576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204d90613e16565b60405180910390fd5b6002600981905550600a60169054906101000a900460ff166120ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a4906143ec565b60405180910390fd5b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612130576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121279061447e565b60405180910390fd5b600061213a6126b6565b60405160200161214a91906144e6565b6040516020818303038152906040528051906020012090506121b0858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b5483612ebf565b6121ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e69061454d565b60405180910390fd5b601154866121fd9190613fc2565b955085600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461224e9190613fc2565b925050819055506122666122606126b6565b87612b5f565b5060016009819055505050505050565b60145481565b6122846126b6565b73ffffffffffffffffffffffffffffffffffffffff166122a2611783565b73ffffffffffffffffffffffffffffffffffffffff16146122f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ef90613daa565b60405180910390fd5b80600a60156101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b81601454816123b6610ee5565b6123c09190613fc2565b1115612401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f890614064565b60405180910390fd5b6124096126b6565b73ffffffffffffffffffffffffffffffffffffffff16612427611783565b73ffffffffffffffffffffffffffffffffffffffff161461247d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247490613daa565b60405180910390fd5b6124878284612b5f565b505050565b6124946126b6565b73ffffffffffffffffffffffffffffffffffffffff166124b2611783565b73ffffffffffffffffffffffffffffffffffffffff1614612508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ff90613daa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256e906145df565b60405180910390fd5b61258081612a99565b50565b60008161258e6126be565b1115801561259d575060005482105b80156125db575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600080829050806125f16126be565b11612677576000548110156126765760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612674575b6000810361266a576004600083600190039350838152602001908152602001600020549050612640565b80925050506126a9565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b600033905090565b60006001905090565b60006126d2826125e2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612739576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1661275a6126ae565b73ffffffffffffffffffffffffffffffffffffffff1614806127895750612788856127836126ae565b612315565b5b806127ce57506127976126ae565b73ffffffffffffffffffffffffffffffffffffffff166127b684610b88565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612807576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361286d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61287a8585856001612ed6565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b61297786612edc565b1717600460008581526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008316036129ff57600060018401905060006004600083815260200190815260200160002054036129fd5760005481146129fc578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a678585856001612ee6565b5050505050565b612a76613357565b612a926004600084815260200190815260200160002054612eec565b9050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612b79828260405180602001604052806000815250612f88565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ba36126ae565b8786866040518563ffffffff1660e01b8152600401612bc59493929190614654565b6020604051808303816000875af1925050508015612c0157506040513d601f19601f82011682018060405250810190612bfe91906146b5565b60015b612c7a573d8060008114612c31576040519150601f19603f3d011682016040523d82523d6000602084013e612c36565b606091505b506000815103612c72576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203612d14576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e28565b600082905060005b60008214612d46578080612d2f90613eda565b915050600a82612d3f9190614711565b9150612d1c565b60008167ffffffffffffffff811115612d6257612d616136a0565b5b6040519080825280601f01601f191660200182016040528015612d945781602001600182028036833780820191505090505b5090505b60008514612e2157600182612dad9190613f8e565b9150600a85612dbc9190614742565b6030612dc89190613fc2565b60f81b818381518110612dde57612ddd613e7c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e1a9190614711565b9450612d98565b8093505050505b919050565b6060600e8054612e3c90613d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054612e6890613d2d565b8015612eb55780601f10612e8a57610100808354040283529160200191612eb5565b820191906000526020600020905b815481529060010190602001808311612e9857829003601f168201915b5050505050905090565b600082612ecc858461323b565b1490509392505050565b50505050565b6000819050919050565b50505050565b612ef4613357565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c010000000000000000000000000000000000000000000000000000000083161415816040019015159081151581525050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612ff4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000830361302e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61303b6000858386612ed6565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e16130a0600185146132b0565b901b60a042901b6130b086612edc565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b146131b4575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131646000878480600101955087612b7d565b61319a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106130f55782600054146131af57600080fd5b61321f565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106131b5575b8160008190555050506132356000858386612ee6565b50505050565b60008082905060005b84518110156132a557600085828151811061326257613261613e7c565b5b602002602001015190508083116132845761327d83826132ba565b9250613291565b61328e81846132ba565b92505b50808061329d90613eda565b915050613244565b508091505092915050565b6000819050919050565b600082600052816020526040600020905092915050565b8280546132dd90613d2d565b90600052602060002090601f0160209004810192826132ff5760008555613346565b82601f1061331857805160ff1916838001178555613346565b82800160010185558215613346579182015b8281111561334557825182559160200191906001019061332a565b5b509050613353919061339a565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156133b357600081600090555060010161339b565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613400816133cb565b811461340b57600080fd5b50565b60008135905061341d816133f7565b92915050565b600060208284031215613439576134386133c1565b5b60006134478482850161340e565b91505092915050565b60008115159050919050565b61346581613450565b82525050565b6000602082019050613480600083018461345c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156134c05780820151818401526020810190506134a5565b838111156134cf576000848401525b50505050565b6000601f19601f8301169050919050565b60006134f182613486565b6134fb8185613491565b935061350b8185602086016134a2565b613514816134d5565b840191505092915050565b6000602082019050818103600083015261353981846134e6565b905092915050565b6000819050919050565b61355481613541565b811461355f57600080fd5b50565b6000813590506135718161354b565b92915050565b60006020828403121561358d5761358c6133c1565b5b600061359b84828501613562565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006135cf826135a4565b9050919050565b6135df816135c4565b82525050565b60006020820190506135fa60008301846135d6565b92915050565b613609816135c4565b811461361457600080fd5b50565b60008135905061362681613600565b92915050565b60008060408385031215613643576136426133c1565b5b600061365185828601613617565b925050602061366285828601613562565b9150509250929050565b61367581613541565b82525050565b6000602082019050613690600083018461366c565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136d8826134d5565b810181811067ffffffffffffffff821117156136f7576136f66136a0565b5b80604052505050565b600061370a6133b7565b905061371682826136cf565b919050565b600067ffffffffffffffff821115613736576137356136a0565b5b61373f826134d5565b9050602081019050919050565b82818337600083830152505050565b600061376e6137698461371b565b613700565b90508281526020810184848401111561378a5761378961369b565b5b61379584828561374c565b509392505050565b600082601f8301126137b2576137b1613696565b5b81356137c284826020860161375b565b91505092915050565b6000602082840312156137e1576137e06133c1565b5b600082013567ffffffffffffffff8111156137ff576137fe6133c6565b5b61380b8482850161379d565b91505092915050565b61381d81613450565b811461382857600080fd5b50565b60008135905061383a81613814565b92915050565b600060208284031215613856576138556133c1565b5b60006138648482850161382b565b91505092915050565b600080600060608486031215613886576138856133c1565b5b600061389486828701613617565b93505060206138a586828701613617565b92505060406138b686828701613562565b9150509250925092565b6000819050919050565b6138d3816138c0565b82525050565b60006020820190506138ee60008301846138ca565b92915050565b60006020828403121561390a576139096133c1565b5b600061391884828501613617565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61395681613541565b82525050565b6000613968838361394d565b60208301905092915050565b6000602082019050919050565b600061398c82613921565b613996818561392c565b93506139a18361393d565b8060005b838110156139d25781516139b9888261395c565b97506139c483613974565b9250506001810190506139a5565b5085935050505092915050565b600060208201905081810360008301526139f98184613981565b905092915050565b613a0a816138c0565b8114613a1557600080fd5b50565b600081359050613a2781613a01565b92915050565b600060208284031215613a4357613a426133c1565b5b6000613a5184828501613a18565b91505092915050565b60008060408385031215613a7157613a706133c1565b5b6000613a7f85828601613617565b9250506020613a908582860161382b565b9150509250929050565b600067ffffffffffffffff821115613ab557613ab46136a0565b5b613abe826134d5565b9050602081019050919050565b6000613ade613ad984613a9a565b613700565b905082815260208101848484011115613afa57613af961369b565b5b613b0584828561374c565b509392505050565b600082601f830112613b2257613b21613696565b5b8135613b32848260208601613acb565b91505092915050565b60008060008060808587031215613b5557613b546133c1565b5b6000613b6387828801613617565b9450506020613b7487828801613617565b9350506040613b8587828801613562565b925050606085013567ffffffffffffffff811115613ba657613ba56133c6565b5b613bb287828801613b0d565b91505092959194509250565b600080fd5b600080fd5b60008083601f840112613bde57613bdd613696565b5b8235905067ffffffffffffffff811115613bfb57613bfa613bbe565b5b602083019150836020820283011115613c1757613c16613bc3565b5b9250929050565b600080600060408486031215613c3757613c366133c1565b5b6000613c4586828701613562565b935050602084013567ffffffffffffffff811115613c6657613c656133c6565b5b613c7286828701613bc8565b92509250509250925092565b60008060408385031215613c9557613c946133c1565b5b6000613ca385828601613617565b9250506020613cb485828601613617565b9150509250929050565b60008060408385031215613cd557613cd46133c1565b5b6000613ce385828601613562565b9250506020613cf485828601613617565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d4557607f821691505b602082108103613d5857613d57613cfe565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d94602083613491565b9150613d9f82613d5e565b602082019050919050565b60006020820190508181036000830152613dc381613d87565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613e00601f83613491565b9150613e0b82613dca565b602082019050919050565b60006020820190508181036000830152613e2f81613df3565b9050919050565b600081905092915050565b50565b6000613e51600083613e36565b9150613e5c82613e41565b600082019050919050565b6000613e7282613e44565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613ee582613541565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f1757613f16613eab565b5b600182019050919050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b6000613f58601483613491565b9150613f6382613f22565b602082019050919050565b60006020820190508181036000830152613f8781613f4b565b9050919050565b6000613f9982613541565b9150613fa483613541565b925082821015613fb757613fb6613eab565b5b828203905092915050565b6000613fcd82613541565b9150613fd883613541565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561400d5761400c613eab565b5b828201905092915050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b600061404e601483613491565b915061405982614018565b602082019050919050565b6000602082019050818103600083015261407d81614041565b9050919050565b600061408f82613541565b915061409a83613541565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156140d3576140d2613eab565b5b828202905092915050565b7f496e73756666696369656e742066756e64732100000000000000000000000000600082015250565b6000614114601383613491565b915061411f826140de565b602082019050919050565b6000602082019050818103600083015261414381614107565b9050919050565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b6000614180601783613491565b915061418b8261414a565b602082019050919050565b600060208201905081810360008301526141af81614173565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614212602f83613491565b915061421d826141b6565b604082019050919050565b6000602082019050818103600083015261424181614205565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461427581613d2d565b61427f8186614248565b9450600182166000811461429a57600181146142ab576142de565b60ff198316865281860193506142de565b6142b485614253565b60005b838110156142d6578154818901526001820191506020810190506142b7565b838801955050505b50505092915050565b60006142f282613486565b6142fc8185614248565b935061430c8185602086016134a2565b80840191505092915050565b60006143248286614268565b915061433082856142e7565b915061433c8284614268565b9150819050949350505050565b600061435582866142e7565b915061436182856142e7565b915061436d8284614268565b9150819050949350505050565b7f5468652077686974656c6973742073616c65206973206e6f7420656e61626c6560008201527f6421000000000000000000000000000000000000000000000000000000000000602082015250565b60006143d6602283613491565b91506143e18261437a565b604082019050919050565b60006020820190508181036000830152614405816143c9565b9050919050565b7f596f75206861766520616c7265616479206d696e7465642c20706c656173652060008201527f636865636b207365636f6e646172792e00000000000000000000000000000000602082015250565b6000614468603083613491565b91506144738261440c565b604082019050919050565b600060208201905081810360008301526144978161445b565b9050919050565b60008160601b9050919050565b60006144b68261449e565b9050919050565b60006144c8826144ab565b9050919050565b6144e06144db826135c4565b6144bd565b82525050565b60006144f282846144cf565b60148201915081905092915050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b6000614537600e83613491565b915061454282614501565b602082019050919050565b600060208201905081810360008301526145668161452a565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006145c9602683613491565b91506145d48261456d565b604082019050919050565b600060208201905081810360008301526145f8816145bc565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614626826145ff565b614630818561460a565b93506146408185602086016134a2565b614649816134d5565b840191505092915050565b600060808201905061466960008301876135d6565b61467660208301866135d6565b614683604083018561366c565b8181036060830152614695818461461b565b905095945050505050565b6000815190506146af816133f7565b92915050565b6000602082840312156146cb576146ca6133c1565b5b60006146d9848285016146a0565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061471c82613541565b915061472783613541565b925082614737576147366146e2565b5b828204905092915050565b600061474d82613541565b915061475883613541565b925082614768576147676146e2565b5b82820690509291505056fea264697066735822122078e5e129c8e6bc1102e284a93b17edc0d37d8ddd0f3d5852c84e11fd1da98b8864736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000e446567656e4d6f6f6e4672656e730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003444d4600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): DegenMoonFrens
Arg [1] : _tokenSymbol (string): DMF
Arg [2] : _hiddenMetadataUri (string):
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [4] : 446567656e4d6f6f6e4672656e73000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 444d460000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
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.