Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
11 TOSFRENS-1
Holders
9
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TOSFRENS-1Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TOSFriendsNFT
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /**************************************** * @author: tos_nft * * @team: TheOtherSide * **************************************** * TOS-ERC721 provides low-gas * * mints + transfers * ****************************************/ import './Delegated.sol'; import './ERC721EnumerableT.sol'; import "@openzeppelin/contracts/utils/Strings.sol"; import './SafeMath.sol'; interface IERC20Proxy{ function burnFromAccount( address account, uint leaves ) external payable; function mintToAccount( address[] calldata accounts, uint[] calldata leaves ) external payable; } interface IERC1155Proxy{ function burnFrom( address account, uint[] calldata ids, uint[] calldata quantities ) external payable; } contract TOSFriendsNFT is ERC721EnumerableT, Delegated { using Strings for uint; using SafeMath for uint256; struct Moon { address owner; } bool public revealed = true; string public notRevealedUri = ""; uint public MAX_SUPPLY = 11; uint public PRICE = 0.15 ether; uint public MAX_QTY = 1; Moon[] public moons; bool public isMintActive = true; mapping(address => uint) private _balances; string private _tokenURIPrefix = "ipfs://QmQ3NX6QTHkqnbKPPCEXAk9GpGuokQtniupcBskwa3HzoX/"; string private _tokenURISuffix = ".json"; constructor() ERC721T("TOS Frens v1", "TOSFRENS-1"){ } //external fallback() external payable {} receive() external payable {} function balanceOf(address account) public view override returns (uint) { require(account != address(0), "MOON: balance query for the zero address"); return _balances[account]; } function isOwnerOf( address account, uint[] calldata tokenIds ) external view override returns( bool ){ for(uint i; i < tokenIds.length; ++i ){ if( moons[ tokenIds[i] ].owner != account ) return false; } return true; } function ownerOf( uint tokenId ) public override view returns( address owner_ ){ address owner = moons[tokenId].owner; require(owner != address(0), "MOON: query for nonexistent token"); return owner; } function tokenByIndex(uint index) external view override returns (uint) { require(index < totalSupply(), "MOON: global index out of bounds"); return index; } function tokenOfOwnerByIndex(address owner, uint index) public view override returns (uint tokenId) { uint count; for( uint i; i < moons.length; ++i ){ if( owner == moons[i].owner ){ if( count == index ) return i; else ++count; } } revert("ERC721Enumerable: owner index out of bounds"); } function tokenURI(uint tokenId) external view override returns (string memory) { require(_exists(tokenId), "MOON: URI query for nonexistent token"); if(revealed == false) { return notRevealedUri; } return string(abi.encodePacked(_tokenURIPrefix, tokenId.toString(), _tokenURISuffix)); } function totalSupply() public view override returns( uint totalSupply_ ){ return moons.length; } function walletOfOwner( address account ) external view override returns( uint[] memory ){ uint quantity = balanceOf( account ); uint[] memory wallet = new uint[]( quantity ); for( uint i; i < quantity; ++i ){ wallet[i] = tokenOfOwnerByIndex( account, i ); } return wallet; } //only delegates function setRevealState(bool reveal_) external onlyDelegates { revealed = reveal_; } //payable function mint( uint quantity ) external payable { require(isMintActive == true,"MOON: Minting needs to be enabled."); require(quantity <= MAX_QTY, "MOON:Quantity must be less than or equal to MAX QTY"); require( msg.value >= PRICE * quantity, "MOON: Ether sent is not correct" ); uint supply = totalSupply(); require( supply + quantity <= MAX_SUPPLY, "MOON: Mint/order exceeds supply" ); for(uint i; i < quantity; ++i){ _mint( msg.sender, supply++); } } function getBalanceOfContract() public view returns (uint256) { return address(this).balance; } function getContractAddress() public view returns (address) { return address(this); } function withdraw(uint256 amount_) public onlyOwner { require(address(this).balance >= amount_, "Address: insufficient balance"); // This will payout the owner 100% of the contract balance. // Do not remove this otherwise you will not be able to withdraw the funds. // ============================================================================= (bool os, ) = payable(owner()).call{value: amount_}(""); require(os); // ============================================================================= } //onlyDelegates function teamMint(uint[] calldata quantity, address[] calldata recipient) external onlyDelegates{ require(quantity.length == recipient.length, "MOON: Must provide equal quantities and recipients" ); uint totalQuantity; uint supply = totalSupply(); for(uint i; i < quantity.length; ++i){ totalQuantity += quantity[i]; } require( supply + totalQuantity <= MAX_SUPPLY, "MOON: Mint/order exceeds supply" ); for(uint i; i < recipient.length; ++i){ for(uint j; j < quantity[i]; ++j){ uint tokenId = supply++; _mint( recipient[i], tokenId); } } } function setMintingActive(bool mintActive_) external onlyDelegates { isMintActive = mintActive_; } function setBaseURI(string calldata prefix, string calldata suffix) external onlyDelegates{ _tokenURIPrefix = prefix; _tokenURISuffix = suffix; } function increaseMaxSupply(uint maxSupply) external onlyDelegates{ require(MAX_SUPPLY != maxSupply, "MOON: New value matches old" ); require(maxSupply >= totalSupply(), "MOON: Specified supply is lower than current balance" ); MAX_SUPPLY = maxSupply; } function setPrice(uint price) external onlyDelegates{ require( PRICE != price, "MOON: New value matches old" ); PRICE = price; } //internal function _beforeTokenTransfer(address from, address to) internal { if( from != address(0) ) --_balances[ from ]; if( to != address(0) ) ++_balances[ to ]; } function _exists(uint tokenId) internal view override returns (bool) { return tokenId < moons.length && moons[tokenId].owner != address(0); } function _mint(address to, uint tokenId) internal { _beforeTokenTransfer(address(0), to); moons.push(Moon(to)); emit Transfer(address(0), to, tokenId); } function _transfer(address from, address to, uint tokenId) internal override { require(moons[tokenId].owner == from, "MOON: transfer of token that is not owned"); // Clear approvals from the previous owner _approve(address(0), tokenId); _beforeTokenTransfer(from, to); moons[tokenId].owner = to; emit Transfer(from, to, tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.0; /**************************************** * @author: squeebo_nft * **************************************** * Blimpie-ERC721 provides low-gas * * mints + transfers * ****************************************/ import "./ERC721T.sol"; import "./IERC721Batch.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; abstract contract ERC721EnumerableT is ERC721T, IERC721Batch, IERC721Enumerable { function balanceOf( address owner ) public view virtual override( IERC721, ERC721T ) returns( uint ); function isOwnerOf( address account, uint[] calldata tokenIds ) external view virtual override returns( bool ); function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721T) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } function tokenOfOwnerByIndex(address owner, uint index) public view virtual override returns( uint tokenId ); function tokenByIndex(uint index) external view virtual override returns (uint) { require(index < totalSupply(), "ERC721Enumerable: global index out of bounds"); return index; } function totalSupply() public view virtual override returns( uint ); function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external override{ for(uint i; i < tokenIds.length; ++i ){ safeTransferFrom( from, to, tokenIds[i], data ); } } function walletOfOwner( address account ) external view virtual override returns( uint[] memory ){ uint quantity = balanceOf( account ); uint[] memory wallet = new uint[]( quantity ); for( uint i; i < quantity; ++i ){ wallet[i] = tokenOfOwnerByIndex( account, i ); } return wallet; } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.0; /*********************** * @author: squeebo_nft * ************************/ import "@openzeppelin/contracts/access/Ownable.sol"; contract Delegated is Ownable{ mapping(address => bool) internal _delegates; constructor(){ _delegates[owner()] = true; } modifier onlyDelegates { require(_delegates[msg.sender], "Invalid delegate" ); _; } //onlyOwner function isDelegate( address addr ) external view onlyOwner returns ( bool ){ return _delegates[addr]; } function setDelegate( address addr, bool isDelegate_ ) external onlyOwner{ _delegates[addr] = isDelegate_; } function transferOwnership(address newOwner) public virtual override onlyOwner { _delegates[newOwner] = true; super.transferOwnership( newOwner ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.0; interface IERC721Batch { function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool ); function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external; function walletOfOwner( address account ) external view returns( uint[] memory ); }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.0; /**************************************** * @author: squeebo_nft * * @team: GoldenX * **************************************** * Blimpie-ERC721 provides low-gas * * mints + transfers * ****************************************/ import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; abstract contract ERC721T is Context, ERC165, IERC721, IERC721Metadata { using Address for address; string private _name; string private _symbol; mapping(uint => address) internal _tokenApprovals; mapping(address => mapping(address => bool)) internal _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } //public function balanceOf(address owner) public view virtual override returns( uint ); function name() external view virtual override returns (string memory) { return _name; } function ownerOf(uint tokenId) public view virtual override returns (address); function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function symbol() external view virtual override returns (string memory) { return _symbol; } /* function totalSupply() public view virtual returns (uint) { return _owners.length - (_offset + _burned); } */ function approve(address to, uint tokenId) external virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } function getApproved(uint tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } function setApprovalForAll(address operator, bool approved) external virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } function transferFrom( address from, address to, uint 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); } function safeTransferFrom( address from, address to, uint tokenId ) external virtual override { safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } //internal function _approve(address to, uint tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } function _checkOnERC721Received( address from, address to, uint tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } function _exists(uint tokenId) internal view virtual returns (bool); function _isApprovedOrOwner(address spender, uint tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _safeTransfer( address from, address to, uint tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } function _transfer(address from, address to, uint tokenId) internal virtual; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "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":"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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_QTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalanceOfContract","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"increaseMaxSupply","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":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"moons","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","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":"owner_","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"},{"internalType":"string","name":"suffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"mintActive_","type":"bool"}],"name":"setMintingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"reveal_","type":"bool"}],"name":"setRevealState","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":"quantity","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","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":"totalSupply_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferBatch","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6006805460ff1916600117905560a06040819052600060808190526200002891600791620001e1565b50600b600855670214e8348c4f00006009556001600a819055600c805460ff191690911790556040805160608101909152603680825262002c48602083013980516200007d91600e91602090910190620001e1565b5060408051808201909152600580825264173539b7b760d91b6020909201918252620000ac91600f91620001e1565b50348015620000ba57600080fd5b50604080518082018252600c81526b544f53204672656e7320763160a01b60208083019182528351808501909452600a845269544f534652454e532d3160b01b9084015281519192916200011191600091620001e1565b50805162000127906001906020840190620001e1565b505050620001446200013e6200018b60201b60201c565b6200018f565b6001600560006200015d6004546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055620002c4565b3390565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001ef9062000287565b90600052602060002090601f0160209004810192826200021357600085556200025e565b82601f106200022e57805160ff19168380011785556200025e565b828001600101855582156200025e579182015b828111156200025e57825182559160200191906001019062000241565b506200026c92915062000270565b5090565b5b808211156200026c576000815560010162000271565b600181811c908216806200029c57607f821691505b60208210811415620002be57634e487b7160e01b600052602260045260246000fd5b50919050565b61297480620002d46000396000f3fe6080604052600436106102325760003560e01c80634f6ccce71161012d57806390edbfee116100b0578063b534a5c411610077578063b534a5c414610662578063b88d4fde14610682578063c87b56dd146106a2578063d04ef285146106c2578063e985e9c5146106e2578063f2fde38b1461072b57005b806390edbfee146105da57806391b7f5ed146105fa57806395d89b411461061a578063a0712d681461062f578063a22cb4651461064257005b806370a08231116100f457806370a0823114610551578063715018a6146105715780638b2e9809146105865780638d859f3e146105a65780638da5cb5b146105bc57005b80634f6ccce7146104bd57806351830227146104dd5780635b92ac0d146104f75780636352211e146105115780636790a9de1461053157005b80632533c7cd116101b557806342842e0e1161017c57806342842e0e14610410578063438b6300146104305780634a994eef1461045d5780634d44660c1461047d5780634ee6bb231461049d57005b80632533c7cd146103875780632e1a7d4d146103a75780632f745c59146103c757806332a2c5d0146103e757806332cb6b0c146103fa57005b8063095ea7b3116101f9578063095ea7b3146102ff57806318160ddd1461031f5780631c96cae91461033e578063229688851461035457806323b872dd1461036757005b806301ffc9a71461023b57806306fdde03146102705780630777962714610292578063081812fc146102b2578063081c8c44146102ea57005b3661023957005b005b34801561024757600080fd5b5061025b61025636600461247f565b61074b565b60405190151581526020015b60405180910390f35b34801561027c57600080fd5b50610285610776565b60405161026791906126ac565b34801561029e57600080fd5b5061025b6102ad36600461215a565b610808565b3480156102be57600080fd5b506102d26102cd366004612519565b610861565b6040516001600160a01b039091168152602001610267565b3480156102f657600080fd5b506102856108e9565b34801561030b57600080fd5b5061023961031a3660046123ce565b610977565b34801561032b57600080fd5b50600b545b604051908152602001610267565b34801561034a57600080fd5b50610330600a5481565b34801561036057600080fd5b5047610330565b34801561037357600080fd5b50610239610382366004612239565b610a8d565b34801561039357600080fd5b506102396103a23660046123f8565b610abe565b3480156103b357600080fd5b506102396103c2366004612519565b610c9b565b3480156103d357600080fd5b506103306103e23660046123ce565b610d8a565b3480156103f357600080fd5b50306102d2565b34801561040657600080fd5b5061033060085481565b34801561041c57600080fd5b5061023961042b366004612239565b610e56565b34801561043c57600080fd5b5061045061044b36600461215a565b610e71565b6040516102679190612668565b34801561046957600080fd5b506102396104783660046123a4565b610f11565b34801561048957600080fd5b5061025b610498366004612351565b610f66565b3480156104a957600080fd5b506102d26104b8366004612519565b610fe8565b3480156104c957600080fd5b506103306104d8366004612519565b611012565b3480156104e957600080fd5b5060065461025b9060ff1681565b34801561050357600080fd5b50600c5461025b9060ff1681565b34801561051d57600080fd5b506102d261052c366004612519565b61106f565b34801561053d57600080fd5b5061023961054c3660046124b9565b6110f3565b34801561055d57600080fd5b5061033061056c36600461215a565b611142565b34801561057d57600080fd5b506102396111c7565b34801561059257600080fd5b506102396105a1366004612464565b6111fd565b3480156105b257600080fd5b5061033060095481565b3480156105c857600080fd5b506004546001600160a01b03166102d2565b3480156105e657600080fd5b506102396105f5366004612519565b61123f565b34801561060657600080fd5b50610239610615366004612519565b611334565b34801561062657600080fd5b506102856113ba565b61023961063d366004612519565b6113c9565b34801561064e57600080fd5b5061023961065d3660046123a4565b61158f565b34801561066e57600080fd5b5061023961067d3660046121a8565b611654565b34801561068e57600080fd5b5061023961069d366004612275565b6116c9565b3480156106ae57600080fd5b506102856106bd366004612519565b611701565b3480156106ce57600080fd5b506102396106dd366004612464565b611837565b3480156106ee57600080fd5b5061025b6106fd366004612175565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b34801561073757600080fd5b5061023961074636600461215a565b611879565b60006001600160e01b0319821663780e9d6360e01b14806107705750610770826118d2565b92915050565b60606000805461078590612866565b80601f01602080910402602001604051908101604052809291908181526020018280546107b190612866565b80156107fe5780601f106107d3576101008083540402835291602001916107fe565b820191906000526020600020905b8154815290600101906020018083116107e157829003601f168201915b5050505050905090565b6004546000906001600160a01b0316331461083e5760405162461bcd60e51b81526004016108359061273b565b60405180910390fd5b506001600160a01b03811660009081526005602052604090205460ff165b919050565b600061086c82611922565b6108cd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610835565b506000908152600260205260409020546001600160a01b031690565b600780546108f690612866565b80601f016020809104026020016040519081016040528092919081815260200182805461092290612866565b801561096f5780601f106109445761010080835404028352916020019161096f565b820191906000526020600020905b81548152906001019060200180831161095257829003601f168201915b505050505081565b60006109828261106f565b9050806001600160a01b0316836001600160a01b031614156109f05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610835565b336001600160a01b0382161480610a0c5750610a0c81336106fd565b610a7e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610835565b610a88838361196c565b505050565b610a9733826119da565b610ab35760405162461bcd60e51b815260040161083590612770565b610a88838383611ac4565b3360009081526005602052604090205460ff16610aed5760405162461bcd60e51b8152600401610835906126bf565b828114610b575760405162461bcd60e51b815260206004820152603260248201527f4d4f4f4e3a204d7573742070726f7669646520657175616c207175616e74697460448201527169657320616e6420726563697069656e747360701b6064820152608401610835565b600080610b63600b5490565b905060005b85811015610ba657868682818110610b8257610b826128fc565b9050602002013583610b9491906127c1565b9250610b9f816128a1565b9050610b68565b50600854610bb483836127c1565b1115610c025760405162461bcd60e51b815260206004820152601f60248201527f4d4f4f4e3a204d696e742f6f72646572206578636565647320737570706c79006044820152606401610835565b60005b83811015610c925760005b878783818110610c2257610c226128fc565b90506020020135811015610c8157600083610c3c816128a1565b94509050610c70878785818110610c5557610c556128fc565b9050602002016020810190610c6a919061215a565b82611bd8565b50610c7a816128a1565b9050610c10565b50610c8b816128a1565b9050610c05565b50505050505050565b6004546001600160a01b03163314610cc55760405162461bcd60e51b81526004016108359061273b565b80471015610d155760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610835565b6000610d296004546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610d73576040519150601f19603f3d011682016040523d82523d6000602084013e610d78565b606091505b5050905080610d8657600080fd5b5050565b60008060005b600b54811015610df957600b8181548110610dad57610dad6128fc565b6000918252602090912001546001600160a01b0386811691161415610de95783821415610ddd5791506107709050565b610de6826128a1565b91505b610df2816128a1565b9050610d90565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610835565b610a88838383604051806020016040528060008152506116c9565b60606000610e7e83611142565b905060008167ffffffffffffffff811115610e9b57610e9b612912565b604051908082528060200260200182016040528015610ec4578160200160208202803683370190505b50905060005b82811015610f0957610edc8582610d8a565b828281518110610eee57610eee6128fc565b6020908102919091010152610f02816128a1565b9050610eca565b509392505050565b6004546001600160a01b03163314610f3b5760405162461bcd60e51b81526004016108359061273b565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6000805b82811015610fdb57846001600160a01b0316600b858584818110610f9057610f906128fc565b9050602002013581548110610fa757610fa76128fc565b6000918252602090912001546001600160a01b031614610fcb576000915050610fe1565b610fd4816128a1565b9050610f6a565b50600190505b9392505050565b600b8181548110610ff857600080fd5b6000918252602090912001546001600160a01b0316905081565b600061101d600b5490565b821061106b5760405162461bcd60e51b815260206004820181905260248201527f4d4f4f4e3a20676c6f62616c20696e646578206f7574206f6620626f756e64736044820152606401610835565b5090565b600080600b8381548110611085576110856128fc565b6000918252602090912001546001600160a01b03169050806107705760405162461bcd60e51b815260206004820152602160248201527f4d4f4f4e3a20717565727920666f72206e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610835565b3360009081526005602052604090205460ff166111225760405162461bcd60e51b8152600401610835906126bf565b61112e600e8585612015565b5061113b600f8383612015565b5050505050565b60006001600160a01b0382166111ab5760405162461bcd60e51b815260206004820152602860248201527f4d4f4f4e3a2062616c616e636520717565727920666f7220746865207a65726f604482015267206164647265737360c01b6064820152608401610835565b506001600160a01b03166000908152600d602052604090205490565b6004546001600160a01b031633146111f15760405162461bcd60e51b81526004016108359061273b565b6111fb6000611c76565b565b3360009081526005602052604090205460ff1661122c5760405162461bcd60e51b8152600401610835906126bf565b6006805460ff1916911515919091179055565b3360009081526005602052604090205460ff1661126e5760405162461bcd60e51b8152600401610835906126bf565b8060085414156112c05760405162461bcd60e51b815260206004820152601b60248201527f4d4f4f4e3a204e65772076616c7565206d617463686573206f6c6400000000006044820152606401610835565b600b5481101561132f5760405162461bcd60e51b815260206004820152603460248201527f4d4f4f4e3a2053706563696669656420737570706c79206973206c6f776572206044820152737468616e2063757272656e742062616c616e636560601b6064820152608401610835565b600855565b3360009081526005602052604090205460ff166113635760405162461bcd60e51b8152600401610835906126bf565b8060095414156113b55760405162461bcd60e51b815260206004820152601b60248201527f4d4f4f4e3a204e65772076616c7565206d617463686573206f6c6400000000006044820152606401610835565b600955565b60606001805461078590612866565b600c5460ff16151560011461142b5760405162461bcd60e51b815260206004820152602260248201527f4d4f4f4e3a204d696e74696e67206e6565647320746f20626520656e61626c65604482015261321760f11b6064820152608401610835565b600a548111156114995760405162461bcd60e51b815260206004820152603360248201527f4d4f4f4e3a5175616e74697479206d757374206265206c657373207468616e206044820152726f7220657175616c20746f204d41582051545960681b6064820152608401610835565b806009546114a791906127ed565b3410156114f65760405162461bcd60e51b815260206004820152601f60248201527f4d4f4f4e3a2045746865722073656e74206973206e6f7420636f7272656374006044820152606401610835565b6000611501600b5490565b60085490915061151183836127c1565b111561155f5760405162461bcd60e51b815260206004820152601f60248201527f4d4f4f4e3a204d696e742f6f72646572206578636565647320737570706c79006044820152606401610835565b60005b82811015610a885761157f3383611578816128a1565b9450611bd8565b611588816128a1565b9050611562565b6001600160a01b0382163314156115e85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610835565b3360008181526003602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b83811015610c92576116b98787878785818110611676576116766128fc565b9050602002013586868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506116c992505050565b6116c2816128a1565b9050611657565b6116d333836119da565b6116ef5760405162461bcd60e51b815260040161083590612770565b6116fb84848484611cc8565b50505050565b606061170c82611922565b6117665760405162461bcd60e51b815260206004820152602560248201527f4d4f4f4e3a2055524920717565727920666f72206e6f6e6578697374656e74206044820152643a37b5b2b760d91b6064820152608401610835565b60065460ff16611802576007805461177d90612866565b80601f01602080910402602001604051908101604052809291908181526020018280546117a990612866565b80156117f65780601f106117cb576101008083540402835291602001916117f6565b820191906000526020600020905b8154815290600101906020018083116117d957829003601f168201915b50505050509050919050565b600e61180d83611cfb565b600f604051602001611821939291906125f8565b6040516020818303038152906040529050919050565b3360009081526005602052604090205460ff166118665760405162461bcd60e51b8152600401610835906126bf565b600c805460ff1916911515919091179055565b6004546001600160a01b031633146118a35760405162461bcd60e51b81526004016108359061273b565b6001600160a01b0381166000908152600560205260409020805460ff191660011790556118cf81611df9565b50565b60006001600160e01b031982166380ac58cd60e01b148061190357506001600160e01b03198216635b5e139f60e01b145b8061077057506301ffc9a760e01b6001600160e01b0319831614610770565b600b5460009082108015610770575060006001600160a01b0316600b838154811061194f5761194f6128fc565b6000918252602090912001546001600160a01b0316141592915050565b600081815260026020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119a18261106f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006119e582611922565b611a465760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610835565b6000611a518361106f565b9050806001600160a01b0316846001600160a01b03161480611a8c5750836001600160a01b0316611a8184610861565b6001600160a01b0316145b80611abc57506001600160a01b0380821660009081526003602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316600b8281548110611ae157611ae16128fc565b6000918252602090912001546001600160a01b031614611b555760405162461bcd60e51b815260206004820152602960248201527f4d4f4f4e3a207472616e73666572206f6620746f6b656e2074686174206973206044820152681b9bdd081bdddb995960ba1b6064820152608401610835565b611b6060008261196c565b611b6a8383611e91565b81600b8281548110611b7e57611b7e6128fc565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b611be3600083611e91565b604080516020810182526001600160a01b03848116808352600b8054600181018255600091825293517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990940180546001600160a01b03191694909316939093179091559151839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611cd3848484611ac4565b611cdf84848484611f08565b6116fb5760405162461bcd60e51b8152600401610835906126e9565b606081611d1f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d495780611d33816128a1565b9150611d429050600a836127d9565b9150611d23565b60008167ffffffffffffffff811115611d6457611d64612912565b6040519080825280601f01601f191660200182016040528015611d8e576020820181803683370190505b5090505b8415611abc57611da360018361280c565b9150611db0600a866128bc565b611dbb9060306127c1565b60f81b818381518110611dd057611dd06128fc565b60200101906001600160f81b031916908160001a905350611df2600a866127d9565b9450611d92565b6004546001600160a01b03163314611e235760405162461bcd60e51b81526004016108359061273b565b6001600160a01b038116611e885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610835565b6118cf81611c76565b6001600160a01b03821615611ecb576001600160a01b0382166000908152600d602052604081208054909190611ec69061284f565b909155505b6001600160a01b03811615610d86576001600160a01b0381166000908152600d602052604081208054909190611f00906128a1565b909155505050565b60006001600160a01b0384163b1561200a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f4c90339089908890889060040161262b565b602060405180830381600087803b158015611f6657600080fd5b505af1925050508015611f96575060408051601f3d908101601f19168201909252611f939181019061249c565b60015b611ff0573d808015611fc4576040519150601f19603f3d011682016040523d82523d6000602084013e611fc9565b606091505b508051611fe85760405162461bcd60e51b8152600401610835906126e9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611abc565b506001949350505050565b82805461202190612866565b90600052602060002090601f0160209004810192826120435760008555612089565b82601f1061205c5782800160ff19823516178555612089565b82800160010185558215612089579182015b8281111561208957823582559160200191906001019061206e565b5061106b9291505b8082111561106b5760008155600101612091565b80356001600160a01b038116811461085c57600080fd5b60008083601f8401126120ce57600080fd5b50813567ffffffffffffffff8111156120e657600080fd5b6020830191508360208260051b850101111561210157600080fd5b9250929050565b8035801515811461085c57600080fd5b60008083601f84011261212a57600080fd5b50813567ffffffffffffffff81111561214257600080fd5b60208301915083602082850101111561210157600080fd5b60006020828403121561216c57600080fd5b610fe1826120a5565b6000806040838503121561218857600080fd5b612191836120a5565b915061219f602084016120a5565b90509250929050565b600080600080600080608087890312156121c157600080fd5b6121ca876120a5565b95506121d8602088016120a5565b9450604087013567ffffffffffffffff808211156121f557600080fd5b6122018a838b016120bc565b9096509450606089013591508082111561221a57600080fd5b5061222789828a01612118565b979a9699509497509295939492505050565b60008060006060848603121561224e57600080fd5b612257846120a5565b9250612265602085016120a5565b9150604084013590509250925092565b6000806000806080858703121561228b57600080fd5b612294856120a5565b93506122a2602086016120a5565b925060408501359150606085013567ffffffffffffffff808211156122c657600080fd5b818701915087601f8301126122da57600080fd5b8135818111156122ec576122ec612912565b604051601f8201601f19908116603f0116810190838211818310171561231457612314612912565b816040528281528a602084870101111561232d57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561236657600080fd5b61236f846120a5565b9250602084013567ffffffffffffffff81111561238b57600080fd5b612397868287016120bc565b9497909650939450505050565b600080604083850312156123b757600080fd5b6123c0836120a5565b915061219f60208401612108565b600080604083850312156123e157600080fd5b6123ea836120a5565b946020939093013593505050565b6000806000806040858703121561240e57600080fd5b843567ffffffffffffffff8082111561242657600080fd5b612432888389016120bc565b9096509450602087013591508082111561244b57600080fd5b50612458878288016120bc565b95989497509550505050565b60006020828403121561247657600080fd5b610fe182612108565b60006020828403121561249157600080fd5b8135610fe181612928565b6000602082840312156124ae57600080fd5b8151610fe181612928565b600080600080604085870312156124cf57600080fd5b843567ffffffffffffffff808211156124e757600080fd5b6124f388838901612118565b9096509450602087013591508082111561250c57600080fd5b5061245887828801612118565b60006020828403121561252b57600080fd5b5035919050565b6000815180845261254a816020860160208601612823565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061257857607f831692505b602080841082141561259a57634e487b7160e01b600052602260045260246000fd5b8180156125ae57600181146125bf576125ec565b60ff198616895284890196506125ec565b60008881526020902060005b868110156125e45781548b8201529085019083016125cb565b505084890196505b50505050505092915050565b6000612604828661255e565b8451612614818360208901612823565b6126208183018661255e565b979650505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061265e90830184612532565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156126a057835183529284019291840191600101612684565b50909695505050505050565b602081526000610fe16020830184612532565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156127d4576127d46128d0565b500190565b6000826127e8576127e86128e6565b500490565b6000816000190483118215151615612807576128076128d0565b500290565b60008282101561281e5761281e6128d0565b500390565b60005b8381101561283e578181015183820152602001612826565b838111156116fb5750506000910152565b60008161285e5761285e6128d0565b506000190190565b600181811c9082168061287a57607f821691505b6020821081141561289b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156128b5576128b56128d0565b5060010190565b6000826128cb576128cb6128e6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146118cf57600080fdfea2646970667358221220be89ac058f614c259c24b9efcb05e668e919f0a361819a383786bd68ab2cfccf64736f6c63430008070033697066733a2f2f516d51334e58365154486b716e624b5050434558416b39477047756f6b51746e6975706342736b776133487a6f582f
Deployed Bytecode
0x6080604052600436106102325760003560e01c80634f6ccce71161012d57806390edbfee116100b0578063b534a5c411610077578063b534a5c414610662578063b88d4fde14610682578063c87b56dd146106a2578063d04ef285146106c2578063e985e9c5146106e2578063f2fde38b1461072b57005b806390edbfee146105da57806391b7f5ed146105fa57806395d89b411461061a578063a0712d681461062f578063a22cb4651461064257005b806370a08231116100f457806370a0823114610551578063715018a6146105715780638b2e9809146105865780638d859f3e146105a65780638da5cb5b146105bc57005b80634f6ccce7146104bd57806351830227146104dd5780635b92ac0d146104f75780636352211e146105115780636790a9de1461053157005b80632533c7cd116101b557806342842e0e1161017c57806342842e0e14610410578063438b6300146104305780634a994eef1461045d5780634d44660c1461047d5780634ee6bb231461049d57005b80632533c7cd146103875780632e1a7d4d146103a75780632f745c59146103c757806332a2c5d0146103e757806332cb6b0c146103fa57005b8063095ea7b3116101f9578063095ea7b3146102ff57806318160ddd1461031f5780631c96cae91461033e578063229688851461035457806323b872dd1461036757005b806301ffc9a71461023b57806306fdde03146102705780630777962714610292578063081812fc146102b2578063081c8c44146102ea57005b3661023957005b005b34801561024757600080fd5b5061025b61025636600461247f565b61074b565b60405190151581526020015b60405180910390f35b34801561027c57600080fd5b50610285610776565b60405161026791906126ac565b34801561029e57600080fd5b5061025b6102ad36600461215a565b610808565b3480156102be57600080fd5b506102d26102cd366004612519565b610861565b6040516001600160a01b039091168152602001610267565b3480156102f657600080fd5b506102856108e9565b34801561030b57600080fd5b5061023961031a3660046123ce565b610977565b34801561032b57600080fd5b50600b545b604051908152602001610267565b34801561034a57600080fd5b50610330600a5481565b34801561036057600080fd5b5047610330565b34801561037357600080fd5b50610239610382366004612239565b610a8d565b34801561039357600080fd5b506102396103a23660046123f8565b610abe565b3480156103b357600080fd5b506102396103c2366004612519565b610c9b565b3480156103d357600080fd5b506103306103e23660046123ce565b610d8a565b3480156103f357600080fd5b50306102d2565b34801561040657600080fd5b5061033060085481565b34801561041c57600080fd5b5061023961042b366004612239565b610e56565b34801561043c57600080fd5b5061045061044b36600461215a565b610e71565b6040516102679190612668565b34801561046957600080fd5b506102396104783660046123a4565b610f11565b34801561048957600080fd5b5061025b610498366004612351565b610f66565b3480156104a957600080fd5b506102d26104b8366004612519565b610fe8565b3480156104c957600080fd5b506103306104d8366004612519565b611012565b3480156104e957600080fd5b5060065461025b9060ff1681565b34801561050357600080fd5b50600c5461025b9060ff1681565b34801561051d57600080fd5b506102d261052c366004612519565b61106f565b34801561053d57600080fd5b5061023961054c3660046124b9565b6110f3565b34801561055d57600080fd5b5061033061056c36600461215a565b611142565b34801561057d57600080fd5b506102396111c7565b34801561059257600080fd5b506102396105a1366004612464565b6111fd565b3480156105b257600080fd5b5061033060095481565b3480156105c857600080fd5b506004546001600160a01b03166102d2565b3480156105e657600080fd5b506102396105f5366004612519565b61123f565b34801561060657600080fd5b50610239610615366004612519565b611334565b34801561062657600080fd5b506102856113ba565b61023961063d366004612519565b6113c9565b34801561064e57600080fd5b5061023961065d3660046123a4565b61158f565b34801561066e57600080fd5b5061023961067d3660046121a8565b611654565b34801561068e57600080fd5b5061023961069d366004612275565b6116c9565b3480156106ae57600080fd5b506102856106bd366004612519565b611701565b3480156106ce57600080fd5b506102396106dd366004612464565b611837565b3480156106ee57600080fd5b5061025b6106fd366004612175565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b34801561073757600080fd5b5061023961074636600461215a565b611879565b60006001600160e01b0319821663780e9d6360e01b14806107705750610770826118d2565b92915050565b60606000805461078590612866565b80601f01602080910402602001604051908101604052809291908181526020018280546107b190612866565b80156107fe5780601f106107d3576101008083540402835291602001916107fe565b820191906000526020600020905b8154815290600101906020018083116107e157829003601f168201915b5050505050905090565b6004546000906001600160a01b0316331461083e5760405162461bcd60e51b81526004016108359061273b565b60405180910390fd5b506001600160a01b03811660009081526005602052604090205460ff165b919050565b600061086c82611922565b6108cd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610835565b506000908152600260205260409020546001600160a01b031690565b600780546108f690612866565b80601f016020809104026020016040519081016040528092919081815260200182805461092290612866565b801561096f5780601f106109445761010080835404028352916020019161096f565b820191906000526020600020905b81548152906001019060200180831161095257829003601f168201915b505050505081565b60006109828261106f565b9050806001600160a01b0316836001600160a01b031614156109f05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610835565b336001600160a01b0382161480610a0c5750610a0c81336106fd565b610a7e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610835565b610a88838361196c565b505050565b610a9733826119da565b610ab35760405162461bcd60e51b815260040161083590612770565b610a88838383611ac4565b3360009081526005602052604090205460ff16610aed5760405162461bcd60e51b8152600401610835906126bf565b828114610b575760405162461bcd60e51b815260206004820152603260248201527f4d4f4f4e3a204d7573742070726f7669646520657175616c207175616e74697460448201527169657320616e6420726563697069656e747360701b6064820152608401610835565b600080610b63600b5490565b905060005b85811015610ba657868682818110610b8257610b826128fc565b9050602002013583610b9491906127c1565b9250610b9f816128a1565b9050610b68565b50600854610bb483836127c1565b1115610c025760405162461bcd60e51b815260206004820152601f60248201527f4d4f4f4e3a204d696e742f6f72646572206578636565647320737570706c79006044820152606401610835565b60005b83811015610c925760005b878783818110610c2257610c226128fc565b90506020020135811015610c8157600083610c3c816128a1565b94509050610c70878785818110610c5557610c556128fc565b9050602002016020810190610c6a919061215a565b82611bd8565b50610c7a816128a1565b9050610c10565b50610c8b816128a1565b9050610c05565b50505050505050565b6004546001600160a01b03163314610cc55760405162461bcd60e51b81526004016108359061273b565b80471015610d155760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610835565b6000610d296004546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610d73576040519150601f19603f3d011682016040523d82523d6000602084013e610d78565b606091505b5050905080610d8657600080fd5b5050565b60008060005b600b54811015610df957600b8181548110610dad57610dad6128fc565b6000918252602090912001546001600160a01b0386811691161415610de95783821415610ddd5791506107709050565b610de6826128a1565b91505b610df2816128a1565b9050610d90565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610835565b610a88838383604051806020016040528060008152506116c9565b60606000610e7e83611142565b905060008167ffffffffffffffff811115610e9b57610e9b612912565b604051908082528060200260200182016040528015610ec4578160200160208202803683370190505b50905060005b82811015610f0957610edc8582610d8a565b828281518110610eee57610eee6128fc565b6020908102919091010152610f02816128a1565b9050610eca565b509392505050565b6004546001600160a01b03163314610f3b5760405162461bcd60e51b81526004016108359061273b565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6000805b82811015610fdb57846001600160a01b0316600b858584818110610f9057610f906128fc565b9050602002013581548110610fa757610fa76128fc565b6000918252602090912001546001600160a01b031614610fcb576000915050610fe1565b610fd4816128a1565b9050610f6a565b50600190505b9392505050565b600b8181548110610ff857600080fd5b6000918252602090912001546001600160a01b0316905081565b600061101d600b5490565b821061106b5760405162461bcd60e51b815260206004820181905260248201527f4d4f4f4e3a20676c6f62616c20696e646578206f7574206f6620626f756e64736044820152606401610835565b5090565b600080600b8381548110611085576110856128fc565b6000918252602090912001546001600160a01b03169050806107705760405162461bcd60e51b815260206004820152602160248201527f4d4f4f4e3a20717565727920666f72206e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610835565b3360009081526005602052604090205460ff166111225760405162461bcd60e51b8152600401610835906126bf565b61112e600e8585612015565b5061113b600f8383612015565b5050505050565b60006001600160a01b0382166111ab5760405162461bcd60e51b815260206004820152602860248201527f4d4f4f4e3a2062616c616e636520717565727920666f7220746865207a65726f604482015267206164647265737360c01b6064820152608401610835565b506001600160a01b03166000908152600d602052604090205490565b6004546001600160a01b031633146111f15760405162461bcd60e51b81526004016108359061273b565b6111fb6000611c76565b565b3360009081526005602052604090205460ff1661122c5760405162461bcd60e51b8152600401610835906126bf565b6006805460ff1916911515919091179055565b3360009081526005602052604090205460ff1661126e5760405162461bcd60e51b8152600401610835906126bf565b8060085414156112c05760405162461bcd60e51b815260206004820152601b60248201527f4d4f4f4e3a204e65772076616c7565206d617463686573206f6c6400000000006044820152606401610835565b600b5481101561132f5760405162461bcd60e51b815260206004820152603460248201527f4d4f4f4e3a2053706563696669656420737570706c79206973206c6f776572206044820152737468616e2063757272656e742062616c616e636560601b6064820152608401610835565b600855565b3360009081526005602052604090205460ff166113635760405162461bcd60e51b8152600401610835906126bf565b8060095414156113b55760405162461bcd60e51b815260206004820152601b60248201527f4d4f4f4e3a204e65772076616c7565206d617463686573206f6c6400000000006044820152606401610835565b600955565b60606001805461078590612866565b600c5460ff16151560011461142b5760405162461bcd60e51b815260206004820152602260248201527f4d4f4f4e3a204d696e74696e67206e6565647320746f20626520656e61626c65604482015261321760f11b6064820152608401610835565b600a548111156114995760405162461bcd60e51b815260206004820152603360248201527f4d4f4f4e3a5175616e74697479206d757374206265206c657373207468616e206044820152726f7220657175616c20746f204d41582051545960681b6064820152608401610835565b806009546114a791906127ed565b3410156114f65760405162461bcd60e51b815260206004820152601f60248201527f4d4f4f4e3a2045746865722073656e74206973206e6f7420636f7272656374006044820152606401610835565b6000611501600b5490565b60085490915061151183836127c1565b111561155f5760405162461bcd60e51b815260206004820152601f60248201527f4d4f4f4e3a204d696e742f6f72646572206578636565647320737570706c79006044820152606401610835565b60005b82811015610a885761157f3383611578816128a1565b9450611bd8565b611588816128a1565b9050611562565b6001600160a01b0382163314156115e85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610835565b3360008181526003602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b83811015610c92576116b98787878785818110611676576116766128fc565b9050602002013586868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506116c992505050565b6116c2816128a1565b9050611657565b6116d333836119da565b6116ef5760405162461bcd60e51b815260040161083590612770565b6116fb84848484611cc8565b50505050565b606061170c82611922565b6117665760405162461bcd60e51b815260206004820152602560248201527f4d4f4f4e3a2055524920717565727920666f72206e6f6e6578697374656e74206044820152643a37b5b2b760d91b6064820152608401610835565b60065460ff16611802576007805461177d90612866565b80601f01602080910402602001604051908101604052809291908181526020018280546117a990612866565b80156117f65780601f106117cb576101008083540402835291602001916117f6565b820191906000526020600020905b8154815290600101906020018083116117d957829003601f168201915b50505050509050919050565b600e61180d83611cfb565b600f604051602001611821939291906125f8565b6040516020818303038152906040529050919050565b3360009081526005602052604090205460ff166118665760405162461bcd60e51b8152600401610835906126bf565b600c805460ff1916911515919091179055565b6004546001600160a01b031633146118a35760405162461bcd60e51b81526004016108359061273b565b6001600160a01b0381166000908152600560205260409020805460ff191660011790556118cf81611df9565b50565b60006001600160e01b031982166380ac58cd60e01b148061190357506001600160e01b03198216635b5e139f60e01b145b8061077057506301ffc9a760e01b6001600160e01b0319831614610770565b600b5460009082108015610770575060006001600160a01b0316600b838154811061194f5761194f6128fc565b6000918252602090912001546001600160a01b0316141592915050565b600081815260026020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119a18261106f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006119e582611922565b611a465760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610835565b6000611a518361106f565b9050806001600160a01b0316846001600160a01b03161480611a8c5750836001600160a01b0316611a8184610861565b6001600160a01b0316145b80611abc57506001600160a01b0380821660009081526003602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316600b8281548110611ae157611ae16128fc565b6000918252602090912001546001600160a01b031614611b555760405162461bcd60e51b815260206004820152602960248201527f4d4f4f4e3a207472616e73666572206f6620746f6b656e2074686174206973206044820152681b9bdd081bdddb995960ba1b6064820152608401610835565b611b6060008261196c565b611b6a8383611e91565b81600b8281548110611b7e57611b7e6128fc565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b611be3600083611e91565b604080516020810182526001600160a01b03848116808352600b8054600181018255600091825293517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990940180546001600160a01b03191694909316939093179091559151839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611cd3848484611ac4565b611cdf84848484611f08565b6116fb5760405162461bcd60e51b8152600401610835906126e9565b606081611d1f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d495780611d33816128a1565b9150611d429050600a836127d9565b9150611d23565b60008167ffffffffffffffff811115611d6457611d64612912565b6040519080825280601f01601f191660200182016040528015611d8e576020820181803683370190505b5090505b8415611abc57611da360018361280c565b9150611db0600a866128bc565b611dbb9060306127c1565b60f81b818381518110611dd057611dd06128fc565b60200101906001600160f81b031916908160001a905350611df2600a866127d9565b9450611d92565b6004546001600160a01b03163314611e235760405162461bcd60e51b81526004016108359061273b565b6001600160a01b038116611e885760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610835565b6118cf81611c76565b6001600160a01b03821615611ecb576001600160a01b0382166000908152600d602052604081208054909190611ec69061284f565b909155505b6001600160a01b03811615610d86576001600160a01b0381166000908152600d602052604081208054909190611f00906128a1565b909155505050565b60006001600160a01b0384163b1561200a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f4c90339089908890889060040161262b565b602060405180830381600087803b158015611f6657600080fd5b505af1925050508015611f96575060408051601f3d908101601f19168201909252611f939181019061249c565b60015b611ff0573d808015611fc4576040519150601f19603f3d011682016040523d82523d6000602084013e611fc9565b606091505b508051611fe85760405162461bcd60e51b8152600401610835906126e9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611abc565b506001949350505050565b82805461202190612866565b90600052602060002090601f0160209004810192826120435760008555612089565b82601f1061205c5782800160ff19823516178555612089565b82800160010185558215612089579182015b8281111561208957823582559160200191906001019061206e565b5061106b9291505b8082111561106b5760008155600101612091565b80356001600160a01b038116811461085c57600080fd5b60008083601f8401126120ce57600080fd5b50813567ffffffffffffffff8111156120e657600080fd5b6020830191508360208260051b850101111561210157600080fd5b9250929050565b8035801515811461085c57600080fd5b60008083601f84011261212a57600080fd5b50813567ffffffffffffffff81111561214257600080fd5b60208301915083602082850101111561210157600080fd5b60006020828403121561216c57600080fd5b610fe1826120a5565b6000806040838503121561218857600080fd5b612191836120a5565b915061219f602084016120a5565b90509250929050565b600080600080600080608087890312156121c157600080fd5b6121ca876120a5565b95506121d8602088016120a5565b9450604087013567ffffffffffffffff808211156121f557600080fd5b6122018a838b016120bc565b9096509450606089013591508082111561221a57600080fd5b5061222789828a01612118565b979a9699509497509295939492505050565b60008060006060848603121561224e57600080fd5b612257846120a5565b9250612265602085016120a5565b9150604084013590509250925092565b6000806000806080858703121561228b57600080fd5b612294856120a5565b93506122a2602086016120a5565b925060408501359150606085013567ffffffffffffffff808211156122c657600080fd5b818701915087601f8301126122da57600080fd5b8135818111156122ec576122ec612912565b604051601f8201601f19908116603f0116810190838211818310171561231457612314612912565b816040528281528a602084870101111561232d57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561236657600080fd5b61236f846120a5565b9250602084013567ffffffffffffffff81111561238b57600080fd5b612397868287016120bc565b9497909650939450505050565b600080604083850312156123b757600080fd5b6123c0836120a5565b915061219f60208401612108565b600080604083850312156123e157600080fd5b6123ea836120a5565b946020939093013593505050565b6000806000806040858703121561240e57600080fd5b843567ffffffffffffffff8082111561242657600080fd5b612432888389016120bc565b9096509450602087013591508082111561244b57600080fd5b50612458878288016120bc565b95989497509550505050565b60006020828403121561247657600080fd5b610fe182612108565b60006020828403121561249157600080fd5b8135610fe181612928565b6000602082840312156124ae57600080fd5b8151610fe181612928565b600080600080604085870312156124cf57600080fd5b843567ffffffffffffffff808211156124e757600080fd5b6124f388838901612118565b9096509450602087013591508082111561250c57600080fd5b5061245887828801612118565b60006020828403121561252b57600080fd5b5035919050565b6000815180845261254a816020860160208601612823565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061257857607f831692505b602080841082141561259a57634e487b7160e01b600052602260045260246000fd5b8180156125ae57600181146125bf576125ec565b60ff198616895284890196506125ec565b60008881526020902060005b868110156125e45781548b8201529085019083016125cb565b505084890196505b50505050505092915050565b6000612604828661255e565b8451612614818360208901612823565b6126208183018661255e565b979650505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061265e90830184612532565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156126a057835183529284019291840191600101612684565b50909695505050505050565b602081526000610fe16020830184612532565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156127d4576127d46128d0565b500190565b6000826127e8576127e86128e6565b500490565b6000816000190483118215151615612807576128076128d0565b500290565b60008282101561281e5761281e6128d0565b500390565b60005b8381101561283e578181015183820152602001612826565b838111156116fb5750506000910152565b60008161285e5761285e6128d0565b506000190190565b600181811c9082168061287a57607f821691505b6020821081141561289b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156128b5576128b56128d0565b5060010190565b6000826128cb576128cb6128e6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146118cf57600080fdfea2646970667358221220be89ac058f614c259c24b9efcb05e668e919f0a361819a383786bd68ab2cfccf64736f6c63430008070033
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.