Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
301 BLOCKS
Holders
72
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 BLOCKSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
TheBlocks
Compiler Version
v0.8.4+commit.c7e474f2
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.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; // ███████████ █████ ███████████ ████ █████ // ░█░░░███░░░█░░███ ░░███░░░░░███░░███ ░░███ // ░ ░███ ░ ░███████ ██████ ░███ ░███ ░███ ██████ ██████ ░███ █████ █████ // ░███ ░███░░███ ███░░███ ░██████████ ░███ ███░░███ ███░░███ ░███░░███ ███░░ // ░███ ░███ ░███ ░███████ ░███░░░░░███ ░███ ░███ ░███░███ ░░░ ░██████░ ░░█████ // ░███ ░███ ░███ ░███░░░ ░███ ░███ ░███ ░███ ░███░███ ███ ░███░░███ ░░░░███ // █████ ████ █████░░██████ ███████████ █████░░██████ ░░██████ ████ █████ ██████ // ░░░░░ ░░░░ ░░░░░ ░░░░░░ ░░░░░░░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░░ ░░░░░ ░░░░░░ contract TheBlocks is ERC721, Ownable, ReentrancyGuard { using Strings for uint256; event Gift(address[] receivers); event GiftMultiple(address indexed receiver, uint256 quantity); event PublicPurchase(address indexed user, uint256 indexed quantity); uint256 private _totalMinted; uint256 public constant GIFT = 100; uint256 public constant PUBLIC = 3233; uint256 public constant MAX = GIFT + PUBLIC; uint256 public constant PRICE = 0.05 ether; uint256 public constant WHITELIST_PRICE = 0.04 ether; uint256 public constant PUBLIC_PER_MINT = 10; uint256 public constant PRESALE_PURCHASE_LIMIT = 10; mapping(address => uint256) public presalerListPurchases; mapping(address => uint256) public publicListPurchases; string private baseExtension = ".json"; string private _tokenBaseURI = ""; string private notRevealedUri = "https://ipfs.io/ipfs/QmSxaRduPjkHcigiiquUzKMXUPYMTfdZhC6oJkcsGyNwDf"; uint256 public giftedAmount; uint256 public publicAmountMinted; bool public presaleLive; bool public saleLive; bool public revealed; bool public locked; string public proof; constructor() ERC721("The Blocks", "BLOCKS") { setNotRevealedURI(notRevealedUri); } modifier notLocked() { require(!locked, "Contract metadata methods are locked"); _; } function getPrice() public view returns(uint) { return presaleLive ? WHITELIST_PRICE: PRICE; } function buy(uint256 tokenQuantity) external payable nonReentrant { require(saleLive || presaleLive, "SALE_CLOSED_OR_ONLY_PRESALE"); require(_totalMinted + tokenQuantity <= MAX, "OUT_OF_STOCK"); require(publicAmountMinted + tokenQuantity <= PUBLIC, "EXCEED_MINT"); require( publicListPurchases[_msgSender()] + tokenQuantity <= PUBLIC_PER_MINT, "EXCEED_PUBLIC_ALLOC" ); require(getPrice() * tokenQuantity <= msg.value, "INSUFFICIENT_ETH"); for (uint256 i = 0; i < tokenQuantity; i++) { publicAmountMinted++; publicListPurchases[_msgSender()]++; _safeMint(_msgSender(), ++_totalMinted); } emit PublicPurchase(msg.sender, tokenQuantity); } function gift(address[] calldata receivers) external onlyOwner { require(_totalMinted + receivers.length <= MAX, "OUT_OF_STOCK"); require(giftedAmount + receivers.length <= GIFT, "GIFTS_EMPTY"); for (uint256 i = 0; i < receivers.length; i++) { giftedAmount++; _safeMint(receivers[i], ++_totalMinted); } emit Gift(receivers); } function giftMultiple(address receiver, uint256 quantity) external onlyOwner { require(_totalMinted + quantity <= MAX, "OUT_OF_STOCK"); require(giftedAmount + quantity <= GIFT, "GIFTS_EMPTY"); for (uint256 i = 0; i < quantity; i++) { giftedAmount++; _safeMint(receiver, ++_totalMinted); } emit GiftMultiple(receiver, quantity); } function burn(uint256 tokenId) external { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved" ); _burn(tokenId); } function withdraw() external onlyOwner { payable(_msgSender()).transfer(address(this).balance); } function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { require(_exists(tokenId), "Cannot query non-existent token"); if (revealed == false) { return notRevealedUri; } return string(abi.encodePacked(_tokenBaseURI, tokenId.toString(), baseExtension)); } function totalSupply() external view returns (uint256) { return _totalMinted; } function reveal() external onlyOwner { revealed = true; } function lockMetadata() external onlyOwner { locked = true; } function togglePresaleStatus() external onlyOwner { presaleLive = !presaleLive; } function toggleSaleStatus() external onlyOwner { saleLive = !saleLive; } function setProvenanceHash(string calldata hash) external onlyOwner notLocked { proof = hash; } function setBaseURI(string calldata URI) external onlyOwner notLocked { _tokenBaseURI = URI; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner notLocked { notRevealedUri = _notRevealedURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // 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/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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":false,"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"Gift","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"GiftMultiple","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":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"PublicPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"GIFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_PURCHASE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"giftMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giftedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presalerListPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proof","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicAmountMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicListPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":[],"name":"saleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"setProvenanceHash","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":[],"name":"togglePresaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526005608081905264173539b7b760d91b60a09081526200002891600b9190620002ee565b506040805160208101918290526000908190526200004991600c91620002ee565b5060405180608001604052806043815260200162002c736043913980516200007a91600d91602090910190620002ee565b503480156200008857600080fd5b50604080518082018252600a81526954686520426c6f636b7360b01b602080830191825283518085019094526006845265424c4f434b5360d01b908401528151919291620000d991600091620002ee565b508051620000ef906001906020840190620002ee565b5050506200010c62000106620001b760201b60201c565b620001bb565b6001600755600d8054620001b19190620001269062000394565b80601f0160208091040260200160405190810160405280929190818152602001828054620001549062000394565b8015620001a55780601f106200017957610100808354040283529160200191620001a5565b820191906000526020600020905b8154815290600101906020018083116200018757829003601f168201915b50506200020d92505050565b620003d1565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b031633146200026d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6010546301000000900460ff1615620002d55760405162461bcd60e51b8152602060048201526024808201527f436f6e7472616374206d65746164617461206d6574686f647320617265206c6f60448201526318dad95960e21b606482015260840162000264565b8051620002ea90600d906020840190620002ee565b5050565b828054620002fc9062000394565b90600052602060002090601f0160209004810192826200032057600085556200036b565b82601f106200033b57805160ff19168380011785556200036b565b828001600101855582156200036b579182015b828111156200036b5782518255916020019190600101906200034e565b50620003799291506200037d565b5090565b5b808211156200037957600081556001016200037e565b600181811c90821680620003a957607f821691505b60208210811415620003cb57634e487b7160e01b600052602260045260246000fd5b50919050565b61289280620003e16000396000f3fe60806040526004361061027d5760003560e01c80638da5cb5b1161014f578063c1179a7f116100c1578063e8a3fd331161007a578063e8a3fd331461071a578063e985e9c51461073a578063f2c4ce1e14610783578063f2fde38b146107a3578063faf924cf146107c3578063fc26394d1461049157600080fd5b8063c1179a7f1461067c578063c87b56dd14610692578063cf309012146106b2578063d49d5181146106d3578063d96a094a146106e8578063e081b781146106fb57600080fd5b8063989bdbb611610113578063989bdbb6146105d057806398d5fdca146105e55780639bf80316146105fa578063a22cb46514610627578063a475b5dd14610647578063b88d4fde1461065c57600080fd5b80638da5cb5b146105455780639199220614610563578063940f1ada14610578578063953dafe01461058e57806395d89b41146105bb57600080fd5b80633ccfd60b116101f35780636352211e116101ac5780636352211e146104a657806370a08231146104c6578063715018a6146104e65780637bffb4ce146104fb57806383a9e049146105105780638d859f3e1461052a57600080fd5b80633ccfd60b146103fc57806342842e0e1461041157806342966c6814610431578063518302271461045157806355f804b31461047157806362d0f6571461049157600080fd5b806310969523116102455780631096952314610348578063163e1e611461036857806317e7f2951461038857806318160ddd146103b15780631b57190e146103c657806323b872dd146103dc57600080fd5b806301ffc9a714610282578063049c5c49146102b757806306fdde03146102ce578063081812fc146102f0578063095ea7b314610328575b600080fd5b34801561028e57600080fd5b506102a261029d366004612346565b6107d8565b60405190151581526020015b60405180910390f35b3480156102c357600080fd5b506102cc61082a565b005b3480156102da57600080fd5b506102e361087a565b6040516102ae91906125b7565b3480156102fc57600080fd5b5061031061030b36600461241f565b61090c565b6040516001600160a01b0390911681526020016102ae565b34801561033457600080fd5b506102cc6103433660046122ad565b6109a1565b34801561035457600080fd5b506102cc61036336600461237e565b610ab7565b34801561037457600080fd5b506102cc6103833660046122d6565b610b17565b34801561039457600080fd5b506103a3668e1bc9bf04000081565b6040519081526020016102ae565b3480156103bd57600080fd5b506008546103a3565b3480156103d257600080fd5b506103a3600e5481565b3480156103e857600080fd5b506102cc6103f73660046121bf565b610c88565b34801561040857600080fd5b506102cc610cba565b34801561041d57600080fd5b506102cc61042c3660046121bf565b610d13565b34801561043d57600080fd5b506102cc61044c36600461241f565b610d2e565b34801561045d57600080fd5b506010546102a29062010000900460ff1681565b34801561047d57600080fd5b506102cc61048c36600461237e565b610da5565b34801561049d57600080fd5b506103a3600a81565b3480156104b257600080fd5b506103106104c136600461241f565b610e05565b3480156104d257600080fd5b506103a36104e136600461216c565b610e7c565b3480156104f257600080fd5b506102cc610f03565b34801561050757600080fd5b506102cc610f39565b34801561051c57600080fd5b506010546102a29060ff1681565b34801561053657600080fd5b506103a366b1a2bc2ec5000081565b34801561055157600080fd5b506006546001600160a01b0316610310565b34801561056f57600080fd5b506103a3606481565b34801561058457600080fd5b506103a3600f5481565b34801561059a57600080fd5b506103a36105a936600461216c565b600a6020526000908152604090205481565b3480156105c757600080fd5b506102e3610f77565b3480156105dc57600080fd5b506102cc610f86565b3480156105f157600080fd5b506103a3610fc5565b34801561060657600080fd5b506103a361061536600461216c565b60096020526000908152604090205481565b34801561063357600080fd5b506102cc610642366004612273565b610fea565b34801561065357600080fd5b506102cc610ff9565b34801561066857600080fd5b506102cc6106773660046121fa565b611036565b34801561068857600080fd5b506103a3610ca181565b34801561069e57600080fd5b506102e36106ad36600461241f565b61106e565b3480156106be57600080fd5b506010546102a2906301000000900460ff1681565b3480156106df57600080fd5b506103a36111ac565b6102cc6106f636600461241f565b6111bc565b34801561070757600080fd5b506010546102a290610100900460ff1681565b34801561072657600080fd5b506102cc6107353660046122ad565b61145e565b34801561074657600080fd5b506102a261075536600461218d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561078f57600080fd5b506102cc61079e3660046123d9565b61159a565b3480156107af57600080fd5b506102cc6107be36600461216c565b611601565b3480156107cf57600080fd5b506102e3611699565b60006001600160e01b031982166380ac58cd60e01b148061080957506001600160e01b03198216635b5e139f60e01b145b8061082457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b0316331461085d5760405162461bcd60e51b815260040161085490612642565b60405180910390fd5b6010805461ff001981166101009182900460ff1615909102179055565b6060600080546108899061279a565b80601f01602080910402602001604051908101604052809291908181526020018280546108b59061279a565b80156109025780601f106108d757610100808354040283529160200191610902565b820191906000526020600020905b8154815290600101906020018083116108e557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610854565b506000908152600460205260409020546001600160a01b031690565b60006109ac82610e05565b9050806001600160a01b0316836001600160a01b03161415610a1a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610854565b336001600160a01b0382161480610a365750610a368133610755565b610aa85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610854565b610ab28383611727565b505050565b6006546001600160a01b03163314610ae15760405162461bcd60e51b815260040161085490612642565b6010546301000000900460ff1615610b0b5760405162461bcd60e51b815260040161085490612677565b610ab260118383611fcd565b6006546001600160a01b03163314610b415760405162461bcd60e51b815260040161085490612642565b610b4e610ca1606461270c565b600854610b5c90839061270c565b1115610b7a5760405162461bcd60e51b81526004016108549061261c565b600e54606490610b8b90839061270c565b1115610bc75760405162461bcd60e51b815260206004820152600b60248201526a47494654535f454d50545960a81b6044820152606401610854565b60005b81811015610c4a57600e8054906000610be2836127d5565b9190505550610c38838383818110610c0a57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c1f919061216c565b600860008154610c2e906127d5565b9182905550611795565b80610c42816127d5565b915050610bca565b507fad16a957be3ac89e53ada2be04fc068d76e88e8ea89ef1b274d3510ab65d026e8282604051610c7c92919061256b565b60405180910390a15050565b610c93335b826117af565b610caf5760405162461bcd60e51b8152600401610854906126bb565b610ab28383836118a6565b6006546001600160a01b03163314610ce45760405162461bcd60e51b815260040161085490612642565b60405133904780156108fc02916000818181858888f19350505050158015610d10573d6000803e3d6000fd5b50565b610ab283838360405180602001604052806000815250611036565b610d3733610c8d565b610d9c5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610854565b610d1081611a42565b6006546001600160a01b03163314610dcf5760405162461bcd60e51b815260040161085490612642565b6010546301000000900460ff1615610df95760405162461bcd60e51b815260040161085490612677565b610ab2600c8383611fcd565b6000818152600260205260408120546001600160a01b0316806108245760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610854565b60006001600160a01b038216610ee75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610854565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f2d5760405162461bcd60e51b815260040161085490612642565b610f376000611add565b565b6006546001600160a01b03163314610f635760405162461bcd60e51b815260040161085490612642565b6010805460ff19811660ff90911615179055565b6060600180546108899061279a565b6006546001600160a01b03163314610fb05760405162461bcd60e51b815260040161085490612642565b6010805463ff00000019166301000000179055565b60105460009060ff16610fde575066b1a2bc2ec5000090565b50668e1bc9bf04000090565b610ff5338383611b2f565b5050565b6006546001600160a01b031633146110235760405162461bcd60e51b815260040161085490612642565b6010805462ff0000191662010000179055565b61104033836117af565b61105c5760405162461bcd60e51b8152600401610854906126bb565b61106884848484611bfe565b50505050565b6000818152600260205260409020546060906001600160a01b03166110d55760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610854565b60105462010000900460ff1661117757600d80546110f29061279a565b80601f016020809104026020016040519081016040528092919081815260200182805461111e9061279a565b801561116b5780601f106111405761010080835404028352916020019161116b565b820191906000526020600020905b81548152906001019060200180831161114e57829003601f168201915b50505050509050919050565b600c61118283611c31565b600b604051602001611196939291906124fb565b6040516020818303038152906040529050919050565b6111b9610ca1606461270c565b81565b6002600754141561120f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610854565b6002600755601054610100900460ff168061122c575060105460ff165b6112785760405162461bcd60e51b815260206004820152601b60248201527f53414c455f434c4f5345445f4f525f4f4e4c595f50524553414c4500000000006044820152606401610854565b611285610ca1606461270c565b81600854611293919061270c565b11156112b15760405162461bcd60e51b81526004016108549061261c565b610ca181600f546112c2919061270c565b11156112fe5760405162461bcd60e51b815260206004820152600b60248201526a115610d1515117d352539560aa1b6044820152606401610854565b336000908152600a602081905260409091205461131c90839061270c565b11156113605760405162461bcd60e51b81526020600482015260136024820152724558434545445f5055424c49435f414c4c4f4360681b6044820152606401610854565b348161136a610fc5565b6113749190612738565b11156113b55760405162461bcd60e51b815260206004820152601060248201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b6044820152606401610854565b60005b8181101561142857600f80549060006113d0836127d5565b9190505550600a60006113e03390565b6001600160a01b0316815260208101919091526040016000908120805491611407836127d5565b9190505550611416610c1f3390565b80611420816127d5565b9150506113b8565b50604051819033907f4c855eb62854c88a144e7c546901bb49fdcd04bc7f223b2b818b85c8c72fae4590600090a3506001600755565b6006546001600160a01b031633146114885760405162461bcd60e51b815260040161085490612642565b611495610ca1606461270c565b816008546114a3919061270c565b11156114c15760405162461bcd60e51b81526004016108549061261c565b606481600e546114d1919061270c565b111561150d5760405162461bcd60e51b815260206004820152600b60248201526a47494654535f454d50545960a81b6044820152606401610854565b60005b8181101561155257600e8054906000611528836127d5565b919050555061154083600860008154610c2e906127d5565b8061154a816127d5565b915050611510565b50816001600160a01b03167f02b19702ce246178351b73d86f43ec31e665d482c7ebb16d8cd97f184db5c7a88260405161158e91815260200190565b60405180910390a25050565b6006546001600160a01b031633146115c45760405162461bcd60e51b815260040161085490612642565b6010546301000000900460ff16156115ee5760405162461bcd60e51b815260040161085490612677565b8051610ff590600d906020840190612051565b6006546001600160a01b0316331461162b5760405162461bcd60e51b815260040161085490612642565b6001600160a01b0381166116905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610854565b610d1081611add565b601180546116a69061279a565b80601f01602080910402602001604051908101604052809291908181526020018280546116d29061279a565b801561171f5780601f106116f45761010080835404028352916020019161171f565b820191906000526020600020905b81548152906001019060200180831161170257829003601f168201915b505050505081565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061175c82610e05565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610ff5828260405180602001604052806000815250611d4b565b6000818152600260205260408120546001600160a01b03166118285760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610854565b600061183383610e05565b9050806001600160a01b0316846001600160a01b0316148061187a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061189e5750836001600160a01b03166118938461090c565b6001600160a01b0316145b949350505050565b826001600160a01b03166118b982610e05565b6001600160a01b03161461191d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610854565b6001600160a01b03821661197f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610854565b61198a600082611727565b6001600160a01b03831660009081526003602052604081208054600192906119b3908490612757565b90915550506001600160a01b03821660009081526003602052604081208054600192906119e190849061270c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611a4d82610e05565b9050611a5a600083611727565b6001600160a01b0381166000908152600360205260408120805460019290611a83908490612757565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611b915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610854565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c098484846118a6565b611c1584848484611d7e565b6110685760405162461bcd60e51b8152600401610854906125ca565b606081611c555750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c7f5780611c69816127d5565b9150611c789050600a83612724565b9150611c59565b60008167ffffffffffffffff811115611ca857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611cd2576020820181803683370190505b5090505b841561189e57611ce7600183612757565b9150611cf4600a866127f0565b611cff90603061270c565b60f81b818381518110611d2257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611d44600a86612724565b9450611cd6565b611d558383611e8b565b611d626000848484611d7e565b610ab25760405162461bcd60e51b8152600401610854906125ca565b60006001600160a01b0384163b15611e8057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611dc290339089908890889060040161252e565b602060405180830381600087803b158015611ddc57600080fd5b505af1925050508015611e0c575060408051601f3d908101601f19168201909252611e0991810190612362565b60015b611e66573d808015611e3a576040519150601f19603f3d011682016040523d82523d6000602084013e611e3f565b606091505b508051611e5e5760405162461bcd60e51b8152600401610854906125ca565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061189e565b506001949350505050565b6001600160a01b038216611ee15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610854565b6000818152600260205260409020546001600160a01b031615611f465760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610854565b6001600160a01b0382166000908152600360205260408120805460019290611f6f90849061270c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611fd99061279a565b90600052602060002090601f016020900481019282611ffb5760008555612041565b82601f106120145782800160ff19823516178555612041565b82800160010185558215612041579182015b82811115612041578235825591602001919060010190612026565b5061204d9291506120c5565b5090565b82805461205d9061279a565b90600052602060002090601f01602090048101928261207f5760008555612041565b82601f1061209857805160ff1916838001178555612041565b82800160010185558215612041579182015b828111156120415782518255916020019190600101906120aa565b5b8082111561204d57600081556001016120c6565b600067ffffffffffffffff808411156120f5576120f5612830565b604051601f8501601f19908116603f0116810190828211818310171561211d5761211d612830565b8160405280935085815286868601111561213657600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461216757600080fd5b919050565b60006020828403121561217d578081fd5b61218682612150565b9392505050565b6000806040838503121561219f578081fd5b6121a883612150565b91506121b660208401612150565b90509250929050565b6000806000606084860312156121d3578081fd5b6121dc84612150565b92506121ea60208501612150565b9150604084013590509250925092565b6000806000806080858703121561220f578081fd5b61221885612150565b935061222660208601612150565b925060408501359150606085013567ffffffffffffffff811115612248578182fd5b8501601f81018713612258578182fd5b612267878235602084016120da565b91505092959194509250565b60008060408385031215612285578182fd5b61228e83612150565b9150602083013580151581146122a2578182fd5b809150509250929050565b600080604083850312156122bf578182fd5b6122c883612150565b946020939093013593505050565b600080602083850312156122e8578182fd5b823567ffffffffffffffff808211156122ff578384fd5b818501915085601f830112612312578384fd5b813581811115612320578485fd5b8660208260051b8501011115612334578485fd5b60209290920196919550909350505050565b600060208284031215612357578081fd5b813561218681612846565b600060208284031215612373578081fd5b815161218681612846565b60008060208385031215612390578182fd5b823567ffffffffffffffff808211156123a7578384fd5b818501915085601f8301126123ba578384fd5b8135818111156123c8578485fd5b866020828501011115612334578485fd5b6000602082840312156123ea578081fd5b813567ffffffffffffffff811115612400578182fd5b8201601f81018413612410578182fd5b61189e848235602084016120da565b600060208284031215612430578081fd5b5035919050565b6000815180845261244f81602086016020860161276e565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061247d57607f831692505b602080841082141561249d57634e487b7160e01b86526022600452602486fd5b8180156124b157600181146124c2576124ef565b60ff198616895284890196506124ef565b60008881526020902060005b868110156124e75781548b8201529085019083016124ce565b505084890196505b50505050505092915050565b60006125078286612463565b845161251781836020890161276e565b61252381830186612463565b979650505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061256190830184612437565b9695505050505050565b60208082528181018390526000908460408401835b868110156125ac576001600160a01b0361259984612150565b1682529183019190830190600101612580565b509695505050505050565b6020815260006121866020830184612437565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600c908201526b4f55545f4f465f53544f434b60a01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f436f6e7472616374206d65746164617461206d6574686f647320617265206c6f60408201526318dad95960e21b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561271f5761271f612804565b500190565b6000826127335761273361281a565b500490565b600081600019048311821515161561275257612752612804565b500290565b60008282101561276957612769612804565b500390565b60005b83811015612789578181015183820152602001612771565b838111156110685750506000910152565b600181811c908216806127ae57607f821691505b602082108114156127cf57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156127e9576127e9612804565b5060010190565b6000826127ff576127ff61281a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610d1057600080fdfea2646970667358221220f8ddf32e3d710422e2787f621665e2a441c2ae07bc4830e38297ea3deb9e814e64736f6c6343000804003368747470733a2f2f697066732e696f2f697066732f516d537861526475506a6b4863696769697175557a4b4d585550594d5466645a6843366f4a6b637347794e774466
Deployed Bytecode
0x60806040526004361061027d5760003560e01c80638da5cb5b1161014f578063c1179a7f116100c1578063e8a3fd331161007a578063e8a3fd331461071a578063e985e9c51461073a578063f2c4ce1e14610783578063f2fde38b146107a3578063faf924cf146107c3578063fc26394d1461049157600080fd5b8063c1179a7f1461067c578063c87b56dd14610692578063cf309012146106b2578063d49d5181146106d3578063d96a094a146106e8578063e081b781146106fb57600080fd5b8063989bdbb611610113578063989bdbb6146105d057806398d5fdca146105e55780639bf80316146105fa578063a22cb46514610627578063a475b5dd14610647578063b88d4fde1461065c57600080fd5b80638da5cb5b146105455780639199220614610563578063940f1ada14610578578063953dafe01461058e57806395d89b41146105bb57600080fd5b80633ccfd60b116101f35780636352211e116101ac5780636352211e146104a657806370a08231146104c6578063715018a6146104e65780637bffb4ce146104fb57806383a9e049146105105780638d859f3e1461052a57600080fd5b80633ccfd60b146103fc57806342842e0e1461041157806342966c6814610431578063518302271461045157806355f804b31461047157806362d0f6571461049157600080fd5b806310969523116102455780631096952314610348578063163e1e611461036857806317e7f2951461038857806318160ddd146103b15780631b57190e146103c657806323b872dd146103dc57600080fd5b806301ffc9a714610282578063049c5c49146102b757806306fdde03146102ce578063081812fc146102f0578063095ea7b314610328575b600080fd5b34801561028e57600080fd5b506102a261029d366004612346565b6107d8565b60405190151581526020015b60405180910390f35b3480156102c357600080fd5b506102cc61082a565b005b3480156102da57600080fd5b506102e361087a565b6040516102ae91906125b7565b3480156102fc57600080fd5b5061031061030b36600461241f565b61090c565b6040516001600160a01b0390911681526020016102ae565b34801561033457600080fd5b506102cc6103433660046122ad565b6109a1565b34801561035457600080fd5b506102cc61036336600461237e565b610ab7565b34801561037457600080fd5b506102cc6103833660046122d6565b610b17565b34801561039457600080fd5b506103a3668e1bc9bf04000081565b6040519081526020016102ae565b3480156103bd57600080fd5b506008546103a3565b3480156103d257600080fd5b506103a3600e5481565b3480156103e857600080fd5b506102cc6103f73660046121bf565b610c88565b34801561040857600080fd5b506102cc610cba565b34801561041d57600080fd5b506102cc61042c3660046121bf565b610d13565b34801561043d57600080fd5b506102cc61044c36600461241f565b610d2e565b34801561045d57600080fd5b506010546102a29062010000900460ff1681565b34801561047d57600080fd5b506102cc61048c36600461237e565b610da5565b34801561049d57600080fd5b506103a3600a81565b3480156104b257600080fd5b506103106104c136600461241f565b610e05565b3480156104d257600080fd5b506103a36104e136600461216c565b610e7c565b3480156104f257600080fd5b506102cc610f03565b34801561050757600080fd5b506102cc610f39565b34801561051c57600080fd5b506010546102a29060ff1681565b34801561053657600080fd5b506103a366b1a2bc2ec5000081565b34801561055157600080fd5b506006546001600160a01b0316610310565b34801561056f57600080fd5b506103a3606481565b34801561058457600080fd5b506103a3600f5481565b34801561059a57600080fd5b506103a36105a936600461216c565b600a6020526000908152604090205481565b3480156105c757600080fd5b506102e3610f77565b3480156105dc57600080fd5b506102cc610f86565b3480156105f157600080fd5b506103a3610fc5565b34801561060657600080fd5b506103a361061536600461216c565b60096020526000908152604090205481565b34801561063357600080fd5b506102cc610642366004612273565b610fea565b34801561065357600080fd5b506102cc610ff9565b34801561066857600080fd5b506102cc6106773660046121fa565b611036565b34801561068857600080fd5b506103a3610ca181565b34801561069e57600080fd5b506102e36106ad36600461241f565b61106e565b3480156106be57600080fd5b506010546102a2906301000000900460ff1681565b3480156106df57600080fd5b506103a36111ac565b6102cc6106f636600461241f565b6111bc565b34801561070757600080fd5b506010546102a290610100900460ff1681565b34801561072657600080fd5b506102cc6107353660046122ad565b61145e565b34801561074657600080fd5b506102a261075536600461218d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561078f57600080fd5b506102cc61079e3660046123d9565b61159a565b3480156107af57600080fd5b506102cc6107be36600461216c565b611601565b3480156107cf57600080fd5b506102e3611699565b60006001600160e01b031982166380ac58cd60e01b148061080957506001600160e01b03198216635b5e139f60e01b145b8061082457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b0316331461085d5760405162461bcd60e51b815260040161085490612642565b60405180910390fd5b6010805461ff001981166101009182900460ff1615909102179055565b6060600080546108899061279a565b80601f01602080910402602001604051908101604052809291908181526020018280546108b59061279a565b80156109025780601f106108d757610100808354040283529160200191610902565b820191906000526020600020905b8154815290600101906020018083116108e557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610854565b506000908152600460205260409020546001600160a01b031690565b60006109ac82610e05565b9050806001600160a01b0316836001600160a01b03161415610a1a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610854565b336001600160a01b0382161480610a365750610a368133610755565b610aa85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610854565b610ab28383611727565b505050565b6006546001600160a01b03163314610ae15760405162461bcd60e51b815260040161085490612642565b6010546301000000900460ff1615610b0b5760405162461bcd60e51b815260040161085490612677565b610ab260118383611fcd565b6006546001600160a01b03163314610b415760405162461bcd60e51b815260040161085490612642565b610b4e610ca1606461270c565b600854610b5c90839061270c565b1115610b7a5760405162461bcd60e51b81526004016108549061261c565b600e54606490610b8b90839061270c565b1115610bc75760405162461bcd60e51b815260206004820152600b60248201526a47494654535f454d50545960a81b6044820152606401610854565b60005b81811015610c4a57600e8054906000610be2836127d5565b9190505550610c38838383818110610c0a57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610c1f919061216c565b600860008154610c2e906127d5565b9182905550611795565b80610c42816127d5565b915050610bca565b507fad16a957be3ac89e53ada2be04fc068d76e88e8ea89ef1b274d3510ab65d026e8282604051610c7c92919061256b565b60405180910390a15050565b610c93335b826117af565b610caf5760405162461bcd60e51b8152600401610854906126bb565b610ab28383836118a6565b6006546001600160a01b03163314610ce45760405162461bcd60e51b815260040161085490612642565b60405133904780156108fc02916000818181858888f19350505050158015610d10573d6000803e3d6000fd5b50565b610ab283838360405180602001604052806000815250611036565b610d3733610c8d565b610d9c5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610854565b610d1081611a42565b6006546001600160a01b03163314610dcf5760405162461bcd60e51b815260040161085490612642565b6010546301000000900460ff1615610df95760405162461bcd60e51b815260040161085490612677565b610ab2600c8383611fcd565b6000818152600260205260408120546001600160a01b0316806108245760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610854565b60006001600160a01b038216610ee75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610854565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f2d5760405162461bcd60e51b815260040161085490612642565b610f376000611add565b565b6006546001600160a01b03163314610f635760405162461bcd60e51b815260040161085490612642565b6010805460ff19811660ff90911615179055565b6060600180546108899061279a565b6006546001600160a01b03163314610fb05760405162461bcd60e51b815260040161085490612642565b6010805463ff00000019166301000000179055565b60105460009060ff16610fde575066b1a2bc2ec5000090565b50668e1bc9bf04000090565b610ff5338383611b2f565b5050565b6006546001600160a01b031633146110235760405162461bcd60e51b815260040161085490612642565b6010805462ff0000191662010000179055565b61104033836117af565b61105c5760405162461bcd60e51b8152600401610854906126bb565b61106884848484611bfe565b50505050565b6000818152600260205260409020546060906001600160a01b03166110d55760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610854565b60105462010000900460ff1661117757600d80546110f29061279a565b80601f016020809104026020016040519081016040528092919081815260200182805461111e9061279a565b801561116b5780601f106111405761010080835404028352916020019161116b565b820191906000526020600020905b81548152906001019060200180831161114e57829003601f168201915b50505050509050919050565b600c61118283611c31565b600b604051602001611196939291906124fb565b6040516020818303038152906040529050919050565b6111b9610ca1606461270c565b81565b6002600754141561120f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610854565b6002600755601054610100900460ff168061122c575060105460ff165b6112785760405162461bcd60e51b815260206004820152601b60248201527f53414c455f434c4f5345445f4f525f4f4e4c595f50524553414c4500000000006044820152606401610854565b611285610ca1606461270c565b81600854611293919061270c565b11156112b15760405162461bcd60e51b81526004016108549061261c565b610ca181600f546112c2919061270c565b11156112fe5760405162461bcd60e51b815260206004820152600b60248201526a115610d1515117d352539560aa1b6044820152606401610854565b336000908152600a602081905260409091205461131c90839061270c565b11156113605760405162461bcd60e51b81526020600482015260136024820152724558434545445f5055424c49435f414c4c4f4360681b6044820152606401610854565b348161136a610fc5565b6113749190612738565b11156113b55760405162461bcd60e51b815260206004820152601060248201526f0929ca6aa8c8c9286928a9ca8be8aa8960831b6044820152606401610854565b60005b8181101561142857600f80549060006113d0836127d5565b9190505550600a60006113e03390565b6001600160a01b0316815260208101919091526040016000908120805491611407836127d5565b9190505550611416610c1f3390565b80611420816127d5565b9150506113b8565b50604051819033907f4c855eb62854c88a144e7c546901bb49fdcd04bc7f223b2b818b85c8c72fae4590600090a3506001600755565b6006546001600160a01b031633146114885760405162461bcd60e51b815260040161085490612642565b611495610ca1606461270c565b816008546114a3919061270c565b11156114c15760405162461bcd60e51b81526004016108549061261c565b606481600e546114d1919061270c565b111561150d5760405162461bcd60e51b815260206004820152600b60248201526a47494654535f454d50545960a81b6044820152606401610854565b60005b8181101561155257600e8054906000611528836127d5565b919050555061154083600860008154610c2e906127d5565b8061154a816127d5565b915050611510565b50816001600160a01b03167f02b19702ce246178351b73d86f43ec31e665d482c7ebb16d8cd97f184db5c7a88260405161158e91815260200190565b60405180910390a25050565b6006546001600160a01b031633146115c45760405162461bcd60e51b815260040161085490612642565b6010546301000000900460ff16156115ee5760405162461bcd60e51b815260040161085490612677565b8051610ff590600d906020840190612051565b6006546001600160a01b0316331461162b5760405162461bcd60e51b815260040161085490612642565b6001600160a01b0381166116905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610854565b610d1081611add565b601180546116a69061279a565b80601f01602080910402602001604051908101604052809291908181526020018280546116d29061279a565b801561171f5780601f106116f45761010080835404028352916020019161171f565b820191906000526020600020905b81548152906001019060200180831161170257829003601f168201915b505050505081565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061175c82610e05565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610ff5828260405180602001604052806000815250611d4b565b6000818152600260205260408120546001600160a01b03166118285760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610854565b600061183383610e05565b9050806001600160a01b0316846001600160a01b0316148061187a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061189e5750836001600160a01b03166118938461090c565b6001600160a01b0316145b949350505050565b826001600160a01b03166118b982610e05565b6001600160a01b03161461191d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610854565b6001600160a01b03821661197f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610854565b61198a600082611727565b6001600160a01b03831660009081526003602052604081208054600192906119b3908490612757565b90915550506001600160a01b03821660009081526003602052604081208054600192906119e190849061270c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611a4d82610e05565b9050611a5a600083611727565b6001600160a01b0381166000908152600360205260408120805460019290611a83908490612757565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611b915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610854565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c098484846118a6565b611c1584848484611d7e565b6110685760405162461bcd60e51b8152600401610854906125ca565b606081611c555750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c7f5780611c69816127d5565b9150611c789050600a83612724565b9150611c59565b60008167ffffffffffffffff811115611ca857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611cd2576020820181803683370190505b5090505b841561189e57611ce7600183612757565b9150611cf4600a866127f0565b611cff90603061270c565b60f81b818381518110611d2257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611d44600a86612724565b9450611cd6565b611d558383611e8b565b611d626000848484611d7e565b610ab25760405162461bcd60e51b8152600401610854906125ca565b60006001600160a01b0384163b15611e8057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611dc290339089908890889060040161252e565b602060405180830381600087803b158015611ddc57600080fd5b505af1925050508015611e0c575060408051601f3d908101601f19168201909252611e0991810190612362565b60015b611e66573d808015611e3a576040519150601f19603f3d011682016040523d82523d6000602084013e611e3f565b606091505b508051611e5e5760405162461bcd60e51b8152600401610854906125ca565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061189e565b506001949350505050565b6001600160a01b038216611ee15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610854565b6000818152600260205260409020546001600160a01b031615611f465760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610854565b6001600160a01b0382166000908152600360205260408120805460019290611f6f90849061270c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611fd99061279a565b90600052602060002090601f016020900481019282611ffb5760008555612041565b82601f106120145782800160ff19823516178555612041565b82800160010185558215612041579182015b82811115612041578235825591602001919060010190612026565b5061204d9291506120c5565b5090565b82805461205d9061279a565b90600052602060002090601f01602090048101928261207f5760008555612041565b82601f1061209857805160ff1916838001178555612041565b82800160010185558215612041579182015b828111156120415782518255916020019190600101906120aa565b5b8082111561204d57600081556001016120c6565b600067ffffffffffffffff808411156120f5576120f5612830565b604051601f8501601f19908116603f0116810190828211818310171561211d5761211d612830565b8160405280935085815286868601111561213657600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461216757600080fd5b919050565b60006020828403121561217d578081fd5b61218682612150565b9392505050565b6000806040838503121561219f578081fd5b6121a883612150565b91506121b660208401612150565b90509250929050565b6000806000606084860312156121d3578081fd5b6121dc84612150565b92506121ea60208501612150565b9150604084013590509250925092565b6000806000806080858703121561220f578081fd5b61221885612150565b935061222660208601612150565b925060408501359150606085013567ffffffffffffffff811115612248578182fd5b8501601f81018713612258578182fd5b612267878235602084016120da565b91505092959194509250565b60008060408385031215612285578182fd5b61228e83612150565b9150602083013580151581146122a2578182fd5b809150509250929050565b600080604083850312156122bf578182fd5b6122c883612150565b946020939093013593505050565b600080602083850312156122e8578182fd5b823567ffffffffffffffff808211156122ff578384fd5b818501915085601f830112612312578384fd5b813581811115612320578485fd5b8660208260051b8501011115612334578485fd5b60209290920196919550909350505050565b600060208284031215612357578081fd5b813561218681612846565b600060208284031215612373578081fd5b815161218681612846565b60008060208385031215612390578182fd5b823567ffffffffffffffff808211156123a7578384fd5b818501915085601f8301126123ba578384fd5b8135818111156123c8578485fd5b866020828501011115612334578485fd5b6000602082840312156123ea578081fd5b813567ffffffffffffffff811115612400578182fd5b8201601f81018413612410578182fd5b61189e848235602084016120da565b600060208284031215612430578081fd5b5035919050565b6000815180845261244f81602086016020860161276e565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061247d57607f831692505b602080841082141561249d57634e487b7160e01b86526022600452602486fd5b8180156124b157600181146124c2576124ef565b60ff198616895284890196506124ef565b60008881526020902060005b868110156124e75781548b8201529085019083016124ce565b505084890196505b50505050505092915050565b60006125078286612463565b845161251781836020890161276e565b61252381830186612463565b979650505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061256190830184612437565b9695505050505050565b60208082528181018390526000908460408401835b868110156125ac576001600160a01b0361259984612150565b1682529183019190830190600101612580565b509695505050505050565b6020815260006121866020830184612437565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600c908201526b4f55545f4f465f53544f434b60a01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f436f6e7472616374206d65746164617461206d6574686f647320617265206c6f60408201526318dad95960e21b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561271f5761271f612804565b500190565b6000826127335761273361281a565b500490565b600081600019048311821515161561275257612752612804565b500290565b60008282101561276957612769612804565b500390565b60005b83811015612789578181015183820152602001612771565b838111156110685750506000910152565b600181811c908216806127ae57607f821691505b602082108114156127cf57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156127e9576127e9612804565b5060010190565b6000826127ff576127ff61281a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610d1057600080fdfea2646970667358221220f8ddf32e3d710422e2787f621665e2a441c2ae07bc4830e38297ea3deb9e814e64736f6c63430008040033
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.