Overview
TokenID
141
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
TBBGenesis
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract TBBGenesis is ERC721, ERC721Enumerable, ERC721URIStorage, Pausable, Ownable, ERC721Burnable { using Counters for Counters.Counter; using Strings for uint; string private baseExtension = ".json"; uint168 public constant PRICE = 0.2 ether; uint public MAX_SUPPLY = 300; bool public MINT_IS_LIVE = false; bool public MINT_IS_PUBLIC = false; bool public revealed = false; string private unrevealedUri; string private baseURI; uint8 public WALLET_MINT_MAX = 2; bytes32 public merkleRoot = 0xc333f6a4980ec2ac8baef02d95703eabd11630af326dcb7601de07f53bd02d17; address payable private OneTreePlanted = payable(0x67CE09d244D8CD9Ac49878B76f5955AB4aC0A478); address payable private VRDev = payable(0x3DE81D7A75eB6f9E9eF74dF637f5Ff5B6F7ba41c); address payable private Marketing = payable(0x672014ac279B8BCc9c65Cc37012fba4820Bb404d); address payable private Treasury = payable(0x0fDA31E3454F429701082A20380D9CfAaDfefb54); address payable private Founder1 = payable(0xA1e6509424faBc6fd503999A29F61346149CbCaB); address payable private Founder2 = payable(0x650227FC46B84A64fFC271d1F0E508641314fd8a); address payable private Founder3 = payable(0x8245508E4eeE2Ec32200DeeCD7E85A3050Af7C49); address payable private Founder4 = payable(0x1954e9bE7E604Ff1A0f6D20dabC54F4DD86d8e46); address payable private Founder5 = payable(0x644580B17fd98F42B37B56773e71dcfD81eff4cB); address payable private Founder6 = payable(0xF5048836E6F1D2fbcA2E9A9a8FBbbd7b73c39F83); address payable private Ops = payable(0xf9B423eCafc7c01ceE6E07EFDDa4fFaa907f9e01); mapping(address => bool) private isAdmin; mapping(address => bool) private inKingsCourt; mapping(address => uint8) private tokensMinted; modifier onlyAdmin() { if (isAdmin[msg.sender]) { _; } else { revert("This action is reserved for Admins"); } } modifier onlyKingsCourt(bytes32[] memory proof) { if ( (MINT_IS_PUBLIC == true) || ( MerkleProof.verify( proof, merkleRoot, keccak256(abi.encodePacked(msg.sender)) ) ) || isAdmin[msg.sender] || inKingsCourt[msg.sender] ) { _; } else { revert("This action is reserved for members of the Kings Court"); } } modifier onlyWhen(bool b) { if (b == true) { _; } else { revert("This function isnt available right now"); } } Counters.Counter private _tokenIdCounter; event Mint(uint date, uint supply, string message); receive() external payable {} fallback() external payable {} constructor(string memory _initNotRevealedUri) ERC721("TBBGenesis", "TBBG") { setUnrevealedUri(_initNotRevealedUri); isAdmin[msg.sender] = true; isAdmin[Founder1] = true; isAdmin[Ops] = true; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setUnrevealedUri(string memory _notRevealedURI) public onlyOwner { unrevealedUri = _notRevealedURI; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function reveal() public onlyOwner { revealed = true; } function getRemainingSupply() public view returns (uint) { return MAX_SUPPLY - _tokenIdCounter.current(); } function setMintLive(bool live) public onlyAdmin { MINT_IS_LIVE = live; } function setMintPublic(bool live) public onlyAdmin { MINT_IS_PUBLIC = live; } function getTokensMintedBy(address _owner) public view returns (uint8) { return tokensMinted[_owner]; } function safeMint(address to, string memory uri) public onlyOwner { _tokenIdCounter.increment(); uint tokenId = _tokenIdCounter.current(); _safeMint(to, tokenId); _setTokenURI(tokenId, uri); } function setAdmin(address addr, bool shouldAdmin) public onlyOwner { require( isAdmin[addr] != shouldAdmin, "Cannot change user to the same state." ); isAdmin[addr] = shouldAdmin; } function isUserAdmin(address addr) public view returns (bool) { return isAdmin[addr]; } function setKingsCourt(address[] memory addr, bool should) public onlyAdmin { { for (uint i = 0; i < addr.length; i++) { require( inKingsCourt[addr[i]] != should, "Cannot change user to the same state. " ); inKingsCourt[addr[i]] = should; } } } function isInKingsCourt(address addr) public view returns (bool) { return inKingsCourt[addr]; } function mint(uint amount, bytes32[] memory proof) public payable onlyKingsCourt(proof) onlyWhen(MINT_IS_LIVE || MINT_IS_PUBLIC) { require(msg.value == (PRICE * amount), "Insufficient payment"); require( amount + _tokenIdCounter.current() <= MAX_SUPPLY, "Cannot mint more than remaining tokens in supply" ); require( tokensMinted[msg.sender] + amount <= WALLET_MINT_MAX, "Minting this many tokens would exceed your wallet limit! Save some bunnies for your friends!" ); if (msg.value == (PRICE * amount)) { for (uint i = 0; i < amount; i++) { _tokenIdCounter.increment(); uint tokenId = _tokenIdCounter.current(); tokensMinted[msg.sender]++; _safeMint(msg.sender, tokenId); handleCounters(); } } else { revert("Invalid payment"); } } function handleCounters() internal { uint currentToken = _tokenIdCounter.current(); if (currentToken == MAX_SUPPLY) { withdraw(); MINT_IS_LIVE = false; MINT_IS_PUBLIC = false; emit Mint(block.timestamp, currentToken, "Mint Has Ended"); } else { emit Mint(block.timestamp, currentToken, "Battle Bunny Minted"); } } function _beforeTokenTransfer( address from, address to, uint tokenId ) internal override(ERC721, ERC721Enumerable) whenNotPaused { super._beforeTokenTransfer(from, to, tokenId); } function _burn(uint tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function tokenURI(uint tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); string memory tokenBaseURI = _baseURI(); if (revealed == false) { return unrevealedUri; } return bytes(tokenBaseURI).length > 0 ? string( abi.encodePacked(tokenBaseURI, tokenId.toString(), baseExtension) ) : ""; } function withdraw() public onlyOwner { if (!MINT_IS_LIVE && !MINT_IS_PUBLIC) { withdrawRoyalties(address(this).balance); } else { withdrawGeneral(address(this).balance); } } function withdrawGeneral(uint balance) internal onlyOwner { (bool ts1, ) = OneTreePlanted.call{value: (balance / 100) * 4}(""); require(ts1, "OneTreePlanted wallet transfer error"); (bool ts2, ) = VRDev.call{value: (balance / 100) * 15}(""); require(ts2, "VRdev wallet transfer error"); (bool ts3, ) = Marketing.call{value: (balance / 100) * 15}(""); require(ts3, "Marketing wallet transfer error"); (bool ts4, ) = Treasury.call{value: (balance / 100) * 33}(""); require(ts4, "Marketing wallet transfer error"); withdrawRoyalties((balance / 100) * 33); } function ownerWithdraw() public payable onlyOwner { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } function withdrawRoyalties(uint balance) internal onlyOwner { (bool ts1, ) = Founder1.call{value: (balance / 100) * 5}(""); require(ts1, "Founder1 wallet transfer error"); (bool ts2, ) = Founder2.call{value: (balance / 100) * 5}(""); require(ts2, "Founder2 wallet transfer error"); (bool ts3, ) = Founder3.call{value: (balance / 100) * 10}(""); require(ts3, "Founder3 wallet transfer error"); (bool ts4, ) = Founder4.call{value: (balance / 100) * 12}(""); require(ts4, "Founder4 wallet transfer error"); (bool ts6, ) = Founder6.call{value: (balance / 100) * 34}(""); require(ts6, "Founder6 wallet transfer error"); (bool ts5, ) = Founder5.call{value: (balance / 100) * 34}(""); require(ts5, "Founder5 wallet transfer error"); } function setMerkleRoot(bytes32 _newRoot) public onlyAdmin { require(_newRoot.length > 0, "Invalid merkle root"); merkleRoot = _newRoot; } function setWithdrawalAccounts( uint _account, address payable _previousAddress, address payable _newAddress ) external onlyOwner { string memory errMessage = "Your previous address does not match the address of the role you are trying to set please confirm you are trying to set the correct role"; require( _account >= 1 && _account <= 10, "You must designate a valid account number, enter 1 through 6 for founder accounts and 7 through 10 for general accounts" ); require( _previousAddress != _newAddress, "You cannot set the same address as the previous address" ); if (_account == 1) { require(Founder1 == _previousAddress, errMessage); Founder1 = _newAddress; } else if (_account == 2) { require(Founder2 == _previousAddress, errMessage); Founder2 = _newAddress; } else if (_account == 3) { require(Founder3 == _previousAddress, errMessage); Founder3 = _newAddress; } else if (_account == 4) { require(Founder4 == _previousAddress, errMessage); Founder4 = _newAddress; } else if (_account == 5) { require(Founder5 == _previousAddress, errMessage); Founder5 = _newAddress; } else if (_account == 6) { require(Founder6 == _previousAddress, errMessage); Founder6 = _newAddress; } else if (_account == 7) { require(OneTreePlanted == _previousAddress, errMessage); OneTreePlanted = _newAddress; } else if (_account == 8) { require(VRDev == _previousAddress, errMessage); VRDev = _newAddress; } else if (_account == 9) { require(Marketing == _previousAddress, errMessage); Marketing = _newAddress; } else if (_account == 10) { require(Treasury == _previousAddress, errMessage); Treasury = _newAddress; } else { revert("payee reset failed"); } } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev 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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[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 v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 v4.4.1 (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 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_initNotRevealedUri","type":"string"}],"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":"uint256","name":"date","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"},{"indexed":false,"internalType":"string","name":"message","type":"string"}],"name":"Mint","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_IS_LIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_IS_PUBLIC","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint168","name":"","type":"uint168"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WALLET_MINT_MAX","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getTokensMintedBy","outputs":[{"internalType":"uint8","name":"","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":[{"internalType":"address","name":"addr","type":"address"}],"name":"isInKingsCourt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isUserAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerWithdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"uri","type":"string"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"shouldAdmin","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addr","type":"address[]"},{"internalType":"bool","name":"should","type":"bool"}],"name":"setKingsCourt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"live","type":"bool"}],"name":"setMintLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"live","type":"bool"}],"name":"setMintPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setUnrevealedUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_account","type":"uint256"},{"internalType":"address payable","name":"_previousAddress","type":"address"},{"internalType":"address payable","name":"_newAddress","type":"address"}],"name":"setWithdrawalAccounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","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"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040526005608081905264173539b7b760d91b60a09081526200002891600c9190620003a6565b5061012c600d55600e805462ffffff191690556011805460ff191660021790557fc333f6a4980ec2ac8baef02d95703eabd11630af326dcb7601de07f53bd02d17601255601380546001600160a01b03199081167367ce09d244d8cd9ac49878b76f5955ab4ac0a47817909155601480548216733de81d7a75eb6f9e9ef74df637f5ff5b6f7ba41c17905560158054821673672014ac279b8bcc9c65cc37012fba4820bb404d179055601680548216730fda31e3454f429701082a20380d9cfaadfefb5417905560178054821673a1e6509424fabc6fd503999a29f61346149cbcab17905560188054821673650227fc46b84a64ffc271d1f0e508641314fd8a179055601980548216738245508e4eee2ec32200deecd7e85a3050af7c49179055601a80548216731954e9be7e604ff1a0f6d20dabc54f4dd86d8e46179055601b8054821673644580b17fd98f42b37b56773e71dcfd81eff4cb179055601c8054821673f5048836e6f1d2fbca2e9a9a8fbbbd7b73c39f83179055601d805490911673f9b423ecafc7c01cee6e07efdda4ffaa907f9e01179055348015620001cf57600080fd5b506040516200462238038062004622833981016040819052620001f2916200044c565b604080518082018252600a81526954424247656e6573697360b01b6020808301918252835180850190945260048452635442424760e01b9084015281519192916200024091600091620003a6565b50805162000256906001906020840190620003a6565b5050600b805460ff19169055506200026e33620002ce565b620002798162000328565b50336000908152601e60205260408082208054600160ff1991821681179092556017546001600160a01b0390811685528385208054831684179055601d5416845291909220805490911690911790556200057b565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b546001600160a01b036101009091041633146200038d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620003a290600f906020840190620003a6565b5050565b828054620003b49062000528565b90600052602060002090601f016020900481019282620003d8576000855562000423565b82601f10620003f357805160ff191683800117855562000423565b8280016001018555821562000423579182015b828111156200042357825182559160200191906001019062000406565b506200043192915062000435565b5090565b5b8082111562000431576000815560010162000436565b600060208083850312156200046057600080fd5b82516001600160401b03808211156200047857600080fd5b818501915085601f8301126200048d57600080fd5b815181811115620004a257620004a262000565565b604051601f8201601f19908116603f01168101908382118183101715620004cd57620004cd62000565565b816040528281528886848701011115620004e657600080fd5b600093505b828410156200050a5784840186015181850187015292850192620004eb565b828411156200051c5760008684830101525b98975050505050505050565b600181811c908216806200053d57607f821691505b602082108114156200055f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b614097806200058b6000396000f3fe6080604052600436106102745760003560e01c806355f804b31161014e57806395d89b41116100bb578063ba41b0c611610077578063ba41b0c6146107bb578063c87b56dd146107ce578063d204c45e146107ee578063e4b7fb731461080e578063e985e9c514610823578063f2fde38b1461086c57005b806395d89b4114610711578063a22cb46514610726578063a475b5dd14610746578063ae568e6b1461075b578063b4d80ec71461077b578063b88d4fde1461079b57005b80637cb647591161010a5780637cb647591461064b5780638456cb591461066b57806387803862146106805780638d859f3e1461069a5780638da5cb5b146106ce57806390fb5fb9146106f157005b806355f804b3146105855780635c975abb146105a55780636352211e146105bd57806370a08231146105dd578063715018a6146105fd57806374d523a81461061257005b8063390b91c4116101ec5780634311de8f116101a85780634311de8f146104e3578063454ddb63146104eb5780634b0bddd2146105055780634f6ccce714610525578063518302271461054557806353ca912a1461056557005b8063390b91c4146104215780633cb38fc2146104405780633ccfd60b146104795780633f4ba83a1461048e57806342842e0e146104a357806342966c68146104c357005b806318160ddd1161023b57806318160ddd1461034c57806323b872dd1461036b578063256209351461038b5780632eb4a7ab146103d55780632f745c59146103eb57806332cb6b0c1461040b57005b806301ffc9a71461027d57806306fdde03146102b2578063081812fc146102d4578063095ea7b31461030c57806318088ed21461032c57005b3661027b57005b005b34801561028957600080fd5b5061029d610298366004613a66565b61088c565b60405190151581526020015b60405180910390f35b3480156102be57600080fd5b506102c761089d565b6040516102a99190613ce8565b3480156102e057600080fd5b506102f46102ef366004613a4d565b61092f565b6040516001600160a01b0390911681526020016102a9565b34801561031857600080fd5b5061027b61032736600461394e565b6109c9565b34801561033857600080fd5b5061027b61034736600461397a565b610adf565b34801561035857600080fd5b506008545b6040519081526020016102a9565b34801561037757600080fd5b5061027b610386366004613808565b610c54565b34801561039757600080fd5b506103c36103a63660046137b2565b6001600160a01b0316600090815260208052604090205460ff1690565b60405160ff90911681526020016102a9565b3480156103e157600080fd5b5061035d60125481565b3480156103f757600080fd5b5061035d61040636600461394e565b610c86565b34801561041757600080fd5b5061035d600d5481565b34801561042d57600080fd5b50600e5461029d90610100900460ff1681565b34801561044c57600080fd5b5061029d61045b3660046137b2565b6001600160a01b03166000908152601f602052604090205460ff1690565b34801561048557600080fd5b5061027b610d1c565b34801561049a57600080fd5b5061027b610d80565b3480156104af57600080fd5b5061027b6104be366004613808565b610db8565b3480156104cf57600080fd5b5061027b6104de366004613a4d565b610dd3565b61027b610e4d565b3480156104f757600080fd5b506011546103c39060ff1681565b34801561051157600080fd5b5061027b6105203660046138c9565b610ee2565b34801561053157600080fd5b5061035d610540366004613a4d565b610fba565b34801561055157600080fd5b50600e5461029d9062010000900460ff1681565b34801561057157600080fd5b5061027b610580366004613a32565b61104d565b34801561059157600080fd5b5061027b6105a0366004613aa0565b611078565b3480156105b157600080fd5b50600b5460ff1661029d565b3480156105c957600080fd5b506102f46105d8366004613a4d565b6110bb565b3480156105e957600080fd5b5061035d6105f83660046137b2565b611132565b34801561060957600080fd5b5061027b6111b9565b34801561061e57600080fd5b5061029d61062d3660046137b2565b6001600160a01b03166000908152601e602052604090205460ff1690565b34801561065757600080fd5b5061027b610666366004613a4d565b6111f3565b34801561067757600080fd5b5061027b611210565b34801561068c57600080fd5b50600e5461029d9060ff1681565b3480156106a657600080fd5b506106b66702c68af0bb14000081565b6040516001600160a81b0390911681526020016102a9565b3480156106da57600080fd5b50600b5461010090046001600160a01b03166102f4565b3480156106fd57600080fd5b5061027b61070c366004613aa0565b611248565b34801561071d57600080fd5b506102c761128b565b34801561073257600080fd5b5061027b6107413660046138c9565b61129a565b34801561075257600080fd5b5061027b6112a5565b34801561076757600080fd5b5061027b610776366004613ad5565b6112e8565b34801561078757600080fd5b5061027b610796366004613a32565b611854565b3480156107a757600080fd5b5061027b6107b6366004613849565b611884565b61027b6107c9366004613b17565b6118b6565b3480156107da57600080fd5b506102c76107e9366004613a4d565b611c95565b3480156107fa57600080fd5b5061027b6108093660046138fe565b611dff565b34801561081a57600080fd5b5061035d611e5e565b34801561082f57600080fd5b5061029d61083e3660046137cf565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561087857600080fd5b5061027b6108873660046137b2565b611e7b565b600061089782611f19565b92915050565b6060600080546108ac90613eb6565b80601f01602080910402602001604051908101604052809291908181526020018280546108d890613eb6565b80156109255780601f106108fa57610100808354040283529160200191610925565b820191906000526020600020905b81548152906001019060200180831161090857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109ad5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109d4826110bb565b9050806001600160a01b0316836001600160a01b03161415610a425760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109a4565b336001600160a01b0382161480610a5e5750610a5e813361083e565b610ad05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109a4565b610ada8383611f3e565b505050565b336000908152601e602052604090205460ff1615610bfd5760005b8251811015610ada57811515601f6000858481518110610b1c57610b1c613f82565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615151415610ba25760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74206368616e6765207573657220746f207468652073616d65207360448201526503a30ba3297160d51b60648201526084016109a4565b81601f6000858481518110610bb957610bb9613f82565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610bf581613ef1565b915050610afa565b60405162461bcd60e51b815260206004820152602260248201527f5468697320616374696f6e20697320726573657276656420666f722041646d696044820152616e7360f01b60648201526084016109a4565b5050565b610c5f335b82611fac565b610c7b5760405162461bcd60e51b81526004016109a490613d82565b610ada8383836120a3565b6000610c9183611132565b8210610cf35760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109a4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b03610100909104163314610d4c5760405162461bcd60e51b81526004016109a490613d4d565b600e5460ff16158015610d675750600e54610100900460ff16155b15610d7757610d754761224e565b565b610d75476126d1565b600b546001600160a01b03610100909104163314610db05760405162461bcd60e51b81526004016109a490613d4d565b610d75612a0e565b610ada83838360405180602001604052806000815250611884565b610ddc33610c59565b610e415760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016109a4565b610e4a81612aa1565b50565b600b546001600160a01b03610100909104163314610e7d5760405162461bcd60e51b81526004016109a490613d4d565b600b5460405160009161010090046001600160a01b03169047908381818185875af1925050503d8060008114610ecf576040519150601f19603f3d011682016040523d82523d6000602084013e610ed4565b606091505b5050905080610e4a57600080fd5b600b546001600160a01b03610100909104163314610f125760405162461bcd60e51b81526004016109a490613d4d565b6001600160a01b0382166000908152601e602052604090205460ff1615158115151415610f8f5760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74206368616e6765207573657220746f207468652073616d6520736044820152643a30ba329760d91b60648201526084016109a4565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6000610fc560085490565b82106110285760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109a4565b6008828154811061103b5761103b613f82565b90600052602060002001549050919050565b336000908152601e602052604090205460ff1615610bfd57600e805482151560ff1990911617905550565b600b546001600160a01b036101009091041633146110a85760405162461bcd60e51b81526004016109a490613d4d565b8051610c50906010906020840190613656565b6000818152600260205260408120546001600160a01b0316806108975760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109a4565b60006001600160a01b03821661119d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109a4565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b036101009091041633146111e95760405162461bcd60e51b81526004016109a490613d4d565b610d756000612aaa565b336000908152601e602052604090205460ff1615610bfd57601255565b600b546001600160a01b036101009091041633146112405760405162461bcd60e51b81526004016109a490613d4d565b610d75612b04565b600b546001600160a01b036101009091041633146112785760405162461bcd60e51b81526004016109a490613d4d565b8051610c5090600f906020840190613656565b6060600180546108ac90613eb6565b610c50338383612b7f565b600b546001600160a01b036101009091041633146112d55760405162461bcd60e51b81526004016109a490613d4d565b600e805462ff0000191662010000179055565b600b546001600160a01b036101009091041633146113185760405162461bcd60e51b81526004016109a490613d4d565b60006040518060c0016040528060888152602001613fda608891399050600184101580156113475750600a8411155b6114055760405162461bcd60e51b815260206004820152607760248201527f596f75206d7573742064657369676e61746520612076616c6964206163636f7560448201527f6e74206e756d6265722c20656e7465722031207468726f756768203620666f7260648201527f20666f756e646572206163636f756e747320616e642037207468726f7567682060848201527f313020666f722067656e6572616c206163636f756e747300000000000000000060a482015260c4016109a4565b816001600160a01b0316836001600160a01b0316141561148d5760405162461bcd60e51b815260206004820152603760248201527f596f752063616e6e6f7420736574207468652073616d6520616464726573732060448201527f6173207468652070726576696f7573206164647265737300000000000000000060648201526084016109a4565b83600114156114e75760175481906001600160a01b038581169116146114c65760405162461bcd60e51b81526004016109a49190613ce8565b50601780546001600160a01b0319166001600160a01b03841617905561184e565b83600214156115415760185481906001600160a01b038581169116146115205760405162461bcd60e51b81526004016109a49190613ce8565b50601880546001600160a01b0319166001600160a01b03841617905561184e565b836003141561159b5760195481906001600160a01b0385811691161461157a5760405162461bcd60e51b81526004016109a49190613ce8565b50601980546001600160a01b0319166001600160a01b03841617905561184e565b83600414156115f557601a5481906001600160a01b038581169116146115d45760405162461bcd60e51b81526004016109a49190613ce8565b50601a80546001600160a01b0319166001600160a01b03841617905561184e565b836005141561164f57601b5481906001600160a01b0385811691161461162e5760405162461bcd60e51b81526004016109a49190613ce8565b50601b80546001600160a01b0319166001600160a01b03841617905561184e565b83600614156116a957601c5481906001600160a01b038581169116146116885760405162461bcd60e51b81526004016109a49190613ce8565b50601c80546001600160a01b0319166001600160a01b03841617905561184e565b83600714156117035760135481906001600160a01b038581169116146116e25760405162461bcd60e51b81526004016109a49190613ce8565b50601380546001600160a01b0319166001600160a01b03841617905561184e565b836008141561175d5760145481906001600160a01b0385811691161461173c5760405162461bcd60e51b81526004016109a49190613ce8565b50601480546001600160a01b0319166001600160a01b03841617905561184e565b83600914156117b75760155481906001600160a01b038581169116146117965760405162461bcd60e51b81526004016109a49190613ce8565b50601580546001600160a01b0319166001600160a01b03841617905561184e565b83600a14156118115760165481906001600160a01b038581169116146117f05760405162461bcd60e51b81526004016109a49190613ce8565b50601680546001600160a01b0319166001600160a01b03841617905561184e565b60405162461bcd60e51b81526020600482015260126024820152711c185e5959481c995cd95d0819985a5b195960721b60448201526064016109a4565b50505050565b336000908152601e602052604090205460ff1615610bfd57600e80548215156101000261ff001990911617905550565b61188e3383611fac565b6118aa5760405162461bcd60e51b81526004016109a490613d82565b61184e84848484612c4e565b600e54819060ff6101009091041615156001148061191157506012546040516bffffffffffffffffffffffff193360601b16602082015261191191839160340160405160208183030381529060405280519060200120612c81565b8061192b5750336000908152601e602052604090205460ff165b806119455750336000908152601f602052604090205460ff165b15611c2e57600e5460ff16806119625750600e54610100900460ff165b60018115151415611bd75761197f846702c68af0bb140000613e54565b34146119c45760405162461bcd60e51b8152602060048201526014602482015273125b9cdd59999a58da595b9d081c185e5b595b9d60621b60448201526064016109a4565b600d546021546119d49086613e28565b1115611a3b5760405162461bcd60e51b815260206004820152603060248201527f43616e6e6f74206d696e74206d6f7265207468616e2072656d61696e696e672060448201526f746f6b656e7320696e20737570706c7960801b60648201526084016109a4565b60115433600090815260208052604090205460ff91821691611a5f91879116613e28565b1115611af95760405162461bcd60e51b815260206004820152605c60248201527f4d696e74696e672074686973206d616e7920746f6b656e7320776f756c64206560448201527f786365656420796f75722077616c6c6574206c696d697421205361766520736f60648201527f6d652062756e6e69657320666f7220796f757220667269656e64732100000000608482015260a4016109a4565b611b0b846702c68af0bb140000613e54565b341415611b9d5760005b84811015611b9757611b2b602180546001019055565b6000611b3660215490565b3360009081526020805260408120805492935060ff9092169190611b5983613f0c565b91906101000a81548160ff021916908360ff16021790555050611b7c3382612c97565b611b84612cb1565b5080611b8f81613ef1565b915050611b15565b5061184e565b60405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081c185e5b595b9d608a1b60448201526064016109a4565b60405162461bcd60e51b815260206004820152602660248201527f546869732066756e6374696f6e2069736e7420617661696c61626c65207269676044820152656874206e6f7760d01b60648201526084016109a4565b60405162461bcd60e51b815260206004820152603660248201527f5468697320616374696f6e20697320726573657276656420666f72206d656d62604482015275195c9cc81bd9881d1a194812da5b99dcc810dbdd5c9d60521b60648201526084016109a4565b6000818152600260205260409020546060906001600160a01b0316611cfc5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016109a4565b6000611d06612da5565b600e5490915062010000900460ff16611dac57600f8054611d2690613eb6565b80601f0160208091040260200160405190810160405280929190818152602001828054611d5290613eb6565b8015611d9f5780601f10611d7457610100808354040283529160200191611d9f565b820191906000526020600020905b815481529060010190602001808311611d8257829003601f168201915b5050505050915050919050565b6000815111611dca5760405180602001604052806000815250611df8565b80611dd484612db4565b600c604051602001611de893929190613be7565b6040516020818303038152906040525b9392505050565b600b546001600160a01b03610100909104163314611e2f5760405162461bcd60e51b81526004016109a490613d4d565b611e3d602180546001019055565b6000611e4860215490565b9050611e548382612c97565b610ada8183612eb2565b6000611e6960215490565b600d54611e769190613e73565b905090565b600b546001600160a01b03610100909104163314611eab5760405162461bcd60e51b81526004016109a490613d4d565b6001600160a01b038116611f105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a4565b610e4a81612aaa565b60006001600160e01b0319821663780e9d6360e01b1480610897575061089782612f4c565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611f73826110bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166120255760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a4565b6000612030836110bb565b9050806001600160a01b0316846001600160a01b0316148061206b5750836001600160a01b03166120608461092f565b6001600160a01b0316145b8061209b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166120b6826110bb565b6001600160a01b03161461211e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109a4565b6001600160a01b0382166121805760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109a4565b61218b838383612f9c565b612196600082611f3e565b6001600160a01b03831660009081526003602052604081208054600192906121bf908490613e73565b90915550506001600160a01b03821660009081526003602052604081208054600192906121ed908490613e28565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b546001600160a01b0361010090910416331461227e5760405162461bcd60e51b81526004016109a490613d4d565b6017546000906001600160a01b0316612298606484613e40565b6122a3906005613e54565b604051600081818185875af1925050503d80600081146122df576040519150601f19603f3d011682016040523d82523d6000602084013e6122e4565b606091505b50509050806123355760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572312077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b6018546000906001600160a01b031661234f606485613e40565b61235a906005613e54565b604051600081818185875af1925050503d8060008114612396576040519150601f19603f3d011682016040523d82523d6000602084013e61239b565b606091505b50509050806123ec5760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572322077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b6019546000906001600160a01b0316612406606486613e40565b61241190600a613e54565b604051600081818185875af1925050503d806000811461244d576040519150601f19603f3d011682016040523d82523d6000602084013e612452565b606091505b50509050806124a35760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572332077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b601a546000906001600160a01b03166124bd606487613e40565b6124c890600c613e54565b604051600081818185875af1925050503d8060008114612504576040519150601f19603f3d011682016040523d82523d6000602084013e612509565b606091505b505090508061255a5760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572342077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b601c546000906001600160a01b0316612574606488613e40565b61257f906022613e54565b604051600081818185875af1925050503d80600081146125bb576040519150601f19603f3d011682016040523d82523d6000602084013e6125c0565b606091505b50509050806126115760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572362077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b601b546000906001600160a01b031661262b606489613e40565b612636906022613e54565b604051600081818185875af1925050503d8060008114612672576040519150601f19603f3d011682016040523d82523d6000602084013e612677565b606091505b50509050806126c85760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572352077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b50505050505050565b600b546001600160a01b036101009091041633146127015760405162461bcd60e51b81526004016109a490613d4d565b6013546000906001600160a01b031661271b606484613e40565b612726906004613e54565b604051600081818185875af1925050503d8060008114612762576040519150601f19603f3d011682016040523d82523d6000602084013e612767565b606091505b50509050806127c45760405162461bcd60e51b8152602060048201526024808201527f4f6e6554726565506c616e7465642077616c6c6574207472616e736665722065604482015263393937b960e11b60648201526084016109a4565b6014546000906001600160a01b03166127de606485613e40565b6127e990600f613e54565b604051600081818185875af1925050503d8060008114612825576040519150601f19603f3d011682016040523d82523d6000602084013e61282a565b606091505b505090508061287b5760405162461bcd60e51b815260206004820152601b60248201527f56526465762077616c6c6574207472616e73666572206572726f72000000000060448201526064016109a4565b6015546000906001600160a01b0316612895606486613e40565b6128a090600f613e54565b604051600081818185875af1925050503d80600081146128dc576040519150601f19603f3d011682016040523d82523d6000602084013e6128e1565b606091505b50509050806129325760405162461bcd60e51b815260206004820152601f60248201527f4d61726b6574696e672077616c6c6574207472616e73666572206572726f720060448201526064016109a4565b6016546000906001600160a01b031661294c606487613e40565b612957906021613e54565b604051600081818185875af1925050503d8060008114612993576040519150601f19603f3d011682016040523d82523d6000602084013e612998565b606091505b50509050806129e95760405162461bcd60e51b815260206004820152601f60248201527f4d61726b6574696e672077616c6c6574207472616e73666572206572726f720060448201526064016109a4565b612a076129f7606487613e40565b612a02906021613e54565b61224e565b5050505050565b600b5460ff16612a575760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109a4565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610e4a81612fed565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b5460ff1615612b4a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109a4565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a843390565b816001600160a01b0316836001600160a01b03161415612be15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109a4565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c598484846120a3565b612c658484848461302d565b61184e5760405162461bcd60e51b81526004016109a490613cfb565b600082612c8e858461313a565b14949350505050565b610c508282604051806020016040528060008152506131e6565b6000612cbc60215490565b9050600d54811415612d4057612cd0610d1c565b600e805461ffff1916815560408051428152602081018490526060918101829052908101919091526d135a5b9d0812185cc8115b99195960921b60808201527fa198e4d3a50ce07d020c16f3758076bc00bcdcc3fc1a43f55e7b8c28609d791f9060a0015b60405180910390a150565b7fa198e4d3a50ce07d020c16f3758076bc00bcdcc3fc1a43f55e7b8c28609d791f4282604051612d3592919091825260208201526060604082018190526013908201527210985d1d1b1948109d5b9b9e48135a5b9d1959606a1b608082015260a00190565b6060601080546108ac90613eb6565b606081612dd85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e025780612dec81613ef1565b9150612dfb9050600a83613e40565b9150612ddc565b60008167ffffffffffffffff811115612e1d57612e1d613f98565b6040519080825280601f01601f191660200182016040528015612e47576020820181803683370190505b5090505b841561209b57612e5c600183613e73565b9150612e69600a86613f2c565b612e74906030613e28565b60f81b818381518110612e8957612e89613f82565b60200101906001600160f81b031916908160001a905350612eab600a86613e40565b9450612e4b565b6000828152600260205260409020546001600160a01b0316612f2d5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016109a4565b6000828152600a602090815260409091208251610ada92840190613656565b60006001600160e01b031982166380ac58cd60e01b1480612f7d57506001600160e01b03198216635b5e139f60e01b145b8061089757506301ffc9a760e01b6001600160e01b0319831614610897565b600b5460ff1615612fe25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109a4565b610ada838383613219565b612ff6816132d1565b6000818152600a60205260409020805461300f90613eb6565b159050610e4a576000818152600a60205260408120610e4a916136da565b60006001600160a01b0384163b1561312f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613071903390899088908890600401613cab565b602060405180830381600087803b15801561308b57600080fd5b505af19250505080156130bb575060408051601f3d908101601f191682019092526130b891810190613a83565b60015b613115573d8080156130e9576040519150601f19603f3d011682016040523d82523d6000602084013e6130ee565b606091505b50805161310d5760405162461bcd60e51b81526004016109a490613cfb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061209b565b506001949350505050565b600081815b84518110156131de57600085828151811061315c5761315c613f82565b6020026020010151905080831161319e5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506131cb565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806131d681613ef1565b91505061313f565b509392505050565b6131f08383613378565b6131fd600084848461302d565b610ada5760405162461bcd60e51b81526004016109a490613cfb565b6001600160a01b0383166132745761326f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613297565b816001600160a01b0316836001600160a01b0316146132975761329783826134c6565b6001600160a01b0382166132ae57610ada81613563565b826001600160a01b0316826001600160a01b031614610ada57610ada8282613612565b60006132dc826110bb565b90506132ea81600084612f9c565b6132f5600083611f3e565b6001600160a01b038116600090815260036020526040812080546001929061331e908490613e73565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166133ce5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a4565b6000818152600260205260409020546001600160a01b0316156134335760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109a4565b61343f60008383612f9c565b6001600160a01b0382166000908152600360205260408120805460019290613468908490613e28565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016134d384611132565b6134dd9190613e73565b600083815260076020526040902054909150808214613530576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061357590600190613e73565b6000838152600960205260408120546008805493945090928490811061359d5761359d613f82565b9060005260206000200154905080600883815481106135be576135be613f82565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806135f6576135f6613f6c565b6001900381819060005260206000200160009055905550505050565b600061361d83611132565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461366290613eb6565b90600052602060002090601f01602090048101928261368457600085556136ca565b82601f1061369d57805160ff19168380011785556136ca565b828001600101855582156136ca579182015b828111156136ca5782518255916020019190600101906136af565b506136d6929150613710565b5090565b5080546136e690613eb6565b6000825580601f106136f6575050565b601f016020900490600052602060002090810190610e4a91905b5b808211156136d65760008155600101613711565b600067ffffffffffffffff83111561373f5761373f613f98565b613752601f8401601f1916602001613dd3565b905082815283838301111561376657600080fd5b828260208301376000602084830101529392505050565b8035801515811461378d57600080fd5b919050565b600082601f8301126137a357600080fd5b611df883833560208501613725565b6000602082840312156137c457600080fd5b8135611df881613fae565b600080604083850312156137e257600080fd5b82356137ed81613fae565b915060208301356137fd81613fae565b809150509250929050565b60008060006060848603121561381d57600080fd5b833561382881613fae565b9250602084013561383881613fae565b929592945050506040919091013590565b6000806000806080858703121561385f57600080fd5b843561386a81613fae565b9350602085013561387a81613fae565b925060408501359150606085013567ffffffffffffffff81111561389d57600080fd5b8501601f810187136138ae57600080fd5b6138bd87823560208401613725565b91505092959194509250565b600080604083850312156138dc57600080fd5b82356138e781613fae565b91506138f56020840161377d565b90509250929050565b6000806040838503121561391157600080fd5b823561391c81613fae565b9150602083013567ffffffffffffffff81111561393857600080fd5b61394485828601613792565b9150509250929050565b6000806040838503121561396157600080fd5b823561396c81613fae565b946020939093013593505050565b6000806040838503121561398d57600080fd5b823567ffffffffffffffff8111156139a457600080fd5b8301601f810185136139b557600080fd5b803560206139ca6139c583613e04565b613dd3565b80838252828201915082850189848660051b88010111156139ea57600080fd5b600095505b84861015613a16578035613a0281613fae565b8352600195909501949183019183016139ef565b509550613a26905086820161377d565b93505050509250929050565b600060208284031215613a4457600080fd5b611df88261377d565b600060208284031215613a5f57600080fd5b5035919050565b600060208284031215613a7857600080fd5b8135611df881613fc3565b600060208284031215613a9557600080fd5b8151611df881613fc3565b600060208284031215613ab257600080fd5b813567ffffffffffffffff811115613ac957600080fd5b61209b84828501613792565b600080600060608486031215613aea57600080fd5b833592506020840135613afc81613fae565b91506040840135613b0c81613fae565b809150509250925092565b60008060408385031215613b2a57600080fd5b8235915060208084013567ffffffffffffffff811115613b4957600080fd5b8401601f81018613613b5a57600080fd5b8035613b686139c582613e04565b80828252848201915084840189868560051b8701011115613b8857600080fd5b600094505b83851015613bab578035835260019490940193918501918501613b8d565b5080955050505050509250929050565b60008151808452613bd3816020860160208601613e8a565b601f01601f19169290920160200192915050565b600084516020613bfa8285838a01613e8a565b855191840191613c0d8184848a01613e8a565b8554920191600090600181811c9080831680613c2a57607f831692505b858310811415613c4857634e487b7160e01b85526022600452602485fd5b808015613c5c5760018114613c6d57613c9a565b60ff19851688528388019550613c9a565b60008b81526020902060005b85811015613c925781548a820152908401908801613c79565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613cde90830184613bbb565b9695505050505050565b602081526000611df86020830184613bbb565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613dfc57613dfc613f98565b604052919050565b600067ffffffffffffffff821115613e1e57613e1e613f98565b5060051b60200190565b60008219821115613e3b57613e3b613f40565b500190565b600082613e4f57613e4f613f56565b500490565b6000816000190483118215151615613e6e57613e6e613f40565b500290565b600082821015613e8557613e85613f40565b500390565b60005b83811015613ea5578181015183820152602001613e8d565b8381111561184e5750506000910152565b600181811c90821680613eca57607f821691505b60208210811415613eeb57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613f0557613f05613f40565b5060010190565b600060ff821660ff811415613f2357613f23613f40565b60010192915050565b600082613f3b57613f3b613f56565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610e4a57600080fd5b6001600160e01b031981168114610e4a57600080fdfe596f75722070726576696f7573206164647265737320646f6573206e6f74206d61746368207468652061646472657373206f662074686520726f6c6520796f752061726520747279696e6720746f2073657420706c6561736520636f6e6669726d20796f752061726520747279696e6720746f207365742074686520636f727265637420726f6c65a2646970667358221220ad8b5b28cb2f5373952856a679c3f96944194623b9884476cffe1d10ebb54d9664736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d545543526d487a583467355a75384c4769486143324132386373446a396179674647323831453557416359450000000000000000000000
Deployed Bytecode
0x6080604052600436106102745760003560e01c806355f804b31161014e57806395d89b41116100bb578063ba41b0c611610077578063ba41b0c6146107bb578063c87b56dd146107ce578063d204c45e146107ee578063e4b7fb731461080e578063e985e9c514610823578063f2fde38b1461086c57005b806395d89b4114610711578063a22cb46514610726578063a475b5dd14610746578063ae568e6b1461075b578063b4d80ec71461077b578063b88d4fde1461079b57005b80637cb647591161010a5780637cb647591461064b5780638456cb591461066b57806387803862146106805780638d859f3e1461069a5780638da5cb5b146106ce57806390fb5fb9146106f157005b806355f804b3146105855780635c975abb146105a55780636352211e146105bd57806370a08231146105dd578063715018a6146105fd57806374d523a81461061257005b8063390b91c4116101ec5780634311de8f116101a85780634311de8f146104e3578063454ddb63146104eb5780634b0bddd2146105055780634f6ccce714610525578063518302271461054557806353ca912a1461056557005b8063390b91c4146104215780633cb38fc2146104405780633ccfd60b146104795780633f4ba83a1461048e57806342842e0e146104a357806342966c68146104c357005b806318160ddd1161023b57806318160ddd1461034c57806323b872dd1461036b578063256209351461038b5780632eb4a7ab146103d55780632f745c59146103eb57806332cb6b0c1461040b57005b806301ffc9a71461027d57806306fdde03146102b2578063081812fc146102d4578063095ea7b31461030c57806318088ed21461032c57005b3661027b57005b005b34801561028957600080fd5b5061029d610298366004613a66565b61088c565b60405190151581526020015b60405180910390f35b3480156102be57600080fd5b506102c761089d565b6040516102a99190613ce8565b3480156102e057600080fd5b506102f46102ef366004613a4d565b61092f565b6040516001600160a01b0390911681526020016102a9565b34801561031857600080fd5b5061027b61032736600461394e565b6109c9565b34801561033857600080fd5b5061027b61034736600461397a565b610adf565b34801561035857600080fd5b506008545b6040519081526020016102a9565b34801561037757600080fd5b5061027b610386366004613808565b610c54565b34801561039757600080fd5b506103c36103a63660046137b2565b6001600160a01b0316600090815260208052604090205460ff1690565b60405160ff90911681526020016102a9565b3480156103e157600080fd5b5061035d60125481565b3480156103f757600080fd5b5061035d61040636600461394e565b610c86565b34801561041757600080fd5b5061035d600d5481565b34801561042d57600080fd5b50600e5461029d90610100900460ff1681565b34801561044c57600080fd5b5061029d61045b3660046137b2565b6001600160a01b03166000908152601f602052604090205460ff1690565b34801561048557600080fd5b5061027b610d1c565b34801561049a57600080fd5b5061027b610d80565b3480156104af57600080fd5b5061027b6104be366004613808565b610db8565b3480156104cf57600080fd5b5061027b6104de366004613a4d565b610dd3565b61027b610e4d565b3480156104f757600080fd5b506011546103c39060ff1681565b34801561051157600080fd5b5061027b6105203660046138c9565b610ee2565b34801561053157600080fd5b5061035d610540366004613a4d565b610fba565b34801561055157600080fd5b50600e5461029d9062010000900460ff1681565b34801561057157600080fd5b5061027b610580366004613a32565b61104d565b34801561059157600080fd5b5061027b6105a0366004613aa0565b611078565b3480156105b157600080fd5b50600b5460ff1661029d565b3480156105c957600080fd5b506102f46105d8366004613a4d565b6110bb565b3480156105e957600080fd5b5061035d6105f83660046137b2565b611132565b34801561060957600080fd5b5061027b6111b9565b34801561061e57600080fd5b5061029d61062d3660046137b2565b6001600160a01b03166000908152601e602052604090205460ff1690565b34801561065757600080fd5b5061027b610666366004613a4d565b6111f3565b34801561067757600080fd5b5061027b611210565b34801561068c57600080fd5b50600e5461029d9060ff1681565b3480156106a657600080fd5b506106b66702c68af0bb14000081565b6040516001600160a81b0390911681526020016102a9565b3480156106da57600080fd5b50600b5461010090046001600160a01b03166102f4565b3480156106fd57600080fd5b5061027b61070c366004613aa0565b611248565b34801561071d57600080fd5b506102c761128b565b34801561073257600080fd5b5061027b6107413660046138c9565b61129a565b34801561075257600080fd5b5061027b6112a5565b34801561076757600080fd5b5061027b610776366004613ad5565b6112e8565b34801561078757600080fd5b5061027b610796366004613a32565b611854565b3480156107a757600080fd5b5061027b6107b6366004613849565b611884565b61027b6107c9366004613b17565b6118b6565b3480156107da57600080fd5b506102c76107e9366004613a4d565b611c95565b3480156107fa57600080fd5b5061027b6108093660046138fe565b611dff565b34801561081a57600080fd5b5061035d611e5e565b34801561082f57600080fd5b5061029d61083e3660046137cf565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561087857600080fd5b5061027b6108873660046137b2565b611e7b565b600061089782611f19565b92915050565b6060600080546108ac90613eb6565b80601f01602080910402602001604051908101604052809291908181526020018280546108d890613eb6565b80156109255780601f106108fa57610100808354040283529160200191610925565b820191906000526020600020905b81548152906001019060200180831161090857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109ad5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109d4826110bb565b9050806001600160a01b0316836001600160a01b03161415610a425760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109a4565b336001600160a01b0382161480610a5e5750610a5e813361083e565b610ad05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109a4565b610ada8383611f3e565b505050565b336000908152601e602052604090205460ff1615610bfd5760005b8251811015610ada57811515601f6000858481518110610b1c57610b1c613f82565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615151415610ba25760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74206368616e6765207573657220746f207468652073616d65207360448201526503a30ba3297160d51b60648201526084016109a4565b81601f6000858481518110610bb957610bb9613f82565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610bf581613ef1565b915050610afa565b60405162461bcd60e51b815260206004820152602260248201527f5468697320616374696f6e20697320726573657276656420666f722041646d696044820152616e7360f01b60648201526084016109a4565b5050565b610c5f335b82611fac565b610c7b5760405162461bcd60e51b81526004016109a490613d82565b610ada8383836120a3565b6000610c9183611132565b8210610cf35760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109a4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b03610100909104163314610d4c5760405162461bcd60e51b81526004016109a490613d4d565b600e5460ff16158015610d675750600e54610100900460ff16155b15610d7757610d754761224e565b565b610d75476126d1565b600b546001600160a01b03610100909104163314610db05760405162461bcd60e51b81526004016109a490613d4d565b610d75612a0e565b610ada83838360405180602001604052806000815250611884565b610ddc33610c59565b610e415760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016109a4565b610e4a81612aa1565b50565b600b546001600160a01b03610100909104163314610e7d5760405162461bcd60e51b81526004016109a490613d4d565b600b5460405160009161010090046001600160a01b03169047908381818185875af1925050503d8060008114610ecf576040519150601f19603f3d011682016040523d82523d6000602084013e610ed4565b606091505b5050905080610e4a57600080fd5b600b546001600160a01b03610100909104163314610f125760405162461bcd60e51b81526004016109a490613d4d565b6001600160a01b0382166000908152601e602052604090205460ff1615158115151415610f8f5760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74206368616e6765207573657220746f207468652073616d6520736044820152643a30ba329760d91b60648201526084016109a4565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6000610fc560085490565b82106110285760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109a4565b6008828154811061103b5761103b613f82565b90600052602060002001549050919050565b336000908152601e602052604090205460ff1615610bfd57600e805482151560ff1990911617905550565b600b546001600160a01b036101009091041633146110a85760405162461bcd60e51b81526004016109a490613d4d565b8051610c50906010906020840190613656565b6000818152600260205260408120546001600160a01b0316806108975760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109a4565b60006001600160a01b03821661119d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109a4565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b036101009091041633146111e95760405162461bcd60e51b81526004016109a490613d4d565b610d756000612aaa565b336000908152601e602052604090205460ff1615610bfd57601255565b600b546001600160a01b036101009091041633146112405760405162461bcd60e51b81526004016109a490613d4d565b610d75612b04565b600b546001600160a01b036101009091041633146112785760405162461bcd60e51b81526004016109a490613d4d565b8051610c5090600f906020840190613656565b6060600180546108ac90613eb6565b610c50338383612b7f565b600b546001600160a01b036101009091041633146112d55760405162461bcd60e51b81526004016109a490613d4d565b600e805462ff0000191662010000179055565b600b546001600160a01b036101009091041633146113185760405162461bcd60e51b81526004016109a490613d4d565b60006040518060c0016040528060888152602001613fda608891399050600184101580156113475750600a8411155b6114055760405162461bcd60e51b815260206004820152607760248201527f596f75206d7573742064657369676e61746520612076616c6964206163636f7560448201527f6e74206e756d6265722c20656e7465722031207468726f756768203620666f7260648201527f20666f756e646572206163636f756e747320616e642037207468726f7567682060848201527f313020666f722067656e6572616c206163636f756e747300000000000000000060a482015260c4016109a4565b816001600160a01b0316836001600160a01b0316141561148d5760405162461bcd60e51b815260206004820152603760248201527f596f752063616e6e6f7420736574207468652073616d6520616464726573732060448201527f6173207468652070726576696f7573206164647265737300000000000000000060648201526084016109a4565b83600114156114e75760175481906001600160a01b038581169116146114c65760405162461bcd60e51b81526004016109a49190613ce8565b50601780546001600160a01b0319166001600160a01b03841617905561184e565b83600214156115415760185481906001600160a01b038581169116146115205760405162461bcd60e51b81526004016109a49190613ce8565b50601880546001600160a01b0319166001600160a01b03841617905561184e565b836003141561159b5760195481906001600160a01b0385811691161461157a5760405162461bcd60e51b81526004016109a49190613ce8565b50601980546001600160a01b0319166001600160a01b03841617905561184e565b83600414156115f557601a5481906001600160a01b038581169116146115d45760405162461bcd60e51b81526004016109a49190613ce8565b50601a80546001600160a01b0319166001600160a01b03841617905561184e565b836005141561164f57601b5481906001600160a01b0385811691161461162e5760405162461bcd60e51b81526004016109a49190613ce8565b50601b80546001600160a01b0319166001600160a01b03841617905561184e565b83600614156116a957601c5481906001600160a01b038581169116146116885760405162461bcd60e51b81526004016109a49190613ce8565b50601c80546001600160a01b0319166001600160a01b03841617905561184e565b83600714156117035760135481906001600160a01b038581169116146116e25760405162461bcd60e51b81526004016109a49190613ce8565b50601380546001600160a01b0319166001600160a01b03841617905561184e565b836008141561175d5760145481906001600160a01b0385811691161461173c5760405162461bcd60e51b81526004016109a49190613ce8565b50601480546001600160a01b0319166001600160a01b03841617905561184e565b83600914156117b75760155481906001600160a01b038581169116146117965760405162461bcd60e51b81526004016109a49190613ce8565b50601580546001600160a01b0319166001600160a01b03841617905561184e565b83600a14156118115760165481906001600160a01b038581169116146117f05760405162461bcd60e51b81526004016109a49190613ce8565b50601680546001600160a01b0319166001600160a01b03841617905561184e565b60405162461bcd60e51b81526020600482015260126024820152711c185e5959481c995cd95d0819985a5b195960721b60448201526064016109a4565b50505050565b336000908152601e602052604090205460ff1615610bfd57600e80548215156101000261ff001990911617905550565b61188e3383611fac565b6118aa5760405162461bcd60e51b81526004016109a490613d82565b61184e84848484612c4e565b600e54819060ff6101009091041615156001148061191157506012546040516bffffffffffffffffffffffff193360601b16602082015261191191839160340160405160208183030381529060405280519060200120612c81565b8061192b5750336000908152601e602052604090205460ff165b806119455750336000908152601f602052604090205460ff165b15611c2e57600e5460ff16806119625750600e54610100900460ff165b60018115151415611bd75761197f846702c68af0bb140000613e54565b34146119c45760405162461bcd60e51b8152602060048201526014602482015273125b9cdd59999a58da595b9d081c185e5b595b9d60621b60448201526064016109a4565b600d546021546119d49086613e28565b1115611a3b5760405162461bcd60e51b815260206004820152603060248201527f43616e6e6f74206d696e74206d6f7265207468616e2072656d61696e696e672060448201526f746f6b656e7320696e20737570706c7960801b60648201526084016109a4565b60115433600090815260208052604090205460ff91821691611a5f91879116613e28565b1115611af95760405162461bcd60e51b815260206004820152605c60248201527f4d696e74696e672074686973206d616e7920746f6b656e7320776f756c64206560448201527f786365656420796f75722077616c6c6574206c696d697421205361766520736f60648201527f6d652062756e6e69657320666f7220796f757220667269656e64732100000000608482015260a4016109a4565b611b0b846702c68af0bb140000613e54565b341415611b9d5760005b84811015611b9757611b2b602180546001019055565b6000611b3660215490565b3360009081526020805260408120805492935060ff9092169190611b5983613f0c565b91906101000a81548160ff021916908360ff16021790555050611b7c3382612c97565b611b84612cb1565b5080611b8f81613ef1565b915050611b15565b5061184e565b60405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081c185e5b595b9d608a1b60448201526064016109a4565b60405162461bcd60e51b815260206004820152602660248201527f546869732066756e6374696f6e2069736e7420617661696c61626c65207269676044820152656874206e6f7760d01b60648201526084016109a4565b60405162461bcd60e51b815260206004820152603660248201527f5468697320616374696f6e20697320726573657276656420666f72206d656d62604482015275195c9cc81bd9881d1a194812da5b99dcc810dbdd5c9d60521b60648201526084016109a4565b6000818152600260205260409020546060906001600160a01b0316611cfc5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016109a4565b6000611d06612da5565b600e5490915062010000900460ff16611dac57600f8054611d2690613eb6565b80601f0160208091040260200160405190810160405280929190818152602001828054611d5290613eb6565b8015611d9f5780601f10611d7457610100808354040283529160200191611d9f565b820191906000526020600020905b815481529060010190602001808311611d8257829003601f168201915b5050505050915050919050565b6000815111611dca5760405180602001604052806000815250611df8565b80611dd484612db4565b600c604051602001611de893929190613be7565b6040516020818303038152906040525b9392505050565b600b546001600160a01b03610100909104163314611e2f5760405162461bcd60e51b81526004016109a490613d4d565b611e3d602180546001019055565b6000611e4860215490565b9050611e548382612c97565b610ada8183612eb2565b6000611e6960215490565b600d54611e769190613e73565b905090565b600b546001600160a01b03610100909104163314611eab5760405162461bcd60e51b81526004016109a490613d4d565b6001600160a01b038116611f105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a4565b610e4a81612aaa565b60006001600160e01b0319821663780e9d6360e01b1480610897575061089782612f4c565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611f73826110bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166120255760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a4565b6000612030836110bb565b9050806001600160a01b0316846001600160a01b0316148061206b5750836001600160a01b03166120608461092f565b6001600160a01b0316145b8061209b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166120b6826110bb565b6001600160a01b03161461211e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109a4565b6001600160a01b0382166121805760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109a4565b61218b838383612f9c565b612196600082611f3e565b6001600160a01b03831660009081526003602052604081208054600192906121bf908490613e73565b90915550506001600160a01b03821660009081526003602052604081208054600192906121ed908490613e28565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b546001600160a01b0361010090910416331461227e5760405162461bcd60e51b81526004016109a490613d4d565b6017546000906001600160a01b0316612298606484613e40565b6122a3906005613e54565b604051600081818185875af1925050503d80600081146122df576040519150601f19603f3d011682016040523d82523d6000602084013e6122e4565b606091505b50509050806123355760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572312077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b6018546000906001600160a01b031661234f606485613e40565b61235a906005613e54565b604051600081818185875af1925050503d8060008114612396576040519150601f19603f3d011682016040523d82523d6000602084013e61239b565b606091505b50509050806123ec5760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572322077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b6019546000906001600160a01b0316612406606486613e40565b61241190600a613e54565b604051600081818185875af1925050503d806000811461244d576040519150601f19603f3d011682016040523d82523d6000602084013e612452565b606091505b50509050806124a35760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572332077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b601a546000906001600160a01b03166124bd606487613e40565b6124c890600c613e54565b604051600081818185875af1925050503d8060008114612504576040519150601f19603f3d011682016040523d82523d6000602084013e612509565b606091505b505090508061255a5760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572342077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b601c546000906001600160a01b0316612574606488613e40565b61257f906022613e54565b604051600081818185875af1925050503d80600081146125bb576040519150601f19603f3d011682016040523d82523d6000602084013e6125c0565b606091505b50509050806126115760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572362077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b601b546000906001600160a01b031661262b606489613e40565b612636906022613e54565b604051600081818185875af1925050503d8060008114612672576040519150601f19603f3d011682016040523d82523d6000602084013e612677565b606091505b50509050806126c85760405162461bcd60e51b815260206004820152601e60248201527f466f756e646572352077616c6c6574207472616e73666572206572726f72000060448201526064016109a4565b50505050505050565b600b546001600160a01b036101009091041633146127015760405162461bcd60e51b81526004016109a490613d4d565b6013546000906001600160a01b031661271b606484613e40565b612726906004613e54565b604051600081818185875af1925050503d8060008114612762576040519150601f19603f3d011682016040523d82523d6000602084013e612767565b606091505b50509050806127c45760405162461bcd60e51b8152602060048201526024808201527f4f6e6554726565506c616e7465642077616c6c6574207472616e736665722065604482015263393937b960e11b60648201526084016109a4565b6014546000906001600160a01b03166127de606485613e40565b6127e990600f613e54565b604051600081818185875af1925050503d8060008114612825576040519150601f19603f3d011682016040523d82523d6000602084013e61282a565b606091505b505090508061287b5760405162461bcd60e51b815260206004820152601b60248201527f56526465762077616c6c6574207472616e73666572206572726f72000000000060448201526064016109a4565b6015546000906001600160a01b0316612895606486613e40565b6128a090600f613e54565b604051600081818185875af1925050503d80600081146128dc576040519150601f19603f3d011682016040523d82523d6000602084013e6128e1565b606091505b50509050806129325760405162461bcd60e51b815260206004820152601f60248201527f4d61726b6574696e672077616c6c6574207472616e73666572206572726f720060448201526064016109a4565b6016546000906001600160a01b031661294c606487613e40565b612957906021613e54565b604051600081818185875af1925050503d8060008114612993576040519150601f19603f3d011682016040523d82523d6000602084013e612998565b606091505b50509050806129e95760405162461bcd60e51b815260206004820152601f60248201527f4d61726b6574696e672077616c6c6574207472616e73666572206572726f720060448201526064016109a4565b612a076129f7606487613e40565b612a02906021613e54565b61224e565b5050505050565b600b5460ff16612a575760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109a4565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610e4a81612fed565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b5460ff1615612b4a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109a4565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a843390565b816001600160a01b0316836001600160a01b03161415612be15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109a4565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c598484846120a3565b612c658484848461302d565b61184e5760405162461bcd60e51b81526004016109a490613cfb565b600082612c8e858461313a565b14949350505050565b610c508282604051806020016040528060008152506131e6565b6000612cbc60215490565b9050600d54811415612d4057612cd0610d1c565b600e805461ffff1916815560408051428152602081018490526060918101829052908101919091526d135a5b9d0812185cc8115b99195960921b60808201527fa198e4d3a50ce07d020c16f3758076bc00bcdcc3fc1a43f55e7b8c28609d791f9060a0015b60405180910390a150565b7fa198e4d3a50ce07d020c16f3758076bc00bcdcc3fc1a43f55e7b8c28609d791f4282604051612d3592919091825260208201526060604082018190526013908201527210985d1d1b1948109d5b9b9e48135a5b9d1959606a1b608082015260a00190565b6060601080546108ac90613eb6565b606081612dd85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e025780612dec81613ef1565b9150612dfb9050600a83613e40565b9150612ddc565b60008167ffffffffffffffff811115612e1d57612e1d613f98565b6040519080825280601f01601f191660200182016040528015612e47576020820181803683370190505b5090505b841561209b57612e5c600183613e73565b9150612e69600a86613f2c565b612e74906030613e28565b60f81b818381518110612e8957612e89613f82565b60200101906001600160f81b031916908160001a905350612eab600a86613e40565b9450612e4b565b6000828152600260205260409020546001600160a01b0316612f2d5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016109a4565b6000828152600a602090815260409091208251610ada92840190613656565b60006001600160e01b031982166380ac58cd60e01b1480612f7d57506001600160e01b03198216635b5e139f60e01b145b8061089757506301ffc9a760e01b6001600160e01b0319831614610897565b600b5460ff1615612fe25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109a4565b610ada838383613219565b612ff6816132d1565b6000818152600a60205260409020805461300f90613eb6565b159050610e4a576000818152600a60205260408120610e4a916136da565b60006001600160a01b0384163b1561312f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613071903390899088908890600401613cab565b602060405180830381600087803b15801561308b57600080fd5b505af19250505080156130bb575060408051601f3d908101601f191682019092526130b891810190613a83565b60015b613115573d8080156130e9576040519150601f19603f3d011682016040523d82523d6000602084013e6130ee565b606091505b50805161310d5760405162461bcd60e51b81526004016109a490613cfb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061209b565b506001949350505050565b600081815b84518110156131de57600085828151811061315c5761315c613f82565b6020026020010151905080831161319e5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506131cb565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806131d681613ef1565b91505061313f565b509392505050565b6131f08383613378565b6131fd600084848461302d565b610ada5760405162461bcd60e51b81526004016109a490613cfb565b6001600160a01b0383166132745761326f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613297565b816001600160a01b0316836001600160a01b0316146132975761329783826134c6565b6001600160a01b0382166132ae57610ada81613563565b826001600160a01b0316826001600160a01b031614610ada57610ada8282613612565b60006132dc826110bb565b90506132ea81600084612f9c565b6132f5600083611f3e565b6001600160a01b038116600090815260036020526040812080546001929061331e908490613e73565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166133ce5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a4565b6000818152600260205260409020546001600160a01b0316156134335760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109a4565b61343f60008383612f9c565b6001600160a01b0382166000908152600360205260408120805460019290613468908490613e28565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016134d384611132565b6134dd9190613e73565b600083815260076020526040902054909150808214613530576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061357590600190613e73565b6000838152600960205260408120546008805493945090928490811061359d5761359d613f82565b9060005260206000200154905080600883815481106135be576135be613f82565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806135f6576135f6613f6c565b6001900381819060005260206000200160009055905550505050565b600061361d83611132565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461366290613eb6565b90600052602060002090601f01602090048101928261368457600085556136ca565b82601f1061369d57805160ff19168380011785556136ca565b828001600101855582156136ca579182015b828111156136ca5782518255916020019190600101906136af565b506136d6929150613710565b5090565b5080546136e690613eb6565b6000825580601f106136f6575050565b601f016020900490600052602060002090810190610e4a91905b5b808211156136d65760008155600101613711565b600067ffffffffffffffff83111561373f5761373f613f98565b613752601f8401601f1916602001613dd3565b905082815283838301111561376657600080fd5b828260208301376000602084830101529392505050565b8035801515811461378d57600080fd5b919050565b600082601f8301126137a357600080fd5b611df883833560208501613725565b6000602082840312156137c457600080fd5b8135611df881613fae565b600080604083850312156137e257600080fd5b82356137ed81613fae565b915060208301356137fd81613fae565b809150509250929050565b60008060006060848603121561381d57600080fd5b833561382881613fae565b9250602084013561383881613fae565b929592945050506040919091013590565b6000806000806080858703121561385f57600080fd5b843561386a81613fae565b9350602085013561387a81613fae565b925060408501359150606085013567ffffffffffffffff81111561389d57600080fd5b8501601f810187136138ae57600080fd5b6138bd87823560208401613725565b91505092959194509250565b600080604083850312156138dc57600080fd5b82356138e781613fae565b91506138f56020840161377d565b90509250929050565b6000806040838503121561391157600080fd5b823561391c81613fae565b9150602083013567ffffffffffffffff81111561393857600080fd5b61394485828601613792565b9150509250929050565b6000806040838503121561396157600080fd5b823561396c81613fae565b946020939093013593505050565b6000806040838503121561398d57600080fd5b823567ffffffffffffffff8111156139a457600080fd5b8301601f810185136139b557600080fd5b803560206139ca6139c583613e04565b613dd3565b80838252828201915082850189848660051b88010111156139ea57600080fd5b600095505b84861015613a16578035613a0281613fae565b8352600195909501949183019183016139ef565b509550613a26905086820161377d565b93505050509250929050565b600060208284031215613a4457600080fd5b611df88261377d565b600060208284031215613a5f57600080fd5b5035919050565b600060208284031215613a7857600080fd5b8135611df881613fc3565b600060208284031215613a9557600080fd5b8151611df881613fc3565b600060208284031215613ab257600080fd5b813567ffffffffffffffff811115613ac957600080fd5b61209b84828501613792565b600080600060608486031215613aea57600080fd5b833592506020840135613afc81613fae565b91506040840135613b0c81613fae565b809150509250925092565b60008060408385031215613b2a57600080fd5b8235915060208084013567ffffffffffffffff811115613b4957600080fd5b8401601f81018613613b5a57600080fd5b8035613b686139c582613e04565b80828252848201915084840189868560051b8701011115613b8857600080fd5b600094505b83851015613bab578035835260019490940193918501918501613b8d565b5080955050505050509250929050565b60008151808452613bd3816020860160208601613e8a565b601f01601f19169290920160200192915050565b600084516020613bfa8285838a01613e8a565b855191840191613c0d8184848a01613e8a565b8554920191600090600181811c9080831680613c2a57607f831692505b858310811415613c4857634e487b7160e01b85526022600452602485fd5b808015613c5c5760018114613c6d57613c9a565b60ff19851688528388019550613c9a565b60008b81526020902060005b85811015613c925781548a820152908401908801613c79565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613cde90830184613bbb565b9695505050505050565b602081526000611df86020830184613bbb565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613dfc57613dfc613f98565b604052919050565b600067ffffffffffffffff821115613e1e57613e1e613f98565b5060051b60200190565b60008219821115613e3b57613e3b613f40565b500190565b600082613e4f57613e4f613f56565b500490565b6000816000190483118215151615613e6e57613e6e613f40565b500290565b600082821015613e8557613e85613f40565b500390565b60005b83811015613ea5578181015183820152602001613e8d565b8381111561184e5750506000910152565b600181811c90821680613eca57607f821691505b60208210811415613eeb57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613f0557613f05613f40565b5060010190565b600060ff821660ff811415613f2357613f23613f40565b60010192915050565b600082613f3b57613f3b613f56565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610e4a57600080fd5b6001600160e01b031981168114610e4a57600080fdfe596f75722070726576696f7573206164647265737320646f6573206e6f74206d61746368207468652061646472657373206f662074686520726f6c6520796f752061726520747279696e6720746f2073657420706c6561736520636f6e6669726d20796f752061726520747279696e6720746f207365742074686520636f727265637420726f6c65a2646970667358221220ad8b5b28cb2f5373952856a679c3f96944194623b9884476cffe1d10ebb54d9664736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d545543526d487a583467355a75384c4769486143324132386373446a396179674647323831453557416359450000000000000000000000
-----Decoded View---------------
Arg [0] : _initNotRevealedUri (string): ipfs://QmTUCRmHzX4g5Zu8LGiHaC2A28csDj9aygFG281E5WAcYE
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [2] : 697066733a2f2f516d545543526d487a583467355a75384c4769486143324132
Arg [3] : 386373446a396179674647323831453557416359450000000000000000000000
Loading...
Loading
Loading...
Loading
[ 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.