ERC-721
Overview
Max Total Supply
10,101 KUNGFUNGUS
Holders
3,369
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
9 KUNGFUNGUSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Kungfungus
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contract Kungfungus is ERC721, Pausable, Ownable, ERC721Burnable { using Counters for Counters.Counter; enum State { Closed, Presale, PresaleTwo, PublicSale } Counters.Counter private _tokenIdCounter; string private _metadataEndpoint = "https://api.kungfungus.com/tokens/"; uint256 private _supplyTotal = 10101; uint256 private _mintCost = 0.0 ether; uint256 private _maxTokensPerAddress = 2; mapping(address => uint256) public mintsPerAddress; constructor() ERC721("Kung Fungus", "KUNGFUNGUS") { _tokenIdCounter.increment(); } function _baseURI() internal view override returns (string memory) { return _metadataEndpoint; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function safeMint(address to) internal { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenId); mintsPerAddress[to] += 1; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override whenNotPaused { super._beforeTokenTransfer(from, to, tokenId); } function setMetadataEndpoint(string memory endpoint) public onlyOwner { _metadataEndpoint = endpoint; } function setMintCost(uint256 cost) public onlyOwner { _mintCost = cost; } function setMaxTokensPerAddress(uint256 value) public onlyOwner { _maxTokensPerAddress = value; } function reservedMint(address to, uint256 quantity) public onlyOwner { require( _tokenIdCounter.current() + quantity <= _supplyTotal, "Not enough NFTs left to mint" ); for (uint256 i = 0; i < quantity; i++) { safeMint(to); } } function withdraw(address recipient, uint256 amount) public onlyOwner { require(amount <= address(this).balance, "Incorrect amount"); payable(recipient).transfer(amount); } function mint(uint256 quantity) public payable { require( _tokenIdCounter.current() - 1 + quantity <= _supplyTotal, "Not enough NFTs left to mint" ); require( mintsPerAddress[msg.sender] + quantity <= _maxTokensPerAddress, "This address cannot mint more NFTs" ); for (uint256 i = 0; i < quantity; i++) { safeMint(msg.sender); } } function mintCost() public view returns (uint256) { return _mintCost; } function getMintedTotal() public view returns (uint256) { return _tokenIdCounter.current() - 1; } function getMaxTokensPerAddress() public view returns (uint256) { return _maxTokensPerAddress; } function totalSupply() public view returns (uint256) { return _supplyTotal; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // 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; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @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) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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 { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _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 { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @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`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a 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 _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev See {ERC721-_burn}. This override additionally checks to see if a * token-specific URI was set for the token, and if so, it deletes the token URI from * the storage mapping. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// 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 // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 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 (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 (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 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxTokensPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintsPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"reservedMint","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":"uint256","name":"value","type":"uint256"}],"name":"setMaxTokensPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"endpoint","type":"string"}],"name":"setMetadataEndpoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cost","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260405180606001604052806022815260200162003a7660229139600890805190602001906200003592919062000230565b506127756009556000600a556002600b553480156200005357600080fd5b506040518060400160405280600b81526020017f4b756e672046756e6775730000000000000000000000000000000000000000008152506040518060400160405280600a81526020017f4b554e4746554e475553000000000000000000000000000000000000000000008152508160009080519060200190620000d892919062000230565b508060019080519060200190620000f192919062000230565b5050506000600660006101000a81548160ff0219169083151502179055506200012f620001236200014c60201b60201c565b6200015460201b60201c565b6200014660076200021a60201b620012231760201c565b62000345565b600033905090565b6000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001816000016000828254019250508190555050565b8280546200023e906200030f565b90600052602060002090601f016020900481019282620002625760008555620002ae565b82601f106200027d57805160ff1916838001178555620002ae565b82800160010185558215620002ae579182015b82811115620002ad57825182559160200191906001019062000290565b5b509050620002bd9190620002c1565b5090565b5b80821115620002dc576000816000905550600101620002c2565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200032857607f821691505b602082108114156200033f576200033e620002e0565b5b50919050565b61372180620003556000396000f3fe6080604052600436106101d85760003560e01c806370a0823111610102578063b7a34c8a11610095578063dbb84f1111610064578063dbb84f1114610675578063e985e9c51461069e578063f2fde38b146106db578063f3fef3a314610704576101d8565b8063b7a34c8a146105bb578063b88d4fde146105e4578063bdb4b8481461060d578063c87b56dd14610638576101d8565b80638da5cb5b116100d15780638da5cb5b1461052057806395d89b411461054b578063a0712d6814610576578063a22cb46514610592576101d8565b806370a082311461048c578063715018a6146104c95780638456cb59146104e05780638545f4ea146104f7576101d8565b80633023eba61161017a57806342966c681161014957806342966c68146103d05780635c975abb146103f95780636352211e146104245780636d5aac5a14610461576101d8565b80633023eba61461032a5780633f4ba83a146103675780633fea7da11461037e57806342842e0e146103a7576101d8565b8063095ea7b3116101b6578063095ea7b31461028257806311f5eb16146102ab57806318160ddd146102d657806323b872dd14610301576101d8565b806301ffc9a7146101dd57806306fdde031461021a578063081812fc14610245575b600080fd5b3480156101e957600080fd5b5061020460048036038101906101ff9190612456565b61072d565b604051610211919061249e565b60405180910390f35b34801561022657600080fd5b5061022f61080f565b60405161023c9190612552565b60405180910390f35b34801561025157600080fd5b5061026c600480360381019061026791906125aa565b6108a1565b6040516102799190612618565b60405180910390f35b34801561028e57600080fd5b506102a960048036038101906102a4919061265f565b6108e7565b005b3480156102b757600080fd5b506102c06109ff565b6040516102cd91906126ae565b60405180910390f35b3480156102e257600080fd5b506102eb610a1c565b6040516102f891906126ae565b60405180910390f35b34801561030d57600080fd5b50610328600480360381019061032391906126c9565b610a26565b005b34801561033657600080fd5b50610351600480360381019061034c919061271c565b610a86565b60405161035e91906126ae565b60405180910390f35b34801561037357600080fd5b5061037c610a9e565b005b34801561038a57600080fd5b506103a560048036038101906103a0919061287e565b610ab0565b005b3480156103b357600080fd5b506103ce60048036038101906103c991906126c9565b610ad2565b005b3480156103dc57600080fd5b506103f760048036038101906103f291906125aa565b610af2565b005b34801561040557600080fd5b5061040e610b4e565b60405161041b919061249e565b60405180910390f35b34801561043057600080fd5b5061044b600480360381019061044691906125aa565b610b65565b6040516104589190612618565b60405180910390f35b34801561046d57600080fd5b50610476610c17565b60405161048391906126ae565b60405180910390f35b34801561049857600080fd5b506104b360048036038101906104ae919061271c565b610c21565b6040516104c091906126ae565b60405180910390f35b3480156104d557600080fd5b506104de610cd9565b005b3480156104ec57600080fd5b506104f5610ced565b005b34801561050357600080fd5b5061051e600480360381019061051991906125aa565b610cff565b005b34801561052c57600080fd5b50610535610d11565b6040516105429190612618565b60405180910390f35b34801561055757600080fd5b50610560610d3b565b60405161056d9190612552565b60405180910390f35b610590600480360381019061058b91906125aa565b610dcd565b005b34801561059e57600080fd5b506105b960048036038101906105b491906128f3565b610eec565b005b3480156105c757600080fd5b506105e260048036038101906105dd919061265f565b610f02565b005b3480156105f057600080fd5b5061060b600480360381019061060691906129d4565b610f8f565b005b34801561061957600080fd5b50610622610ff1565b60405161062f91906126ae565b60405180910390f35b34801561064457600080fd5b5061065f600480360381019061065a91906125aa565b610ffb565b60405161066c9190612552565b60405180910390f35b34801561068157600080fd5b5061069c600480360381019061069791906125aa565b611063565b005b3480156106aa57600080fd5b506106c560048036038101906106c09190612a57565b611075565b6040516106d2919061249e565b60405180910390f35b3480156106e757600080fd5b5061070260048036038101906106fd919061271c565b611109565b005b34801561071057600080fd5b5061072b6004803603810190610726919061265f565b61118d565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107f857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610808575061080782611239565b5b9050919050565b60606000805461081e90612ac6565b80601f016020809104026020016040519081016040528092919081815260200182805461084a90612ac6565b80156108975780601f1061086c57610100808354040283529160200191610897565b820191906000526020600020905b81548152906001019060200180831161087a57829003601f168201915b5050505050905090565b60006108ac826112a3565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108f282610b65565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095a90612b6a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109826112ee565b73ffffffffffffffffffffffffffffffffffffffff1614806109b157506109b0816109ab6112ee565b611075565b5b6109f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e790612bfc565b60405180910390fd5b6109fa83836112f6565b505050565b60006001610a0d60076113af565b610a179190612c4b565b905090565b6000600954905090565b610a37610a316112ee565b826113bd565b610a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6d90612cf1565b60405180910390fd5b610a81838383611452565b505050565b600c6020528060005260406000206000915090505481565b610aa66116b9565b610aae611737565b565b610ab86116b9565b8060089080519060200190610ace929190612347565b5050565b610aed83838360405180602001604052806000815250610f8f565b505050565b610b03610afd6112ee565b826113bd565b610b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3990612cf1565b60405180910390fd5b610b4b8161179a565b50565b6000600660009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0590612d5d565b60405180910390fd5b80915050919050565b6000600b54905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8990612def565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ce16116b9565b610ceb60006118b7565b565b610cf56116b9565b610cfd61197d565b565b610d076116b9565b80600a8190555050565b6000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610d4a90612ac6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7690612ac6565b8015610dc35780601f10610d9857610100808354040283529160200191610dc3565b820191906000526020600020905b815481529060010190602001808311610da657829003601f168201915b5050505050905090565b600954816001610ddd60076113af565b610de79190612c4b565b610df19190612e0f565b1115610e32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2990612eb1565b60405180910390fd5b600b5481600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e809190612e0f565b1115610ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb890612f43565b60405180910390fd5b60005b81811015610ee857610ed5336119e0565b8080610ee090612f63565b915050610ec4565b5050565b610efe610ef76112ee565b8383611a5d565b5050565b610f0a6116b9565b60095481610f1860076113af565b610f229190612e0f565b1115610f63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5a90612eb1565b60405180910390fd5b60005b81811015610f8a57610f77836119e0565b8080610f8290612f63565b915050610f66565b505050565b610fa0610f9a6112ee565b836113bd565b610fdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd690612cf1565b60405180910390fd5b610feb84848484611bca565b50505050565b6000600a54905090565b6060611006826112a3565b6000611010611c26565b90506000815111611030576040518060200160405280600081525061105b565b8061103a84611cb8565b60405160200161104b929190612fe8565b6040516020818303038152906040525b915050919050565b61106b6116b9565b80600b8190555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6111116116b9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611181576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111789061307e565b60405180910390fd5b61118a816118b7565b50565b6111956116b9565b478111156111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf906130ea565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561121e573d6000803e3d6000fd5b505050565b6001816000016000828254019250508190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6112ac81611e19565b6112eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e290612d5d565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661136983610b65565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b6000806113c983610b65565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061140b575061140a8185611075565b5b8061144957508373ffffffffffffffffffffffffffffffffffffffff16611431846108a1565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661147282610b65565b73ffffffffffffffffffffffffffffffffffffffff16146114c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bf9061317c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152f9061320e565b60405180910390fd5b611543838383611e85565b61154e6000826112f6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461159e9190612c4b565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115f59190612e0f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46116b4838383611e9d565b505050565b6116c16112ee565b73ffffffffffffffffffffffffffffffffffffffff166116df610d11565b73ffffffffffffffffffffffffffffffffffffffff1614611735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172c9061327a565b60405180910390fd5b565b61173f611ea2565b6000600660006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6117836112ee565b6040516117909190612618565b60405180910390a1565b60006117a582610b65565b90506117b381600084611e85565b6117be6000836112f6565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461180e9190612c4b565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118b381600084611e9d565b5050565b6000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611985611eeb565b6001600660006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586119c96112ee565b6040516119d69190612618565b60405180910390a1565b60006119ec60076113af565b90506119f86007611223565b611a028282611f35565b6001600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a529190612e0f565b925050819055505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac3906132e6565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611bbd919061249e565b60405180910390a3505050565b611bd5848484611452565b611be184848484611f53565b611c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1790613378565b60405180910390fd5b50505050565b606060088054611c3590612ac6565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6190612ac6565b8015611cae5780601f10611c8357610100808354040283529160200191611cae565b820191906000526020600020905b815481529060010190602001808311611c9157829003601f168201915b5050505050905090565b60606000821415611d00576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611e14565b600082905060005b60008214611d32578080611d1b90612f63565b915050600a82611d2b91906133c7565b9150611d08565b60008167ffffffffffffffff811115611d4e57611d4d612753565b5b6040519080825280601f01601f191660200182016040528015611d805781602001600182028036833780820191505090505b5090505b60008514611e0d57600182611d999190612c4b565b9150600a85611da891906133f8565b6030611db49190612e0f565b60f81b818381518110611dca57611dc9613429565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611e0691906133c7565b9450611d84565b8093505050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b611e8d611eeb565b611e988383836120ea565b505050565b505050565b611eaa610b4e565b611ee9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee0906134a4565b60405180910390fd5b565b611ef3610b4e565b15611f33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2a90613510565b60405180910390fd5b565b611f4f8282604051806020016040528060008152506120ef565b5050565b6000611f748473ffffffffffffffffffffffffffffffffffffffff1661214a565b156120dd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611f9d6112ee565b8786866040518563ffffffff1660e01b8152600401611fbf9493929190613585565b602060405180830381600087803b158015611fd957600080fd5b505af192505050801561200a57506040513d601f19601f8201168201806040525081019061200791906135e6565b60015b61208d573d806000811461203a576040519150601f19603f3d011682016040523d82523d6000602084013e61203f565b606091505b50600081511415612085576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207c90613378565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506120e2565b600190505b949350505050565b505050565b6120f9838361216d565b6121066000848484611f53565b612145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213c90613378565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d49061365f565b60405180910390fd5b6121e681611e19565b15612226576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221d906136cb565b60405180910390fd5b61223260008383611e85565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122829190612e0f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461234360008383611e9d565b5050565b82805461235390612ac6565b90600052602060002090601f01602090048101928261237557600085556123bc565b82601f1061238e57805160ff19168380011785556123bc565b828001600101855582156123bc579182015b828111156123bb5782518255916020019190600101906123a0565b5b5090506123c991906123cd565b5090565b5b808211156123e65760008160009055506001016123ce565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612433816123fe565b811461243e57600080fd5b50565b6000813590506124508161242a565b92915050565b60006020828403121561246c5761246b6123f4565b5b600061247a84828501612441565b91505092915050565b60008115159050919050565b61249881612483565b82525050565b60006020820190506124b3600083018461248f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156124f35780820151818401526020810190506124d8565b83811115612502576000848401525b50505050565b6000601f19601f8301169050919050565b6000612524826124b9565b61252e81856124c4565b935061253e8185602086016124d5565b61254781612508565b840191505092915050565b6000602082019050818103600083015261256c8184612519565b905092915050565b6000819050919050565b61258781612574565b811461259257600080fd5b50565b6000813590506125a48161257e565b92915050565b6000602082840312156125c0576125bf6123f4565b5b60006125ce84828501612595565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612602826125d7565b9050919050565b612612816125f7565b82525050565b600060208201905061262d6000830184612609565b92915050565b61263c816125f7565b811461264757600080fd5b50565b60008135905061265981612633565b92915050565b60008060408385031215612676576126756123f4565b5b60006126848582860161264a565b925050602061269585828601612595565b9150509250929050565b6126a881612574565b82525050565b60006020820190506126c3600083018461269f565b92915050565b6000806000606084860312156126e2576126e16123f4565b5b60006126f08682870161264a565b93505060206127018682870161264a565b925050604061271286828701612595565b9150509250925092565b600060208284031215612732576127316123f4565b5b60006127408482850161264a565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61278b82612508565b810181811067ffffffffffffffff821117156127aa576127a9612753565b5b80604052505050565b60006127bd6123ea565b90506127c98282612782565b919050565b600067ffffffffffffffff8211156127e9576127e8612753565b5b6127f282612508565b9050602081019050919050565b82818337600083830152505050565b600061282161281c846127ce565b6127b3565b90508281526020810184848401111561283d5761283c61274e565b5b6128488482856127ff565b509392505050565b600082601f83011261286557612864612749565b5b813561287584826020860161280e565b91505092915050565b600060208284031215612894576128936123f4565b5b600082013567ffffffffffffffff8111156128b2576128b16123f9565b5b6128be84828501612850565b91505092915050565b6128d081612483565b81146128db57600080fd5b50565b6000813590506128ed816128c7565b92915050565b6000806040838503121561290a576129096123f4565b5b60006129188582860161264a565b9250506020612929858286016128de565b9150509250929050565b600067ffffffffffffffff82111561294e5761294d612753565b5b61295782612508565b9050602081019050919050565b600061297761297284612933565b6127b3565b9050828152602081018484840111156129935761299261274e565b5b61299e8482856127ff565b509392505050565b600082601f8301126129bb576129ba612749565b5b81356129cb848260208601612964565b91505092915050565b600080600080608085870312156129ee576129ed6123f4565b5b60006129fc8782880161264a565b9450506020612a0d8782880161264a565b9350506040612a1e87828801612595565b925050606085013567ffffffffffffffff811115612a3f57612a3e6123f9565b5b612a4b878288016129a6565b91505092959194509250565b60008060408385031215612a6e57612a6d6123f4565b5b6000612a7c8582860161264a565b9250506020612a8d8582860161264a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612ade57607f821691505b60208210811415612af257612af1612a97565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612b546021836124c4565b9150612b5f82612af8565b604082019050919050565b60006020820190508181036000830152612b8381612b47565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000612be6603e836124c4565b9150612bf182612b8a565b604082019050919050565b60006020820190508181036000830152612c1581612bd9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612c5682612574565b9150612c6183612574565b925082821015612c7457612c73612c1c565b5b828203905092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000612cdb602e836124c4565b9150612ce682612c7f565b604082019050919050565b60006020820190508181036000830152612d0a81612cce565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000612d476018836124c4565b9150612d5282612d11565b602082019050919050565b60006020820190508181036000830152612d7681612d3a565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000612dd96029836124c4565b9150612de482612d7d565b604082019050919050565b60006020820190508181036000830152612e0881612dcc565b9050919050565b6000612e1a82612574565b9150612e2583612574565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612e5a57612e59612c1c565b5b828201905092915050565b7f4e6f7420656e6f756768204e465473206c65667420746f206d696e7400000000600082015250565b6000612e9b601c836124c4565b9150612ea682612e65565b602082019050919050565b60006020820190508181036000830152612eca81612e8e565b9050919050565b7f5468697320616464726573732063616e6e6f74206d696e74206d6f7265204e4660008201527f5473000000000000000000000000000000000000000000000000000000000000602082015250565b6000612f2d6022836124c4565b9150612f3882612ed1565b604082019050919050565b60006020820190508181036000830152612f5c81612f20565b9050919050565b6000612f6e82612574565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612fa157612fa0612c1c565b5b600182019050919050565b600081905092915050565b6000612fc2826124b9565b612fcc8185612fac565b9350612fdc8185602086016124d5565b80840191505092915050565b6000612ff48285612fb7565b91506130008284612fb7565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006130686026836124c4565b91506130738261300c565b604082019050919050565b600060208201905081810360008301526130978161305b565b9050919050565b7f496e636f727265637420616d6f756e7400000000000000000000000000000000600082015250565b60006130d46010836124c4565b91506130df8261309e565b602082019050919050565b60006020820190508181036000830152613103816130c7565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006131666025836124c4565b91506131718261310a565b604082019050919050565b6000602082019050818103600083015261319581613159565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006131f86024836124c4565b91506132038261319c565b604082019050919050565b60006020820190508181036000830152613227816131eb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006132646020836124c4565b915061326f8261322e565b602082019050919050565b6000602082019050818103600083015261329381613257565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006132d06019836124c4565b91506132db8261329a565b602082019050919050565b600060208201905081810360008301526132ff816132c3565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006133626032836124c4565b915061336d82613306565b604082019050919050565b6000602082019050818103600083015261339181613355565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006133d282612574565b91506133dd83612574565b9250826133ed576133ec613398565b5b828204905092915050565b600061340382612574565b915061340e83612574565b92508261341e5761341d613398565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061348e6014836124c4565b915061349982613458565b602082019050919050565b600060208201905081810360008301526134bd81613481565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006134fa6010836124c4565b9150613505826134c4565b602082019050919050565b60006020820190508181036000830152613529816134ed565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061355782613530565b613561818561353b565b93506135718185602086016124d5565b61357a81612508565b840191505092915050565b600060808201905061359a6000830187612609565b6135a76020830186612609565b6135b4604083018561269f565b81810360608301526135c6818461354c565b905095945050505050565b6000815190506135e08161242a565b92915050565b6000602082840312156135fc576135fb6123f4565b5b600061360a848285016135d1565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006136496020836124c4565b915061365482613613565b602082019050919050565b600060208201905081810360008301526136788161363c565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006136b5601c836124c4565b91506136c08261367f565b602082019050919050565b600060208201905081810360008301526136e4816136a8565b905091905056fea2646970667358221220c841efcedc06dd4af93d7900a24a025cc2ebd61055a3d5a316a7ca6a40043a4c64736f6c6343000809003368747470733a2f2f6170692e6b756e6766756e6775732e636f6d2f746f6b656e732f
Deployed Bytecode
0x6080604052600436106101d85760003560e01c806370a0823111610102578063b7a34c8a11610095578063dbb84f1111610064578063dbb84f1114610675578063e985e9c51461069e578063f2fde38b146106db578063f3fef3a314610704576101d8565b8063b7a34c8a146105bb578063b88d4fde146105e4578063bdb4b8481461060d578063c87b56dd14610638576101d8565b80638da5cb5b116100d15780638da5cb5b1461052057806395d89b411461054b578063a0712d6814610576578063a22cb46514610592576101d8565b806370a082311461048c578063715018a6146104c95780638456cb59146104e05780638545f4ea146104f7576101d8565b80633023eba61161017a57806342966c681161014957806342966c68146103d05780635c975abb146103f95780636352211e146104245780636d5aac5a14610461576101d8565b80633023eba61461032a5780633f4ba83a146103675780633fea7da11461037e57806342842e0e146103a7576101d8565b8063095ea7b3116101b6578063095ea7b31461028257806311f5eb16146102ab57806318160ddd146102d657806323b872dd14610301576101d8565b806301ffc9a7146101dd57806306fdde031461021a578063081812fc14610245575b600080fd5b3480156101e957600080fd5b5061020460048036038101906101ff9190612456565b61072d565b604051610211919061249e565b60405180910390f35b34801561022657600080fd5b5061022f61080f565b60405161023c9190612552565b60405180910390f35b34801561025157600080fd5b5061026c600480360381019061026791906125aa565b6108a1565b6040516102799190612618565b60405180910390f35b34801561028e57600080fd5b506102a960048036038101906102a4919061265f565b6108e7565b005b3480156102b757600080fd5b506102c06109ff565b6040516102cd91906126ae565b60405180910390f35b3480156102e257600080fd5b506102eb610a1c565b6040516102f891906126ae565b60405180910390f35b34801561030d57600080fd5b50610328600480360381019061032391906126c9565b610a26565b005b34801561033657600080fd5b50610351600480360381019061034c919061271c565b610a86565b60405161035e91906126ae565b60405180910390f35b34801561037357600080fd5b5061037c610a9e565b005b34801561038a57600080fd5b506103a560048036038101906103a0919061287e565b610ab0565b005b3480156103b357600080fd5b506103ce60048036038101906103c991906126c9565b610ad2565b005b3480156103dc57600080fd5b506103f760048036038101906103f291906125aa565b610af2565b005b34801561040557600080fd5b5061040e610b4e565b60405161041b919061249e565b60405180910390f35b34801561043057600080fd5b5061044b600480360381019061044691906125aa565b610b65565b6040516104589190612618565b60405180910390f35b34801561046d57600080fd5b50610476610c17565b60405161048391906126ae565b60405180910390f35b34801561049857600080fd5b506104b360048036038101906104ae919061271c565b610c21565b6040516104c091906126ae565b60405180910390f35b3480156104d557600080fd5b506104de610cd9565b005b3480156104ec57600080fd5b506104f5610ced565b005b34801561050357600080fd5b5061051e600480360381019061051991906125aa565b610cff565b005b34801561052c57600080fd5b50610535610d11565b6040516105429190612618565b60405180910390f35b34801561055757600080fd5b50610560610d3b565b60405161056d9190612552565b60405180910390f35b610590600480360381019061058b91906125aa565b610dcd565b005b34801561059e57600080fd5b506105b960048036038101906105b491906128f3565b610eec565b005b3480156105c757600080fd5b506105e260048036038101906105dd919061265f565b610f02565b005b3480156105f057600080fd5b5061060b600480360381019061060691906129d4565b610f8f565b005b34801561061957600080fd5b50610622610ff1565b60405161062f91906126ae565b60405180910390f35b34801561064457600080fd5b5061065f600480360381019061065a91906125aa565b610ffb565b60405161066c9190612552565b60405180910390f35b34801561068157600080fd5b5061069c600480360381019061069791906125aa565b611063565b005b3480156106aa57600080fd5b506106c560048036038101906106c09190612a57565b611075565b6040516106d2919061249e565b60405180910390f35b3480156106e757600080fd5b5061070260048036038101906106fd919061271c565b611109565b005b34801561071057600080fd5b5061072b6004803603810190610726919061265f565b61118d565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107f857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610808575061080782611239565b5b9050919050565b60606000805461081e90612ac6565b80601f016020809104026020016040519081016040528092919081815260200182805461084a90612ac6565b80156108975780601f1061086c57610100808354040283529160200191610897565b820191906000526020600020905b81548152906001019060200180831161087a57829003601f168201915b5050505050905090565b60006108ac826112a3565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108f282610b65565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095a90612b6a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109826112ee565b73ffffffffffffffffffffffffffffffffffffffff1614806109b157506109b0816109ab6112ee565b611075565b5b6109f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e790612bfc565b60405180910390fd5b6109fa83836112f6565b505050565b60006001610a0d60076113af565b610a179190612c4b565b905090565b6000600954905090565b610a37610a316112ee565b826113bd565b610a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6d90612cf1565b60405180910390fd5b610a81838383611452565b505050565b600c6020528060005260406000206000915090505481565b610aa66116b9565b610aae611737565b565b610ab86116b9565b8060089080519060200190610ace929190612347565b5050565b610aed83838360405180602001604052806000815250610f8f565b505050565b610b03610afd6112ee565b826113bd565b610b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3990612cf1565b60405180910390fd5b610b4b8161179a565b50565b6000600660009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0590612d5d565b60405180910390fd5b80915050919050565b6000600b54905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8990612def565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ce16116b9565b610ceb60006118b7565b565b610cf56116b9565b610cfd61197d565b565b610d076116b9565b80600a8190555050565b6000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610d4a90612ac6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7690612ac6565b8015610dc35780601f10610d9857610100808354040283529160200191610dc3565b820191906000526020600020905b815481529060010190602001808311610da657829003601f168201915b5050505050905090565b600954816001610ddd60076113af565b610de79190612c4b565b610df19190612e0f565b1115610e32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2990612eb1565b60405180910390fd5b600b5481600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e809190612e0f565b1115610ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb890612f43565b60405180910390fd5b60005b81811015610ee857610ed5336119e0565b8080610ee090612f63565b915050610ec4565b5050565b610efe610ef76112ee565b8383611a5d565b5050565b610f0a6116b9565b60095481610f1860076113af565b610f229190612e0f565b1115610f63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5a90612eb1565b60405180910390fd5b60005b81811015610f8a57610f77836119e0565b8080610f8290612f63565b915050610f66565b505050565b610fa0610f9a6112ee565b836113bd565b610fdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd690612cf1565b60405180910390fd5b610feb84848484611bca565b50505050565b6000600a54905090565b6060611006826112a3565b6000611010611c26565b90506000815111611030576040518060200160405280600081525061105b565b8061103a84611cb8565b60405160200161104b929190612fe8565b6040516020818303038152906040525b915050919050565b61106b6116b9565b80600b8190555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6111116116b9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611181576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111789061307e565b60405180910390fd5b61118a816118b7565b50565b6111956116b9565b478111156111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf906130ea565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561121e573d6000803e3d6000fd5b505050565b6001816000016000828254019250508190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6112ac81611e19565b6112eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e290612d5d565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661136983610b65565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b6000806113c983610b65565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061140b575061140a8185611075565b5b8061144957508373ffffffffffffffffffffffffffffffffffffffff16611431846108a1565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661147282610b65565b73ffffffffffffffffffffffffffffffffffffffff16146114c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bf9061317c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152f9061320e565b60405180910390fd5b611543838383611e85565b61154e6000826112f6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461159e9190612c4b565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115f59190612e0f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46116b4838383611e9d565b505050565b6116c16112ee565b73ffffffffffffffffffffffffffffffffffffffff166116df610d11565b73ffffffffffffffffffffffffffffffffffffffff1614611735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172c9061327a565b60405180910390fd5b565b61173f611ea2565b6000600660006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6117836112ee565b6040516117909190612618565b60405180910390a1565b60006117a582610b65565b90506117b381600084611e85565b6117be6000836112f6565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461180e9190612c4b565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118b381600084611e9d565b5050565b6000600660019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611985611eeb565b6001600660006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586119c96112ee565b6040516119d69190612618565b60405180910390a1565b60006119ec60076113af565b90506119f86007611223565b611a028282611f35565b6001600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a529190612e0f565b925050819055505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac3906132e6565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611bbd919061249e565b60405180910390a3505050565b611bd5848484611452565b611be184848484611f53565b611c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1790613378565b60405180910390fd5b50505050565b606060088054611c3590612ac6565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6190612ac6565b8015611cae5780601f10611c8357610100808354040283529160200191611cae565b820191906000526020600020905b815481529060010190602001808311611c9157829003601f168201915b5050505050905090565b60606000821415611d00576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611e14565b600082905060005b60008214611d32578080611d1b90612f63565b915050600a82611d2b91906133c7565b9150611d08565b60008167ffffffffffffffff811115611d4e57611d4d612753565b5b6040519080825280601f01601f191660200182016040528015611d805781602001600182028036833780820191505090505b5090505b60008514611e0d57600182611d999190612c4b565b9150600a85611da891906133f8565b6030611db49190612e0f565b60f81b818381518110611dca57611dc9613429565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611e0691906133c7565b9450611d84565b8093505050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b611e8d611eeb565b611e988383836120ea565b505050565b505050565b611eaa610b4e565b611ee9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee0906134a4565b60405180910390fd5b565b611ef3610b4e565b15611f33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2a90613510565b60405180910390fd5b565b611f4f8282604051806020016040528060008152506120ef565b5050565b6000611f748473ffffffffffffffffffffffffffffffffffffffff1661214a565b156120dd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611f9d6112ee565b8786866040518563ffffffff1660e01b8152600401611fbf9493929190613585565b602060405180830381600087803b158015611fd957600080fd5b505af192505050801561200a57506040513d601f19601f8201168201806040525081019061200791906135e6565b60015b61208d573d806000811461203a576040519150601f19603f3d011682016040523d82523d6000602084013e61203f565b606091505b50600081511415612085576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207c90613378565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506120e2565b600190505b949350505050565b505050565b6120f9838361216d565b6121066000848484611f53565b612145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213c90613378565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d49061365f565b60405180910390fd5b6121e681611e19565b15612226576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221d906136cb565b60405180910390fd5b61223260008383611e85565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122829190612e0f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461234360008383611e9d565b5050565b82805461235390612ac6565b90600052602060002090601f01602090048101928261237557600085556123bc565b82601f1061238e57805160ff19168380011785556123bc565b828001600101855582156123bc579182015b828111156123bb5782518255916020019190600101906123a0565b5b5090506123c991906123cd565b5090565b5b808211156123e65760008160009055506001016123ce565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612433816123fe565b811461243e57600080fd5b50565b6000813590506124508161242a565b92915050565b60006020828403121561246c5761246b6123f4565b5b600061247a84828501612441565b91505092915050565b60008115159050919050565b61249881612483565b82525050565b60006020820190506124b3600083018461248f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156124f35780820151818401526020810190506124d8565b83811115612502576000848401525b50505050565b6000601f19601f8301169050919050565b6000612524826124b9565b61252e81856124c4565b935061253e8185602086016124d5565b61254781612508565b840191505092915050565b6000602082019050818103600083015261256c8184612519565b905092915050565b6000819050919050565b61258781612574565b811461259257600080fd5b50565b6000813590506125a48161257e565b92915050565b6000602082840312156125c0576125bf6123f4565b5b60006125ce84828501612595565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612602826125d7565b9050919050565b612612816125f7565b82525050565b600060208201905061262d6000830184612609565b92915050565b61263c816125f7565b811461264757600080fd5b50565b60008135905061265981612633565b92915050565b60008060408385031215612676576126756123f4565b5b60006126848582860161264a565b925050602061269585828601612595565b9150509250929050565b6126a881612574565b82525050565b60006020820190506126c3600083018461269f565b92915050565b6000806000606084860312156126e2576126e16123f4565b5b60006126f08682870161264a565b93505060206127018682870161264a565b925050604061271286828701612595565b9150509250925092565b600060208284031215612732576127316123f4565b5b60006127408482850161264a565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61278b82612508565b810181811067ffffffffffffffff821117156127aa576127a9612753565b5b80604052505050565b60006127bd6123ea565b90506127c98282612782565b919050565b600067ffffffffffffffff8211156127e9576127e8612753565b5b6127f282612508565b9050602081019050919050565b82818337600083830152505050565b600061282161281c846127ce565b6127b3565b90508281526020810184848401111561283d5761283c61274e565b5b6128488482856127ff565b509392505050565b600082601f83011261286557612864612749565b5b813561287584826020860161280e565b91505092915050565b600060208284031215612894576128936123f4565b5b600082013567ffffffffffffffff8111156128b2576128b16123f9565b5b6128be84828501612850565b91505092915050565b6128d081612483565b81146128db57600080fd5b50565b6000813590506128ed816128c7565b92915050565b6000806040838503121561290a576129096123f4565b5b60006129188582860161264a565b9250506020612929858286016128de565b9150509250929050565b600067ffffffffffffffff82111561294e5761294d612753565b5b61295782612508565b9050602081019050919050565b600061297761297284612933565b6127b3565b9050828152602081018484840111156129935761299261274e565b5b61299e8482856127ff565b509392505050565b600082601f8301126129bb576129ba612749565b5b81356129cb848260208601612964565b91505092915050565b600080600080608085870312156129ee576129ed6123f4565b5b60006129fc8782880161264a565b9450506020612a0d8782880161264a565b9350506040612a1e87828801612595565b925050606085013567ffffffffffffffff811115612a3f57612a3e6123f9565b5b612a4b878288016129a6565b91505092959194509250565b60008060408385031215612a6e57612a6d6123f4565b5b6000612a7c8582860161264a565b9250506020612a8d8582860161264a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612ade57607f821691505b60208210811415612af257612af1612a97565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612b546021836124c4565b9150612b5f82612af8565b604082019050919050565b60006020820190508181036000830152612b8381612b47565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000612be6603e836124c4565b9150612bf182612b8a565b604082019050919050565b60006020820190508181036000830152612c1581612bd9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612c5682612574565b9150612c6183612574565b925082821015612c7457612c73612c1c565b5b828203905092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000612cdb602e836124c4565b9150612ce682612c7f565b604082019050919050565b60006020820190508181036000830152612d0a81612cce565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000612d476018836124c4565b9150612d5282612d11565b602082019050919050565b60006020820190508181036000830152612d7681612d3a565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000612dd96029836124c4565b9150612de482612d7d565b604082019050919050565b60006020820190508181036000830152612e0881612dcc565b9050919050565b6000612e1a82612574565b9150612e2583612574565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612e5a57612e59612c1c565b5b828201905092915050565b7f4e6f7420656e6f756768204e465473206c65667420746f206d696e7400000000600082015250565b6000612e9b601c836124c4565b9150612ea682612e65565b602082019050919050565b60006020820190508181036000830152612eca81612e8e565b9050919050565b7f5468697320616464726573732063616e6e6f74206d696e74206d6f7265204e4660008201527f5473000000000000000000000000000000000000000000000000000000000000602082015250565b6000612f2d6022836124c4565b9150612f3882612ed1565b604082019050919050565b60006020820190508181036000830152612f5c81612f20565b9050919050565b6000612f6e82612574565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612fa157612fa0612c1c565b5b600182019050919050565b600081905092915050565b6000612fc2826124b9565b612fcc8185612fac565b9350612fdc8185602086016124d5565b80840191505092915050565b6000612ff48285612fb7565b91506130008284612fb7565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006130686026836124c4565b91506130738261300c565b604082019050919050565b600060208201905081810360008301526130978161305b565b9050919050565b7f496e636f727265637420616d6f756e7400000000000000000000000000000000600082015250565b60006130d46010836124c4565b91506130df8261309e565b602082019050919050565b60006020820190508181036000830152613103816130c7565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006131666025836124c4565b91506131718261310a565b604082019050919050565b6000602082019050818103600083015261319581613159565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006131f86024836124c4565b91506132038261319c565b604082019050919050565b60006020820190508181036000830152613227816131eb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006132646020836124c4565b915061326f8261322e565b602082019050919050565b6000602082019050818103600083015261329381613257565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006132d06019836124c4565b91506132db8261329a565b602082019050919050565b600060208201905081810360008301526132ff816132c3565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006133626032836124c4565b915061336d82613306565b604082019050919050565b6000602082019050818103600083015261339181613355565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006133d282612574565b91506133dd83612574565b9250826133ed576133ec613398565b5b828204905092915050565b600061340382612574565b915061340e83612574565b92508261341e5761341d613398565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061348e6014836124c4565b915061349982613458565b602082019050919050565b600060208201905081810360008301526134bd81613481565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006134fa6010836124c4565b9150613505826134c4565b602082019050919050565b60006020820190508181036000830152613529816134ed565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061355782613530565b613561818561353b565b93506135718185602086016124d5565b61357a81612508565b840191505092915050565b600060808201905061359a6000830187612609565b6135a76020830186612609565b6135b4604083018561269f565b81810360608301526135c6818461354c565b905095945050505050565b6000815190506135e08161242a565b92915050565b6000602082840312156135fc576135fb6123f4565b5b600061360a848285016135d1565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006136496020836124c4565b915061365482613613565b602082019050919050565b600060208201905081810360008301526136788161363c565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006136b5601c836124c4565b91506136c08261367f565b602082019050919050565b600060208201905081810360008301526136e4816136a8565b905091905056fea2646970667358221220c841efcedc06dd4af93d7900a24a025cc2ebd61055a3d5a316a7ca6a40043a4c64736f6c63430008090033
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.