ERC-721
NFT
Overview
Max Total Supply
8,888 WANDERNAUT
Holders
3,233
Market
Volume (24H)
0.0258 ETH
Min Price (24H)
$20.84 @ 0.007800 ETH
Max Price (24H)
$48.09 @ 0.018000 ETH
Other Info
Token Contract
Balance
4 WANDERNAUTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Wandernaut
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721MultiMetadata.sol"; contract Wandernaut is ERC721, ERC721Enumerable, ERC721Royalty, Ownable, ERC721MultiMetadata, Pausable, ReentrancyGuard { /// A "block" of tokens that can be individually controlled. /// Note: You will explode if Groups have overlapping ranges! struct Group { /// Price for pre-sale (in ether) uint256 presalePrice; /// Price for public (in ether) uint256 publicPrice; /// Beginning token ID. The first token minted in this group will have this ID. uint256 counter; /// End token ID. The last token minted in this group will have this ID. uint256 end; /// Merkle root for sub-tickets. bytes32 root; /// State of the group GroupState groupState; } /// State of the group. /// Closed: only available for admins to mint. /// MerklePresale: allows addresses in merkle tree to purchase. /// Public: anyone can purchase. enum GroupState { Closed, MerklePresale, Public } /// Mapping of 32-byte identifiers to groups. mapping(bytes32 => Group) public groups; /// A ticket for a pre-sale mint. Each ticket is good for ONE mint only. struct Ticket { /// A unique number to identify the ticket. uint256 ticketId; /// Merkle proof the ticket exists. bytes32[] proof; } /// Event when a ticket has been consumed /// @param consumer the address which used the ticket /// @param ticketId the ID of the ticket event ConsumeTicket(address consumer, uint256 ticketId); /// Mapping of ticket IDs to whether they have been used. mapping(uint256 => bool) public ticketUsed; /// Address to send payment to address payable public payoutAddress; constructor( string memory zeroURI, address payable _payoutAddress, uint96 feeNumerator ) ERC721("Wandernaut", "WANDERNAUT") ERC721MultiMetadata(zeroURI) { payoutAddress = _payoutAddress; _setDefaultRoyalty(msg.sender, feeNumerator); _pause(); } /// Unpause the contract. function pause() public onlyOwner { _pause(); } /// Pause the contract. function unpause() public onlyOwner { _unpause(); } /// Set the payout address. /// @param _payoutAddress the new payout address function setPayoutAddress(address payable _payoutAddress) external onlyOwner { payoutAddress = _payoutAddress; } function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } /// Claim the balance of the contract. function claimBalance() external onlyOwner { // solhint-disable-next-line avoid-low-level-calls (bool success, ) = payoutAddress.call{value: address(this).balance}(""); require(success, "Transfer failed"); } /// Set up a group. /// @param groupIdentifier unique 32-byte identifier for the group /// @param group data for the group function setGroup(bytes32 groupIdentifier, Group calldata group) external onlyOwner { groups[groupIdentifier] = group; } /// Set the group state. /// @param groupIdentifier unique 32-byte identifier for the group /// @param groupState new group state function setGroupState(bytes32 groupIdentifier, GroupState groupState) external onlyOwner { groups[groupIdentifier].groupState = groupState; } /// Admin mint a token. /// @param to the address to send the token to /// @param tokenId the token ID to mint. function adminMint(address to, uint256 tokenId) external onlyOwner { _safeMint(to, tokenId); } /// Pre-sale mint a token. /// @param to address to send tokens to /// @param groupIdentifier 32-byte identifier for which group to mint in /// @param tickets array of tickets to use function presaleMint( address to, bytes32 groupIdentifier, Ticket[] calldata tickets ) external payable whenNotPaused nonReentrant { Group storage group = groups[groupIdentifier]; // Ensure the group is in pre-sale require( group.groupState == GroupState.MerklePresale, "Incorrect group state" ); // Ensure enough funds were sent require( msg.value >= tickets.length * group.presalePrice, "Insufficient funds sent" ); // Ensure tokens will not overflow require( group.counter + tickets.length <= group.end + 1, "Exceeds no. in group" ); // Ensure all tickets are not used for (uint256 i = 0; i < tickets.length; i++) { require(!ticketUsed[tickets[i].ticketId], "Ticket already used"); } // Set all tickets to be used for (uint256 i = 0; i < tickets.length; i++) { _markTicket(tickets[i]); emit ConsumeTicket(to, tickets[i].ticketId); } // Increment the counter ONCE, instead of doing it in _mintTicket() uint256 id = group.counter; bytes32 root = group.root; group.counter += tickets.length; // Mint using each ticket for (uint256 i = 0; i < tickets.length; i++) { _mintTicket(to, root, id, tickets[i]); id++; } assert(group.counter == id); } /// Mark a ticket as used /// @param ticket the ticket to mark function _markTicket(Ticket calldata ticket) internal { ticketUsed[ticket.ticketId] = true; } /// Mint a token using a ticket. /// @param to address to send tokens to /// @param root 32-byte root to check against /// @param id the token id to mint /// @param ticket the ticket to use function _mintTicket( address to, bytes32 root, uint256 id, Ticket calldata ticket ) internal { bytes32 leaf = _leaf(ticket.ticketId, to); require(_verify(root, leaf, ticket.proof), "Invalid merkle proof"); _safeMint(to, id); } /// Reconstruct leaf hash of a mint. function _leaf(uint256 ticketId, address account) internal pure returns (bytes32) { return keccak256(abi.encodePacked(ticketId, account)); } /// Verify a merkle proof. function _verify( bytes32 root, bytes32 leaf, bytes32[] calldata proof ) internal pure returns (bool) { return MerkleProof.verify(proof, root, leaf); } /// Public mint a token. /// @param to address to send tokens to /// @param groupIdentifier 32-byte identifier for which group to mint in /// @param amount number of tokens to mint function publicMint( address to, bytes32 groupIdentifier, uint256 amount ) external payable whenNotPaused nonReentrant { Group storage group = groups[groupIdentifier]; // Ensure the group is in public require(group.groupState == GroupState.Public, "Incorrect group state"); // Ensure enough funds were sent uint256 totalCost = amount * group.publicPrice; require(msg.value >= totalCost, "Insufficient funds sent"); // Ensure tokens will not overflow require( group.counter + amount <= group.end + 1, "Exceeds no. in group" ); uint256 id = group.counter; group.counter += amount; for (uint256 i = 0; i < amount; i++) { _safeMint(to, id); id++; } } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721MultiMetadata) returns (string memory) { return ERC721MultiMetadata.tokenURI(tokenId); } // The following functions are overrides required by Solidity. function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, ERC721Royalty) returns (bool) { return super.supportsInterface(interfaceId); } function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721Royalty) { super._burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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: balance query for the zero address"); 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: owner query for nonexistent token"); 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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); 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 overriden 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 owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); 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: transfer caller is not 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: transfer caller is not 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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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 a {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 a {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 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 { 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 (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 (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../common/ERC2981.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { 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 v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /// Multi-Metadata ERC-721 token. /// Inside the contract, there are "states". Each "state" has an associated base URI. /// The owner of a token is free to update which "state" their tokens have, meaning that they can update their NFTs to whichever abstract contract ERC721MultiMetadata is ERC721, Ownable { using Strings for uint256; // Mapping of state to base URI strings. mapping(uint256 => string) public stateURI; // Mapping of token IDs to their selected state. mapping(uint256 => uint256) public tokenMetadataState; // solhint-disable-next-line no-empty-blocks constructor(string memory zeroURI) { stateURI[0] = zeroURI; } /// Get the base URI of a token. function _baseURI(uint256 tokenId) internal view returns (string memory) { uint256 state = tokenMetadataState[tokenId]; return stateURI[state]; } /// Set the base URI for a state. function setBaseURIForState(uint256 state, string calldata uri) external onlyOwner { stateURI[state] = uri; } /// Set the state for a token. function setTokenState(uint256 token, uint256 state) external { require(msg.sender == ownerOf(token), "Not owner of token"); require(bytes(stateURI[state]).length != 0, "State not defined"); tokenMetadataState[token] = state; } function tokenURI(uint256 tokenId) public view virtual override(ERC721) returns (string memory) { // solhint-disable-next-line reason-string require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); return bytes(_baseURI(tokenId)).length > 0 ? string( abi.encodePacked(_baseURI(tokenId), "/", tokenId.toString()) ) : ""; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// 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; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"zeroURI","type":"string"},{"internalType":"address payable","name":"_payoutAddress","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"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":false,"internalType":"address","name":"consumer","type":"address"},{"indexed":false,"internalType":"uint256","name":"ticketId","type":"uint256"}],"name":"ConsumeTicket","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":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"groups","outputs":[{"internalType":"uint256","name":"presalePrice","type":"uint256"},{"internalType":"uint256","name":"publicPrice","type":"uint256"},{"internalType":"uint256","name":"counter","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"enum Wandernaut.GroupState","name":"groupState","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"payoutAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes32","name":"groupIdentifier","type":"bytes32"},{"components":[{"internalType":"uint256","name":"ticketId","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"internalType":"struct Wandernaut.Ticket[]","name":"tickets","type":"tuple[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes32","name":"groupIdentifier","type":"bytes32"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"state","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURIForState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"groupIdentifier","type":"bytes32"},{"components":[{"internalType":"uint256","name":"presalePrice","type":"uint256"},{"internalType":"uint256","name":"publicPrice","type":"uint256"},{"internalType":"uint256","name":"counter","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"enum Wandernaut.GroupState","name":"groupState","type":"uint8"}],"internalType":"struct Wandernaut.Group","name":"group","type":"tuple"}],"name":"setGroup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"groupIdentifier","type":"bytes32"},{"internalType":"enum Wandernaut.GroupState","name":"groupState","type":"uint8"}],"name":"setGroupState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_payoutAddress","type":"address"}],"name":"setPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"state","type":"uint256"}],"name":"setTokenState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stateURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"","type":"uint256"}],"name":"ticketUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMetadataState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162003bef38038062003bef833981016040819052620000349162000436565b826040518060400160405280600a81526020016915d85b99195c9b985d5d60b21b8152506040518060400160405280600a81526020016915d0539111549390555560b21b81525081600290805190602001906200009392919062000345565b508051620000a990600390602084019062000345565b505050620000c6620000c06200014f60201b60201c565b62000153565b60008052600d6020908152815162000104917f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee919084019062000345565b5050600f805460ff191690556001601055601380546001600160a01b0319166001600160a01b0384161790556200013c3382620001a5565b62000146620002aa565b50505062000576565b3390565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620002195760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002715760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000210565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b600f5460ff1615620002f25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000210565b600f805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003283390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620003539062000539565b90600052602060002090601f016020900481019282620003775760008555620003c2565b82601f106200039257805160ff1916838001178555620003c2565b82800160010185558215620003c2579182015b82811115620003c2578251825591602001919060010190620003a5565b50620003d0929150620003d4565b5090565b5b80821115620003d05760008155600101620003d5565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200041957600080fd5b919050565b80516001600160601b03811681146200041957600080fd5b6000806000606084860312156200044c57600080fd5b83516001600160401b03808211156200046457600080fd5b818601915086601f8301126200047957600080fd5b8151818111156200048e576200048e620003eb565b604051601f8201601f19908116603f01168101908382118183101715620004b957620004b9620003eb565b81604052828152602093508984848701011115620004d657600080fd5b600091505b82821015620004fa5784820184015181830185015290830190620004db565b828211156200050c5760008484830101525b96506200051e91505086820162000401565b9350505062000530604085016200041e565b90509250925092565b600181811c908216806200054e57607f821691505b602082108114156200057057634e487b7160e01b600052602260045260246000fd5b50919050565b61366980620005866000396000f3fe6080604052600436106102855760003560e01c80636268933911610153578063a306d050116100cb578063e60f982c1161007f578063e99c44ba11610064578063e99c44ba14610735578063ef161bcb14610748578063f2fde38b146107ad57600080fd5b8063e60f982c146106cc578063e985e9c5146106ec57600080fd5b8063b8b0765e116100b0578063b8b0765e1461066c578063c87b56dd1461068c578063e58306f9146106ac57600080fd5b8063a306d05014610639578063b88d4fde1461064c57600080fd5b8063715018a6116101225780638da5cb5b116101075780638da5cb5b146105e657806395d89b4114610604578063a22cb4651461061957600080fd5b8063715018a6146105bc5780638456cb59146105d157600080fd5b8063626893391461052c5780636352211e1461054c578063642b5f9b1461056c57806370a082311461059c57600080fd5b806325e08472116102015780633f4ba83a116101b55780634f6ccce71161019a5780634f6ccce7146104d45780635b8d02d7146104f45780635c975abb1461051457600080fd5b80633f4ba83a1461049f57806342842e0e146104b457600080fd5b80632f745c59116101e65780632f745c591461044a57806330509bca1461046a57806333ea51a81461047f57600080fd5b806325e08472146103eb5780632a55205a1461040b57600080fd5b8063095ea7b31161025857806315acb2591161023d57806315acb2591461039657806318160ddd146103b657806323b872dd146103cb57600080fd5b8063095ea7b31461033b57806313cc5fcc1461035b57600080fd5b806301ffc9a71461028a57806304634d8d146102bf57806306fdde03146102e1578063081812fc14610303575b600080fd5b34801561029657600080fd5b506102aa6102a5366004612e34565b6107cd565b60405190151581526020015b60405180910390f35b3480156102cb57600080fd5b506102df6102da366004612e6d565b6107de565b005b3480156102ed57600080fd5b506102f6610839565b6040516102b69190612f0f565b34801561030f57600080fd5b5061032361031e366004612f22565b6108cb565b6040516001600160a01b0390911681526020016102b6565b34801561034757600080fd5b506102df610356366004612f3b565b610960565b34801561036757600080fd5b50610388610376366004612f22565b600e6020526000908152604090205481565b6040519081526020016102b6565b3480156103a257600080fd5b506102f66103b1366004612f22565b610a92565b3480156103c257600080fd5b50600a54610388565b3480156103d757600080fd5b506102df6103e6366004612f67565b610b2c565b3480156103f757600080fd5b506102df610406366004612fa8565b610bb3565b34801561041757600080fd5b5061042b610426366004612fe0565b610c1b565b604080516001600160a01b0390931683526020830191909152016102b6565b34801561045657600080fd5b50610388610465366004612f3b565b610cd8565b34801561047657600080fd5b506102df610d80565b34801561048b57600080fd5b506102df61049a366004613002565b610e6e565b3480156104ab57600080fd5b506102df610ed8565b3480156104c057600080fd5b506102df6104cf366004612f67565b610f2a565b3480156104e057600080fd5b506103886104ef366004612f22565b610f45565b34801561050057600080fd5b50601354610323906001600160a01b031681565b34801561052057600080fd5b50600f5460ff166102aa565b34801561053857600080fd5b506102df61054736600461302c565b610fe9565b34801561055857600080fd5b50610323610567366004612f22565b611068565b34801561057857600080fd5b506102aa610587366004612f22565b60126020526000908152604090205460ff1681565b3480156105a857600080fd5b506103886105b7366004613002565b6110f3565b3480156105c857600080fd5b506102df61118d565b3480156105dd57600080fd5b506102df6111df565b3480156105f257600080fd5b50600c546001600160a01b0316610323565b34801561061057600080fd5b506102f661122f565b34801561062557600080fd5b506102df610634366004613051565b61123e565b6102df610647366004613084565b611249565b34801561065857600080fd5b506102df610667366004613126565b611633565b34801561067857600080fd5b506102df610687366004613206565b6116bb565b34801561069857600080fd5b506102f66106a7366004612f22565b61171c565b3480156106b857600080fd5b506102df6106c7366004612f3b565b611727565b3480156106d857600080fd5b506102df6106e7366004612fe0565b611779565b3480156106f857600080fd5b506102aa610707366004613282565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102df6107433660046132b0565b61185d565b34801561075457600080fd5b5061079b610763366004612f22565b601160205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909160ff1686565b6040516102b6969594939291906132fb565b3480156107b957600080fd5b506102df6107c8366004613002565b611a94565b60006107d882611b61565b92915050565b600c546001600160a01b0316331461082b5760405162461bcd60e51b8152602060048201819052602482015260008051602061361483398151915260448201526064015b60405180910390fd5b6108358282611b6c565b5050565b6060600280546108489061334d565b80601f01602080910402602001604051908101604052809291908181526020018280546108749061334d565b80156108c15780601f10610896576101008083540402835291602001916108c1565b820191906000526020600020905b8154815290600101906020018083116108a457829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166109445760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610822565b506000908152600660205260409020546001600160a01b031690565b600061096b82611068565b9050806001600160a01b0316836001600160a01b031614156109f55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610822565b336001600160a01b0382161480610a115750610a118133610707565b610a835760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610822565b610a8d8383611c86565b505050565b600d6020526000908152604090208054610aab9061334d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad79061334d565b8015610b245780601f10610af957610100808354040283529160200191610b24565b820191906000526020600020905b815481529060010190602001808311610b0757829003601f168201915b505050505081565b610b363382611cf4565b610ba85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610822565b610a8d838383611deb565b600c546001600160a01b03163314610bfb5760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b60008281526011602052604090208190610c158282613388565b50505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610c9a5750604080518082019091526000546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610cbe906bffffffffffffffffffffffff168761340f565b610cc89190613444565b91519350909150505b9250929050565b6000610ce3836110f3565b8210610d575760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610822565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b600c546001600160a01b03163314610dc85760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b6013546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610e15576040519150601f19603f3d011682016040523d82523d6000602084013e610e1a565b606091505b5050905080610e6b5760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610822565b50565b600c546001600160a01b03163314610eb65760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b03163314610f205760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b610f28611fc3565b565b610a8d83838360405180602001604052806000815250611633565b6000610f50600a5490565b8210610fc45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610822565b600a8281548110610fd757610fd7613458565b90600052602060002001549050919050565b600c546001600160a01b031633146110315760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b6000828152601160205260409020600501805482919060ff1916600183600281111561105f5761105f6132e5565b02179055505050565b6000818152600460205260408120546001600160a01b0316806107d85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610822565b60006001600160a01b0382166111715760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610822565b506001600160a01b031660009081526005602052604090205490565b600c546001600160a01b031633146111d55760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b610f28600061205f565b600c546001600160a01b031633146112275760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b610f286120b1565b6060600380546108489061334d565b61083533838361212c565b600f5460ff161561128f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610822565b600260105414156112e25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610822565b600260105560008381526011602052604090206001600582015460ff166002811115611310576113106132e5565b1461135d5760405162461bcd60e51b815260206004820152601560248201527f496e636f72726563742067726f757020737461746500000000000000000000006044820152606401610822565b8054611369908361340f565b3410156113b85760405162461bcd60e51b815260206004820152601760248201527f496e73756666696369656e742066756e64732073656e740000000000000000006044820152606401610822565b60038101546113c890600161346e565b60028201546113d890849061346e565b11156114265760405162461bcd60e51b815260206004820152601460248201527f45786365656473206e6f2e20696e2067726f75700000000000000000000000006044820152606401610822565b60005b828110156114cd576012600085858481811061144757611447613458565b90506020028101906114599190613486565b35815260208101919091526040016000205460ff16156114bb5760405162461bcd60e51b815260206004820152601360248201527f5469636b657420616c72656164792075736564000000000000000000000000006044820152606401610822565b806114c5816134a6565b915050611429565b5060005b828110156115955761151c8484838181106114ee576114ee613458565b90506020028101906115009190613486565b356000908152601260205260409020805460ff19166001179055565b7fa4b52b5ea791f41e528130fa3a54b5658f7df21ab674b6b714417881b07100248685858481811061155057611550613458565b90506020028101906115629190613486565b604080516001600160a01b039093168352903560208301520160405180910390a18061158d816134a6565b9150506114d1565b5060028101805460048301549091849060006115b1838661346e565b90915550600090505b84811015611611576115f18883858989868181106115da576115da613458565b90506020028101906115ec9190613486565b6121fb565b826115fb816134a6565b9350508080611609906134a6565b9150506115ba565b5081836002015414611625576116256134c1565b505060016010555050505050565b61163d3383611cf4565b6116af5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610822565b610c158484848461227e565b600c546001600160a01b031633146117035760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b6000838152600d60205260409020610c15908383612d85565b60606107d8826122fc565b600c546001600160a01b0316331461176f5760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b61083582826123e7565b61178282611068565b6001600160a01b0316336001600160a01b0316146117e25760405162461bcd60e51b815260206004820152601260248201527f4e6f74206f776e6572206f6620746f6b656e00000000000000000000000000006044820152606401610822565b6000818152600d6020526040902080546117fb9061334d565b1515905061184b5760405162461bcd60e51b815260206004820152601160248201527f5374617465206e6f7420646566696e65640000000000000000000000000000006044820152606401610822565b6000918252600e602052604090912055565b600f5460ff16156118a35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610822565b600260105414156118f65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610822565b60026010819055600083815260116020526040902090600582015460ff166002811115611925576119256132e5565b146119725760405162461bcd60e51b815260206004820152601560248201527f496e636f72726563742067726f757020737461746500000000000000000000006044820152606401610822565b6000816001015483611984919061340f565b9050803410156119d65760405162461bcd60e51b815260206004820152601760248201527f496e73756666696369656e742066756e64732073656e740000000000000000006044820152606401610822565b60038201546119e690600161346e565b8383600201546119f6919061346e565b1115611a445760405162461bcd60e51b815260206004820152601460248201527f45786365656473206e6f2e20696e2067726f75700000000000000000000000006044820152606401610822565b6002820180549084906000611a59838561346e565b90915550600090505b8481101561162557611a7487836123e7565b81611a7e816134a6565b9250508080611a8c906134a6565b915050611a62565b600c546001600160a01b03163314611adc5760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b6001600160a01b038116611b585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610822565b610e6b8161205f565b60006107d882612401565b6127106bffffffffffffffffffffffff82161115611bf25760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610822565b6001600160a01b038216611c485760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610822565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600055565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611cbb82611068565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b0316611d6d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610822565b6000611d7883611068565b9050806001600160a01b0316846001600160a01b03161480611db35750836001600160a01b0316611da8846108cb565b6001600160a01b0316145b80611de357506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611dfe82611068565b6001600160a01b031614611e7a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610822565b6001600160a01b038216611ef55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610822565b611f0083838361243f565b611f0b600082611c86565b6001600160a01b0383166000908152600560205260408120805460019290611f349084906134d7565b90915550506001600160a01b0382166000908152600560205260408120805460019290611f6290849061346e565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600f5460ff166120155760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610822565b600f805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600f5460ff16156120f75760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610822565b600f805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120423390565b816001600160a01b0316836001600160a01b0316141561218e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610822565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600061220882358661244a565b9050612221848261221c60208601866134ee565b612498565b61226d5760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206d65726b6c652070726f6f660000000000000000000000006044820152606401610822565b61227785846123e7565b5050505050565b612289848484611deb565b612295848484846124e3565b610c155760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610822565b6000818152600460205260409020546060906001600160a01b03166123895760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610822565b600061239483612629565b51116123af57604051806020016040528060008152506107d8565b6123b882612629565b6123c1836126dc565b6040516020016123d2929190613538565b60405160208183030381529060405292915050565b61083582826040518060200160405280600081525061280e565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806107d857506107d88261288c565b610a8d8383836128fe565b6000828260405160200161247a92919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b60405160208183030381529060405280519060200120905092915050565b60006124da8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508992508891506129b69050565b95945050505050565b60006001600160a01b0384163b1561262157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612527903390899088908890600401613590565b6020604051808303816000875af1925050508015612562575060408051601f3d908101601f1916820190925261255f918101906135cc565b60015b612607573d808015612590576040519150601f19603f3d011682016040523d82523d6000602084013e612595565b606091505b5080516125ff5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610822565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611de3565b506001611de3565b6000818152600e6020908152604080832054808452600d909252909120805460609291906126569061334d565b80601f01602080910402602001604051908101604052809291908181526020018280546126829061334d565b80156126cf5780601f106126a4576101008083540402835291602001916126cf565b820191906000526020600020905b8154815290600101906020018083116126b257829003601f168201915b5050505050915050919050565b60608161271c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127465780612730816134a6565b915061273f9050600a83613444565b9150612720565b60008167ffffffffffffffff81111561276157612761613110565b6040519080825280601f01601f19166020018201604052801561278b576020820181803683370190505b5090505b8415611de3576127a06001836134d7565b91506127ad600a866135e9565b6127b890603061346e565b60f81b8183815181106127cd576127cd613458565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612807600a86613444565b945061278f565b61281883836129cc565b61282560008484846124e3565b610a8d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610822565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806128ef57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107d857506107d882612b1a565b6001600160a01b0383166129595761295481600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b61297c565b816001600160a01b0316836001600160a01b03161461297c5761297c8382612b81565b6001600160a01b03821661299357610a8d81612c1e565b826001600160a01b0316826001600160a01b031614610a8d57610a8d8282612ccd565b6000826129c38584612d11565b14949350505050565b6001600160a01b038216612a225760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610822565b6000818152600460205260409020546001600160a01b031615612a875760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610822565b612a936000838361243f565b6001600160a01b0382166000908152600560205260408120805460019290612abc90849061346e565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806107d857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146107d8565b60006001612b8e846110f3565b612b9891906134d7565b600083815260096020526040902054909150808214612beb576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090612c30906001906134d7565b6000838152600b6020526040812054600a8054939450909284908110612c5857612c58613458565b9060005260206000200154905080600a8381548110612c7957612c79613458565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480612cb157612cb16135fd565b6001900381819060005260206000200160009055905550505050565b6000612cd8836110f3565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b600081815b8451811015612d7d576000858281518110612d3357612d33613458565b60200260200101519050808311612d595760008381526020829052604090209250612d6a565b600081815260208490526040902092505b5080612d75816134a6565b915050612d16565b509392505050565b828054612d919061334d565b90600052602060002090601f016020900481019282612db35760008555612df9565b82601f10612dcc5782800160ff19823516178555612df9565b82800160010185558215612df9579182015b82811115612df9578235825591602001919060010190612dde565b50612e05929150612e09565b5090565b5b80821115612e055760008155600101612e0a565b6001600160e01b031981168114610e6b57600080fd5b600060208284031215612e4657600080fd5b8135612e5181612e1e565b9392505050565b6001600160a01b0381168114610e6b57600080fd5b60008060408385031215612e8057600080fd5b8235612e8b81612e58565b915060208301356bffffffffffffffffffffffff81168114612eac57600080fd5b809150509250929050565b60005b83811015612ed2578181015183820152602001612eba565b83811115610c155750506000910152565b60008151808452612efb816020860160208601612eb7565b601f01601f19169290920160200192915050565b602081526000612e516020830184612ee3565b600060208284031215612f3457600080fd5b5035919050565b60008060408385031215612f4e57600080fd5b8235612f5981612e58565b946020939093013593505050565b600080600060608486031215612f7c57600080fd5b8335612f8781612e58565b92506020840135612f9781612e58565b929592945050506040919091013590565b60008082840360e0811215612fbc57600080fd5b8335925060c0601f1982011215612fd257600080fd5b506020830190509250929050565b60008060408385031215612ff357600080fd5b50508035926020909101359150565b60006020828403121561301457600080fd5b8135612e5181612e58565b60038110610e6b57600080fd5b6000806040838503121561303f57600080fd5b823591506020830135612eac8161301f565b6000806040838503121561306457600080fd5b823561306f81612e58565b915060208301358015158114612eac57600080fd5b6000806000806060858703121561309a57600080fd5b84356130a581612e58565b935060208501359250604085013567ffffffffffffffff808211156130c957600080fd5b818701915087601f8301126130dd57600080fd5b8135818111156130ec57600080fd5b8860208260051b850101111561310157600080fd5b95989497505060200194505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561313c57600080fd5b843561314781612e58565b9350602085013561315781612e58565b925060408501359150606085013567ffffffffffffffff8082111561317b57600080fd5b818701915087601f83011261318f57600080fd5b8135818111156131a1576131a1613110565b604051601f8201601f19908116603f011681019083821181831017156131c9576131c9613110565b816040528281528a60208487010111156131e257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561321b57600080fd5b83359250602084013567ffffffffffffffff8082111561323a57600080fd5b818601915086601f83011261324e57600080fd5b81358181111561325d57600080fd5b87602082850101111561326f57600080fd5b6020830194508093505050509250925092565b6000806040838503121561329557600080fd5b82356132a081612e58565b91506020830135612eac81612e58565b6000806000606084860312156132c557600080fd5b83356132d081612e58565b95602085013595506040909401359392505050565b634e487b7160e01b600052602160045260246000fd5b600060c0820190508782528660208301528560408301528460608301528360808301526003831061333c57634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b600181811c9082168061336157607f821691505b6020821081141561338257634e487b7160e01b600052602260045260246000fd5b50919050565b81358155602082013560018201556040820135600282015560608201356003820155608082013560048201556005810160a08301356133c68161301f565b600381106133e457634e487b7160e01b600052602160045260246000fd5b60ff1982541660ff8216811783555050505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613429576134296133f9565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826134535761345361342e565b500490565b634e487b7160e01b600052603260045260246000fd5b60008219821115613481576134816133f9565b500190565b60008235603e1983360301811261349c57600080fd5b9190910192915050565b60006000198214156134ba576134ba6133f9565b5060010190565b634e487b7160e01b600052600160045260246000fd5b6000828210156134e9576134e96133f9565b500390565b6000808335601e1984360301811261350557600080fd5b83018035915067ffffffffffffffff82111561352057600080fd5b6020019150600581901b3603821315610cd157600080fd5b6000835161354a818460208801612eb7565b7f2f000000000000000000000000000000000000000000000000000000000000009083019081528351613584816001840160208801612eb7565b01600101949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135c26080830184612ee3565b9695505050505050565b6000602082840312156135de57600080fd5b8151612e5181612e1e565b6000826135f8576135f861342e565b500690565b634e487b7160e01b600052603160045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cf2a5c9e36ba000647452885b2342b400d948d0ad66dc9c90b2015c04625344e64736f6c634300080b003300000000000000000000000000000000000000000000000000000000000000600000000000000000000000002780be80ba18d0c27540b9cd75e3c49a58c3322900000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000003668747470733a2f2f6173736574732e77616e6465726572732e61692f66696c652f77616e6465726e617574732f6d657461646174612f00000000000000000000
Deployed Bytecode
0x6080604052600436106102855760003560e01c80636268933911610153578063a306d050116100cb578063e60f982c1161007f578063e99c44ba11610064578063e99c44ba14610735578063ef161bcb14610748578063f2fde38b146107ad57600080fd5b8063e60f982c146106cc578063e985e9c5146106ec57600080fd5b8063b8b0765e116100b0578063b8b0765e1461066c578063c87b56dd1461068c578063e58306f9146106ac57600080fd5b8063a306d05014610639578063b88d4fde1461064c57600080fd5b8063715018a6116101225780638da5cb5b116101075780638da5cb5b146105e657806395d89b4114610604578063a22cb4651461061957600080fd5b8063715018a6146105bc5780638456cb59146105d157600080fd5b8063626893391461052c5780636352211e1461054c578063642b5f9b1461056c57806370a082311461059c57600080fd5b806325e08472116102015780633f4ba83a116101b55780634f6ccce71161019a5780634f6ccce7146104d45780635b8d02d7146104f45780635c975abb1461051457600080fd5b80633f4ba83a1461049f57806342842e0e146104b457600080fd5b80632f745c59116101e65780632f745c591461044a57806330509bca1461046a57806333ea51a81461047f57600080fd5b806325e08472146103eb5780632a55205a1461040b57600080fd5b8063095ea7b31161025857806315acb2591161023d57806315acb2591461039657806318160ddd146103b657806323b872dd146103cb57600080fd5b8063095ea7b31461033b57806313cc5fcc1461035b57600080fd5b806301ffc9a71461028a57806304634d8d146102bf57806306fdde03146102e1578063081812fc14610303575b600080fd5b34801561029657600080fd5b506102aa6102a5366004612e34565b6107cd565b60405190151581526020015b60405180910390f35b3480156102cb57600080fd5b506102df6102da366004612e6d565b6107de565b005b3480156102ed57600080fd5b506102f6610839565b6040516102b69190612f0f565b34801561030f57600080fd5b5061032361031e366004612f22565b6108cb565b6040516001600160a01b0390911681526020016102b6565b34801561034757600080fd5b506102df610356366004612f3b565b610960565b34801561036757600080fd5b50610388610376366004612f22565b600e6020526000908152604090205481565b6040519081526020016102b6565b3480156103a257600080fd5b506102f66103b1366004612f22565b610a92565b3480156103c257600080fd5b50600a54610388565b3480156103d757600080fd5b506102df6103e6366004612f67565b610b2c565b3480156103f757600080fd5b506102df610406366004612fa8565b610bb3565b34801561041757600080fd5b5061042b610426366004612fe0565b610c1b565b604080516001600160a01b0390931683526020830191909152016102b6565b34801561045657600080fd5b50610388610465366004612f3b565b610cd8565b34801561047657600080fd5b506102df610d80565b34801561048b57600080fd5b506102df61049a366004613002565b610e6e565b3480156104ab57600080fd5b506102df610ed8565b3480156104c057600080fd5b506102df6104cf366004612f67565b610f2a565b3480156104e057600080fd5b506103886104ef366004612f22565b610f45565b34801561050057600080fd5b50601354610323906001600160a01b031681565b34801561052057600080fd5b50600f5460ff166102aa565b34801561053857600080fd5b506102df61054736600461302c565b610fe9565b34801561055857600080fd5b50610323610567366004612f22565b611068565b34801561057857600080fd5b506102aa610587366004612f22565b60126020526000908152604090205460ff1681565b3480156105a857600080fd5b506103886105b7366004613002565b6110f3565b3480156105c857600080fd5b506102df61118d565b3480156105dd57600080fd5b506102df6111df565b3480156105f257600080fd5b50600c546001600160a01b0316610323565b34801561061057600080fd5b506102f661122f565b34801561062557600080fd5b506102df610634366004613051565b61123e565b6102df610647366004613084565b611249565b34801561065857600080fd5b506102df610667366004613126565b611633565b34801561067857600080fd5b506102df610687366004613206565b6116bb565b34801561069857600080fd5b506102f66106a7366004612f22565b61171c565b3480156106b857600080fd5b506102df6106c7366004612f3b565b611727565b3480156106d857600080fd5b506102df6106e7366004612fe0565b611779565b3480156106f857600080fd5b506102aa610707366004613282565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102df6107433660046132b0565b61185d565b34801561075457600080fd5b5061079b610763366004612f22565b601160205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909160ff1686565b6040516102b6969594939291906132fb565b3480156107b957600080fd5b506102df6107c8366004613002565b611a94565b60006107d882611b61565b92915050565b600c546001600160a01b0316331461082b5760405162461bcd60e51b8152602060048201819052602482015260008051602061361483398151915260448201526064015b60405180910390fd5b6108358282611b6c565b5050565b6060600280546108489061334d565b80601f01602080910402602001604051908101604052809291908181526020018280546108749061334d565b80156108c15780601f10610896576101008083540402835291602001916108c1565b820191906000526020600020905b8154815290600101906020018083116108a457829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166109445760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610822565b506000908152600660205260409020546001600160a01b031690565b600061096b82611068565b9050806001600160a01b0316836001600160a01b031614156109f55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610822565b336001600160a01b0382161480610a115750610a118133610707565b610a835760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610822565b610a8d8383611c86565b505050565b600d6020526000908152604090208054610aab9061334d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad79061334d565b8015610b245780601f10610af957610100808354040283529160200191610b24565b820191906000526020600020905b815481529060010190602001808311610b0757829003601f168201915b505050505081565b610b363382611cf4565b610ba85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610822565b610a8d838383611deb565b600c546001600160a01b03163314610bfb5760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b60008281526011602052604090208190610c158282613388565b50505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610c9a5750604080518082019091526000546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610cbe906bffffffffffffffffffffffff168761340f565b610cc89190613444565b91519350909150505b9250929050565b6000610ce3836110f3565b8210610d575760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610822565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b600c546001600160a01b03163314610dc85760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b6013546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610e15576040519150601f19603f3d011682016040523d82523d6000602084013e610e1a565b606091505b5050905080610e6b5760405162461bcd60e51b815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610822565b50565b600c546001600160a01b03163314610eb65760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b03163314610f205760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b610f28611fc3565b565b610a8d83838360405180602001604052806000815250611633565b6000610f50600a5490565b8210610fc45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610822565b600a8281548110610fd757610fd7613458565b90600052602060002001549050919050565b600c546001600160a01b031633146110315760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b6000828152601160205260409020600501805482919060ff1916600183600281111561105f5761105f6132e5565b02179055505050565b6000818152600460205260408120546001600160a01b0316806107d85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610822565b60006001600160a01b0382166111715760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610822565b506001600160a01b031660009081526005602052604090205490565b600c546001600160a01b031633146111d55760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b610f28600061205f565b600c546001600160a01b031633146112275760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b610f286120b1565b6060600380546108489061334d565b61083533838361212c565b600f5460ff161561128f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610822565b600260105414156112e25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610822565b600260105560008381526011602052604090206001600582015460ff166002811115611310576113106132e5565b1461135d5760405162461bcd60e51b815260206004820152601560248201527f496e636f72726563742067726f757020737461746500000000000000000000006044820152606401610822565b8054611369908361340f565b3410156113b85760405162461bcd60e51b815260206004820152601760248201527f496e73756666696369656e742066756e64732073656e740000000000000000006044820152606401610822565b60038101546113c890600161346e565b60028201546113d890849061346e565b11156114265760405162461bcd60e51b815260206004820152601460248201527f45786365656473206e6f2e20696e2067726f75700000000000000000000000006044820152606401610822565b60005b828110156114cd576012600085858481811061144757611447613458565b90506020028101906114599190613486565b35815260208101919091526040016000205460ff16156114bb5760405162461bcd60e51b815260206004820152601360248201527f5469636b657420616c72656164792075736564000000000000000000000000006044820152606401610822565b806114c5816134a6565b915050611429565b5060005b828110156115955761151c8484838181106114ee576114ee613458565b90506020028101906115009190613486565b356000908152601260205260409020805460ff19166001179055565b7fa4b52b5ea791f41e528130fa3a54b5658f7df21ab674b6b714417881b07100248685858481811061155057611550613458565b90506020028101906115629190613486565b604080516001600160a01b039093168352903560208301520160405180910390a18061158d816134a6565b9150506114d1565b5060028101805460048301549091849060006115b1838661346e565b90915550600090505b84811015611611576115f18883858989868181106115da576115da613458565b90506020028101906115ec9190613486565b6121fb565b826115fb816134a6565b9350508080611609906134a6565b9150506115ba565b5081836002015414611625576116256134c1565b505060016010555050505050565b61163d3383611cf4565b6116af5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610822565b610c158484848461227e565b600c546001600160a01b031633146117035760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b6000838152600d60205260409020610c15908383612d85565b60606107d8826122fc565b600c546001600160a01b0316331461176f5760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b61083582826123e7565b61178282611068565b6001600160a01b0316336001600160a01b0316146117e25760405162461bcd60e51b815260206004820152601260248201527f4e6f74206f776e6572206f6620746f6b656e00000000000000000000000000006044820152606401610822565b6000818152600d6020526040902080546117fb9061334d565b1515905061184b5760405162461bcd60e51b815260206004820152601160248201527f5374617465206e6f7420646566696e65640000000000000000000000000000006044820152606401610822565b6000918252600e602052604090912055565b600f5460ff16156118a35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610822565b600260105414156118f65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610822565b60026010819055600083815260116020526040902090600582015460ff166002811115611925576119256132e5565b146119725760405162461bcd60e51b815260206004820152601560248201527f496e636f72726563742067726f757020737461746500000000000000000000006044820152606401610822565b6000816001015483611984919061340f565b9050803410156119d65760405162461bcd60e51b815260206004820152601760248201527f496e73756666696369656e742066756e64732073656e740000000000000000006044820152606401610822565b60038201546119e690600161346e565b8383600201546119f6919061346e565b1115611a445760405162461bcd60e51b815260206004820152601460248201527f45786365656473206e6f2e20696e2067726f75700000000000000000000000006044820152606401610822565b6002820180549084906000611a59838561346e565b90915550600090505b8481101561162557611a7487836123e7565b81611a7e816134a6565b9250508080611a8c906134a6565b915050611a62565b600c546001600160a01b03163314611adc5760405162461bcd60e51b815260206004820181905260248201526000805160206136148339815191526044820152606401610822565b6001600160a01b038116611b585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610822565b610e6b8161205f565b60006107d882612401565b6127106bffffffffffffffffffffffff82161115611bf25760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610822565b6001600160a01b038216611c485760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610822565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600055565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611cbb82611068565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b0316611d6d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610822565b6000611d7883611068565b9050806001600160a01b0316846001600160a01b03161480611db35750836001600160a01b0316611da8846108cb565b6001600160a01b0316145b80611de357506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611dfe82611068565b6001600160a01b031614611e7a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610822565b6001600160a01b038216611ef55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610822565b611f0083838361243f565b611f0b600082611c86565b6001600160a01b0383166000908152600560205260408120805460019290611f349084906134d7565b90915550506001600160a01b0382166000908152600560205260408120805460019290611f6290849061346e565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600f5460ff166120155760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610822565b600f805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600f5460ff16156120f75760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610822565b600f805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120423390565b816001600160a01b0316836001600160a01b0316141561218e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610822565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600061220882358661244a565b9050612221848261221c60208601866134ee565b612498565b61226d5760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206d65726b6c652070726f6f660000000000000000000000006044820152606401610822565b61227785846123e7565b5050505050565b612289848484611deb565b612295848484846124e3565b610c155760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610822565b6000818152600460205260409020546060906001600160a01b03166123895760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610822565b600061239483612629565b51116123af57604051806020016040528060008152506107d8565b6123b882612629565b6123c1836126dc565b6040516020016123d2929190613538565b60405160208183030381529060405292915050565b61083582826040518060200160405280600081525061280e565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806107d857506107d88261288c565b610a8d8383836128fe565b6000828260405160200161247a92919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b60405160208183030381529060405280519060200120905092915050565b60006124da8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508992508891506129b69050565b95945050505050565b60006001600160a01b0384163b1561262157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612527903390899088908890600401613590565b6020604051808303816000875af1925050508015612562575060408051601f3d908101601f1916820190925261255f918101906135cc565b60015b612607573d808015612590576040519150601f19603f3d011682016040523d82523d6000602084013e612595565b606091505b5080516125ff5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610822565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611de3565b506001611de3565b6000818152600e6020908152604080832054808452600d909252909120805460609291906126569061334d565b80601f01602080910402602001604051908101604052809291908181526020018280546126829061334d565b80156126cf5780601f106126a4576101008083540402835291602001916126cf565b820191906000526020600020905b8154815290600101906020018083116126b257829003601f168201915b5050505050915050919050565b60608161271c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127465780612730816134a6565b915061273f9050600a83613444565b9150612720565b60008167ffffffffffffffff81111561276157612761613110565b6040519080825280601f01601f19166020018201604052801561278b576020820181803683370190505b5090505b8415611de3576127a06001836134d7565b91506127ad600a866135e9565b6127b890603061346e565b60f81b8183815181106127cd576127cd613458565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612807600a86613444565b945061278f565b61281883836129cc565b61282560008484846124e3565b610a8d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610822565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806128ef57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107d857506107d882612b1a565b6001600160a01b0383166129595761295481600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b61297c565b816001600160a01b0316836001600160a01b03161461297c5761297c8382612b81565b6001600160a01b03821661299357610a8d81612c1e565b826001600160a01b0316826001600160a01b031614610a8d57610a8d8282612ccd565b6000826129c38584612d11565b14949350505050565b6001600160a01b038216612a225760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610822565b6000818152600460205260409020546001600160a01b031615612a875760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610822565b612a936000838361243f565b6001600160a01b0382166000908152600560205260408120805460019290612abc90849061346e565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806107d857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146107d8565b60006001612b8e846110f3565b612b9891906134d7565b600083815260096020526040902054909150808214612beb576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090612c30906001906134d7565b6000838152600b6020526040812054600a8054939450909284908110612c5857612c58613458565b9060005260206000200154905080600a8381548110612c7957612c79613458565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480612cb157612cb16135fd565b6001900381819060005260206000200160009055905550505050565b6000612cd8836110f3565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b600081815b8451811015612d7d576000858281518110612d3357612d33613458565b60200260200101519050808311612d595760008381526020829052604090209250612d6a565b600081815260208490526040902092505b5080612d75816134a6565b915050612d16565b509392505050565b828054612d919061334d565b90600052602060002090601f016020900481019282612db35760008555612df9565b82601f10612dcc5782800160ff19823516178555612df9565b82800160010185558215612df9579182015b82811115612df9578235825591602001919060010190612dde565b50612e05929150612e09565b5090565b5b80821115612e055760008155600101612e0a565b6001600160e01b031981168114610e6b57600080fd5b600060208284031215612e4657600080fd5b8135612e5181612e1e565b9392505050565b6001600160a01b0381168114610e6b57600080fd5b60008060408385031215612e8057600080fd5b8235612e8b81612e58565b915060208301356bffffffffffffffffffffffff81168114612eac57600080fd5b809150509250929050565b60005b83811015612ed2578181015183820152602001612eba565b83811115610c155750506000910152565b60008151808452612efb816020860160208601612eb7565b601f01601f19169290920160200192915050565b602081526000612e516020830184612ee3565b600060208284031215612f3457600080fd5b5035919050565b60008060408385031215612f4e57600080fd5b8235612f5981612e58565b946020939093013593505050565b600080600060608486031215612f7c57600080fd5b8335612f8781612e58565b92506020840135612f9781612e58565b929592945050506040919091013590565b60008082840360e0811215612fbc57600080fd5b8335925060c0601f1982011215612fd257600080fd5b506020830190509250929050565b60008060408385031215612ff357600080fd5b50508035926020909101359150565b60006020828403121561301457600080fd5b8135612e5181612e58565b60038110610e6b57600080fd5b6000806040838503121561303f57600080fd5b823591506020830135612eac8161301f565b6000806040838503121561306457600080fd5b823561306f81612e58565b915060208301358015158114612eac57600080fd5b6000806000806060858703121561309a57600080fd5b84356130a581612e58565b935060208501359250604085013567ffffffffffffffff808211156130c957600080fd5b818701915087601f8301126130dd57600080fd5b8135818111156130ec57600080fd5b8860208260051b850101111561310157600080fd5b95989497505060200194505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561313c57600080fd5b843561314781612e58565b9350602085013561315781612e58565b925060408501359150606085013567ffffffffffffffff8082111561317b57600080fd5b818701915087601f83011261318f57600080fd5b8135818111156131a1576131a1613110565b604051601f8201601f19908116603f011681019083821181831017156131c9576131c9613110565b816040528281528a60208487010111156131e257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561321b57600080fd5b83359250602084013567ffffffffffffffff8082111561323a57600080fd5b818601915086601f83011261324e57600080fd5b81358181111561325d57600080fd5b87602082850101111561326f57600080fd5b6020830194508093505050509250925092565b6000806040838503121561329557600080fd5b82356132a081612e58565b91506020830135612eac81612e58565b6000806000606084860312156132c557600080fd5b83356132d081612e58565b95602085013595506040909401359392505050565b634e487b7160e01b600052602160045260246000fd5b600060c0820190508782528660208301528560408301528460608301528360808301526003831061333c57634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b600181811c9082168061336157607f821691505b6020821081141561338257634e487b7160e01b600052602260045260246000fd5b50919050565b81358155602082013560018201556040820135600282015560608201356003820155608082013560048201556005810160a08301356133c68161301f565b600381106133e457634e487b7160e01b600052602160045260246000fd5b60ff1982541660ff8216811783555050505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613429576134296133f9565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826134535761345361342e565b500490565b634e487b7160e01b600052603260045260246000fd5b60008219821115613481576134816133f9565b500190565b60008235603e1983360301811261349c57600080fd5b9190910192915050565b60006000198214156134ba576134ba6133f9565b5060010190565b634e487b7160e01b600052600160045260246000fd5b6000828210156134e9576134e96133f9565b500390565b6000808335601e1984360301811261350557600080fd5b83018035915067ffffffffffffffff82111561352057600080fd5b6020019150600581901b3603821315610cd157600080fd5b6000835161354a818460208801612eb7565b7f2f000000000000000000000000000000000000000000000000000000000000009083019081528351613584816001840160208801612eb7565b01600101949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135c26080830184612ee3565b9695505050505050565b6000602082840312156135de57600080fd5b8151612e5181612e1e565b6000826135f8576135f861342e565b500690565b634e487b7160e01b600052603160045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cf2a5c9e36ba000647452885b2342b400d948d0ad66dc9c90b2015c04625344e64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000600000000000000000000000002780be80ba18d0c27540b9cd75e3c49a58c3322900000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000003668747470733a2f2f6173736574732e77616e6465726572732e61692f66696c652f77616e6465726e617574732f6d657461646174612f00000000000000000000
-----Decoded View---------------
Arg [0] : zeroURI (string): https://assets.wanderers.ai/file/wandernauts/metadata/
Arg [1] : _payoutAddress (address): 0x2780bE80bA18d0C27540b9cD75E3C49a58c33229
Arg [2] : feeNumerator (uint96): 500
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000002780be80ba18d0c27540b9cd75e3c49a58c33229
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 68747470733a2f2f6173736574732e77616e6465726572732e61692f66696c65
Arg [5] : 2f77616e6465726e617574732f6d657461646174612f00000000000000000000
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.