ERC-721
NFT
Overview
Max Total Supply
10,000 TWQ
Holders
2,796
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 TWQLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheWonderQuest
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// _______ _ _ ______ // |__ __| | | | ____| // | | | |__| | |__ // | | | __ | __| // | | | | | | |____ // __ ______ _ _ _____ |_|__|_|__|_|______| _ _ ______ _____ _______ // \ \ / / __ \| \ | | __ \| ____| __ \ / __ \| | | | ____|/ ____|__ __| // \ \ /\ / / | | | \| | | | | |__ | |__) | | | | | | | |__ | (___ | | // \ \/ \/ /| | | | . ` | | | | __| | _ /| | | | | | | __| \___ \ | | // \ /\ / | |__| | |\ | |__| | |____| | \ \| |__| | |__| | |____ ____) | | | // \/ \/ \____/|_| \_|_____/|______|_|__\_\\___\_\\____/|______|_____/ |_| // ______ / _ \ ______ // ______ ______ ______ ______ _____|______| | | |______|_____ ______ ______ ______ ______ // |______|______|______|______|______|_____| | | |_____|______|______|______|______|______| // |______| |_| |______| // \___/ // // // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721.sol"; contract TheWonderQuest is ERC721 { event Hatch(address indexed from, uint256 indexed tokenId); modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } modifier onlyCollaborator() { bool isCollaborator = false; for (uint256 i; i < collaborators.length; i++) { if (collaborators[i].addr == msg.sender) { isCollaborator = true; break; } } require( owner() == _msgSender() || isCollaborator, "Ownable: caller is not the owner nor a collaborator" ); _; } modifier claimStarted() { require( startClaimDate != 0 && startClaimDate <= block.timestamp, "You are too early" ); _; } modifier hatchStarted() { require( startHatchDate != 0 && startHatchDate <= block.timestamp, "You are too early" ); _; } struct Collaborators { address addr; uint256 cut; } uint256 private startClaimDate = 1627250400; uint256 private startHatchDate = 1627855200; uint256 private claimPrice = 88800000000000000; uint256 private totalTokens = 10000; uint256 private totalMintedTokens = 0; uint256 private maxClaimsPerWallet = 10; uint128 private basisPoints = 10000; string private baseURI = "https://dragon-eggs.s3.ap-southeast-2.amazonaws.com/"; mapping(address => uint256) private claimedEggsPerWallet; mapping(uint256 => bool) private hatchedEggs; uint16[] availableEggs; Collaborators[] private collaborators; constructor() ERC721("TheWonderQuest", "TWQ") {} // ONLY OWNER /** * Sets the collaborators of the project with their cuts */ function addCollaborators(Collaborators[] memory _collaborators) external onlyOwner { require(collaborators.length == 0, "Collaborators were already set"); uint128 totalCut; for (uint256 i; i < _collaborators.length; i++) { collaborators.push(_collaborators[i]); totalCut += uint128(_collaborators[i].cut); } require(totalCut == basisPoints, "Total cut does not add to 100%"); } // ONLY COLLABORATORS /** * @dev Allows to withdraw the Ether in the contract and split it among the collaborators */ function withdraw() external onlyCollaborator { uint256 totalBalance = address(this).balance; for (uint256 i; i < collaborators.length; i++) { payable(collaborators[i].addr).transfer( mulScale(totalBalance, collaborators[i].cut, basisPoints) ); } } /** * @dev Sets the base URI for the API that provides the NFT data. */ function setBaseTokenURI(string memory _uri) external onlyCollaborator { baseURI = _uri; } /** * @dev Sets the claim price for each egg */ function setClaimPrice(uint256 _claimPrice) external onlyCollaborator { claimPrice = _claimPrice; } /** * @dev Populates the available eggs */ function addAvailableEggs(uint16 from, uint16 to) external onlyCollaborator { for (uint16 i = from; i <= to; i++) { availableEggs.push(i); } } /** * @dev Removes a chosen egg from the available list */ function removeEggsFromAvailableEggs(uint16 tokenId) external onlyCollaborator { for (uint16 i; i <= availableEggs.length; i++) { if (availableEggs[i] != tokenId) { continue; } availableEggs[i] = availableEggs[availableEggs.length - 1]; availableEggs.pop(); break; } } /** * @dev Allow devs to hand pick some eggs before the available eggs list is created */ function allocateTokens(uint256[] memory tokenIds) external onlyCollaborator { require(availableEggs.length == 0, "Available eggs are already set"); _batchMint(msg.sender, tokenIds); totalMintedTokens += tokenIds.length; } /** * @dev Collaborators can hatch their eggs before the hatch date */ function devHatchEggs(uint256[] memory tokenIds) external onlyCollaborator { for (uint256 i; i < tokenIds.length; i++) { require( ownerOf(tokenIds[i]) == msg.sender, "You can only hatch your own eggs" ); require( hatchedEggs[tokenIds[i]] == false, "Egg is already hatched" ); hatchedEggs[tokenIds[i]] = true; emit Hatch(msg.sender, tokenIds[i]); } } /** * @dev Sets the date that users can start claiming eggs */ function setStartClaimDate(uint256 _startClaimDate) external onlyCollaborator { startClaimDate = _startClaimDate; } /** * @dev Sets the date that users can start hatching eggs */ function setStartHatchDate(uint256 _startHatchDate) external onlyCollaborator { startHatchDate = _startHatchDate; } /** * @dev Checks if an egg is in the available list */ function isEggAvailable(uint16 tokenId) external view onlyCollaborator returns (bool) { for (uint16 i; i < availableEggs.length; i++) { if (availableEggs[i] == tokenId) { return true; } } return false; } /** * @dev Give random eggs to the provided addresses */ function devClaimEggs(address[] memory addresses) external onlyCollaborator { require( availableEggs.length >= addresses.length, "No eggs left to be claimed" ); totalMintedTokens += addresses.length; for (uint256 i; i < addresses.length; i++) { _mint(addresses[i], getEggToBeClaimed()); } } /** * @dev Give random eggs to the provided address */ function devClaimEggsToAddress(address _address, uint256 amount) external onlyCollaborator { require(availableEggs.length >= amount, "No eggs left to be claimed"); totalMintedTokens += amount; uint256[] memory tokenIds = new uint256[](amount); for (uint256 i; i < amount; i++) { tokenIds[i] = getEggToBeClaimed(); } _batchMint(_address, tokenIds); } // END ONLY COLLABORATORS /** * @dev Claim a single egg */ function claimEgg() external payable callerIsUser claimStarted { require(msg.value >= claimPrice, "Not enough Ether to claim an egg"); require( claimedEggsPerWallet[msg.sender] < maxClaimsPerWallet, "You cannot claim more eggs" ); require(availableEggs.length > 0, "No eggs left to be claimed"); claimedEggsPerWallet[msg.sender]++; totalMintedTokens++; _mint(msg.sender, getEggToBeClaimed()); } /** * @dev Claim up to 10 eggs at once */ function claimEggs(uint256 amount) external payable callerIsUser claimStarted { require( msg.value >= claimPrice * amount, "Not enough Ether to claim the eggs" ); require( claimedEggsPerWallet[msg.sender] + amount <= maxClaimsPerWallet, "You cannot claim more eggs" ); require(availableEggs.length >= amount, "No eggs left to be claimed"); uint256[] memory tokenIds = new uint256[](amount); claimedEggsPerWallet[msg.sender] += amount; totalMintedTokens += amount; for (uint256 i; i < amount; i++) { tokenIds[i] = getEggToBeClaimed(); } _batchMint(msg.sender, tokenIds); } /** * @dev Hatches an egg */ function hatchEgg(uint256 tokenId) external callerIsUser hatchStarted { require( ownerOf(tokenId) == msg.sender, "You can only hatch your own eggs" ); require(hatchedEggs[tokenId] == false, "Egg is already hatched"); hatchedEggs[tokenId] = true; emit Hatch(msg.sender, tokenId); } /** * @dev Hatches multiple eggs */ function hatchEggs(uint256[] memory tokenIds) external callerIsUser hatchStarted { for (uint256 i; i < tokenIds.length; i++) { require( ownerOf(tokenIds[i]) == msg.sender, "You can only hatch your own eggs" ); require( hatchedEggs[tokenIds[i]] == false, "Egg is already hatched" ); hatchedEggs[tokenIds[i]] = true; emit Hatch(msg.sender, tokenIds[i]); } } /** * @dev Returns whether a egg has hateched and become a dragon or not */ function hasHatched(uint256 tokenId) external view returns (bool) { require( _exists(tokenId), "ERC721: operator query for nonexistent token" ); return hatchedEggs[tokenId]; } /** * @dev Returns the tokenId by index */ function tokenByIndex(uint256 tokenId) external view returns (uint256) { require( _exists(tokenId), "ERC721: operator query for nonexistent token" ); return tokenId; } /** * @dev Returns the base URI for the tokens API. */ function baseTokenURI() external view returns (string memory) { return baseURI; } /** * @dev Returns how many eggs are still available to be claimed */ function getAvailableEggs() external view returns (uint256) { return availableEggs.length; } /** * @dev Returns the claim price */ function getClaimPrice() external view returns (uint256) { return claimPrice; } /** * @dev Returns the total supply */ function totalSupply() external view virtual returns (uint256) { return totalMintedTokens; } // Private and Internal functions /** * @dev Returns a random available egg to be claimed */ function getEggToBeClaimed() private returns (uint256) { uint256 random = _getRandomNumber(availableEggs.length); uint256 tokenId = uint256(availableEggs[random]); availableEggs[random] = availableEggs[availableEggs.length - 1]; availableEggs.pop(); return tokenId; } /** * @dev Generates a pseudo-random number. */ function _getRandomNumber(uint256 _upper) private view returns (uint256) { uint256 random = uint256( keccak256( abi.encodePacked( availableEggs.length, blockhash(block.number - 1), block.coinbase, block.difficulty, msg.sender ) ) ); return random % _upper; } /** * @dev See {ERC721}. */ function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function mulScale( uint256 x, uint256 y, uint128 scale ) internal pure returns (uint256) { uint256 a = x / scale; uint256 b = x % scale; uint256 c = y / scale; uint256 d = y % scale; return a * c * scale + a * d + b * c + (b * d) / scale; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/Ownable.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, Ownable { 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) internal _owners; // Mapping owner address to token count mapping(address => uint256) internal _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}. 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 || ERC721.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 { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //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 || ERC721.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); } function _batchMint(address to, uint256[] memory tokenIds) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); _balances[to] += tokenIds.length; for (uint256 i; i < tokenIds.length; i++) { require(!_exists(tokenIds[i]), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenIds[i]); _owners[tokenIds[i]] = to; emit Transfer(address(0), to, tokenIds[i]); } } /** * @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 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721: transfer to non ERC721Receiver implementer" ); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` 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 {} }
// SPDX-License-Identifier: MIT 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT 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 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 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); }
// SPDX-License-Identifier: MIT 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 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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "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] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT 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 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); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 2000 }, "evmVersion": "berlin", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Hatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint16","name":"from","type":"uint16"},{"internalType":"uint16","name":"to","type":"uint16"}],"name":"addAvailableEggs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"cut","type":"uint256"}],"internalType":"struct TheWonderQuest.Collaborators[]","name":"_collaborators","type":"tuple[]"}],"name":"addCollaborators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"allocateTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimEgg","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimEggs","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"devClaimEggs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"devClaimEggsToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"devHatchEggs","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":"getAvailableEggs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"hasHatched","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"hatchEgg","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"hatchEggs","outputs":[],"stateMutability":"nonpayable","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":"uint16","name":"tokenId","type":"uint16"}],"name":"isEggAvailable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"removeEggsFromAvailableEggs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimPrice","type":"uint256"}],"name":"setClaimPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startClaimDate","type":"uint256"}],"name":"setStartClaimDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startHatchDate","type":"uint256"}],"name":"setStartHatchDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenByIndex","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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6360fddee0600755636107196060085567013b7b21280e0000600955612710600a8181556000600b55600c55600d80546001600160801b031916909117905560e060405260346080818152906200459760a03980516200006891600e916020909101906200014e565b503480156200007657600080fd5b506040518060400160405280600e81526020016d151a1955dbdb99195c945d595cdd60921b8152506040518060400160405280600381526020016254575160e81b8152506000620000cc6200014a60201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35081516200012b9060019060208501906200014e565b508051620001419060029060208401906200014e565b50505062000231565b3390565b8280546200015c90620001f4565b90600052602060002090601f016020900481019282620001805760008555620001cb565b82601f106200019b57805160ff1916838001178555620001cb565b82800160010185558215620001cb579182015b82811115620001cb578251825591602001919060010190620001ae565b50620001d9929150620001dd565b5090565b5b80821115620001d95760008155600101620001de565b600181811c908216806200020957607f821691505b602082108114156200022b57634e487b7160e01b600052602260045260246000fd5b50919050565b61435680620002416000396000f3fe6080604052600436106102a05760003560e01c806351f468c01161016e578063a22cb465116100cb578063d547cfb71161007f578063f2fde38b11610064578063f2fde38b14610715578063f6b9078e14610735578063fc14ba491461075557600080fd5b8063d547cfb7146106b7578063e985e9c5146106cc57600080fd5b8063b638f805116100b0578063b638f80514610657578063b88d4fde14610677578063c87b56dd1461069757600080fd5b8063a22cb46514610624578063b3757c291461064457600080fd5b80638da5cb5b11610122578063996a03fe11610107578063996a03fe146105cf5780639c784a91146105ef5780639db679cb1461060457600080fd5b80638da5cb5b1461059c57806395d89b41146105ba57600080fd5b806370a082311161015357806370a0823114610547578063715018a61461056757806372efac6b1461057c57600080fd5b806351f468c0146105075780636352211e1461052757600080fd5b806323ab18f11161021c5780633ccfd60b116101d05780634528d849116101b55780634528d849146104bf57806348f206fc146104df5780634f6ccce7146104e757600080fd5b80633ccfd60b1461048a57806342842e0e1461049f57600080fd5b806326efdb3b1161020157806326efdb3b1461042a57806330176e131461044a57806334a7d30f1461046a57600080fd5b806323ab18f1146103ea57806323b872dd1461040a57600080fd5b8063095ea7b31161027357806321f6d5871161025857806321f6d5871461039557806322a3470a146103aa5780632385554c146103ca57600080fd5b8063095ea7b31461035657806318160ddd1461037657600080fd5b806301ffc9a7146102a557806306fdde03146102da578063081812fc146102fc5780630955f63c14610334575b600080fd5b3480156102b157600080fd5b506102c56102c0366004613f39565b610775565b60405190151581526020015b60405180910390f35b3480156102e657600080fd5b506102ef61085a565b6040516102d191906140b1565b34801561030857600080fd5b5061031c610317366004614001565b6108ec565b6040516001600160a01b0390911681526020016102d1565b34801561034057600080fd5b5061035461034f366004613deb565b610986565b005b34801561036257600080fd5b50610354610371366004613d1d565b610b51565b34801561038257600080fd5b50600b545b6040519081526020016102d1565b3480156103a157600080fd5b50600954610387565b3480156103b657600080fd5b506103546103c5366004613d1d565b610c83565b3480156103d657600080fd5b506103546103e5366004614001565b610e6c565b3480156103f657600080fd5b50610354610405366004614001565b61101f565b34801561041657600080fd5b50610354610425366004613c29565b61110a565b34801561043657600080fd5b50610354610445366004613fd7565b611191565b34801561045657600080fd5b50610354610465366004613f73565b6112f1565b34801561047657600080fd5b50610354610485366004613ead565b6113e9565b34801561049657600080fd5b5061035461164d565b3480156104ab57600080fd5b506103546104ba366004613c29565b611804565b3480156104cb57600080fd5b506103546104da366004613fbc565b61181f565b610354611a3a565b3480156104f357600080fd5b50610387610502366004614001565b611c31565b34801561051357600080fd5b50610354610522366004614001565b611cae565b34801561053357600080fd5b5061031c610542366004614001565b611d99565b34801561055357600080fd5b50610387610562366004613bdb565b611e24565b34801561057357600080fd5b50610354611ebe565b34801561058857600080fd5b506102c5610597366004614001565b611f6f565b3480156105a857600080fd5b506000546001600160a01b031661031c565b3480156105c657600080fd5b506102ef611ffe565b3480156105db57600080fd5b506103546105ea366004613ead565b61200d565b3480156105fb57600080fd5b50601154610387565b34801561061057600080fd5b5061035461061f366004614001565b61229b565b34801561063057600080fd5b5061035461063f366004613ce1565b612386565b610354610652366004614001565b61244b565b34801561066357600080fd5b50610354610672366004613d47565b61270f565b34801561068357600080fd5b50610354610692366004613c65565b6128a3565b3480156106a357600080fd5b506102ef6106b2366004614001565b61292b565b3480156106c357600080fd5b506102ef612a14565b3480156106d857600080fd5b506102c56106e7366004613bf6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561072157600080fd5b50610354610730366004613bdb565b612a23565b34801561074157600080fd5b506102c5610750366004613fbc565b612b61565b34801561076157600080fd5b50610354610770366004613ead565b612cc4565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061080857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061085457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060018054610869906141fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610895906141fb565b80156108e25780601f106108b7576101008083540402835291602001916108e2565b820191906000526020600020905b8154815290600101906020018083116108c557829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b031661096a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000546001600160a01b031633146109e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b60125415610a305760405162461bcd60e51b815260206004820152601e60248201527f436f6c6c61626f7261746f7273207765726520616c72656164792073657400006044820152606401610961565b6000805b8251811015610ae6576012838281518110610a5157610a516142c3565b6020908102919091018101518254600180820185556000948552938390208251600290920201805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039092169190911781559101519101558251839082908110610abb57610abb6142c3565b60200260200101516020015182610ad29190614142565b915080610ade81614252565b915050610a34565b50600d546fffffffffffffffffffffffffffffffff828116911614610b4d5760405162461bcd60e51b815260206004820152601e60248201527f546f74616c2063757420646f6573206e6f742061646420746f203130302500006044820152606401610961565b5050565b6000610b5c82611d99565b9050806001600160a01b0316836001600160a01b03161415610be65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610961565b336001600160a01b0382161480610c025750610c0281336106e7565b610c745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610961565b610c7e8383612e1f565b505050565b6000805b601254811015610ce957336001600160a01b031660128281548110610cae57610cae6142c3565b60009182526020909120600290910201546001600160a01b03161415610cd75760019150610ce9565b80610ce181614252565b915050610c87565b506000546001600160a01b0316331480610d005750805b610d685760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b601154821115610dba5760405162461bcd60e51b815260206004820152601a60248201527f4e6f2065676773206c65667420746f20626520636c61696d65640000000000006044820152606401610961565b81600b6000828254610dcc919061416d565b90915550600090508267ffffffffffffffff811115610ded57610ded6142d9565b604051908082528060200260200182016040528015610e16578160200160208202803683370190505b50905060005b83811015610e5b57610e2c612e9a565b828281518110610e3e57610e3e6142c3565b602090810291909101015280610e5381614252565b915050610e1c565b50610e668482612fb9565b50505050565b323314610ebb5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610961565b60085415801590610ece57504260085411155b610f1a5760405162461bcd60e51b815260206004820152601160248201527f596f752061726520746f6f206561726c790000000000000000000000000000006044820152606401610961565b33610f2482611d99565b6001600160a01b031614610f7a5760405162461bcd60e51b815260206004820181905260248201527f596f752063616e206f6e6c7920686174636820796f7572206f776e20656767736044820152606401610961565b60008181526010602052604090205460ff1615610fd95760405162461bcd60e51b815260206004820152601660248201527f45676720697320616c72656164792068617463686564000000000000000000006044820152606401610961565b600081815260106020526040808220805460ff1916600117905551829133917fad795cc5156024131841433c08125fd77775115e04c1e1999dabfa22e59fdd089190a350565b6000805b60125481101561108557336001600160a01b03166012828154811061104a5761104a6142c3565b60009182526020909120600290910201546001600160a01b031614156110735760019150611085565b8061107d81614252565b915050611023565b506000546001600160a01b031633148061109c5750805b6111045760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b50600755565b61111433826131a8565b6111865760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610961565b610c7e83838361329f565b6000805b6012548110156111f757336001600160a01b0316601282815481106111bc576111bc6142c3565b60009182526020909120600290910201546001600160a01b031614156111e557600191506111f7565b806111ef81614252565b915050611195565b506000546001600160a01b031633148061120e5750805b6112765760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b825b8261ffff168161ffff1611610e6657601180546001810182556000919091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6860108204018054600f9092166002026101000a61ffff8181021990931692841602919091179055806112e981614230565b915050611278565b6000805b60125481101561135757336001600160a01b03166012828154811061131c5761131c6142c3565b60009182526020909120600290910201546001600160a01b031614156113455760019150611357565b8061134f81614252565b9150506112f5565b506000546001600160a01b031633148061136e5750805b6113d65760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b8151610c7e90600e906020850190613ac5565b3233146114385760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610961565b6008541580159061144b57504260085411155b6114975760405162461bcd60e51b815260206004820152601160248201527f596f752061726520746f6f206561726c790000000000000000000000000000006044820152606401610961565b60005b8151811015610b4d57336001600160a01b03166114cf8383815181106114c2576114c26142c3565b6020026020010151611d99565b6001600160a01b0316146115255760405162461bcd60e51b815260206004820181905260248201527f596f752063616e206f6e6c7920686174636820796f7572206f776e20656767736044820152606401610961565b6010600083838151811061153b5761153b6142c3565b60209081029190910181015182528101919091526040016000205460ff16156115a65760405162461bcd60e51b815260206004820152601660248201527f45676720697320616c72656164792068617463686564000000000000000000006044820152606401610961565b6001601060008484815181106115be576115be6142c3565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508181815181106115fd576115fd6142c3565b6020026020010151336001600160a01b03167fad795cc5156024131841433c08125fd77775115e04c1e1999dabfa22e59fdd0860405160405180910390a38061164581614252565b91505061149a565b6000805b6012548110156116b357336001600160a01b031660128281548110611678576116786142c3565b60009182526020909120600290910201546001600160a01b031614156116a157600191506116b3565b806116ab81614252565b915050611651565b506000546001600160a01b03163314806116ca5750805b6117325760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b4760005b601254811015610c7e5760128181548110611753576117536142c3565b906000526020600020906002020160000160009054906101000a90046001600160a01b03166001600160a01b03166108fc6117c9846012858154811061179b5761179b6142c3565b6000918252602090912060016002909202010154600d546fffffffffffffffffffffffffffffffff16613479565b6040518115909202916000818181858888f193505050501580156117f1573d6000803e3d6000fd5b50806117fc81614252565b915050611736565b610c7e838383604051806020016040528060008152506128a3565b6000805b60125481101561188557336001600160a01b03166012828154811061184a5761184a6142c3565b60009182526020909120600290910201546001600160a01b031614156118735760019150611885565b8061187d81614252565b915050611823565b506000546001600160a01b031633148061189c5750805b6119045760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b60005b60115461ffff821611610c7e578261ffff1660118261ffff1681548110611930576119306142c3565b60009182526020909120601082040154600f9091166002026101000a900461ffff161461195c57611a28565b6011805461196c906001906141b8565b8154811061197c5761197c6142c3565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660118261ffff16815481106119b7576119b76142c3565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555060118054806119f7576119f76142ad565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a02191690559055505050565b80611a3281614230565b915050611907565b323314611a895760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610961565b60075415801590611a9c57504260075411155b611ae85760405162461bcd60e51b815260206004820152601160248201527f596f752061726520746f6f206561726c790000000000000000000000000000006044820152606401610961565b600954341015611b3a5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f75676820457468657220746f20636c61696d20616e206567676044820152606401610961565b600c54336000908152600f602052604090205410611b9a5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f7420636c61696d206d6f726520656767730000000000006044820152606401610961565b601154611be95760405162461bcd60e51b815260206004820152601a60248201527f4e6f2065676773206c65667420746f20626520636c61696d65640000000000006044820152606401610961565b336000908152600f60205260408120805491611c0483614252565b9091555050600b8054906000611c1983614252565b9190505550611c2f33611c2a612e9a565b613586565b565b6000818152600360205260408120546001600160a01b0316611caa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610961565b5090565b6000805b601254811015611d1457336001600160a01b031660128281548110611cd957611cd96142c3565b60009182526020909120600290910201546001600160a01b03161415611d025760019150611d14565b80611d0c81614252565b915050611cb2565b506000546001600160a01b0316331480611d2b5750805b611d935760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b50600955565b6000818152600360205260408120546001600160a01b0316806108545760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610961565b60006001600160a01b038216611ea25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610961565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314611f185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6000818152600360205260408120546001600160a01b0316611fe85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610961565b5060009081526010602052604090205460ff1690565b606060028054610869906141fb565b6000805b60125481101561207357336001600160a01b031660128281548110612038576120386142c3565b60009182526020909120600290910201546001600160a01b031614156120615760019150612073565b8061206b81614252565b915050612011565b506000546001600160a01b031633148061208a5750805b6120f25760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b60005b8251811015610c7e57336001600160a01b031661211d8483815181106114c2576114c26142c3565b6001600160a01b0316146121735760405162461bcd60e51b815260206004820181905260248201527f596f752063616e206f6e6c7920686174636820796f7572206f776e20656767736044820152606401610961565b60106000848381518110612189576121896142c3565b60209081029190910181015182528101919091526040016000205460ff16156121f45760405162461bcd60e51b815260206004820152601660248201527f45676720697320616c72656164792068617463686564000000000000000000006044820152606401610961565b60016010600085848151811061220c5761220c6142c3565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555082818151811061224b5761224b6142c3565b6020026020010151336001600160a01b03167fad795cc5156024131841433c08125fd77775115e04c1e1999dabfa22e59fdd0860405160405180910390a38061229381614252565b9150506120f5565b6000805b60125481101561230157336001600160a01b0316601282815481106122c6576122c66142c3565b60009182526020909120600290910201546001600160a01b031614156122ef5760019150612301565b806122f981614252565b91505061229f565b506000546001600160a01b03163314806123185750805b6123805760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b50600855565b6001600160a01b0382163314156123df5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610961565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b32331461249a5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610961565b600754158015906124ad57504260075411155b6124f95760405162461bcd60e51b815260206004820152601160248201527f596f752061726520746f6f206561726c790000000000000000000000000000006044820152606401610961565b806009546125079190614199565b34101561257c5760405162461bcd60e51b815260206004820152602260248201527f4e6f7420656e6f75676820457468657220746f20636c61696d2074686520656760448201527f67730000000000000000000000000000000000000000000000000000000000006064820152608401610961565b600c54336000908152600f602052604090205461259a90839061416d565b11156125e85760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f7420636c61696d206d6f726520656767730000000000006044820152606401610961565b60115481111561263a5760405162461bcd60e51b815260206004820152601a60248201527f4e6f2065676773206c65667420746f20626520636c61696d65640000000000006044820152606401610961565b60008167ffffffffffffffff811115612655576126556142d9565b60405190808252806020026020018201604052801561267e578160200160208202803683370190505b50336000908152600f60205260408120805492935084929091906126a390849061416d565b9250508190555081600b60008282546126bc919061416d565b90915550600090505b82811015612704576126d5612e9a565b8282815181106126e7576126e76142c3565b6020908102919091010152806126fc81614252565b9150506126c5565b50610b4d3382612fb9565b6000805b60125481101561277557336001600160a01b03166012828154811061273a5761273a6142c3565b60009182526020909120600290910201546001600160a01b031614156127635760019150612775565b8061276d81614252565b915050612713565b506000546001600160a01b031633148061278c5750805b6127f45760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b815160115410156128475760405162461bcd60e51b815260206004820152601a60248201527f4e6f2065676773206c65667420746f20626520636c61696d65640000000000006044820152606401610961565b8151600b600082825461285a919061416d565b90915550600090505b8251811015610c7e57612891838281518110612881576128816142c3565b6020026020010151611c2a612e9a565b8061289b81614252565b915050612863565b6128ad33836131a8565b61291f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610961565b610e66848484846136d5565b6000818152600360205260409020546060906001600160a01b03166129b85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610961565b60006129c2612a14565b905060008151116129e25760405180602001604052806000815250612a0d565b806129ec8461375e565b6040516020016129fd929190614046565b6040516020818303038152906040525b9392505050565b6060600e8054610869906141fb565b6000546001600160a01b03163314612a7d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b6001600160a01b038116612af95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610961565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600080805b601254811015612bc857336001600160a01b031660128281548110612b8d57612b8d6142c3565b60009182526020909120600290910201546001600160a01b03161415612bb65760019150612bc8565b80612bc081614252565b915050612b66565b506000546001600160a01b0316331480612bdf5750805b612c475760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b60005b60115461ffff82161015612cb8578361ffff1660118261ffff1681548110612c7457612c746142c3565b60009182526020909120601082040154600f9091166002026101000a900461ffff161415612ca6576001925050612cbe565b80612cb081614230565b915050612c4a565b50600091505b50919050565b6000805b601254811015612d2a57336001600160a01b031660128281548110612cef57612cef6142c3565b60009182526020909120600290910201546001600160a01b03161415612d185760019150612d2a565b80612d2281614252565b915050612cc8565b506000546001600160a01b0316331480612d415750805b612da95760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b60115415612df95760405162461bcd60e51b815260206004820152601e60248201527f417661696c61626c6520656767732061726520616c72656164792073657400006044820152606401610961565b612e033383612fb9565b8151600b6000828254612e16919061416d565b90915550505050565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612e6182611d99565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612eab601180549050613890565b9050600060118281548110612ec257612ec26142c3565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff16905060116001601180549050612f0091906141b8565b81548110612f1057612f106142c3565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660118381548110612f4757612f476142c3565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506011805480612f8757612f876142ad565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a0219169055905592915050565b6001600160a01b03821661300f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610961565b80516001600160a01b0383166000908152600460205260408120805490919061303990849061416d565b90915550600090505b8151811015610c7e57613085828281518110613060576130606142c3565b60200260200101516000908152600360205260409020546001600160a01b0316151590565b156130d25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610961565b6130ea600084848481518110610e6657610e666142c3565b8260036000848481518110613101576131016142c3565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081818151811061314d5761314d6142c3565b6020026020010151836001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4806131a081614252565b915050613042565b6000818152600360205260408120546001600160a01b03166132215760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610961565b600061322c83611d99565b9050806001600160a01b0316846001600160a01b031614806132675750836001600160a01b031661325c846108ec565b6001600160a01b0316145b8061329757506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166132b282611d99565b6001600160a01b03161461332e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610961565b6001600160a01b0382166133a95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610961565b6133b4600082612e1f565b6001600160a01b03831660009081526004602052604081208054600192906133dd9084906141b8565b90915550506001600160a01b038216600090815260046020526040812080546001929061340b90849061416d565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806134986fffffffffffffffffffffffffffffffff841686614185565b905060006134b86fffffffffffffffffffffffffffffffff85168761426d565b905060006134d86fffffffffffffffffffffffffffffffff861687614185565b905060006134f86fffffffffffffffffffffffffffffffff87168861426d565b90506fffffffffffffffffffffffffffffffff86166135178285614199565b6135219190614185565b61352b8385614199565b6135358387614199565b6fffffffffffffffffffffffffffffffff89166135528689614199565b61355c9190614199565b613566919061416d565b613570919061416d565b61357a919061416d565b98975050505050505050565b6001600160a01b0382166135dc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610961565b6000818152600360205260409020546001600160a01b0316156136415760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610961565b6001600160a01b038216600090815260046020526040812080546001929061366a90849061416d565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6136e084848461329f565b6136ec84848484613918565b610e665760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610961565b60608161379e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156137c857806137b281614252565b91506137c19050600a83614185565b91506137a2565b60008167ffffffffffffffff8111156137e3576137e36142d9565b6040519080825280601f01601f19166020018201604052801561380d576020820181803683370190505b5090505b8415613297576138226001836141b8565b915061382f600a8661426d565b61383a90603061416d565b60f81b81838151811061384f5761384f6142c3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613889600a86614185565b9450613811565b60115460009081906138a36001436141b8565b6040805160208101939093529040908201527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000041606090811b82168184015244607484015233901b16609482015260a80160408051601f1981840301815291905280516020909101209050612a0d838261426d565b60006001600160a01b0384163b15613aba576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613975903390899088908890600401614075565b602060405180830381600087803b15801561398f57600080fd5b505af19250505080156139bf575060408051601f3d908101601f191682019092526139bc91810190613f56565b60015b613a6f573d8080156139ed576040519150601f19603f3d011682016040523d82523d6000602084013e6139f2565b606091505b508051613a675760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610961565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050613297565b506001949350505050565b828054613ad1906141fb565b90600052602060002090601f016020900481019282613af35760008555613b39565b82601f10613b0c57805160ff1916838001178555613b39565b82800160010185558215613b39579182015b82811115613b39578251825591602001919060010190613b1e565b50611caa9291505b80821115611caa5760008155600101613b41565b600067ffffffffffffffff831115613b6f57613b6f6142d9565b613b826020601f19601f860116016140ed565b9050828152838383011115613b9657600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114613bc457600080fd5b919050565b803561ffff81168114613bc457600080fd5b600060208284031215613bed57600080fd5b612a0d82613bad565b60008060408385031215613c0957600080fd5b613c1283613bad565b9150613c2060208401613bad565b90509250929050565b600080600060608486031215613c3e57600080fd5b613c4784613bad565b9250613c5560208501613bad565b9150604084013590509250925092565b60008060008060808587031215613c7b57600080fd5b613c8485613bad565b9350613c9260208601613bad565b925060408501359150606085013567ffffffffffffffff811115613cb557600080fd5b8501601f81018713613cc657600080fd5b613cd587823560208401613b55565b91505092959194509250565b60008060408385031215613cf457600080fd5b613cfd83613bad565b915060208301358015158114613d1257600080fd5b809150509250929050565b60008060408385031215613d3057600080fd5b613d3983613bad565b946020939093013593505050565b60006020808385031215613d5a57600080fd5b823567ffffffffffffffff811115613d7157600080fd5b8301601f81018513613d8257600080fd5b8035613d95613d908261411e565b6140ed565b80828252848201915084840188868560051b8701011115613db557600080fd5b600094505b83851015613ddf57613dcb81613bad565b835260019490940193918501918501613dba565b50979650505050505050565b60006020808385031215613dfe57600080fd5b823567ffffffffffffffff811115613e1557600080fd5b8301601f81018513613e2657600080fd5b8035613e34613d908261411e565b80828252848201915084840188868560061b8701011115613e5457600080fd5b60009450845b84811015613e9f57604080838c031215613e72578687fd5b613e7a6140c4565b613e8384613bad565b8152838901358982015285529387019390910190600101613e5a565b509098975050505050505050565b60006020808385031215613ec057600080fd5b823567ffffffffffffffff811115613ed757600080fd5b8301601f81018513613ee857600080fd5b8035613ef6613d908261411e565b80828252848201915084840188868560051b8701011115613f1657600080fd5b600094505b83851015613ddf578035835260019490940193918501918501613f1b565b600060208284031215613f4b57600080fd5b8135612a0d816142ef565b600060208284031215613f6857600080fd5b8151612a0d816142ef565b600060208284031215613f8557600080fd5b813567ffffffffffffffff811115613f9c57600080fd5b8201601f81018413613fad57600080fd5b61329784823560208401613b55565b600060208284031215613fce57600080fd5b612a0d82613bc9565b60008060408385031215613fea57600080fd5b613ff383613bc9565b9150613c2060208401613bc9565b60006020828403121561401357600080fd5b5035919050565b600081518084526140328160208601602086016141cf565b601f01601f19169290920160200192915050565b600083516140588184602088016141cf565b83519083019061406c8183602088016141cf565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526140a7608083018461401a565b9695505050505050565b602081526000612a0d602083018461401a565b6040805190810167ffffffffffffffff811182821017156140e7576140e76142d9565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715614116576141166142d9565b604052919050565b600067ffffffffffffffff821115614138576141386142d9565b5060051b60200190565b60006fffffffffffffffffffffffffffffffff80831681851680830382111561406c5761406c614281565b6000821982111561418057614180614281565b500190565b60008261419457614194614297565b500490565b60008160001904831182151516156141b3576141b3614281565b500290565b6000828210156141ca576141ca614281565b500390565b60005b838110156141ea5781810151838201526020016141d2565b83811115610e665750506000910152565b600181811c9082168061420f57607f821691505b60208210811415612cbe57634e487b7160e01b600052602260045260246000fd5b600061ffff8083168181141561424857614248614281565b6001019392505050565b600060001982141561426657614266614281565b5060010190565b60008261427c5761427c614297565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461431d57600080fd5b5056fea2646970667358221220fb76dc51b13b635a7bd61a1437ea29527c0dc259da62bdfadda29747da9790a564736f6c6343000806003368747470733a2f2f647261676f6e2d656767732e73332e61702d736f757468656173742d322e616d617a6f6e6177732e636f6d2f
Deployed Bytecode
0x6080604052600436106102a05760003560e01c806351f468c01161016e578063a22cb465116100cb578063d547cfb71161007f578063f2fde38b11610064578063f2fde38b14610715578063f6b9078e14610735578063fc14ba491461075557600080fd5b8063d547cfb7146106b7578063e985e9c5146106cc57600080fd5b8063b638f805116100b0578063b638f80514610657578063b88d4fde14610677578063c87b56dd1461069757600080fd5b8063a22cb46514610624578063b3757c291461064457600080fd5b80638da5cb5b11610122578063996a03fe11610107578063996a03fe146105cf5780639c784a91146105ef5780639db679cb1461060457600080fd5b80638da5cb5b1461059c57806395d89b41146105ba57600080fd5b806370a082311161015357806370a0823114610547578063715018a61461056757806372efac6b1461057c57600080fd5b806351f468c0146105075780636352211e1461052757600080fd5b806323ab18f11161021c5780633ccfd60b116101d05780634528d849116101b55780634528d849146104bf57806348f206fc146104df5780634f6ccce7146104e757600080fd5b80633ccfd60b1461048a57806342842e0e1461049f57600080fd5b806326efdb3b1161020157806326efdb3b1461042a57806330176e131461044a57806334a7d30f1461046a57600080fd5b806323ab18f1146103ea57806323b872dd1461040a57600080fd5b8063095ea7b31161027357806321f6d5871161025857806321f6d5871461039557806322a3470a146103aa5780632385554c146103ca57600080fd5b8063095ea7b31461035657806318160ddd1461037657600080fd5b806301ffc9a7146102a557806306fdde03146102da578063081812fc146102fc5780630955f63c14610334575b600080fd5b3480156102b157600080fd5b506102c56102c0366004613f39565b610775565b60405190151581526020015b60405180910390f35b3480156102e657600080fd5b506102ef61085a565b6040516102d191906140b1565b34801561030857600080fd5b5061031c610317366004614001565b6108ec565b6040516001600160a01b0390911681526020016102d1565b34801561034057600080fd5b5061035461034f366004613deb565b610986565b005b34801561036257600080fd5b50610354610371366004613d1d565b610b51565b34801561038257600080fd5b50600b545b6040519081526020016102d1565b3480156103a157600080fd5b50600954610387565b3480156103b657600080fd5b506103546103c5366004613d1d565b610c83565b3480156103d657600080fd5b506103546103e5366004614001565b610e6c565b3480156103f657600080fd5b50610354610405366004614001565b61101f565b34801561041657600080fd5b50610354610425366004613c29565b61110a565b34801561043657600080fd5b50610354610445366004613fd7565b611191565b34801561045657600080fd5b50610354610465366004613f73565b6112f1565b34801561047657600080fd5b50610354610485366004613ead565b6113e9565b34801561049657600080fd5b5061035461164d565b3480156104ab57600080fd5b506103546104ba366004613c29565b611804565b3480156104cb57600080fd5b506103546104da366004613fbc565b61181f565b610354611a3a565b3480156104f357600080fd5b50610387610502366004614001565b611c31565b34801561051357600080fd5b50610354610522366004614001565b611cae565b34801561053357600080fd5b5061031c610542366004614001565b611d99565b34801561055357600080fd5b50610387610562366004613bdb565b611e24565b34801561057357600080fd5b50610354611ebe565b34801561058857600080fd5b506102c5610597366004614001565b611f6f565b3480156105a857600080fd5b506000546001600160a01b031661031c565b3480156105c657600080fd5b506102ef611ffe565b3480156105db57600080fd5b506103546105ea366004613ead565b61200d565b3480156105fb57600080fd5b50601154610387565b34801561061057600080fd5b5061035461061f366004614001565b61229b565b34801561063057600080fd5b5061035461063f366004613ce1565b612386565b610354610652366004614001565b61244b565b34801561066357600080fd5b50610354610672366004613d47565b61270f565b34801561068357600080fd5b50610354610692366004613c65565b6128a3565b3480156106a357600080fd5b506102ef6106b2366004614001565b61292b565b3480156106c357600080fd5b506102ef612a14565b3480156106d857600080fd5b506102c56106e7366004613bf6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561072157600080fd5b50610354610730366004613bdb565b612a23565b34801561074157600080fd5b506102c5610750366004613fbc565b612b61565b34801561076157600080fd5b50610354610770366004613ead565b612cc4565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061080857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061085457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060018054610869906141fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610895906141fb565b80156108e25780601f106108b7576101008083540402835291602001916108e2565b820191906000526020600020905b8154815290600101906020018083116108c557829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b031661096a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000546001600160a01b031633146109e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b60125415610a305760405162461bcd60e51b815260206004820152601e60248201527f436f6c6c61626f7261746f7273207765726520616c72656164792073657400006044820152606401610961565b6000805b8251811015610ae6576012838281518110610a5157610a516142c3565b6020908102919091018101518254600180820185556000948552938390208251600290920201805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039092169190911781559101519101558251839082908110610abb57610abb6142c3565b60200260200101516020015182610ad29190614142565b915080610ade81614252565b915050610a34565b50600d546fffffffffffffffffffffffffffffffff828116911614610b4d5760405162461bcd60e51b815260206004820152601e60248201527f546f74616c2063757420646f6573206e6f742061646420746f203130302500006044820152606401610961565b5050565b6000610b5c82611d99565b9050806001600160a01b0316836001600160a01b03161415610be65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610961565b336001600160a01b0382161480610c025750610c0281336106e7565b610c745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610961565b610c7e8383612e1f565b505050565b6000805b601254811015610ce957336001600160a01b031660128281548110610cae57610cae6142c3565b60009182526020909120600290910201546001600160a01b03161415610cd75760019150610ce9565b80610ce181614252565b915050610c87565b506000546001600160a01b0316331480610d005750805b610d685760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b601154821115610dba5760405162461bcd60e51b815260206004820152601a60248201527f4e6f2065676773206c65667420746f20626520636c61696d65640000000000006044820152606401610961565b81600b6000828254610dcc919061416d565b90915550600090508267ffffffffffffffff811115610ded57610ded6142d9565b604051908082528060200260200182016040528015610e16578160200160208202803683370190505b50905060005b83811015610e5b57610e2c612e9a565b828281518110610e3e57610e3e6142c3565b602090810291909101015280610e5381614252565b915050610e1c565b50610e668482612fb9565b50505050565b323314610ebb5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610961565b60085415801590610ece57504260085411155b610f1a5760405162461bcd60e51b815260206004820152601160248201527f596f752061726520746f6f206561726c790000000000000000000000000000006044820152606401610961565b33610f2482611d99565b6001600160a01b031614610f7a5760405162461bcd60e51b815260206004820181905260248201527f596f752063616e206f6e6c7920686174636820796f7572206f776e20656767736044820152606401610961565b60008181526010602052604090205460ff1615610fd95760405162461bcd60e51b815260206004820152601660248201527f45676720697320616c72656164792068617463686564000000000000000000006044820152606401610961565b600081815260106020526040808220805460ff1916600117905551829133917fad795cc5156024131841433c08125fd77775115e04c1e1999dabfa22e59fdd089190a350565b6000805b60125481101561108557336001600160a01b03166012828154811061104a5761104a6142c3565b60009182526020909120600290910201546001600160a01b031614156110735760019150611085565b8061107d81614252565b915050611023565b506000546001600160a01b031633148061109c5750805b6111045760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b50600755565b61111433826131a8565b6111865760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610961565b610c7e83838361329f565b6000805b6012548110156111f757336001600160a01b0316601282815481106111bc576111bc6142c3565b60009182526020909120600290910201546001600160a01b031614156111e557600191506111f7565b806111ef81614252565b915050611195565b506000546001600160a01b031633148061120e5750805b6112765760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b825b8261ffff168161ffff1611610e6657601180546001810182556000919091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6860108204018054600f9092166002026101000a61ffff8181021990931692841602919091179055806112e981614230565b915050611278565b6000805b60125481101561135757336001600160a01b03166012828154811061131c5761131c6142c3565b60009182526020909120600290910201546001600160a01b031614156113455760019150611357565b8061134f81614252565b9150506112f5565b506000546001600160a01b031633148061136e5750805b6113d65760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b8151610c7e90600e906020850190613ac5565b3233146114385760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610961565b6008541580159061144b57504260085411155b6114975760405162461bcd60e51b815260206004820152601160248201527f596f752061726520746f6f206561726c790000000000000000000000000000006044820152606401610961565b60005b8151811015610b4d57336001600160a01b03166114cf8383815181106114c2576114c26142c3565b6020026020010151611d99565b6001600160a01b0316146115255760405162461bcd60e51b815260206004820181905260248201527f596f752063616e206f6e6c7920686174636820796f7572206f776e20656767736044820152606401610961565b6010600083838151811061153b5761153b6142c3565b60209081029190910181015182528101919091526040016000205460ff16156115a65760405162461bcd60e51b815260206004820152601660248201527f45676720697320616c72656164792068617463686564000000000000000000006044820152606401610961565b6001601060008484815181106115be576115be6142c3565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508181815181106115fd576115fd6142c3565b6020026020010151336001600160a01b03167fad795cc5156024131841433c08125fd77775115e04c1e1999dabfa22e59fdd0860405160405180910390a38061164581614252565b91505061149a565b6000805b6012548110156116b357336001600160a01b031660128281548110611678576116786142c3565b60009182526020909120600290910201546001600160a01b031614156116a157600191506116b3565b806116ab81614252565b915050611651565b506000546001600160a01b03163314806116ca5750805b6117325760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b4760005b601254811015610c7e5760128181548110611753576117536142c3565b906000526020600020906002020160000160009054906101000a90046001600160a01b03166001600160a01b03166108fc6117c9846012858154811061179b5761179b6142c3565b6000918252602090912060016002909202010154600d546fffffffffffffffffffffffffffffffff16613479565b6040518115909202916000818181858888f193505050501580156117f1573d6000803e3d6000fd5b50806117fc81614252565b915050611736565b610c7e838383604051806020016040528060008152506128a3565b6000805b60125481101561188557336001600160a01b03166012828154811061184a5761184a6142c3565b60009182526020909120600290910201546001600160a01b031614156118735760019150611885565b8061187d81614252565b915050611823565b506000546001600160a01b031633148061189c5750805b6119045760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b60005b60115461ffff821611610c7e578261ffff1660118261ffff1681548110611930576119306142c3565b60009182526020909120601082040154600f9091166002026101000a900461ffff161461195c57611a28565b6011805461196c906001906141b8565b8154811061197c5761197c6142c3565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660118261ffff16815481106119b7576119b76142c3565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555060118054806119f7576119f76142ad565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a02191690559055505050565b80611a3281614230565b915050611907565b323314611a895760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610961565b60075415801590611a9c57504260075411155b611ae85760405162461bcd60e51b815260206004820152601160248201527f596f752061726520746f6f206561726c790000000000000000000000000000006044820152606401610961565b600954341015611b3a5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f75676820457468657220746f20636c61696d20616e206567676044820152606401610961565b600c54336000908152600f602052604090205410611b9a5760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f7420636c61696d206d6f726520656767730000000000006044820152606401610961565b601154611be95760405162461bcd60e51b815260206004820152601a60248201527f4e6f2065676773206c65667420746f20626520636c61696d65640000000000006044820152606401610961565b336000908152600f60205260408120805491611c0483614252565b9091555050600b8054906000611c1983614252565b9190505550611c2f33611c2a612e9a565b613586565b565b6000818152600360205260408120546001600160a01b0316611caa5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610961565b5090565b6000805b601254811015611d1457336001600160a01b031660128281548110611cd957611cd96142c3565b60009182526020909120600290910201546001600160a01b03161415611d025760019150611d14565b80611d0c81614252565b915050611cb2565b506000546001600160a01b0316331480611d2b5750805b611d935760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b50600955565b6000818152600360205260408120546001600160a01b0316806108545760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610961565b60006001600160a01b038216611ea25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610961565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314611f185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6000818152600360205260408120546001600160a01b0316611fe85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610961565b5060009081526010602052604090205460ff1690565b606060028054610869906141fb565b6000805b60125481101561207357336001600160a01b031660128281548110612038576120386142c3565b60009182526020909120600290910201546001600160a01b031614156120615760019150612073565b8061206b81614252565b915050612011565b506000546001600160a01b031633148061208a5750805b6120f25760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b60005b8251811015610c7e57336001600160a01b031661211d8483815181106114c2576114c26142c3565b6001600160a01b0316146121735760405162461bcd60e51b815260206004820181905260248201527f596f752063616e206f6e6c7920686174636820796f7572206f776e20656767736044820152606401610961565b60106000848381518110612189576121896142c3565b60209081029190910181015182528101919091526040016000205460ff16156121f45760405162461bcd60e51b815260206004820152601660248201527f45676720697320616c72656164792068617463686564000000000000000000006044820152606401610961565b60016010600085848151811061220c5761220c6142c3565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555082818151811061224b5761224b6142c3565b6020026020010151336001600160a01b03167fad795cc5156024131841433c08125fd77775115e04c1e1999dabfa22e59fdd0860405160405180910390a38061229381614252565b9150506120f5565b6000805b60125481101561230157336001600160a01b0316601282815481106122c6576122c66142c3565b60009182526020909120600290910201546001600160a01b031614156122ef5760019150612301565b806122f981614252565b91505061229f565b506000546001600160a01b03163314806123185750805b6123805760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b50600855565b6001600160a01b0382163314156123df5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610961565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b32331461249a5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610961565b600754158015906124ad57504260075411155b6124f95760405162461bcd60e51b815260206004820152601160248201527f596f752061726520746f6f206561726c790000000000000000000000000000006044820152606401610961565b806009546125079190614199565b34101561257c5760405162461bcd60e51b815260206004820152602260248201527f4e6f7420656e6f75676820457468657220746f20636c61696d2074686520656760448201527f67730000000000000000000000000000000000000000000000000000000000006064820152608401610961565b600c54336000908152600f602052604090205461259a90839061416d565b11156125e85760405162461bcd60e51b815260206004820152601a60248201527f596f752063616e6e6f7420636c61696d206d6f726520656767730000000000006044820152606401610961565b60115481111561263a5760405162461bcd60e51b815260206004820152601a60248201527f4e6f2065676773206c65667420746f20626520636c61696d65640000000000006044820152606401610961565b60008167ffffffffffffffff811115612655576126556142d9565b60405190808252806020026020018201604052801561267e578160200160208202803683370190505b50336000908152600f60205260408120805492935084929091906126a390849061416d565b9250508190555081600b60008282546126bc919061416d565b90915550600090505b82811015612704576126d5612e9a565b8282815181106126e7576126e76142c3565b6020908102919091010152806126fc81614252565b9150506126c5565b50610b4d3382612fb9565b6000805b60125481101561277557336001600160a01b03166012828154811061273a5761273a6142c3565b60009182526020909120600290910201546001600160a01b031614156127635760019150612775565b8061276d81614252565b915050612713565b506000546001600160a01b031633148061278c5750805b6127f45760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b815160115410156128475760405162461bcd60e51b815260206004820152601a60248201527f4e6f2065676773206c65667420746f20626520636c61696d65640000000000006044820152606401610961565b8151600b600082825461285a919061416d565b90915550600090505b8251811015610c7e57612891838281518110612881576128816142c3565b6020026020010151611c2a612e9a565b8061289b81614252565b915050612863565b6128ad33836131a8565b61291f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610961565b610e66848484846136d5565b6000818152600360205260409020546060906001600160a01b03166129b85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610961565b60006129c2612a14565b905060008151116129e25760405180602001604052806000815250612a0d565b806129ec8461375e565b6040516020016129fd929190614046565b6040516020818303038152906040525b9392505050565b6060600e8054610869906141fb565b6000546001600160a01b03163314612a7d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610961565b6001600160a01b038116612af95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610961565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600080805b601254811015612bc857336001600160a01b031660128281548110612b8d57612b8d6142c3565b60009182526020909120600290910201546001600160a01b03161415612bb65760019150612bc8565b80612bc081614252565b915050612b66565b506000546001600160a01b0316331480612bdf5750805b612c475760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b60005b60115461ffff82161015612cb8578361ffff1660118261ffff1681548110612c7457612c746142c3565b60009182526020909120601082040154600f9091166002026101000a900461ffff161415612ca6576001925050612cbe565b80612cb081614230565b915050612c4a565b50600091505b50919050565b6000805b601254811015612d2a57336001600160a01b031660128281548110612cef57612cef6142c3565b60009182526020909120600290910201546001600160a01b03161415612d185760019150612d2a565b80612d2281614252565b915050612cc8565b506000546001600160a01b0316331480612d415750805b612da95760405162461bcd60e51b815260206004820152603360248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015272103737b910309031b7b63630b137b930ba37b960691b6064820152608401610961565b60115415612df95760405162461bcd60e51b815260206004820152601e60248201527f417661696c61626c6520656767732061726520616c72656164792073657400006044820152606401610961565b612e033383612fb9565b8151600b6000828254612e16919061416d565b90915550505050565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612e6182611d99565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612eab601180549050613890565b9050600060118281548110612ec257612ec26142c3565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff16905060116001601180549050612f0091906141b8565b81548110612f1057612f106142c3565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660118381548110612f4757612f476142c3565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506011805480612f8757612f876142ad565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a0219169055905592915050565b6001600160a01b03821661300f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610961565b80516001600160a01b0383166000908152600460205260408120805490919061303990849061416d565b90915550600090505b8151811015610c7e57613085828281518110613060576130606142c3565b60200260200101516000908152600360205260409020546001600160a01b0316151590565b156130d25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610961565b6130ea600084848481518110610e6657610e666142c3565b8260036000848481518110613101576131016142c3565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081818151811061314d5761314d6142c3565b6020026020010151836001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4806131a081614252565b915050613042565b6000818152600360205260408120546001600160a01b03166132215760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610961565b600061322c83611d99565b9050806001600160a01b0316846001600160a01b031614806132675750836001600160a01b031661325c846108ec565b6001600160a01b0316145b8061329757506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166132b282611d99565b6001600160a01b03161461332e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610961565b6001600160a01b0382166133a95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610961565b6133b4600082612e1f565b6001600160a01b03831660009081526004602052604081208054600192906133dd9084906141b8565b90915550506001600160a01b038216600090815260046020526040812080546001929061340b90849061416d565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806134986fffffffffffffffffffffffffffffffff841686614185565b905060006134b86fffffffffffffffffffffffffffffffff85168761426d565b905060006134d86fffffffffffffffffffffffffffffffff861687614185565b905060006134f86fffffffffffffffffffffffffffffffff87168861426d565b90506fffffffffffffffffffffffffffffffff86166135178285614199565b6135219190614185565b61352b8385614199565b6135358387614199565b6fffffffffffffffffffffffffffffffff89166135528689614199565b61355c9190614199565b613566919061416d565b613570919061416d565b61357a919061416d565b98975050505050505050565b6001600160a01b0382166135dc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610961565b6000818152600360205260409020546001600160a01b0316156136415760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610961565b6001600160a01b038216600090815260046020526040812080546001929061366a90849061416d565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6136e084848461329f565b6136ec84848484613918565b610e665760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610961565b60608161379e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156137c857806137b281614252565b91506137c19050600a83614185565b91506137a2565b60008167ffffffffffffffff8111156137e3576137e36142d9565b6040519080825280601f01601f19166020018201604052801561380d576020820181803683370190505b5090505b8415613297576138226001836141b8565b915061382f600a8661426d565b61383a90603061416d565b60f81b81838151811061384f5761384f6142c3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613889600a86614185565b9450613811565b60115460009081906138a36001436141b8565b6040805160208101939093529040908201527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000041606090811b82168184015244607484015233901b16609482015260a80160408051601f1981840301815291905280516020909101209050612a0d838261426d565b60006001600160a01b0384163b15613aba576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613975903390899088908890600401614075565b602060405180830381600087803b15801561398f57600080fd5b505af19250505080156139bf575060408051601f3d908101601f191682019092526139bc91810190613f56565b60015b613a6f573d8080156139ed576040519150601f19603f3d011682016040523d82523d6000602084013e6139f2565b606091505b508051613a675760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610961565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050613297565b506001949350505050565b828054613ad1906141fb565b90600052602060002090601f016020900481019282613af35760008555613b39565b82601f10613b0c57805160ff1916838001178555613b39565b82800160010185558215613b39579182015b82811115613b39578251825591602001919060010190613b1e565b50611caa9291505b80821115611caa5760008155600101613b41565b600067ffffffffffffffff831115613b6f57613b6f6142d9565b613b826020601f19601f860116016140ed565b9050828152838383011115613b9657600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114613bc457600080fd5b919050565b803561ffff81168114613bc457600080fd5b600060208284031215613bed57600080fd5b612a0d82613bad565b60008060408385031215613c0957600080fd5b613c1283613bad565b9150613c2060208401613bad565b90509250929050565b600080600060608486031215613c3e57600080fd5b613c4784613bad565b9250613c5560208501613bad565b9150604084013590509250925092565b60008060008060808587031215613c7b57600080fd5b613c8485613bad565b9350613c9260208601613bad565b925060408501359150606085013567ffffffffffffffff811115613cb557600080fd5b8501601f81018713613cc657600080fd5b613cd587823560208401613b55565b91505092959194509250565b60008060408385031215613cf457600080fd5b613cfd83613bad565b915060208301358015158114613d1257600080fd5b809150509250929050565b60008060408385031215613d3057600080fd5b613d3983613bad565b946020939093013593505050565b60006020808385031215613d5a57600080fd5b823567ffffffffffffffff811115613d7157600080fd5b8301601f81018513613d8257600080fd5b8035613d95613d908261411e565b6140ed565b80828252848201915084840188868560051b8701011115613db557600080fd5b600094505b83851015613ddf57613dcb81613bad565b835260019490940193918501918501613dba565b50979650505050505050565b60006020808385031215613dfe57600080fd5b823567ffffffffffffffff811115613e1557600080fd5b8301601f81018513613e2657600080fd5b8035613e34613d908261411e565b80828252848201915084840188868560061b8701011115613e5457600080fd5b60009450845b84811015613e9f57604080838c031215613e72578687fd5b613e7a6140c4565b613e8384613bad565b8152838901358982015285529387019390910190600101613e5a565b509098975050505050505050565b60006020808385031215613ec057600080fd5b823567ffffffffffffffff811115613ed757600080fd5b8301601f81018513613ee857600080fd5b8035613ef6613d908261411e565b80828252848201915084840188868560051b8701011115613f1657600080fd5b600094505b83851015613ddf578035835260019490940193918501918501613f1b565b600060208284031215613f4b57600080fd5b8135612a0d816142ef565b600060208284031215613f6857600080fd5b8151612a0d816142ef565b600060208284031215613f8557600080fd5b813567ffffffffffffffff811115613f9c57600080fd5b8201601f81018413613fad57600080fd5b61329784823560208401613b55565b600060208284031215613fce57600080fd5b612a0d82613bc9565b60008060408385031215613fea57600080fd5b613ff383613bc9565b9150613c2060208401613bc9565b60006020828403121561401357600080fd5b5035919050565b600081518084526140328160208601602086016141cf565b601f01601f19169290920160200192915050565b600083516140588184602088016141cf565b83519083019061406c8183602088016141cf565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526140a7608083018461401a565b9695505050505050565b602081526000612a0d602083018461401a565b6040805190810167ffffffffffffffff811182821017156140e7576140e76142d9565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715614116576141166142d9565b604052919050565b600067ffffffffffffffff821115614138576141386142d9565b5060051b60200190565b60006fffffffffffffffffffffffffffffffff80831681851680830382111561406c5761406c614281565b6000821982111561418057614180614281565b500190565b60008261419457614194614297565b500490565b60008160001904831182151516156141b3576141b3614281565b500290565b6000828210156141ca576141ca614281565b500390565b60005b838110156141ea5781810151838201526020016141d2565b83811115610e665750506000910152565b600181811c9082168061420f57607f821691505b60208210811415612cbe57634e487b7160e01b600052602260045260246000fd5b600061ffff8083168181141561424857614248614281565b6001019392505050565b600060001982141561426657614266614281565b5060010190565b60008261427c5761427c614297565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461431d57600080fd5b5056fea2646970667358221220fb76dc51b13b635a7bd61a1437ea29527c0dc259da62bdfadda29747da9790a564736f6c63430008060033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.