ERC-721
Source Code
Overview
Max Total Supply
1,412 AMYST
Holders
1,024
Market
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract
Balance
1 AMYSTLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
AlphaMystery
Compiler Version
v0.8.15+commit.e14f2714
Contract Source Code (Solidity)
/**
*Submitted for verification at lineascan.build/ on 2024-10-31
*/
// created by cryptodo.app
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
/**
* @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);
}
}
/**
* @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;
}
}
/**
* @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() {
_setOwner(0xfC469C1569585F131Ad21724796dbD56687524D2);
}
/**
* @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 {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
/**
* @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 make 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;
}
}
/**
* @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);
}
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
/**
* @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);
}
/**
* @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;
}
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @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}.
*/
abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
mapping(uint256 => address) private _owners;
mapping(address => uint256) private _balances;
mapping(uint256 => address) private _tokenApprovals;
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 returns (uint256) {
if (owner == address(0)) {
revert ERC721InvalidOwner(address(0));
}
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual returns (address) {
return _requireOwned(tokenId);
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual returns (string memory) {
_requireOwned(tokenId);
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string.concat(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 {
_approve(to, tokenId, _msgSender());
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual returns (address) {
_requireOwned(tokenId);
return _getApproved(tokenId);
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(address from, address to, uint256 tokenId) public virtual {
if (to == address(0)) {
revert ERC721InvalidReceiver(address(0));
}
// Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists
// (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.
address previousOwner = _update(to, tokenId, _msgSender());
if (previousOwner != from) {
revert ERC721IncorrectOwner(from, tokenId, previousOwner);
}
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {
transferFrom(from, to, tokenId);
_checkOnERC721Received(from, to, tokenId, data);
}
/**
* @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
*
* IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the
* core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances
* consistent with ownership. The invariant to preserve is that for any address `a` the value returned by
* `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.
*/
function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
return _owners[tokenId];
}
/**
* @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.
*/
function _getApproved(uint256 tokenId) internal view virtual returns (address) {
return _tokenApprovals[tokenId];
}
/**
* @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in
* particular (ignoring whether it is owned by `owner`).
*
* WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
* assumption.
*/
function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {
return
spender != address(0) &&
(owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);
}
/**
* @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
* Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets
* the `spender` for the specific `tokenId`.
*
* WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
* assumption.
*/
function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {
if (!_isAuthorized(owner, spender, tokenId)) {
if (owner == address(0)) {
revert ERC721NonexistentToken(tokenId);
} else {
revert ERC721InsufficientApproval(spender, tokenId);
}
}
}
/**
* @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
*
* NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that
* a uint256 would ever overflow from increments when these increments are bounded to uint128 values.
*
* WARNING: Increasing an account's balance using this function tends to be paired with an override of the
* {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership
* remain consistent with one another.
*/
function _increaseBalance(address account, uint128 value) internal virtual {
unchecked {
_balances[account] += value;
}
}
/**
* @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner
* (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.
*
* The `auth` argument is optional. If the value passed is non 0, then this function will check that
* `auth` is either the owner of the token, or approved to operate on the token (by the owner).
*
* Emits a {Transfer} event.
*
* NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.
*/
function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {
address from = _ownerOf(tokenId);
// Perform (optional) operator check
if (auth != address(0)) {
_checkAuthorized(from, auth, tokenId);
}
// Execute the update
if (from != address(0)) {
// Clear approval. No need to re-authorize or emit the Approval event
_approve(address(0), tokenId, address(0), false);
unchecked {
_balances[from] -= 1;
}
}
if (to != address(0)) {
unchecked {
_balances[to] += 1;
}
}
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
return from;
}
/**
* @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 {
if (to == address(0)) {
revert ERC721InvalidReceiver(address(0));
}
_beforeTokenTransfer(address(0), to, tokenId);
address previousOwner = _update(to, tokenId, address(0));
if (previousOwner != address(0)) {
revert ERC721InvalidSender(address(0));
}
}
/**
* @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.
*
* 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 {
_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);
_checkOnERC721Received(address(0), to, tokenId, data);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
* This is an internal function that does not check if the sender is authorized to operate on the token.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
address previousOwner = _update(address(0), tokenId, address(0));
if (previousOwner == address(0)) {
revert ERC721NonexistentToken(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 {
if (to == address(0)) {
revert ERC721InvalidReceiver(address(0));
}
_beforeTokenTransfer(from, to, tokenId);
address previousOwner = _update(to, tokenId, address(0));
if (previousOwner == address(0)) {
revert ERC721NonexistentToken(tokenId);
} else if (previousOwner != from) {
revert ERC721IncorrectOwner(from, tokenId, previousOwner);
}
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients
* are aware of the ERC721 standard 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 like {safeTransferFrom} in the sense that it invokes
* {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `tokenId` token must exist and be owned by `from`.
* - `to` cannot be the zero address.
* - `from` cannot be the zero address.
* - 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) internal {
_safeTransfer(from, to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
_transfer(from, to, tokenId);
_checkOnERC721Received(from, to, tokenId, data);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is
* either the owner of the token, or approved to operate on all tokens held by this owner.
*
* Emits an {Approval} event.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address to, uint256 tokenId, address auth) internal {
_approve(to, tokenId, auth, true);
}
/**
* @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not
* emitted in the context of transfers.
*/
function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {
// Avoid reading the owner unless necessary
if (emitEvent || auth != address(0)) {
address owner = _requireOwned(tokenId);
// We do not use _isAuthorized because single-token approvals should not be able to call approve
if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {
revert ERC721InvalidApprover(auth);
}
if (emitEvent) {
emit Approval(owner, to, tokenId);
}
}
_tokenApprovals[tokenId] = to;
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Requirements:
* - operator can't be the address zero.
*
* Emits an {ApprovalForAll} event.
*/
function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
if (operator == address(0)) {
revert ERC721InvalidOperator(operator);
}
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).
* Returns the owner.
*
* Overrides to ownership logic should be done to {_ownerOf}.
*/
function _requireOwned(uint256 tokenId) internal view returns (address) {
address owner = _ownerOf(tokenId);
if (owner == address(0)) {
revert ERC721NonexistentToken(tokenId);
}
return owner;
}
/**
* @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the
* recipient doesn't accept the token transfer. 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
*/
function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {
if (to.code.length > 0) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
if (retval != IERC721Receiver.onERC721Received.selector) {
revert ERC721InvalidReceiver(to);
}
} catch (bytes memory reason) {
if (reason.length == 0) {
revert ERC721InvalidReceiver(to);
} else {
/// @solidity memory-safe-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
}
/**
* @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 {}
}
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}
contract AlphaMystery is ERC721Enumerable, Ownable, ReentrancyGuard {
uint256 public TOKEN_MAX_AMOUNT = 10405;
uint256 public TOKEN_PER_TX = 10405;
uint256 public TOKEN_PER_WALLET = 10405;
uint256 public PRICE = 0.0058 ether;
uint256 public constant TIME_FOR_REVEAL = 1731052800;
uint256 public mintStartTime = 1730318400;
uint256 public mintEndTime = 1730836800;
address public founder = 0xaebF22D90E6E0948E0F4ecDA5612aea4d34c1c8a;
mapping(address => bool) private _blacklist;
mapping(address => uint256) private whitelist;
mapping (uint256 => uint256) private _entityBirthdays;
mapping (uint256 => string) private _ipfsHash;
string private _simpleIpfsHash;
bool private _isPublicSaleActive = false;
bool private _isSimpleIpfsHash = false;
string public tokenURIPrefix = "ipfs://";
string public tokenURISuffix = "/metadata.json";
string private _name = "AlphaMystery";
string private _symbol = "AMYST";
string private _baseTokenURI = "https://media.alphamind.co/nft/mystery_boxes/api/";
uint256 public burnedTokens;
event SendETH(address indexed to, uint256 amount);
event SetNewPercent(address indexed to, uint256 percent);
event SetNewValue(string nameValue, uint256 oldValue, uint256 newValue);
event MintPeriodChanged(uint256 newMintStartTime, uint256 newMintEndTime);
constructor () ERC721(_name, _symbol) {
if (block.timestamp >= mintStartTime && block.timestamp <= mintEndTime) {
_isPublicSaleActive = true;
}
}
modifier updateSaleStatus() {
if (block.timestamp >= mintStartTime && block.timestamp <= mintEndTime && _isPublicSaleActive) {
_isPublicSaleActive = true;
} else {
_isPublicSaleActive = false;
}
_;
}
function decrementTokenMaxAmount(uint256 amount) public onlyOwner {
emit SetNewValue("TOKEN_MAX_AMOUNT", TOKEN_MAX_AMOUNT, TOKEN_MAX_AMOUNT - amount);
TOKEN_MAX_AMOUNT -= amount;
}
function mintPublic(uint256 amount) external payable nonReentrant updateSaleStatus
()
{
require(_isPublicSaleActive, "Public sale is not active");
require(amount <= TOKEN_PER_TX, "You can't mint that many tokens");
require(totalSupply() + amount <= TOKEN_MAX_AMOUNT, "Mint would exceed max supply of tokens");
require(msg.value == amount * PRICE, "You didn't send the right amount of eth");
_mintMultiple(msg.sender, amount);
}
function _mintMultiple(address owner, uint256 amount) private {
require(balanceOf(owner) + amount <= TOKEN_PER_WALLET, "Mint would exceed max tokens per wallet");
for (uint256 i = 0; i < amount; i++) {
uint256 tokenId = totalSupply() + burnedTokens;
_entityBirthdays[tokenId] = block.timestamp;
_safeMint(owner, tokenId);
}
}
function setIpfsHash(string[] memory ipfsHashs, uint256[] memory idTokens) external onlyOwner {
require(ipfsHashs.length == idTokens.length, "miscellaneous number of elements");
if(_isSimpleIpfsHash) {
_simpleIpfsHash = ipfsHashs[0];
return;
}
for (uint256 i = 0; i < idTokens.length; i++) {
bytes memory tempHash = bytes(_ipfsHash[idTokens[i]]);
require(tempHash.length == 0, "IPFS hash can be set only once");
require(idTokens[i] <= TOKEN_MAX_AMOUNT, "id is more than the allowable");
_ipfsHash[idTokens[i]] = ipfsHashs[i];
}
}
function setMintPeriod(uint256 _newMintStartTime, uint256 _newMintEndTime)
external
onlyOwner
{
require(
_newMintStartTime < _newMintEndTime,
"End time must be greater than start time"
);
mintStartTime = _newMintStartTime;
mintEndTime = _newMintEndTime;
emit MintPeriodChanged(_newMintStartTime, _newMintEndTime);
}
function setBaseTokenURI(string memory baseTokenURI) public onlyOwner {
_baseTokenURI = baseTokenURI;
}
function setNewPrice(uint256 newPrice) public onlyOwner {
require(newPrice > 0, "Wrong price");
emit SetNewValue("PRICE", PRICE, newPrice);
PRICE = newPrice;
}
function setTokenPerTx(uint256 newPerTx) public onlyOwner {
require(newPerTx > 0, "Wrong per tx");
emit SetNewValue("TOKEN_PER_TX", TOKEN_PER_TX, newPerTx);
TOKEN_PER_TX = newPerTx;
}
function setTokenPerWallet(uint256 newPerWallet) public onlyOwner {
require(newPerWallet > 0, "Wrong amount per wallet");
emit SetNewValue("TOKEN_PER_WALLET", TOKEN_PER_WALLET, newPerWallet);
TOKEN_PER_WALLET = newPerWallet;
}
function claimFunds() external {
require(owner() == _msgSender() || founder == _msgSender(), "You have no right to it");
sendETH(payable(founder), getContractBalance());
}
function sendETH(address payable to, uint256 amount) private nonReentrant() {
uint256 balance = getContractBalance();
amount = amount > balance ? balance : amount;
(bool sent, ) = to.call{value: amount}("");
require(sent, "Failed to send ETH");
emit SendETH(to, amount);
}
function getContractBalance() public view returns (uint256) {
return address(this).balance;
}
function tokensOfOwner(address user) external view returns (uint256[] memory ownerTokens) {
uint256 tokenCount = balanceOf(user);
if (tokenCount == 0) {
return new uint256[](0);
} else {
uint256[] memory output = new uint256[](tokenCount);
for (uint256 index = 0; index < tokenCount; index++) {
output[index] = tokenOfOwnerByIndex(user, index);
}
return output;
}
}
function getBirthday(uint256 tokenId) public view returns (uint256) {
require(tokenId < totalSupply(), "That entity has not been make yet");
return _entityBirthdays[tokenId];
}
function getIpfsTokenUri(uint256 tokenId) external view returns (string memory) {
require(tokenId < totalSupply(), "That entity has not been make yet");
require(getBirthday(tokenId) < block.timestamp + TIME_FOR_REVEAL, "That entity has not grown yet");
return string(abi.encodePacked(tokenURIPrefix, _ipfsHash[tokenId], tokenURISuffix));
}
function getIpfsHash(uint256 tokenId) external onlyOwner view returns (string memory) {
require(tokenId < totalSupply(), "That entity has not been make yet");
if(_isSimpleIpfsHash) {
return _simpleIpfsHash;
} else {
return _ipfsHash[tokenId];
}
}
function togglePublicSale() external onlyOwner {
_isPublicSaleActive = !_isPublicSaleActive;
}
function isPublicSaleActive() external view returns (bool status) {
return _isPublicSaleActive;
}
function _baseURI() internal view virtual override returns (string memory) {
return _baseTokenURI;
}
function _setTokenURIPrefix(string memory _tokenURIPrefix) external onlyOwner {
tokenURIPrefix = _tokenURIPrefix;
}
function _setTokenURISuffix(string memory _tokenURISuffix) external onlyOwner {
tokenURISuffix = _tokenURISuffix;
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
)
internal
virtual
override( ERC721Enumerable)
{
super._beforeTokenTransfer(from, to, tokenId);
}
function _update(
address to,
uint256 tokenId,
address auth
)
internal
virtual
override(ERC721) returns (address) {
return super._update(to, tokenId, auth);
}
function supportsInterface(bytes4 interfaceId) public view virtual override( ERC721Enumerable) returns (bool) {
return super.supportsInterface(interfaceId);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMintStartTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMintEndTime","type":"uint256"}],"name":"MintPeriodChanged","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":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"percent","type":"uint256"}],"name":"SetNewPercent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"nameValue","type":"string"},{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"SetNewValue","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":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIME_FOR_REVEAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_MAX_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURIPrefix","type":"string"}],"name":"_setTokenURIPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURISuffix","type":"string"}],"name":"_setTokenURISuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"decrementTokenMaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"founder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBirthday","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getIpfsHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getIpfsTokenUri","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"status","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"ipfsHashs","type":"string[]"},{"internalType":"uint256[]","name":"idTokens","type":"uint256[]"}],"name":"setIpfsHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMintStartTime","type":"uint256"},{"internalType":"uint256","name":"_newMintEndTime","type":"uint256"}],"name":"setMintPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setNewPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPerTx","type":"uint256"}],"name":"setTokenPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPerWallet","type":"uint256"}],"name":"setTokenPerWallet","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":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURISuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"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"}]Contract Creation Code
6128a5600c819055600d819055600e5566149b11bbb28000600f55636722904060105563672a7940601155601280546001600160a01b03191673aebf22d90e6e0948e0f4ecda5612aea4d34c1c8a1790556018805461ffff1916905560c06040526007608090815266697066733a2f2f60c81b60a052601990620000849082620003ea565b5060408051808201909152600e81526d17b6b2ba30b230ba30973539b7b760911b6020820152601a90620000b99082620003ea565b5060408051808201909152600c81526b416c7068614d79737465727960a01b6020820152601b90620000ec9082620003ea565b5060408051808201909152600581526410535654d560da1b6020820152601c90620001189082620003ea565b50604051806060016040528060318152602001620033b860319139601d90620001429082620003ea565b503480156200015057600080fd5b50601b805462000160906200035b565b80601f01602080910402602001604051908101604052809291908181526020018280546200018e906200035b565b8015620001df5780601f10620001b357610100808354040283529160200191620001df565b820191906000526020600020905b815481529060010190602001808311620001c157829003601f168201915b5050505050601c8054620001f3906200035b565b80601f016020809104026020016040519081016040528092919081815260200182805462000221906200035b565b8015620002725780601f10620002465761010080835404028352916020019162000272565b820191906000526020600020905b8154815290600101906020018083116200025457829003601f168201915b50505050508160009081620002889190620003ea565b506001620002978282620003ea565b505050620002bf73fc469c1569585f131ad21724796dbd56687524d2620002f360201b60201c565b6001600b556010544210801590620002d957506011544211155b15620002ed576018805460ff191660011790555b620004b6565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200037057607f821691505b6020821081036200039157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003e557600081815260208120601f850160051c81016020861015620003c05750805b601f850160051c820191505b81811015620003e157828155600101620003cc565b5050505b505050565b81516001600160401b0381111562000406576200040662000345565b6200041e816200041784546200035b565b8462000397565b602080601f8311600181146200045657600084156200043d5750858301515b600019600386901b1c1916600185901b178555620003e1565b600085815260208120601f198616915b82811015620004875788860151825594840194600190910190840162000466565b5085821015620004a65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612ef280620004c66000396000f3fe6080604052600436106102935760003560e01c80638d0b2cbd1161015a578063c87b56dd116100c1578063e222c7f91161007a578063e222c7f914610783578063e985e9c514610798578063ee8cdd4e146107b8578063efd0cbf9146107d8578063f2fde38b146107eb578063f4d2a2181461080b57600080fd5b8063c87b56dd146106d6578063c8d2524c146106f6578063cb645ccb14610716578063d450fbc91461072e578063dbbc853b1461074e578063de49e4db1461076357600080fd5b80639e5ac7f1116101135780639e5ac7f114610636578063a22cb4651461064c578063ac3077731461066c578063b505685814610681578063b88d4fde146106a1578063c0ac9983146106c157600080fd5b80638d0b2cbd146105a15780638d859f3e146105b75780638da5cb5b146105cd578063931e2e49146105eb578063942ba2df1461060157806395d89b411461062157600080fd5b806347b5dd54116101fe57806370415033116101b757806370415033146104e957806370a0823114610509578063715018a614610529578063717a002b1461053e57806377325d7a146105545780638462151c1461057457600080fd5b806347b5dd54146104405780634d853ee5146104565780634f6ccce7146104765780636352211e14610496578063657fc38d146104b65780636f9fb98a146104d657600080fd5b80631e84c413116102505780631e84c4131461038857806323b872dd146103a05780632f745c59146103c057806330176e13146103e05780633f5645081461040057806342842e0e1461042057600080fd5b806301ffc9a71461029857806306fdde03146102cd578063081812fc146102ef578063095ea7b314610327578063127237811461034957806318160ddd14610369575b600080fd5b3480156102a457600080fd5b506102b86102b33660046125f9565b610821565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e2610832565b6040516102c4919061266e565b3480156102fb57600080fd5b5061030f61030a366004612681565b6108c4565b6040516001600160a01b0390911681526020016102c4565b34801561033357600080fd5b506103476103423660046126b1565b6108ed565b005b34801561035557600080fd5b50610347610364366004612681565b6108fc565b34801561037557600080fd5b506008545b6040519081526020016102c4565b34801561039457600080fd5b5060185460ff166102b8565b3480156103ac57600080fd5b506103476103bb3660046126db565b6109c2565b3480156103cc57600080fd5b5061037a6103db3660046126b1565b610a4d565b3480156103ec57600080fd5b506103476103fb3660046127d6565b610ae3565b34801561040c57600080fd5b5061034761041b3660046127d6565b610b19565b34801561042c57600080fd5b5061034761043b3660046126db565b610b4f565b34801561044c57600080fd5b5061037a601e5481565b34801561046257600080fd5b5060125461030f906001600160a01b031681565b34801561048257600080fd5b5061037a610491366004612681565b610b6f565b3480156104a257600080fd5b5061030f6104b1366004612681565b610c02565b3480156104c257600080fd5b506103476104d13660046127d6565b610c0d565b3480156104e257600080fd5b504761037a565b3480156104f557600080fd5b506102e2610504366004612681565b610c43565b34801561051557600080fd5b5061037a61052436600461280b565b610d0f565b34801561053557600080fd5b50610347610d57565b34801561054a57600080fd5b5061037a60115481565b34801561056057600080fd5b5061034761056f366004612826565b610d8d565b34801561058057600080fd5b5061059461058f36600461280b565b610e5e565b6040516102c49190612848565b3480156105ad57600080fd5b5061037a600e5481565b3480156105c357600080fd5b5061037a600f5481565b3480156105d957600080fd5b50600a546001600160a01b031661030f565b3480156105f757600080fd5b5061037a60105481565b34801561060d57600080fd5b5061034761061c366004612681565b610f20565b34801561062d57600080fd5b506102e2610ff2565b34801561064257600080fd5b5061037a600c5481565b34801561065857600080fd5b5061034761066736600461288c565b611001565b34801561067857600080fd5b5061034761100c565b34801561068d57600080fd5b5061034761069c366004612681565b611091565b3480156106ad57600080fd5b506103476106bc3660046128c8565b611130565b3480156106cd57600080fd5b506102e2611147565b3480156106e257600080fd5b506102e26106f1366004612681565b6111d5565b34801561070257600080fd5b5061037a610711366004612681565b61123d565b34801561072257600080fd5b5061037a63672dc50081565b34801561073a57600080fd5b506102e2610749366004612681565b611279565b34801561075a57600080fd5b506102e2611387565b34801561076f57600080fd5b5061034761077e3660046129d3565b611394565b34801561078f57600080fd5b50610347611630565b3480156107a457600080fd5b506102b86107b3366004612aa7565b61166e565b3480156107c457600080fd5b506103476107d3366004612681565b61169c565b6103476107e6366004612681565b611751565b3480156107f757600080fd5b5061034761080636600461280b565b611981565b34801561081757600080fd5b5061037a600d5481565b600061082c82611a1c565b92915050565b60606000805461084190612ada565b80601f016020809104026020016040519081016040528092919081815260200182805461086d90612ada565b80156108ba5780601f1061088f576101008083540402835291602001916108ba565b820191906000526020600020905b81548152906001019060200180831161089d57829003601f168201915b5050505050905090565b60006108cf82611a41565b506000828152600460205260409020546001600160a01b031661082c565b6108f8828233611a7a565b5050565b600a546001600160a01b0316331461092f5760405162461bcd60e51b815260040161092690612b0e565b60405180910390fd5b6000811161096e5760405162461bcd60e51b815260206004820152600c60248201526b0aee4dedcce40e0cae440e8f60a31b6044820152606401610926565b600d54604080516060808252600c908201526b0a89e968a9cbea08aa4bea8b60a31b608082015260208101929092528101829052600080516020612e9d8339815191529060a00160405180910390a1600d55565b6001600160a01b0382166109ec57604051633250574960e11b815260006004820152602401610926565b60006109f9838333611a87565b9050836001600160a01b0316816001600160a01b031614610a47576040516364283d7b60e01b81526001600160a01b0380861660048301526024820184905282166044820152606401610926565b50505050565b6000610a5883610d0f565b8210610aba5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610926565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610b0d5760405162461bcd60e51b815260040161092690612b0e565b601d6108f88282612b91565b600a546001600160a01b03163314610b435760405162461bcd60e51b815260040161092690612b0e565b60196108f88282612b91565b610b6a83838360405180602001604052806000815250611130565b505050565b6000610b7a60085490565b8210610bdd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610926565b60088281548110610bf057610bf0612c51565b90600052602060002001549050919050565b600061082c82611a41565b600a546001600160a01b03163314610c375760405162461bcd60e51b815260040161092690612b0e565b601a6108f88282612b91565b6060610c4e60085490565b8210610c6c5760405162461bcd60e51b815260040161092690612c67565b610c7a63672dc50042612cbe565b610c838361123d565b10610cd05760405162461bcd60e51b815260206004820152601d60248201527f5468617420656e7469747920686173206e6f742067726f776e207965740000006044820152606401610926565b601960166000848152602001908152602001600020601a604051602001610cf993929190612d49565b6040516020818303038152906040529050919050565b60006001600160a01b038216610d3b576040516322718ad960e21b815260006004820152602401610926565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610d815760405162461bcd60e51b815260040161092690612b0e565b610d8b6000611a9c565b565b600a546001600160a01b03163314610db75760405162461bcd60e51b815260040161092690612b0e565b808210610e175760405162461bcd60e51b815260206004820152602860248201527f456e642074696d65206d7573742062652067726561746572207468616e2073746044820152676172742074696d6560c01b6064820152608401610926565b6010829055601181905560408051838152602081018390527f8da114a60c42a34374a4db1437a7105ff2904ff5f6873c5aaa1eb33c030f0961910160405180910390a15050565b60606000610e6b83610d0f565b905080600003610e8f5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115610eaa57610eaa612717565b604051908082528060200260200182016040528015610ed3578160200160208202803683370190505b50905060005b82811015610e8757610eeb8582610a4d565b828281518110610efd57610efd612c51565b602090810291909101015280610f1281612d70565b915050610ed9565b50919050565b600a546001600160a01b03163314610f4a5760405162461bcd60e51b815260040161092690612b0e565b60008111610f9a5760405162461bcd60e51b815260206004820152601760248201527f57726f6e6720616d6f756e74207065722077616c6c65740000000000000000006044820152606401610926565b600e546040805160608082526010908201526f1513d2d15397d4115497d5d05313115560821b608082015260208101929092528101829052600080516020612e9d8339815191529060a00160405180910390a1600e55565b60606001805461084190612ada565b6108f8338383611aee565b600a546001600160a01b031633148061102f57506012546001600160a01b031633145b61107b5760405162461bcd60e51b815260206004820152601760248201527f596f752068617665206e6f20726967687420746f2069740000000000000000006044820152606401610926565b601254610d8b906001600160a01b031647611b8d565b600a546001600160a01b031633146110bb5760405162461bcd60e51b815260040161092690612b0e565b600c54600080516020612e9d833981519152906110d88382612d89565b6040805160608082526010908201526f1513d2d15397d3505617d05353d5539560821b6080820152602081019390935282015260a00160405180910390a180600c60008282546111289190612d89565b909155505050565b61113b8484846109c2565b610a4784848484611cdc565b6019805461115490612ada565b80601f016020809104026020016040519081016040528092919081815260200182805461118090612ada565b80156111cd5780601f106111a2576101008083540402835291602001916111cd565b820191906000526020600020905b8154815290600101906020018083116111b057829003601f168201915b505050505081565b60606111e082611a41565b5060006111eb611e05565b9050600081511161120b5760405180602001604052806000815250611236565b8061121584611e14565b604051602001611226929190612da0565b6040516020818303038152906040525b9392505050565b600061124860085490565b82106112665760405162461bcd60e51b815260040161092690612c67565b5060009081526015602052604090205490565b600a546060906001600160a01b031633146112a65760405162461bcd60e51b815260040161092690612b0e565b60085482106112c75760405162461bcd60e51b815260040161092690612c67565b601854610100900460ff161561136957601780546112e490612ada565b80601f016020809104026020016040519081016040528092919081815260200182805461131090612ada565b801561135d5780601f106113325761010080835404028352916020019161135d565b820191906000526020600020905b81548152906001019060200180831161134057829003601f168201915b50505050509050919050565b600082815260166020526040902080546112e490612ada565b919050565b601a805461115490612ada565b600a546001600160a01b031633146113be5760405162461bcd60e51b815260040161092690612b0e565b805182511461140f5760405162461bcd60e51b815260206004820181905260248201527f6d697363656c6c616e656f7573206e756d626572206f6620656c656d656e74736044820152606401610926565b601854610100900460ff1615611448578160008151811061143257611432612c51565b602002602001015160179081610b6a9190612b91565b60005b8151811015610b6a5760006016600084848151811061146c5761146c612c51565b60200260200101518152602001908152602001600020805461148d90612ada565b80601f01602080910402602001604051908101604052809291908181526020018280546114b990612ada565b80156115065780601f106114db57610100808354040283529160200191611506565b820191906000526020600020905b8154815290600101906020018083116114e957829003601f168201915b50505050509050805160001461155e5760405162461bcd60e51b815260206004820152601e60248201527f4950465320686173682063616e20626520736574206f6e6c79206f6e636500006044820152606401610926565b600c5483838151811061157357611573612c51565b602002602001015111156115c95760405162461bcd60e51b815260206004820152601d60248201527f6964206973206d6f7265207468616e2074686520616c6c6f7761626c650000006044820152606401610926565b8382815181106115db576115db612c51565b6020026020010151601660008585815181106115f9576115f9612c51565b60200260200101518152602001908152602001600020908161161b9190612b91565b5050808061162890612d70565b91505061144b565b600a546001600160a01b0316331461165a5760405162461bcd60e51b815260040161092690612b0e565b6018805460ff19811660ff90911615179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600a546001600160a01b031633146116c65760405162461bcd60e51b815260040161092690612b0e565b600081116117045760405162461bcd60e51b815260206004820152600b60248201526a57726f6e6720707269636560a81b6044820152606401610926565b600f5460408051606080825260059082015264505249434560d81b608082015260208101929092528101829052600080516020612e9d8339815191529060a00160405180910390a1600f55565b6002600b54036117a35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610926565b6002600b5560105442108015906117bc57506011544211155b80156117ca575060185460ff165b156117e1576018805460ff191660011790556117ec565b6018805460ff191690555b60185460ff1661183e5760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f7420616374697665000000000000006044820152606401610926565b600d548111156118905760405162461bcd60e51b815260206004820152601f60248201527f596f752063616e2774206d696e742074686174206d616e7920746f6b656e73006044820152606401610926565b600c548161189d60085490565b6118a79190612cbe565b11156119045760405162461bcd60e51b815260206004820152602660248201527f4d696e7420776f756c6420657863656564206d617820737570706c79206f6620604482015265746f6b656e7360d01b6064820152608401610926565b600f546119119082612dcf565b341461196f5760405162461bcd60e51b815260206004820152602760248201527f596f75206469646e27742073656e642074686520726967687420616d6f756e74604482015266040decc40cae8d60cb1b6064820152608401610926565b6119793382611f15565b506001600b55565b600a546001600160a01b031633146119ab5760405162461bcd60e51b815260040161092690612b0e565b6001600160a01b038116611a105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610926565b611a1981611a9c565b50565b60006001600160e01b0319821663780e9d6360e01b148061082c575061082c82611fdd565b6000818152600260205260408120546001600160a01b03168061082c57604051637e27328960e01b815260048101849052602401610926565b610b6a838383600161202d565b6000611a94848484612133565b949350505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611b2057604051630b61174360e31b81526001600160a01b0383166004820152602401610926565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6002600b5403611bdf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610926565b6002600b5547808211611bf25781611bf4565b805b91506000836001600160a01b03168360405160006040518083038185875af1925050503d8060008114611c43576040519150601f19603f3d011682016040523d82523d6000602084013e611c48565b606091505b5050905080611c8e5760405162461bcd60e51b815260206004820152601260248201527108cc2d2d8cac840e8de40e6cadcc8408aa8960731b6044820152606401610926565b836001600160a01b03167f2d7972e635b540e3a7d69ab075a726bac4112e45f631bde1b551cb069dcad6df84604051611cc991815260200190565b60405180910390a250506001600b555050565b6001600160a01b0383163b15610a4757604051630a85bd0160e11b81526001600160a01b0384169063150b7a0290611d1e903390889087908790600401612dee565b6020604051808303816000875af1925050508015611d59575060408051601f3d908101601f19168201909252611d5691810190612e2b565b60015b611dc2573d808015611d87576040519150601f19603f3d011682016040523d82523d6000602084013e611d8c565b606091505b508051600003611dba57604051633250574960e11b81526001600160a01b0385166004820152602401610926565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b14611dfe57604051633250574960e11b81526001600160a01b0385166004820152602401610926565b5050505050565b6060601d805461084190612ada565b606081600003611e3b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e655780611e4f81612d70565b9150611e5e9050600a83612e5e565b9150611e3f565b60008167ffffffffffffffff811115611e8057611e80612717565b6040519080825280601f01601f191660200182016040528015611eaa576020820181803683370190505b5090505b8415611a9457611ebf600183612d89565b9150611ecc600a86612e72565b611ed7906030612cbe565b60f81b818381518110611eec57611eec612c51565b60200101906001600160f81b031916908160001a905350611f0e600a86612e5e565b9450611eae565b600e5481611f2284610d0f565b611f2c9190612cbe565b1115611f8a5760405162461bcd60e51b815260206004820152602760248201527f4d696e7420776f756c6420657863656564206d617820746f6b656e7320706572604482015266081dd85b1b195d60ca1b6064820152608401610926565b60005b81811015610b6a576000601e54611fa360085490565b611fad9190612cbe565b60008181526015602052604090204290559050611fca848261222c565b5080611fd581612d70565b915050611f8d565b60006001600160e01b031982166380ac58cd60e01b148061200e57506001600160e01b03198216635b5e139f60e01b145b8061082c57506301ffc9a760e01b6001600160e01b031983161461082c565b808061204157506001600160a01b03821615155b1561210357600061205184611a41565b90506001600160a01b0383161580159061207d5750826001600160a01b0316816001600160a01b031614155b8015612090575061208e818461166e565b155b156120b95760405163a9fbf51f60e01b81526001600160a01b0384166004820152602401610926565b81156121015783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600260205260408120546001600160a01b039081169083161561216057612160818486612246565b6001600160a01b0381161561219e5761217d60008560008061202d565b6001600160a01b038116600090815260036020526040902080546000190190555b6001600160a01b038516156121cd576001600160a01b0385166000908152600360205260409020805460010190555b60008481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b6108f88282604051806020016040528060008152506122aa565b6122518383836122c1565b610b6a576001600160a01b03831661227f57604051637e27328960e01b815260048101829052602401610926565b60405163177e802f60e01b81526001600160a01b038316600482015260248101829052604401610926565b6122b48383612324565b610b6a6000848484611cdc565b60006001600160a01b03831615801590611a945750826001600160a01b0316846001600160a01b031614806122fb57506122fb848461166e565b80611a945750506000908152600460205260409020546001600160a01b03908116911614919050565b6001600160a01b03821661234e57604051633250574960e11b815260006004820152602401610926565b61235a60008383612395565b600061236883836000611a87565b90506001600160a01b03811615610b6a576040516339e3563760e11b815260006004820152602401610926565b610b6a8383836001600160a01b0383166123f6576123f181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612419565b816001600160a01b0316836001600160a01b031614612419576124198382612453565b6001600160a01b03821661243057610b6a816124f0565b826001600160a01b0316826001600160a01b031614610b6a57610b6a828261259f565b6000600161246084610d0f565b61246a9190612d89565b6000838152600760205260409020549091508082146124bd576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061250290600190612d89565b6000838152600960205260408120546008805493945090928490811061252a5761252a612c51565b90600052602060002001549050806008838154811061254b5761254b612c51565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061258357612583612e86565b6001900381819060005260206000200160009055905550505050565b60006125aa83610d0f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114611a1957600080fd5b60006020828403121561260b57600080fd5b8135611236816125e3565b60005b83811015612631578181015183820152602001612619565b83811115610a475750506000910152565b6000815180845261265a816020860160208601612616565b601f01601f19169290920160200192915050565b6020815260006112366020830184612642565b60006020828403121561269357600080fd5b5035919050565b80356001600160a01b038116811461138257600080fd5b600080604083850312156126c457600080fd5b6126cd8361269a565b946020939093013593505050565b6000806000606084860312156126f057600080fd5b6126f98461269a565b92506127076020850161269a565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561275657612756612717565b604052919050565b600067ffffffffffffffff83111561277857612778612717565b61278b601f8401601f191660200161272d565b905082815283838301111561279f57600080fd5b828260208301376000602084830101529392505050565b600082601f8301126127c757600080fd5b6112368383356020850161275e565b6000602082840312156127e857600080fd5b813567ffffffffffffffff8111156127ff57600080fd5b611a94848285016127b6565b60006020828403121561281d57600080fd5b6112368261269a565b6000806040838503121561283957600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b8181101561288057835183529284019291840191600101612864565b50909695505050505050565b6000806040838503121561289f57600080fd5b6128a88361269a565b9150602083013580151581146128bd57600080fd5b809150509250929050565b600080600080608085870312156128de57600080fd5b6128e78561269a565b93506128f56020860161269a565b925060408501359150606085013567ffffffffffffffff81111561291857600080fd5b8501601f8101871361292957600080fd5b6129388782356020840161275e565b91505092959194509250565b600067ffffffffffffffff82111561295e5761295e612717565b5060051b60200190565b600082601f83011261297957600080fd5b8135602061298e61298983612944565b61272d565b82815260059290921b840181019181810190868411156129ad57600080fd5b8286015b848110156129c857803583529183019183016129b1565b509695505050505050565b600080604083850312156129e657600080fd5b823567ffffffffffffffff808211156129fe57600080fd5b818501915085601f830112612a1257600080fd5b81356020612a2261298983612944565b82815260059290921b84018101918181019089841115612a4157600080fd5b8286015b84811015612a7957803586811115612a5d5760008081fd5b612a6b8c86838b01016127b6565b845250918301918301612a45565b5096505086013592505080821115612a9057600080fd5b50612a9d85828601612968565b9150509250929050565b60008060408385031215612aba57600080fd5b612ac38361269a565b9150612ad16020840161269a565b90509250929050565b600181811c90821680612aee57607f821691505b602082108103610f1a57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f821115610b6a57600081815260208120601f850160051c81016020861015612b6a5750805b601f850160051c820191505b81811015612b8957828155600101612b76565b505050505050565b815167ffffffffffffffff811115612bab57612bab612717565b612bbf81612bb98454612ada565b84612b43565b602080601f831160018114612bf45760008415612bdc5750858301515b600019600386901b1c1916600185901b178555612b89565b600085815260208120601f198616915b82811015612c2357888601518255948401946001909101908401612c04565b5085821015612c415787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60208082526021908201527f5468617420656e7469747920686173206e6f74206265656e206d616b652079656040820152601d60fa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612cd157612cd1612ca8565b500190565b60008154612ce381612ada565b60018281168015612cfb5760018114612d1057612d3f565b60ff1984168752821515830287019450612d3f565b8560005260208060002060005b85811015612d365781548a820152908401908201612d1d565b50505082870194505b5050505092915050565b6000612d67612d61612d5b8488612cd6565b86612cd6565b84612cd6565b95945050505050565b600060018201612d8257612d82612ca8565b5060010190565b600082821015612d9b57612d9b612ca8565b500390565b60008351612db2818460208801612616565b835190830190612dc6818360208801612616565b01949350505050565b6000816000190483118215151615612de957612de9612ca8565b500290565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e2190830184612642565b9695505050505050565b600060208284031215612e3d57600080fd5b8151611236816125e3565b634e487b7160e01b600052601260045260246000fd5b600082612e6d57612e6d612e48565b500490565b600082612e8157612e81612e48565b500690565b634e487b7160e01b600052603160045260246000fdfe0d072220716df8d505ad38ae8dbfe77b968e2c80bb73f08c38a08d5fe4f9911aa2646970667358221220a4cbbe6b4f394a6db5ff22d4f1be56a7e94e8561e748038dd3f83cd8a0834e4864736f6c634300080f003368747470733a2f2f6d656469612e616c7068616d696e642e636f2f6e66742f6d7973746572795f626f7865732f6170692f
Deployed Bytecode
0x6080604052600436106102935760003560e01c80638d0b2cbd1161015a578063c87b56dd116100c1578063e222c7f91161007a578063e222c7f914610783578063e985e9c514610798578063ee8cdd4e146107b8578063efd0cbf9146107d8578063f2fde38b146107eb578063f4d2a2181461080b57600080fd5b8063c87b56dd146106d6578063c8d2524c146106f6578063cb645ccb14610716578063d450fbc91461072e578063dbbc853b1461074e578063de49e4db1461076357600080fd5b80639e5ac7f1116101135780639e5ac7f114610636578063a22cb4651461064c578063ac3077731461066c578063b505685814610681578063b88d4fde146106a1578063c0ac9983146106c157600080fd5b80638d0b2cbd146105a15780638d859f3e146105b75780638da5cb5b146105cd578063931e2e49146105eb578063942ba2df1461060157806395d89b411461062157600080fd5b806347b5dd54116101fe57806370415033116101b757806370415033146104e957806370a0823114610509578063715018a614610529578063717a002b1461053e57806377325d7a146105545780638462151c1461057457600080fd5b806347b5dd54146104405780634d853ee5146104565780634f6ccce7146104765780636352211e14610496578063657fc38d146104b65780636f9fb98a146104d657600080fd5b80631e84c413116102505780631e84c4131461038857806323b872dd146103a05780632f745c59146103c057806330176e13146103e05780633f5645081461040057806342842e0e1461042057600080fd5b806301ffc9a71461029857806306fdde03146102cd578063081812fc146102ef578063095ea7b314610327578063127237811461034957806318160ddd14610369575b600080fd5b3480156102a457600080fd5b506102b86102b33660046125f9565b610821565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e2610832565b6040516102c4919061266e565b3480156102fb57600080fd5b5061030f61030a366004612681565b6108c4565b6040516001600160a01b0390911681526020016102c4565b34801561033357600080fd5b506103476103423660046126b1565b6108ed565b005b34801561035557600080fd5b50610347610364366004612681565b6108fc565b34801561037557600080fd5b506008545b6040519081526020016102c4565b34801561039457600080fd5b5060185460ff166102b8565b3480156103ac57600080fd5b506103476103bb3660046126db565b6109c2565b3480156103cc57600080fd5b5061037a6103db3660046126b1565b610a4d565b3480156103ec57600080fd5b506103476103fb3660046127d6565b610ae3565b34801561040c57600080fd5b5061034761041b3660046127d6565b610b19565b34801561042c57600080fd5b5061034761043b3660046126db565b610b4f565b34801561044c57600080fd5b5061037a601e5481565b34801561046257600080fd5b5060125461030f906001600160a01b031681565b34801561048257600080fd5b5061037a610491366004612681565b610b6f565b3480156104a257600080fd5b5061030f6104b1366004612681565b610c02565b3480156104c257600080fd5b506103476104d13660046127d6565b610c0d565b3480156104e257600080fd5b504761037a565b3480156104f557600080fd5b506102e2610504366004612681565b610c43565b34801561051557600080fd5b5061037a61052436600461280b565b610d0f565b34801561053557600080fd5b50610347610d57565b34801561054a57600080fd5b5061037a60115481565b34801561056057600080fd5b5061034761056f366004612826565b610d8d565b34801561058057600080fd5b5061059461058f36600461280b565b610e5e565b6040516102c49190612848565b3480156105ad57600080fd5b5061037a600e5481565b3480156105c357600080fd5b5061037a600f5481565b3480156105d957600080fd5b50600a546001600160a01b031661030f565b3480156105f757600080fd5b5061037a60105481565b34801561060d57600080fd5b5061034761061c366004612681565b610f20565b34801561062d57600080fd5b506102e2610ff2565b34801561064257600080fd5b5061037a600c5481565b34801561065857600080fd5b5061034761066736600461288c565b611001565b34801561067857600080fd5b5061034761100c565b34801561068d57600080fd5b5061034761069c366004612681565b611091565b3480156106ad57600080fd5b506103476106bc3660046128c8565b611130565b3480156106cd57600080fd5b506102e2611147565b3480156106e257600080fd5b506102e26106f1366004612681565b6111d5565b34801561070257600080fd5b5061037a610711366004612681565b61123d565b34801561072257600080fd5b5061037a63672dc50081565b34801561073a57600080fd5b506102e2610749366004612681565b611279565b34801561075a57600080fd5b506102e2611387565b34801561076f57600080fd5b5061034761077e3660046129d3565b611394565b34801561078f57600080fd5b50610347611630565b3480156107a457600080fd5b506102b86107b3366004612aa7565b61166e565b3480156107c457600080fd5b506103476107d3366004612681565b61169c565b6103476107e6366004612681565b611751565b3480156107f757600080fd5b5061034761080636600461280b565b611981565b34801561081757600080fd5b5061037a600d5481565b600061082c82611a1c565b92915050565b60606000805461084190612ada565b80601f016020809104026020016040519081016040528092919081815260200182805461086d90612ada565b80156108ba5780601f1061088f576101008083540402835291602001916108ba565b820191906000526020600020905b81548152906001019060200180831161089d57829003601f168201915b5050505050905090565b60006108cf82611a41565b506000828152600460205260409020546001600160a01b031661082c565b6108f8828233611a7a565b5050565b600a546001600160a01b0316331461092f5760405162461bcd60e51b815260040161092690612b0e565b60405180910390fd5b6000811161096e5760405162461bcd60e51b815260206004820152600c60248201526b0aee4dedcce40e0cae440e8f60a31b6044820152606401610926565b600d54604080516060808252600c908201526b0a89e968a9cbea08aa4bea8b60a31b608082015260208101929092528101829052600080516020612e9d8339815191529060a00160405180910390a1600d55565b6001600160a01b0382166109ec57604051633250574960e11b815260006004820152602401610926565b60006109f9838333611a87565b9050836001600160a01b0316816001600160a01b031614610a47576040516364283d7b60e01b81526001600160a01b0380861660048301526024820184905282166044820152606401610926565b50505050565b6000610a5883610d0f565b8210610aba5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610926565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610b0d5760405162461bcd60e51b815260040161092690612b0e565b601d6108f88282612b91565b600a546001600160a01b03163314610b435760405162461bcd60e51b815260040161092690612b0e565b60196108f88282612b91565b610b6a83838360405180602001604052806000815250611130565b505050565b6000610b7a60085490565b8210610bdd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610926565b60088281548110610bf057610bf0612c51565b90600052602060002001549050919050565b600061082c82611a41565b600a546001600160a01b03163314610c375760405162461bcd60e51b815260040161092690612b0e565b601a6108f88282612b91565b6060610c4e60085490565b8210610c6c5760405162461bcd60e51b815260040161092690612c67565b610c7a63672dc50042612cbe565b610c838361123d565b10610cd05760405162461bcd60e51b815260206004820152601d60248201527f5468617420656e7469747920686173206e6f742067726f776e207965740000006044820152606401610926565b601960166000848152602001908152602001600020601a604051602001610cf993929190612d49565b6040516020818303038152906040529050919050565b60006001600160a01b038216610d3b576040516322718ad960e21b815260006004820152602401610926565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610d815760405162461bcd60e51b815260040161092690612b0e565b610d8b6000611a9c565b565b600a546001600160a01b03163314610db75760405162461bcd60e51b815260040161092690612b0e565b808210610e175760405162461bcd60e51b815260206004820152602860248201527f456e642074696d65206d7573742062652067726561746572207468616e2073746044820152676172742074696d6560c01b6064820152608401610926565b6010829055601181905560408051838152602081018390527f8da114a60c42a34374a4db1437a7105ff2904ff5f6873c5aaa1eb33c030f0961910160405180910390a15050565b60606000610e6b83610d0f565b905080600003610e8f5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115610eaa57610eaa612717565b604051908082528060200260200182016040528015610ed3578160200160208202803683370190505b50905060005b82811015610e8757610eeb8582610a4d565b828281518110610efd57610efd612c51565b602090810291909101015280610f1281612d70565b915050610ed9565b50919050565b600a546001600160a01b03163314610f4a5760405162461bcd60e51b815260040161092690612b0e565b60008111610f9a5760405162461bcd60e51b815260206004820152601760248201527f57726f6e6720616d6f756e74207065722077616c6c65740000000000000000006044820152606401610926565b600e546040805160608082526010908201526f1513d2d15397d4115497d5d05313115560821b608082015260208101929092528101829052600080516020612e9d8339815191529060a00160405180910390a1600e55565b60606001805461084190612ada565b6108f8338383611aee565b600a546001600160a01b031633148061102f57506012546001600160a01b031633145b61107b5760405162461bcd60e51b815260206004820152601760248201527f596f752068617665206e6f20726967687420746f2069740000000000000000006044820152606401610926565b601254610d8b906001600160a01b031647611b8d565b600a546001600160a01b031633146110bb5760405162461bcd60e51b815260040161092690612b0e565b600c54600080516020612e9d833981519152906110d88382612d89565b6040805160608082526010908201526f1513d2d15397d3505617d05353d5539560821b6080820152602081019390935282015260a00160405180910390a180600c60008282546111289190612d89565b909155505050565b61113b8484846109c2565b610a4784848484611cdc565b6019805461115490612ada565b80601f016020809104026020016040519081016040528092919081815260200182805461118090612ada565b80156111cd5780601f106111a2576101008083540402835291602001916111cd565b820191906000526020600020905b8154815290600101906020018083116111b057829003601f168201915b505050505081565b60606111e082611a41565b5060006111eb611e05565b9050600081511161120b5760405180602001604052806000815250611236565b8061121584611e14565b604051602001611226929190612da0565b6040516020818303038152906040525b9392505050565b600061124860085490565b82106112665760405162461bcd60e51b815260040161092690612c67565b5060009081526015602052604090205490565b600a546060906001600160a01b031633146112a65760405162461bcd60e51b815260040161092690612b0e565b60085482106112c75760405162461bcd60e51b815260040161092690612c67565b601854610100900460ff161561136957601780546112e490612ada565b80601f016020809104026020016040519081016040528092919081815260200182805461131090612ada565b801561135d5780601f106113325761010080835404028352916020019161135d565b820191906000526020600020905b81548152906001019060200180831161134057829003601f168201915b50505050509050919050565b600082815260166020526040902080546112e490612ada565b919050565b601a805461115490612ada565b600a546001600160a01b031633146113be5760405162461bcd60e51b815260040161092690612b0e565b805182511461140f5760405162461bcd60e51b815260206004820181905260248201527f6d697363656c6c616e656f7573206e756d626572206f6620656c656d656e74736044820152606401610926565b601854610100900460ff1615611448578160008151811061143257611432612c51565b602002602001015160179081610b6a9190612b91565b60005b8151811015610b6a5760006016600084848151811061146c5761146c612c51565b60200260200101518152602001908152602001600020805461148d90612ada565b80601f01602080910402602001604051908101604052809291908181526020018280546114b990612ada565b80156115065780601f106114db57610100808354040283529160200191611506565b820191906000526020600020905b8154815290600101906020018083116114e957829003601f168201915b50505050509050805160001461155e5760405162461bcd60e51b815260206004820152601e60248201527f4950465320686173682063616e20626520736574206f6e6c79206f6e636500006044820152606401610926565b600c5483838151811061157357611573612c51565b602002602001015111156115c95760405162461bcd60e51b815260206004820152601d60248201527f6964206973206d6f7265207468616e2074686520616c6c6f7761626c650000006044820152606401610926565b8382815181106115db576115db612c51565b6020026020010151601660008585815181106115f9576115f9612c51565b60200260200101518152602001908152602001600020908161161b9190612b91565b5050808061162890612d70565b91505061144b565b600a546001600160a01b0316331461165a5760405162461bcd60e51b815260040161092690612b0e565b6018805460ff19811660ff90911615179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600a546001600160a01b031633146116c65760405162461bcd60e51b815260040161092690612b0e565b600081116117045760405162461bcd60e51b815260206004820152600b60248201526a57726f6e6720707269636560a81b6044820152606401610926565b600f5460408051606080825260059082015264505249434560d81b608082015260208101929092528101829052600080516020612e9d8339815191529060a00160405180910390a1600f55565b6002600b54036117a35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610926565b6002600b5560105442108015906117bc57506011544211155b80156117ca575060185460ff165b156117e1576018805460ff191660011790556117ec565b6018805460ff191690555b60185460ff1661183e5760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f7420616374697665000000000000006044820152606401610926565b600d548111156118905760405162461bcd60e51b815260206004820152601f60248201527f596f752063616e2774206d696e742074686174206d616e7920746f6b656e73006044820152606401610926565b600c548161189d60085490565b6118a79190612cbe565b11156119045760405162461bcd60e51b815260206004820152602660248201527f4d696e7420776f756c6420657863656564206d617820737570706c79206f6620604482015265746f6b656e7360d01b6064820152608401610926565b600f546119119082612dcf565b341461196f5760405162461bcd60e51b815260206004820152602760248201527f596f75206469646e27742073656e642074686520726967687420616d6f756e74604482015266040decc40cae8d60cb1b6064820152608401610926565b6119793382611f15565b506001600b55565b600a546001600160a01b031633146119ab5760405162461bcd60e51b815260040161092690612b0e565b6001600160a01b038116611a105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610926565b611a1981611a9c565b50565b60006001600160e01b0319821663780e9d6360e01b148061082c575061082c82611fdd565b6000818152600260205260408120546001600160a01b03168061082c57604051637e27328960e01b815260048101849052602401610926565b610b6a838383600161202d565b6000611a94848484612133565b949350505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611b2057604051630b61174360e31b81526001600160a01b0383166004820152602401610926565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6002600b5403611bdf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610926565b6002600b5547808211611bf25781611bf4565b805b91506000836001600160a01b03168360405160006040518083038185875af1925050503d8060008114611c43576040519150601f19603f3d011682016040523d82523d6000602084013e611c48565b606091505b5050905080611c8e5760405162461bcd60e51b815260206004820152601260248201527108cc2d2d8cac840e8de40e6cadcc8408aa8960731b6044820152606401610926565b836001600160a01b03167f2d7972e635b540e3a7d69ab075a726bac4112e45f631bde1b551cb069dcad6df84604051611cc991815260200190565b60405180910390a250506001600b555050565b6001600160a01b0383163b15610a4757604051630a85bd0160e11b81526001600160a01b0384169063150b7a0290611d1e903390889087908790600401612dee565b6020604051808303816000875af1925050508015611d59575060408051601f3d908101601f19168201909252611d5691810190612e2b565b60015b611dc2573d808015611d87576040519150601f19603f3d011682016040523d82523d6000602084013e611d8c565b606091505b508051600003611dba57604051633250574960e11b81526001600160a01b0385166004820152602401610926565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b14611dfe57604051633250574960e11b81526001600160a01b0385166004820152602401610926565b5050505050565b6060601d805461084190612ada565b606081600003611e3b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e655780611e4f81612d70565b9150611e5e9050600a83612e5e565b9150611e3f565b60008167ffffffffffffffff811115611e8057611e80612717565b6040519080825280601f01601f191660200182016040528015611eaa576020820181803683370190505b5090505b8415611a9457611ebf600183612d89565b9150611ecc600a86612e72565b611ed7906030612cbe565b60f81b818381518110611eec57611eec612c51565b60200101906001600160f81b031916908160001a905350611f0e600a86612e5e565b9450611eae565b600e5481611f2284610d0f565b611f2c9190612cbe565b1115611f8a5760405162461bcd60e51b815260206004820152602760248201527f4d696e7420776f756c6420657863656564206d617820746f6b656e7320706572604482015266081dd85b1b195d60ca1b6064820152608401610926565b60005b81811015610b6a576000601e54611fa360085490565b611fad9190612cbe565b60008181526015602052604090204290559050611fca848261222c565b5080611fd581612d70565b915050611f8d565b60006001600160e01b031982166380ac58cd60e01b148061200e57506001600160e01b03198216635b5e139f60e01b145b8061082c57506301ffc9a760e01b6001600160e01b031983161461082c565b808061204157506001600160a01b03821615155b1561210357600061205184611a41565b90506001600160a01b0383161580159061207d5750826001600160a01b0316816001600160a01b031614155b8015612090575061208e818461166e565b155b156120b95760405163a9fbf51f60e01b81526001600160a01b0384166004820152602401610926565b81156121015783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600260205260408120546001600160a01b039081169083161561216057612160818486612246565b6001600160a01b0381161561219e5761217d60008560008061202d565b6001600160a01b038116600090815260036020526040902080546000190190555b6001600160a01b038516156121cd576001600160a01b0385166000908152600360205260409020805460010190555b60008481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b6108f88282604051806020016040528060008152506122aa565b6122518383836122c1565b610b6a576001600160a01b03831661227f57604051637e27328960e01b815260048101829052602401610926565b60405163177e802f60e01b81526001600160a01b038316600482015260248101829052604401610926565b6122b48383612324565b610b6a6000848484611cdc565b60006001600160a01b03831615801590611a945750826001600160a01b0316846001600160a01b031614806122fb57506122fb848461166e565b80611a945750506000908152600460205260409020546001600160a01b03908116911614919050565b6001600160a01b03821661234e57604051633250574960e11b815260006004820152602401610926565b61235a60008383612395565b600061236883836000611a87565b90506001600160a01b03811615610b6a576040516339e3563760e11b815260006004820152602401610926565b610b6a8383836001600160a01b0383166123f6576123f181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612419565b816001600160a01b0316836001600160a01b031614612419576124198382612453565b6001600160a01b03821661243057610b6a816124f0565b826001600160a01b0316826001600160a01b031614610b6a57610b6a828261259f565b6000600161246084610d0f565b61246a9190612d89565b6000838152600760205260409020549091508082146124bd576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061250290600190612d89565b6000838152600960205260408120546008805493945090928490811061252a5761252a612c51565b90600052602060002001549050806008838154811061254b5761254b612c51565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061258357612583612e86565b6001900381819060005260206000200160009055905550505050565b60006125aa83610d0f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114611a1957600080fd5b60006020828403121561260b57600080fd5b8135611236816125e3565b60005b83811015612631578181015183820152602001612619565b83811115610a475750506000910152565b6000815180845261265a816020860160208601612616565b601f01601f19169290920160200192915050565b6020815260006112366020830184612642565b60006020828403121561269357600080fd5b5035919050565b80356001600160a01b038116811461138257600080fd5b600080604083850312156126c457600080fd5b6126cd8361269a565b946020939093013593505050565b6000806000606084860312156126f057600080fd5b6126f98461269a565b92506127076020850161269a565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561275657612756612717565b604052919050565b600067ffffffffffffffff83111561277857612778612717565b61278b601f8401601f191660200161272d565b905082815283838301111561279f57600080fd5b828260208301376000602084830101529392505050565b600082601f8301126127c757600080fd5b6112368383356020850161275e565b6000602082840312156127e857600080fd5b813567ffffffffffffffff8111156127ff57600080fd5b611a94848285016127b6565b60006020828403121561281d57600080fd5b6112368261269a565b6000806040838503121561283957600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b8181101561288057835183529284019291840191600101612864565b50909695505050505050565b6000806040838503121561289f57600080fd5b6128a88361269a565b9150602083013580151581146128bd57600080fd5b809150509250929050565b600080600080608085870312156128de57600080fd5b6128e78561269a565b93506128f56020860161269a565b925060408501359150606085013567ffffffffffffffff81111561291857600080fd5b8501601f8101871361292957600080fd5b6129388782356020840161275e565b91505092959194509250565b600067ffffffffffffffff82111561295e5761295e612717565b5060051b60200190565b600082601f83011261297957600080fd5b8135602061298e61298983612944565b61272d565b82815260059290921b840181019181810190868411156129ad57600080fd5b8286015b848110156129c857803583529183019183016129b1565b509695505050505050565b600080604083850312156129e657600080fd5b823567ffffffffffffffff808211156129fe57600080fd5b818501915085601f830112612a1257600080fd5b81356020612a2261298983612944565b82815260059290921b84018101918181019089841115612a4157600080fd5b8286015b84811015612a7957803586811115612a5d5760008081fd5b612a6b8c86838b01016127b6565b845250918301918301612a45565b5096505086013592505080821115612a9057600080fd5b50612a9d85828601612968565b9150509250929050565b60008060408385031215612aba57600080fd5b612ac38361269a565b9150612ad16020840161269a565b90509250929050565b600181811c90821680612aee57607f821691505b602082108103610f1a57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f821115610b6a57600081815260208120601f850160051c81016020861015612b6a5750805b601f850160051c820191505b81811015612b8957828155600101612b76565b505050505050565b815167ffffffffffffffff811115612bab57612bab612717565b612bbf81612bb98454612ada565b84612b43565b602080601f831160018114612bf45760008415612bdc5750858301515b600019600386901b1c1916600185901b178555612b89565b600085815260208120601f198616915b82811015612c2357888601518255948401946001909101908401612c04565b5085821015612c415787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60208082526021908201527f5468617420656e7469747920686173206e6f74206265656e206d616b652079656040820152601d60fa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612cd157612cd1612ca8565b500190565b60008154612ce381612ada565b60018281168015612cfb5760018114612d1057612d3f565b60ff1984168752821515830287019450612d3f565b8560005260208060002060005b85811015612d365781548a820152908401908201612d1d565b50505082870194505b5050505092915050565b6000612d67612d61612d5b8488612cd6565b86612cd6565b84612cd6565b95945050505050565b600060018201612d8257612d82612ca8565b5060010190565b600082821015612d9b57612d9b612ca8565b500390565b60008351612db2818460208801612616565b835190830190612dc6818360208801612616565b01949350505050565b6000816000190483118215151615612de957612de9612ca8565b500290565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e2190830184612642565b9695505050505050565b600060208284031215612e3d57600080fd5b8151611236816125e3565b634e487b7160e01b600052601260045260246000fd5b600082612e6d57612e6d612e48565b500490565b600082612e8157612e81612e48565b500690565b634e487b7160e01b600052603160045260246000fdfe0d072220716df8d505ad38ae8dbfe77b968e2c80bb73f08c38a08d5fe4f9911aa2646970667358221220a4cbbe6b4f394a6db5ff22d4f1be56a7e94e8561e748038dd3f83cd8a0834e4864736f6c634300080f0033
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.