ERC-721
Overview
Max Total Supply
9,999 MNSHN
Holders
1,760
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 MNSHNLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Moonshiners
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import {OperatorFilterer} from "./common/OperatorFilterer.sol"; import "./ERC721PVM.sol"; contract Moonshiners is Ownable, ERC721PVM, OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); struct MintState { uint256 liveAt; uint256 expiresAt; bytes32 merkleRoot; uint256 maxPerWallet; uint256 maxSupply; uint256 maxMintSupply; uint256 totalSupply; uint256 viralityFactor; bool hasMinted; } // @notice Base URI for the nft string private baseURI = "ipfs://cid/"; // @notice The merkle root bytes32 public merkleRoot; // @notice Max mints per wallet (n-1) uint256 public maxPerWallet = 2; // @notice Max supply for mints uint256 public maxMintSupply = 1001; // @notice Live date 12pm PST uint256 public liveAt = 1668888000; // @notice Expiration date 1pm PST uint256 public expiresAt = 1668891600; /// @dev Tracks whether wallet has already minted mapping(address => bool) public addressToMinted; constructor() ERC721PVM("Moonshiners", "MNSHN") OperatorFilterer(DEFAULT_SUBSCRIPTION, true) { _safeMint(address(0xb5164865b185acbB02710D36F18b6513409B8ef5), 1); } /** * @notice Mint a moonshiner, LFG * @param _proof The bytes32 array proof to verify the merkle root */ function mint(bytes32[] calldata _proof) public payable { uint256 timestamp = block.timestamp; require(timestamp > liveAt && timestamp < expiresAt, "Mint not live"); require(totalSupply() + 1 < maxMintSupply, "Sold out"); require(tx.origin == _msgSender(), "Must be user"); require(!addressToMinted[_msgSender()], "Already minted"); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require(MerkleProof.verify(_proof, merkleRoot, leaf), "Invalid proof"); addressToMinted[_msgSender()] = true; _safeMint(_msgSender(), 1); } /** * @notice Sets the merkle root for the mint * @param _merkleRoot The merkle root to set */ function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } /** * @notice Sets the base URI of the NFT * @param _newBaseURI A base uri */ function setBaseURI(string calldata _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } /** * @notice Sets the max mint supply (n-1) * @param _maxMintSupply The max supply */ function setMintMaxSupply(uint256 _maxMintSupply) external onlyOwner { maxMintSupply = _maxMintSupply; } /** * @notice Sets the max mints per wallet * @param _maxPerWallet The max mints per wallet */ function setMaxPerWallet(uint256 _maxPerWallet) external onlyOwner { maxPerWallet = _maxPerWallet; } /** * @notice Sets the collection max supply of entire collection (n-1) * @param _maxSupply The amount */ function setMaxSupply(uint256 _maxSupply) external onlyOwner { _setMaxSupply(_maxSupply); } /** * @notice Sets timestamps for live and expires timeframe * @param _liveAt A unix timestamp for live date * @param _expiresAt A unix timestamp for expiration date */ function setMintWindow(uint256 _liveAt, uint256 _expiresAt) external onlyOwner { liveAt = _liveAt; expiresAt = _expiresAt; } /// @dev Gets the index of the last minted token function getCurrentIndex() external view returns (uint256 currentIndex) { return _currentIndex; } /// @dev Get an array of tokenIds for a given wallet function getTokenIds(address _address) public view returns (uint16[] memory tokenIds) { return _addressData[_address].tokenIds; } /** * @dev Returns mint state for a particular address * @param _address The address */ function getMintState(address _address) external view returns (MintState memory) { return MintState({ liveAt: liveAt, expiresAt: expiresAt, merkleRoot: merkleRoot, maxPerWallet: maxPerWallet, maxMintSupply: maxMintSupply, maxSupply: _maxSupply, totalSupply: totalSupply(), viralityFactor: _passiveVirality(), hasMinted: addressToMinted[_address] }); } // @dev Overrides base uri function _baseURI() internal view virtual override returns (string memory) { return baseURI; } // @dev Overrides the start token id function _startTokenId() internal view virtual override returns (uint256) { return 1; } // @dev Overrides the base virality factor function _passiveVirality() internal view virtual override returns (uint256) { return 2; } /****************************************************************************************************************** * Royalty enforcement via registry filterer ******************************************************************************************************************/ function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// 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 (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 pragma solidity ^0.8.0; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe( address(this), subscriptionOrRegistrantToCopy ); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries( address(this), subscriptionOrRegistrantToCopy ); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if ( !OPERATOR_FILTER_REGISTRY.isOperatorAllowed( address(this), msg.sender ) ) { revert OperatorNotAllowed(msg.sender); } } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if ( !OPERATOR_FILTER_REGISTRY.isOperatorAllowed( address(this), operator ) ) { revert OperatorNotAllowed(operator); } } _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @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 ERC721PVM is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. 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; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; //track ids owned by address uint16[] tokenIds; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // The number of tokens to allow uint256 internal _maxSupply = 10001; // Token name string private _name; // Token symbol string private _symbol; string public metadataPath; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) internal _addressData; // 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(); } /** * To change the viral amount, please override this function. */ function _passiveVirality() internal view virtual returns (uint256) { return 1; } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * 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 See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].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 { _addressData[owner].aux = aux; } /** * Sets max supply */ function _setMaxSupply(uint256 maxSupply_) internal { _maxSupply = maxSupply_; } /** * 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) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // 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. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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, tokenId.toString(), ".json")) : ""; } /** * @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 metadataPath; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721PVM.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @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 == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), 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.isContract() && !_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 && !_ownerships[tokenId].burned; } 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 { _mint(to, quantity, _data, true); } /** * @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, bytes memory _data, bool safe ) 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 { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 i = 0; while (i < quantity) { uint256 tokenId = i + _currentIndex; _addressData[to].tokenIds.push(uint16(tokenId)); i++; } uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { 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 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } _addressData[to].tokenIds.push(uint16(tokenId)); for (uint256 i = 0; i < _addressData[from].tokenIds.length; i++) { if (_addressData[from].tokenIds[i] == tokenId) { //delete from array _addressData[from].tokenIds[i] = _addressData[from].tokenIds[ _addressData[from].tokenIds.length - 1 ]; _addressData[from].tokenIds.pop(); } } // PVM Integration if (totalSupply() + _passiveVirality() < _maxSupply) { _safeMint(address(from), _passiveVirality()); } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; for (uint256 i = 0; i < _addressData[from].tokenIds.length; i++) { if (_addressData[from].tokenIds[i] == tokenId) { //delete from array _addressData[from].tokenIds[i] = _addressData[from] .tokenIds[_addressData[from].tokenIds.length - 1]; _addressData[from].tokenIds.pop(); } } // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } 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 Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @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 IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == 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 {} }
// 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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries( address registrant, address registrantToCopy ) external; function unregister(address addr) external; function updateOperator( address registrant, address operator, bool filtered ) external; function updateOperators( address registrant, address[] calldata operators, bool filtered ) external; function updateCodeHash( address registrant, bytes32 codehash, bool filtered ) external; function updateCodeHashes( address registrant, bytes32[] calldata codeHashes, bool filtered ) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":"expiresAt","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":"getCurrentIndex","outputs":[{"internalType":"uint256","name":"currentIndex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getMintState","outputs":[{"components":[{"internalType":"uint256","name":"liveAt","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxMintSupply","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"viralityFactor","type":"uint256"},{"internalType":"bool","name":"hasMinted","type":"bool"}],"internalType":"struct Moonshiners.MintState","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getTokenIds","outputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"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":"liveAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataPath","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintSupply","type":"uint256"}],"name":"setMintMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liveAt","type":"uint256"},{"internalType":"uint256","name":"_expiresAt","type":"uint256"}],"name":"setMintWindow","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"}]
Contract Creation Code
61271160035560c0604052600b60808190526a697066733a2f2f6369642f60a81b60a09081526200003291908162000635565b506002600d556103e9600e5563637935c0600f5563637943d06010553480156200005b57600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600b81526020016a4d6f6f6e7368696e65727360a81b8152506040518060400160405280600581526020016426a729a42760d91b815250620000cf620000c96200026460201b60201c565b62000268565b8151620000e490600490602085019062000635565b508051620000fa90600590602084019062000635565b506001805550506daaeb6d7670e522a718067333cd4e3b156200023a5780156200018d57604051633e9f1edf60e11b81526daaeb6d7670e522a718067333cd4e90637d3e3dbe90620001539030908690600401620006ff565b600060405180830381600087803b1580156200016e57600080fd5b505af115801562000183573d6000803e3d6000fd5b505050506200023a565b6001600160a01b03821615620001d25760405163a0af290360e01b81526daaeb6d7670e522a718067333cd4e9063a0af290390620001539030908690600401620006ff565b604051632210724360e11b81526daaeb6d7670e522a718067333cd4e90634420e486906200020590309060040162000725565b600060405180830381600087803b1580156200022057600080fd5b505af115801562000235573d6000803e3d6000fd5b505050505b506200025e905073b5164865b185acbb02710d36f18b6513409b8ef56001620002b8565b6200087f565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620002da828260405180602001604052806000815250620002de60201b60201c565b5050565b620002ed8383836001620002f2565b505050565b6001546001600160a01b0385166200031c57604051622e076360e81b815260040160405180910390fd5b836200033b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260086020908152604080832080546001600160801b031981166001600160401b038083168c018116918217680100000000000000006001600160401b031990941690921783900481168c018116909202179091558584526007909252822080546001600160e01b031916909317600160a01b4290921691909102179091555b848110156200043057600180546001600160a01b0388166000908152600860209081526040822084018054808601825590835291206010820401805492850161ffff9081166002600f909416939093026101000a92830292021990921617905501620003c9565b818581018480156200045c57506200045c886001600160a01b03166200052460201b620012d41760201c565b15620004dc575b60405182906001600160a01b038a169060009060008051602062003563833981519152908290a46001820191620004a0906000908a908962000533565b620004be576040516368d2bf6b60e11b815260040160405180910390fd5b8082141562000463578360015414620004d657600080fd5b62000512565b5b6040516001830192906001600160a01b038a169060009060008051602062003563833981519152908290a480821415620004dd575b50600155505050505050565b50505050565b6001600160a01b03163b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200056a903390899088908890600401620007a0565b602060405180830381600087803b1580156200058557600080fd5b505af1925050508015620005b8575060408051601f3d908101601f19168201909252620005b59181019062000813565b60015b62000617573d808015620005e9576040519150601f19603f3d011682016040523d82523d6000602084013e620005ee565b606091505b5080516200060f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b82805462000643906200084e565b90600052602060002090601f016020900481019282620006675760008555620006b2565b82601f106200068257805160ff1916838001178555620006b2565b82800160010185558215620006b2579182015b82811115620006b257825182559160200191906001019062000695565b50620006c0929150620006c4565b5090565b5b80821115620006c05760008155600101620006c5565b60006001600160a01b0382165b92915050565b620006f981620006db565b82525050565b604081016200070f8285620006ee565b6200071e6020830184620006ee565b9392505050565b60208101620006e88284620006ee565b80620006f9565b60005b83811015620007595781810151838201526020016200073f565b838111156200051e5750506000910152565b600062000776825190565b8084526020840193506200078f8185602086016200073c565b601f01601f19169290920192915050565b60808101620007b08287620006ee565b620007bf6020830186620006ee565b620007ce604083018562000735565b8181036060830152620007e281846200076b565b9695505050505050565b6001600160e01b0319811681146200080357600080fd5b50565b8051620006e881620007ec565b6000602082840312156200082a576200082a600080fd5b60006200062d848462000806565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200086357607f821691505b6020821081141562000879576200087962000838565b50919050565b612cd4806200088f6000396000f3fe6080604052600436106102345760003560e01c8063715018a611610138578063b88d4fde116100b0578063e268e4d31161007f578063e985e9c511610064578063e985e9c51461063d578063f2fde38b14610686578063fb28a540146106a657600080fd5b8063e268e4d3146105f0578063e8c396051461061057600080fd5b8063b88d4fde1461056d578063c285e1071461058d578063c87b56dd146105a3578063d004b036146105c357600080fd5b806393a67125116101075780639ec00c95116100ec5780639ec00c951461050a578063a22cb4651461053a578063b77a147b1461055a57600080fd5b806393a67125146104d557806395d89b41146104f557600080fd5b8063715018a61461046c5780637cb64759146104815780638622a689146104a15780638da5cb5b146104b757600080fd5b80632eb4a7ab116101cb57806353f8bb9a1161019a5780636352211e1161017f5780636352211e1461040c5780636f8b44b01461042c57806370a082311461044c57600080fd5b806353f8bb9a146103d657806355f804b3146103ec57600080fd5b80632eb4a7ab1461035b57806341f434341461037157806342842e0e146103a0578063453c2310146103c057600080fd5b80630d9005ae116102075780630d9005ae146102e05780630f867751146102fe57806318160ddd1461031e57806323b872dd1461033b57600080fd5b806301ffc9a71461023957806306fdde031461026f578063081812fc14610291578063095ea7b3146102be575b600080fd5b34801561024557600080fd5b506102596102543660046121d5565b6106bb565b6040516102669190612200565b60405180910390f35b34801561027b57600080fd5b50610284610758565b604051610266919061226c565b34801561029d57600080fd5b506102b16102ac36600461228e565b6107ea565b60405161026691906122c9565b3480156102ca57600080fd5b506102de6102d93660046122eb565b610847565b005b3480156102ec57600080fd5b506001545b604051610266919061232e565b34801561030a57600080fd5b506102de61031936600461233c565b610917565b34801561032a57600080fd5b5060025460015403600019016102f1565b34801561034757600080fd5b506102de61035636600461235e565b61094c565b34801561036757600080fd5b506102f1600c5481565b34801561037d57600080fd5b506103936daaeb6d7670e522a718067333cd4e81565b60405161026691906123cd565b3480156103ac57600080fd5b506102de6103bb36600461235e565b610a36565b3480156103cc57600080fd5b506102f1600d5481565b3480156103e257600080fd5b506102f1600f5481565b3480156103f857600080fd5b506102de61040736600461242d565b610b15565b34801561041857600080fd5b506102b161042736600461228e565b610b4b565b34801561043857600080fd5b506102de61044736600461228e565b610b5d565b34801561045857600080fd5b506102f1610467366004612475565b610b93565b34801561047857600080fd5b506102de610bfb565b34801561048d57600080fd5b506102de61049c36600461228e565b610c31565b3480156104ad57600080fd5b506102f160105481565b3480156104c357600080fd5b506000546001600160a01b03166102b1565b3480156104e157600080fd5b506102de6104f036600461228e565b610c60565b34801561050157600080fd5b50610284610c8f565b34801561051657600080fd5b50610259610525366004612475565b60116020526000908152604090205460ff1681565b34801561054657600080fd5b506102de6105553660046124a9565b610c9e565b6102de610568366004612527565b610d60565b34801561057957600080fd5b506102de610588366004612656565b610ec4565b34801561059957600080fd5b506102f1600e5481565b3480156105af57600080fd5b506102846105be36600461228e565b610fb1565b3480156105cf57600080fd5b506105e36105de366004612475565b61104f565b604051610266919061273c565b3480156105fc57600080fd5b506102de61060b36600461228e565b6110e6565b34801561061c57600080fd5b5061063061062b366004612475565b611115565b60405161026691906127f9565b34801561064957600080fd5b50610259610658366004612808565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b34801561069257600080fd5b506102de6106a1366004612475565b6111ed565b3480156106b257600080fd5b50610284611246565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061071e57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061075257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606004805461076790612851565b80601f016020809104026020016040519081016040528092919081815260200182805461079390612851565b80156107e05780601f106107b5576101008083540402835291602001916107e0565b820191906000526020600020905b8154815290600101906020018083116107c357829003601f168201915b5050505050905090565b60006107f5826112e3565b61082b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600960205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561090857604051633185c44d60e21b81526daaeb6d7670e522a718067333cd4e9063c617113490610890903090859060040161287e565b60206040518083038186803b1580156108a857600080fd5b505afa1580156108bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e091906128a4565b6109085780604051633b79c77360e21b81526004016108ff91906122c9565b60405180910390fd5b610912838361131c565b505050565b6000546001600160a01b031633146109415760405162461bcd60e51b81526004016108ff906128fa565b600f91909155601055565b826daaeb6d7670e522a718067333cd4e3b15610a25576001600160a01b0381163314156109835761097e8484846113f4565b610a30565b604051633185c44d60e21b81526daaeb6d7670e522a718067333cd4e9063c6171134906109b6903090339060040161287e565b60206040518083038186803b1580156109ce57600080fd5b505afa1580156109e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0691906128a4565b610a255733604051633b79c77360e21b81526004016108ff91906122c9565b610a308484846113f4565b50505050565b826daaeb6d7670e522a718067333cd4e3b15610b0a576001600160a01b038116331415610a685761097e8484846113ff565b604051633185c44d60e21b81526daaeb6d7670e522a718067333cd4e9063c617113490610a9b903090339060040161287e565b60206040518083038186803b158015610ab357600080fd5b505afa158015610ac7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aeb91906128a4565b610b0a5733604051633b79c77360e21b81526004016108ff91906122c9565b610a308484846113ff565b6000546001600160a01b03163314610b3f5760405162461bcd60e51b81526004016108ff906128fa565b610912600b838361211a565b6000610b568261141a565b5192915050565b6000546001600160a01b03163314610b875760405162461bcd60e51b81526004016108ff906128fa565b610b9081600355565b50565b60006001600160a01b038216610bd5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526008602052604090205467ffffffffffffffff1690565b6000546001600160a01b03163314610c255760405162461bcd60e51b81526004016108ff906128fa565b610c2f600061155c565b565b6000546001600160a01b03163314610c5b5760405162461bcd60e51b81526004016108ff906128fa565b600c55565b6000546001600160a01b03163314610c8a5760405162461bcd60e51b81526004016108ff906128fa565b600e55565b60606005805461076790612851565b816daaeb6d7670e522a718067333cd4e3b15610d5657604051633185c44d60e21b81526daaeb6d7670e522a718067333cd4e9063c617113490610ce7903090859060040161287e565b60206040518083038186803b158015610cff57600080fd5b505afa158015610d13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3791906128a4565b610d565780604051633b79c77360e21b81526004016108ff91906122c9565b61091283836115b9565b600f54429081118015610d74575060105481105b610d905760405162461bcd60e51b81526004016108ff9061293e565b600e546002546001540360001901610da9906001612964565b10610dc65760405162461bcd60e51b81526004016108ff906129b0565b323314610de55760405162461bcd60e51b81526004016108ff906129f4565b3360009081526011602052604090205460ff1615610e155760405162461bcd60e51b81526004016108ff90612a38565b600033604051602001610e289190612a70565b604051602081830303815290604052805190602001209050610e8184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c54915084905061166b565b610e9d5760405162461bcd60e51b81526004016108ff90612ab9565b336000818152601160205260409020805460ff19166001908117909155610a309190611681565b836daaeb6d7670e522a718067333cd4e3b15610f9e576001600160a01b038116331415610efc57610ef78585858561169f565b610faa565b604051633185c44d60e21b81526daaeb6d7670e522a718067333cd4e9063c617113490610f2f903090339060040161287e565b60206040518083038186803b158015610f4757600080fd5b505afa158015610f5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7f91906128a4565b610f9e5733604051633b79c77360e21b81526004016108ff91906122c9565b610faa8585858561169f565b5050505050565b6060610fbc826112e3565b610ff2576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610ffc6116ea565b905080516000141561101d5760405180602001604052806000815250611048565b80611027846116f9565b604051602001611038929190612aeb565b6040516020818303038152906040525b9392505050565b6001600160a01b0381166000908152600860209081526040918290206001018054835181840281018401909452808452606093928301828280156110da57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116110a15790505b50505050509050919050565b6000546001600160a01b031633146111105760405162461bcd60e51b81526004016108ff906128fa565b600d55565b61116960405180610120016040528060008152602001600081526020016000801916815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b604051806101200160405280600f5481526020016010548152602001600c548152602001600d5481526020016003548152602001600e5481526020016111b86002546001546000199190030190565b8152602001600281526001600160a01b0390931660009081526011602090815260409091205460ff1615159301929092525090565b6000546001600160a01b031633146112175760405162461bcd60e51b81526004016108ff906128fa565b6001600160a01b03811661123d5760405162461bcd60e51b81526004016108ff90612b31565b610b908161155c565b6006805461125390612851565b80601f016020809104026020016040519081016040528092919081815260200182805461127f90612851565b80156112cc5780601f106112a1576101008083540402835291602001916112cc565b820191906000526020600020905b8154815290600101906020018083116112af57829003601f168201915b505050505081565b6001600160a01b03163b151590565b6000816001111580156112f7575060015482105b8015610752575050600090815260076020526040902054600160e01b900460ff161590565b600061132782610b4b565b9050806001600160a01b0316836001600160a01b03161415611375576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b038216148015906113b257506001600160a01b0381166000908152600a6020908152604080832033845290915290205460ff16155b156113e9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610912838383611833565b61091283838361189c565b61091283838360405180602001604052806000815250610ec4565b6040805160608101825260008082526020820181905291810191909152818060011115801561144a575060015481105b1561152a57600081815260076020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906115285780516001600160a01b0316156114be579392505050565b5060001901600081815260076020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215611523579392505050565b6114be565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382163314156115fc576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600a602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061165f908590612200565b60405180910390a35050565b6000826116788584611d28565b14949350505050565b61169b828260405180602001604052806000815250611d9c565b5050565b6116aa84848461189c565b6001600160a01b0383163b151580156116cc57506116ca84848484611da9565b155b15610a30576040516368d2bf6b60e11b815260040160405180910390fd5b6060600b805461076790612851565b60608161173957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611763578061174d81612b92565b915061175c9050600a83612bc3565b915061173d565b60008167ffffffffffffffff81111561177e5761177e612563565b6040519080825280601f01601f1916602001820160405280156117a8576020820181803683370190505b5090505b841561182b576117bd600183612bd7565b91506117ca600a86612bee565b6117d5906030612964565b60f81b8183815181106117ea576117ea612c02565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611824600a86612bc3565b94506117ac565b949350505050565b600082815260096020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006118a78261141a565b9050836001600160a01b031681600001516001600160a01b0316146118f8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b038616148061193457506001600160a01b0385166000908152600a6020908152604080832033845290915290205460ff165b8061194f575033611944846107ea565b6001600160a01b0316145b905080611988576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166119c8576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119d460008487611833565b6001600160a01b038581166000908152600860209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600790945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611aaa576001548214611aaa578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b5050506001600160a01b03841660009081526008602090815260408220600190810180549182018155835290822060108204018054600f9092166002026101000a61ffff81810219909316928716029190911790555b6001600160a01b038616600090815260086020526040902060010154811015611cb7576001600160a01b0386166000908152600860205260409020600101805485919083908110611b5357611b53612c02565b60009182526020909120601082040154600f9091166002026101000a900461ffff161415611ca5576001600160a01b0386166000908152600860205260409020600190810180549091611ba591612bd7565b81548110611bb557611bb5612c02565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660086000886001600160a01b03166001600160a01b031681526020019081526020016000206001018281548110611c1257611c12612c02565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555060086000876001600160a01b03166001600160a01b03168152602001908152602001600020600101805480611c7857611c78612c18565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590555b80611caf81612b92565b915050611b00565b50600354600280546001540360001901611cd19190612964565b1015611ce257611ce2856002611681565b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610faa565b600081815b8451811015611d94576000858281518110611d4a57611d4a612c02565b60200260200101519050808311611d705760008381526020829052604090209250611d81565b600081815260208490526040902092505b5080611d8c81612b92565b915050611d2d565b509392505050565b6109128383836001611ea0565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611dde903390899088908890600401612c2e565b602060405180830381600087803b158015611df857600080fd5b505af1925050508015611e28575060408051601f3d908101601f19168201909252611e2591810190612c7d565b60015b611e83573d808015611e56576040519150601f19603f3d011682016040523d82523d6000602084013e611e5b565b606091505b508051611e7b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6001546001600160a01b038516611ee3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83611f1a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260086020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526007909252822080546001600160e01b031916909317600160a01b4290921691909102179091555b8481101561202757600180546001600160a01b0388166000908152600860209081526040822084018054808601825590835291206010820401805492850161ffff9081166002600f909416939093026101000a92830292021990921617905501611fc2565b8185810184801561204157506001600160a01b0388163b15155b156120ca575b60405182906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46120926000898480600101955089611da9565b6120af576040516368d2bf6b60e11b815260040160405180910390fd5b808214156120475783600154146120c557600080fd5b612110565b5b6040516001830192906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808214156120cb575b5060015550610faa565b82805461212690612851565b90600052602060002090601f016020900481019282612148576000855561218e565b82601f106121615782800160ff1982351617855561218e565b8280016001018555821561218e579182015b8281111561218e578235825591602001919060010190612173565b5061219a92915061219e565b5090565b5b8082111561219a576000815560010161219f565b6001600160e01b031981165b8114610b9057600080fd5b8035610752816121b3565b6000602082840312156121ea576121ea600080fd5b600061182b84846121ca565b8015155b82525050565b6020810161075282846121f6565b60005b83811015612229578181015183820152602001612211565b83811115610a305750506000910152565b6000612244825190565b80845260208401935061225b81856020860161220e565b601f01601f19169290920192915050565b60208082528101611048818461223a565b806121bf565b80356107528161227d565b6000602082840312156122a3576122a3600080fd5b600061182b8484612283565b60006001600160a01b038216610752565b6121fa816122af565b6020810161075282846122c0565b6121bf816122af565b8035610752816122d7565b6000806040838503121561230157612301600080fd5b600061230d85856122e0565b925050602061231e85828601612283565b9150509250929050565b806121fa565b602081016107528284612328565b6000806040838503121561235257612352600080fd5b600061230d8585612283565b60008060006060848603121561237657612376600080fd5b600061238286866122e0565b9350506020612393868287016122e0565b92505060406123a486828701612283565b9150509250925092565b6000610752826122af565b6000610752826123ae565b6121fa816123b9565b6020810161075282846123c4565b60008083601f8401126123f0576123f0600080fd5b50813567ffffffffffffffff81111561240b5761240b600080fd5b60208301915083600182028301111561242657612426600080fd5b9250929050565b6000806020838503121561244357612443600080fd5b823567ffffffffffffffff81111561245d5761245d600080fd5b612469858286016123db565b92509250509250929050565b60006020828403121561248a5761248a600080fd5b600061182b84846122e0565b8015156121bf565b803561075281612496565b600080604083850312156124bf576124bf600080fd5b60006124cb85856122e0565b925050602061231e8582860161249e565b60008083601f8401126124f1576124f1600080fd5b50813567ffffffffffffffff81111561250c5761250c600080fd5b60208301915083602082028301111561242657612426600080fd5b6000806020838503121561253d5761253d600080fd5b823567ffffffffffffffff81111561255757612557600080fd5b612469858286016124dc565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff8211171561259f5761259f612563565b6040525050565b60006125b160405190565b90506125bd8282612579565b919050565b600067ffffffffffffffff8211156125dc576125dc612563565b601f19601f83011660200192915050565b82818337506000910152565b600061260c612607846125c2565b6125a6565b90508281526020810184848401111561262757612627600080fd5b611d948482856125ed565b600082601f83011261264657612646600080fd5b813561182b8482602086016125f9565b6000806000806080858703121561266f5761266f600080fd5b600061267b87876122e0565b945050602061268c878288016122e0565b935050604061269d87828801612283565b925050606085013567ffffffffffffffff8111156126bd576126bd600080fd5b6126c987828801612632565b91505092959194509250565b61ffff81166121fa565b60006126eb83836126d5565b505060200190565b60006126fd825190565b80845260209384019383018060005b8381101561273157815161272088826126df565b97506020830192505060010161270c565b509495945050505050565b6020808252810161104881846126f3565b805161012083019061275f8482612328565b5060208201516127726020850182612328565b5060408201516127856040850182612328565b5060608201516127986060850182612328565b5060808201516127ab6080850182612328565b5060a08201516127be60a0850182612328565b5060c08201516127d160c0850182612328565b5060e08201516127e460e0850182612328565b50610100820151610a306101008501826121f6565b6101208101610752828461274d565b6000806040838503121561281e5761281e600080fd5b600061282a85856122e0565b925050602061231e858286016122e0565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061286557607f821691505b602082108114156128785761287861283b565b50919050565b6040810161288c82856122c0565b61104860208301846122c0565b805161075281612496565b6000602082840312156128b9576128b9600080fd5b600061182b8484612899565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260005b5060200190565b60208082528101610752816128c5565b600d81526000602082017f4d696e74206e6f74206c69766500000000000000000000000000000000000000815291506128f3565b602080825281016107528161290a565b634e487b7160e01b600052601160045260246000fd5b600082198211156129775761297761294e565b500190565b600881526000602082017f536f6c64206f7574000000000000000000000000000000000000000000000000815291506128f3565b602080825281016107528161297c565b600c81526000602082017f4d75737420626520757365720000000000000000000000000000000000000000815291506128f3565b60208082528101610752816129c0565b600e81526000602082017f416c7265616479206d696e746564000000000000000000000000000000000000815291506128f3565b6020808252810161075281612a04565b60006107528260601b90565b600061075282612a48565b6121fa612a6b826122af565b612a54565b6000612a7c8284612a5f565b50601401919050565b600d81526000602082017f496e76616c69642070726f6f6600000000000000000000000000000000000000815291506128f3565b6020808252810161075281612a85565b6000612ad3825190565b612ae181856020860161220e565b9290920192915050565b6000612af78285612ac9565b9150612b038284612ac9565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815291506005820161182b565b6020808252810161075281602681527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160208201527f6464726573730000000000000000000000000000000000000000000000000000604082015260600190565b6000600019821415612ba657612ba661294e565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612bd257612bd2612bad565b500490565b600082821015612be957612be961294e565b500390565b600082612bfd57612bfd612bad565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60808101612c3c82876122c0565b612c4960208301866122c0565b612c566040830185612328565b8181036060830152612c68818461223a565b9695505050505050565b8051610752816121b3565b600060208284031215612c9257612c92600080fd5b600061182b8484612c7256fea2646970667358221220f289e80de2d138315ba4aaf9d09a7ddcc2a9f049527e09d5ab7b4a153137287164736f6c63430008090033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x6080604052600436106102345760003560e01c8063715018a611610138578063b88d4fde116100b0578063e268e4d31161007f578063e985e9c511610064578063e985e9c51461063d578063f2fde38b14610686578063fb28a540146106a657600080fd5b8063e268e4d3146105f0578063e8c396051461061057600080fd5b8063b88d4fde1461056d578063c285e1071461058d578063c87b56dd146105a3578063d004b036146105c357600080fd5b806393a67125116101075780639ec00c95116100ec5780639ec00c951461050a578063a22cb4651461053a578063b77a147b1461055a57600080fd5b806393a67125146104d557806395d89b41146104f557600080fd5b8063715018a61461046c5780637cb64759146104815780638622a689146104a15780638da5cb5b146104b757600080fd5b80632eb4a7ab116101cb57806353f8bb9a1161019a5780636352211e1161017f5780636352211e1461040c5780636f8b44b01461042c57806370a082311461044c57600080fd5b806353f8bb9a146103d657806355f804b3146103ec57600080fd5b80632eb4a7ab1461035b57806341f434341461037157806342842e0e146103a0578063453c2310146103c057600080fd5b80630d9005ae116102075780630d9005ae146102e05780630f867751146102fe57806318160ddd1461031e57806323b872dd1461033b57600080fd5b806301ffc9a71461023957806306fdde031461026f578063081812fc14610291578063095ea7b3146102be575b600080fd5b34801561024557600080fd5b506102596102543660046121d5565b6106bb565b6040516102669190612200565b60405180910390f35b34801561027b57600080fd5b50610284610758565b604051610266919061226c565b34801561029d57600080fd5b506102b16102ac36600461228e565b6107ea565b60405161026691906122c9565b3480156102ca57600080fd5b506102de6102d93660046122eb565b610847565b005b3480156102ec57600080fd5b506001545b604051610266919061232e565b34801561030a57600080fd5b506102de61031936600461233c565b610917565b34801561032a57600080fd5b5060025460015403600019016102f1565b34801561034757600080fd5b506102de61035636600461235e565b61094c565b34801561036757600080fd5b506102f1600c5481565b34801561037d57600080fd5b506103936daaeb6d7670e522a718067333cd4e81565b60405161026691906123cd565b3480156103ac57600080fd5b506102de6103bb36600461235e565b610a36565b3480156103cc57600080fd5b506102f1600d5481565b3480156103e257600080fd5b506102f1600f5481565b3480156103f857600080fd5b506102de61040736600461242d565b610b15565b34801561041857600080fd5b506102b161042736600461228e565b610b4b565b34801561043857600080fd5b506102de61044736600461228e565b610b5d565b34801561045857600080fd5b506102f1610467366004612475565b610b93565b34801561047857600080fd5b506102de610bfb565b34801561048d57600080fd5b506102de61049c36600461228e565b610c31565b3480156104ad57600080fd5b506102f160105481565b3480156104c357600080fd5b506000546001600160a01b03166102b1565b3480156104e157600080fd5b506102de6104f036600461228e565b610c60565b34801561050157600080fd5b50610284610c8f565b34801561051657600080fd5b50610259610525366004612475565b60116020526000908152604090205460ff1681565b34801561054657600080fd5b506102de6105553660046124a9565b610c9e565b6102de610568366004612527565b610d60565b34801561057957600080fd5b506102de610588366004612656565b610ec4565b34801561059957600080fd5b506102f1600e5481565b3480156105af57600080fd5b506102846105be36600461228e565b610fb1565b3480156105cf57600080fd5b506105e36105de366004612475565b61104f565b604051610266919061273c565b3480156105fc57600080fd5b506102de61060b36600461228e565b6110e6565b34801561061c57600080fd5b5061063061062b366004612475565b611115565b60405161026691906127f9565b34801561064957600080fd5b50610259610658366004612808565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b34801561069257600080fd5b506102de6106a1366004612475565b6111ed565b3480156106b257600080fd5b50610284611246565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061071e57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061075257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606004805461076790612851565b80601f016020809104026020016040519081016040528092919081815260200182805461079390612851565b80156107e05780601f106107b5576101008083540402835291602001916107e0565b820191906000526020600020905b8154815290600101906020018083116107c357829003601f168201915b5050505050905090565b60006107f5826112e3565b61082b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600960205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561090857604051633185c44d60e21b81526daaeb6d7670e522a718067333cd4e9063c617113490610890903090859060040161287e565b60206040518083038186803b1580156108a857600080fd5b505afa1580156108bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e091906128a4565b6109085780604051633b79c77360e21b81526004016108ff91906122c9565b60405180910390fd5b610912838361131c565b505050565b6000546001600160a01b031633146109415760405162461bcd60e51b81526004016108ff906128fa565b600f91909155601055565b826daaeb6d7670e522a718067333cd4e3b15610a25576001600160a01b0381163314156109835761097e8484846113f4565b610a30565b604051633185c44d60e21b81526daaeb6d7670e522a718067333cd4e9063c6171134906109b6903090339060040161287e565b60206040518083038186803b1580156109ce57600080fd5b505afa1580156109e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0691906128a4565b610a255733604051633b79c77360e21b81526004016108ff91906122c9565b610a308484846113f4565b50505050565b826daaeb6d7670e522a718067333cd4e3b15610b0a576001600160a01b038116331415610a685761097e8484846113ff565b604051633185c44d60e21b81526daaeb6d7670e522a718067333cd4e9063c617113490610a9b903090339060040161287e565b60206040518083038186803b158015610ab357600080fd5b505afa158015610ac7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aeb91906128a4565b610b0a5733604051633b79c77360e21b81526004016108ff91906122c9565b610a308484846113ff565b6000546001600160a01b03163314610b3f5760405162461bcd60e51b81526004016108ff906128fa565b610912600b838361211a565b6000610b568261141a565b5192915050565b6000546001600160a01b03163314610b875760405162461bcd60e51b81526004016108ff906128fa565b610b9081600355565b50565b60006001600160a01b038216610bd5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526008602052604090205467ffffffffffffffff1690565b6000546001600160a01b03163314610c255760405162461bcd60e51b81526004016108ff906128fa565b610c2f600061155c565b565b6000546001600160a01b03163314610c5b5760405162461bcd60e51b81526004016108ff906128fa565b600c55565b6000546001600160a01b03163314610c8a5760405162461bcd60e51b81526004016108ff906128fa565b600e55565b60606005805461076790612851565b816daaeb6d7670e522a718067333cd4e3b15610d5657604051633185c44d60e21b81526daaeb6d7670e522a718067333cd4e9063c617113490610ce7903090859060040161287e565b60206040518083038186803b158015610cff57600080fd5b505afa158015610d13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3791906128a4565b610d565780604051633b79c77360e21b81526004016108ff91906122c9565b61091283836115b9565b600f54429081118015610d74575060105481105b610d905760405162461bcd60e51b81526004016108ff9061293e565b600e546002546001540360001901610da9906001612964565b10610dc65760405162461bcd60e51b81526004016108ff906129b0565b323314610de55760405162461bcd60e51b81526004016108ff906129f4565b3360009081526011602052604090205460ff1615610e155760405162461bcd60e51b81526004016108ff90612a38565b600033604051602001610e289190612a70565b604051602081830303815290604052805190602001209050610e8184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c54915084905061166b565b610e9d5760405162461bcd60e51b81526004016108ff90612ab9565b336000818152601160205260409020805460ff19166001908117909155610a309190611681565b836daaeb6d7670e522a718067333cd4e3b15610f9e576001600160a01b038116331415610efc57610ef78585858561169f565b610faa565b604051633185c44d60e21b81526daaeb6d7670e522a718067333cd4e9063c617113490610f2f903090339060040161287e565b60206040518083038186803b158015610f4757600080fd5b505afa158015610f5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7f91906128a4565b610f9e5733604051633b79c77360e21b81526004016108ff91906122c9565b610faa8585858561169f565b5050505050565b6060610fbc826112e3565b610ff2576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610ffc6116ea565b905080516000141561101d5760405180602001604052806000815250611048565b80611027846116f9565b604051602001611038929190612aeb565b6040516020818303038152906040525b9392505050565b6001600160a01b0381166000908152600860209081526040918290206001018054835181840281018401909452808452606093928301828280156110da57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116110a15790505b50505050509050919050565b6000546001600160a01b031633146111105760405162461bcd60e51b81526004016108ff906128fa565b600d55565b61116960405180610120016040528060008152602001600081526020016000801916815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b604051806101200160405280600f5481526020016010548152602001600c548152602001600d5481526020016003548152602001600e5481526020016111b86002546001546000199190030190565b8152602001600281526001600160a01b0390931660009081526011602090815260409091205460ff1615159301929092525090565b6000546001600160a01b031633146112175760405162461bcd60e51b81526004016108ff906128fa565b6001600160a01b03811661123d5760405162461bcd60e51b81526004016108ff90612b31565b610b908161155c565b6006805461125390612851565b80601f016020809104026020016040519081016040528092919081815260200182805461127f90612851565b80156112cc5780601f106112a1576101008083540402835291602001916112cc565b820191906000526020600020905b8154815290600101906020018083116112af57829003601f168201915b505050505081565b6001600160a01b03163b151590565b6000816001111580156112f7575060015482105b8015610752575050600090815260076020526040902054600160e01b900460ff161590565b600061132782610b4b565b9050806001600160a01b0316836001600160a01b03161415611375576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b038216148015906113b257506001600160a01b0381166000908152600a6020908152604080832033845290915290205460ff16155b156113e9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610912838383611833565b61091283838361189c565b61091283838360405180602001604052806000815250610ec4565b6040805160608101825260008082526020820181905291810191909152818060011115801561144a575060015481105b1561152a57600081815260076020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906115285780516001600160a01b0316156114be579392505050565b5060001901600081815260076020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215611523579392505050565b6114be565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382163314156115fc576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600a602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061165f908590612200565b60405180910390a35050565b6000826116788584611d28565b14949350505050565b61169b828260405180602001604052806000815250611d9c565b5050565b6116aa84848461189c565b6001600160a01b0383163b151580156116cc57506116ca84848484611da9565b155b15610a30576040516368d2bf6b60e11b815260040160405180910390fd5b6060600b805461076790612851565b60608161173957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611763578061174d81612b92565b915061175c9050600a83612bc3565b915061173d565b60008167ffffffffffffffff81111561177e5761177e612563565b6040519080825280601f01601f1916602001820160405280156117a8576020820181803683370190505b5090505b841561182b576117bd600183612bd7565b91506117ca600a86612bee565b6117d5906030612964565b60f81b8183815181106117ea576117ea612c02565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611824600a86612bc3565b94506117ac565b949350505050565b600082815260096020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006118a78261141a565b9050836001600160a01b031681600001516001600160a01b0316146118f8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b038616148061193457506001600160a01b0385166000908152600a6020908152604080832033845290915290205460ff165b8061194f575033611944846107ea565b6001600160a01b0316145b905080611988576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166119c8576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119d460008487611833565b6001600160a01b038581166000908152600860209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600790945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611aaa576001548214611aaa578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b5050506001600160a01b03841660009081526008602090815260408220600190810180549182018155835290822060108204018054600f9092166002026101000a61ffff81810219909316928716029190911790555b6001600160a01b038616600090815260086020526040902060010154811015611cb7576001600160a01b0386166000908152600860205260409020600101805485919083908110611b5357611b53612c02565b60009182526020909120601082040154600f9091166002026101000a900461ffff161415611ca5576001600160a01b0386166000908152600860205260409020600190810180549091611ba591612bd7565b81548110611bb557611bb5612c02565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660086000886001600160a01b03166001600160a01b031681526020019081526020016000206001018281548110611c1257611c12612c02565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555060086000876001600160a01b03166001600160a01b03168152602001908152602001600020600101805480611c7857611c78612c18565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590555b80611caf81612b92565b915050611b00565b50600354600280546001540360001901611cd19190612964565b1015611ce257611ce2856002611681565b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610faa565b600081815b8451811015611d94576000858281518110611d4a57611d4a612c02565b60200260200101519050808311611d705760008381526020829052604090209250611d81565b600081815260208490526040902092505b5080611d8c81612b92565b915050611d2d565b509392505050565b6109128383836001611ea0565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611dde903390899088908890600401612c2e565b602060405180830381600087803b158015611df857600080fd5b505af1925050508015611e28575060408051601f3d908101601f19168201909252611e2591810190612c7d565b60015b611e83573d808015611e56576040519150601f19603f3d011682016040523d82523d6000602084013e611e5b565b606091505b508051611e7b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6001546001600160a01b038516611ee3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83611f1a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260086020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526007909252822080546001600160e01b031916909317600160a01b4290921691909102179091555b8481101561202757600180546001600160a01b0388166000908152600860209081526040822084018054808601825590835291206010820401805492850161ffff9081166002600f909416939093026101000a92830292021990921617905501611fc2565b8185810184801561204157506001600160a01b0388163b15155b156120ca575b60405182906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46120926000898480600101955089611da9565b6120af576040516368d2bf6b60e11b815260040160405180910390fd5b808214156120475783600154146120c557600080fd5b612110565b5b6040516001830192906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808214156120cb575b5060015550610faa565b82805461212690612851565b90600052602060002090601f016020900481019282612148576000855561218e565b82601f106121615782800160ff1982351617855561218e565b8280016001018555821561218e579182015b8281111561218e578235825591602001919060010190612173565b5061219a92915061219e565b5090565b5b8082111561219a576000815560010161219f565b6001600160e01b031981165b8114610b9057600080fd5b8035610752816121b3565b6000602082840312156121ea576121ea600080fd5b600061182b84846121ca565b8015155b82525050565b6020810161075282846121f6565b60005b83811015612229578181015183820152602001612211565b83811115610a305750506000910152565b6000612244825190565b80845260208401935061225b81856020860161220e565b601f01601f19169290920192915050565b60208082528101611048818461223a565b806121bf565b80356107528161227d565b6000602082840312156122a3576122a3600080fd5b600061182b8484612283565b60006001600160a01b038216610752565b6121fa816122af565b6020810161075282846122c0565b6121bf816122af565b8035610752816122d7565b6000806040838503121561230157612301600080fd5b600061230d85856122e0565b925050602061231e85828601612283565b9150509250929050565b806121fa565b602081016107528284612328565b6000806040838503121561235257612352600080fd5b600061230d8585612283565b60008060006060848603121561237657612376600080fd5b600061238286866122e0565b9350506020612393868287016122e0565b92505060406123a486828701612283565b9150509250925092565b6000610752826122af565b6000610752826123ae565b6121fa816123b9565b6020810161075282846123c4565b60008083601f8401126123f0576123f0600080fd5b50813567ffffffffffffffff81111561240b5761240b600080fd5b60208301915083600182028301111561242657612426600080fd5b9250929050565b6000806020838503121561244357612443600080fd5b823567ffffffffffffffff81111561245d5761245d600080fd5b612469858286016123db565b92509250509250929050565b60006020828403121561248a5761248a600080fd5b600061182b84846122e0565b8015156121bf565b803561075281612496565b600080604083850312156124bf576124bf600080fd5b60006124cb85856122e0565b925050602061231e8582860161249e565b60008083601f8401126124f1576124f1600080fd5b50813567ffffffffffffffff81111561250c5761250c600080fd5b60208301915083602082028301111561242657612426600080fd5b6000806020838503121561253d5761253d600080fd5b823567ffffffffffffffff81111561255757612557600080fd5b612469858286016124dc565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff8211171561259f5761259f612563565b6040525050565b60006125b160405190565b90506125bd8282612579565b919050565b600067ffffffffffffffff8211156125dc576125dc612563565b601f19601f83011660200192915050565b82818337506000910152565b600061260c612607846125c2565b6125a6565b90508281526020810184848401111561262757612627600080fd5b611d948482856125ed565b600082601f83011261264657612646600080fd5b813561182b8482602086016125f9565b6000806000806080858703121561266f5761266f600080fd5b600061267b87876122e0565b945050602061268c878288016122e0565b935050604061269d87828801612283565b925050606085013567ffffffffffffffff8111156126bd576126bd600080fd5b6126c987828801612632565b91505092959194509250565b61ffff81166121fa565b60006126eb83836126d5565b505060200190565b60006126fd825190565b80845260209384019383018060005b8381101561273157815161272088826126df565b97506020830192505060010161270c565b509495945050505050565b6020808252810161104881846126f3565b805161012083019061275f8482612328565b5060208201516127726020850182612328565b5060408201516127856040850182612328565b5060608201516127986060850182612328565b5060808201516127ab6080850182612328565b5060a08201516127be60a0850182612328565b5060c08201516127d160c0850182612328565b5060e08201516127e460e0850182612328565b50610100820151610a306101008501826121f6565b6101208101610752828461274d565b6000806040838503121561281e5761281e600080fd5b600061282a85856122e0565b925050602061231e858286016122e0565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061286557607f821691505b602082108114156128785761287861283b565b50919050565b6040810161288c82856122c0565b61104860208301846122c0565b805161075281612496565b6000602082840312156128b9576128b9600080fd5b600061182b8484612899565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260005b5060200190565b60208082528101610752816128c5565b600d81526000602082017f4d696e74206e6f74206c69766500000000000000000000000000000000000000815291506128f3565b602080825281016107528161290a565b634e487b7160e01b600052601160045260246000fd5b600082198211156129775761297761294e565b500190565b600881526000602082017f536f6c64206f7574000000000000000000000000000000000000000000000000815291506128f3565b602080825281016107528161297c565b600c81526000602082017f4d75737420626520757365720000000000000000000000000000000000000000815291506128f3565b60208082528101610752816129c0565b600e81526000602082017f416c7265616479206d696e746564000000000000000000000000000000000000815291506128f3565b6020808252810161075281612a04565b60006107528260601b90565b600061075282612a48565b6121fa612a6b826122af565b612a54565b6000612a7c8284612a5f565b50601401919050565b600d81526000602082017f496e76616c69642070726f6f6600000000000000000000000000000000000000815291506128f3565b6020808252810161075281612a85565b6000612ad3825190565b612ae181856020860161220e565b9290920192915050565b6000612af78285612ac9565b9150612b038284612ac9565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815291506005820161182b565b6020808252810161075281602681527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160208201527f6464726573730000000000000000000000000000000000000000000000000000604082015260600190565b6000600019821415612ba657612ba661294e565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612bd257612bd2612bad565b500490565b600082821015612be957612be961294e565b500390565b600082612bfd57612bfd612bad565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60808101612c3c82876122c0565b612c4960208301866122c0565b612c566040830185612328565b8181036060830152612c68818461223a565b9695505050505050565b8051610752816121b3565b600060208284031215612c9257612c92600080fd5b600061182b8484612c7256fea2646970667358221220f289e80de2d138315ba4aaf9d09a7ddcc2a9f049527e09d5ab7b4a153137287164736f6c63430008090033
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.