ERC-721
Overview
Max Total Supply
0 CHAOS
Holders
79
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CHAOSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ChaosNFT
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract ChaosNFT is ERC721 { using Counters for Counters.Counter; Counters.Counter private _tokenIdTracker; Counters.Counter private _givedAmountTracker; string private _baseTokenURI; uint256 public saleStartTimestamp = 1632441600; address private constant _owner = 0x631fc1b7fc847976f2568c1ff712f4b7c33A9b3B; event Bought(address walletAddress, uint256 tokenId); constructor() ERC721("Chaos Blocks", "CHAOS") { _baseTokenURI = "https://www.chaosblocks.art/api/token/"; } function contractURI() external pure returns (string memory) { return "https://www.chaosblocks.art/api/contract_metadata"; } function buy(uint256 amount) external payable { require( block.timestamp >= saleStartTimestamp, "Sale has not started yet" ); require(amount <= amountLeft(), "Not enough left"); require( msg.value >= amount * 70000000000000000, "Invalid ether amount sent " ); for (uint256 i = 0; i < amount; i++) { uint256 tokenId = mint(msg.sender); emit Bought(msg.sender, tokenId); } payable(_owner).transfer(msg.value); } function amountLeft() public view returns (uint256) { return 10000 - _tokenIdTracker.current() - (block.timestamp - saleStartTimestamp) / 30; } function giveaway(address receiver, uint256 amount) external { require(msg.sender == _owner, "must be owner"); require( amount <= 250 - _givedAmountTracker.current(), "Not enough left to give" ); for (uint256 i = 0; i < amount; i++) { uint256 tokenId = give(receiver); emit Bought(receiver, tokenId); } } function mint(address to) internal returns (uint256) { // We cannot just use balanceOf to create the new tokenId because tokens // can be burned (destroyed), so we need a separate counter. _mint(to, _tokenIdTracker.current()); _tokenIdTracker.increment(); return _tokenIdTracker.current(); } function give(address to) internal returns (uint256) { // increment tracker then mint _givedAmountTracker.increment(); return mint(to); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "./extensions/IERC721Enumerable.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"walletAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Bought","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":"amountLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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"}]
Contract Creation Code
608060405263614d15006009553480156200001957600080fd5b50604080518082018252600c81526b4368616f7320426c6f636b7360a01b6020808301918252835180850190945260058452644348414f5360d81b9084015281519192916200006b91600091620000bb565b50805162000081906001906020840190620000bb565b50505060405180606001604052806026815260200162001b47602691398051620000b491600891602090910190620000bb565b506200019e565b828054620000c99062000161565b90600052602060002090601f016020900481019282620000ed576000855562000138565b82601f106200010857805160ff191683800117855562000138565b8280016001018555821562000138579182015b82811115620001385782518255916020019190600101906200011b565b50620001469291506200014a565b5090565b5b808211156200014657600081556001016200014b565b6002810460018216806200017657607f821691505b602082108114156200019857634e487b7160e01b600052602260045260246000fd5b50919050565b61199980620001ae6000396000f3fe6080604052600436106101095760003560e01c806370a0823111610095578063c87b56dd11610064578063c87b56dd146102cc578063d96a094a146102ec578063e011ac87146102ff578063e8a3d48514610314578063e985e9c51461032957610109565b806370a082311461025757806395d89b4114610277578063a22cb4651461028c578063b88d4fde146102ac57610109565b8063095ea7b3116100dc578063095ea7b3146101b557806323b872dd146101d55780633c276d86146101f557806342842e0e146102175780636352211e1461023757610109565b806301ffc9a71461010e578063050225ea1461014457806306fdde0314610166578063081812fc14610188575b600080fd5b34801561011a57600080fd5b5061012e6101293660046111c3565b610349565b60405161013b91906112d8565b60405180910390f35b34801561015057600080fd5b5061016461015f36600461119a565b610391565b005b34801561017257600080fd5b5061017b61046a565b60405161013b91906112e3565b34801561019457600080fd5b506101a86101a33660046111fb565b6104fc565b60405161013b919061126e565b3480156101c157600080fd5b506101646101d036600461119a565b61053f565b3480156101e157600080fd5b506101646101f0366004611059565b6105d2565b34801561020157600080fd5b5061020a61060a565b60405161013b91906117d6565b34801561022357600080fd5b50610164610232366004611059565b610610565b34801561024357600080fd5b506101a86102523660046111fb565b61062b565b34801561026357600080fd5b5061020a61027236600461100d565b610660565b34801561028357600080fd5b5061017b6106a4565b34801561029857600080fd5b506101646102a7366004611160565b6106b3565b3480156102b857600080fd5b506101646102c7366004611094565b610781565b3480156102d857600080fd5b5061017b6102e73660046111fb565b6107c0565b6101646102fa3660046111fb565b610843565b34801561030b57600080fd5b5061020a610965565b34801561032057600080fd5b5061017b6109a6565b34801561033557600080fd5b5061012e610344366004611027565b6109c6565b60006001600160e01b031982166380ac58cd60e01b148061037a57506001600160e01b03198216635b5e139f60e01b145b806103895750610389826109f4565b90505b919050565b3373631fc1b7fc847976f2568c1ff712f4b7c33a9b3b146103cd5760405162461bcd60e51b81526004016103c4906113ed565b60405180910390fd5b6103d76007610a0d565b6103e29060fa61182a565b8111156104015760405162461bcd60e51b81526004016103c490611725565b60005b8181101561046557600061041784610a11565b90507fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d67848260405161044a9291906112bf565b60405180910390a1508061045d816118a8565b915050610404565b505050565b6060600080546104799061186d565b80601f01602080910402602001604051908101604052809291908181526020018280546104a59061186d565b80156104f25780601f106104c7576101008083540402835291602001916104f2565b820191906000526020600020905b8154815290600101906020018083116104d557829003601f168201915b5050505050905090565b600061050782610a26565b6105235760405162461bcd60e51b81526004016103c490611600565b506000908152600460205260409020546001600160a01b031690565b600061054a8261062b565b9050806001600160a01b0316836001600160a01b0316141561057e5760405162461bcd60e51b81526004016103c4906116e4565b806001600160a01b0316610590610a43565b6001600160a01b031614806105ac57506105ac81610344610a43565b6105c85760405162461bcd60e51b81526004016103c4906114db565b6104658383610a47565b6105e36105dd610a43565b82610ab5565b6105ff5760405162461bcd60e51b81526004016103c49061175c565b610465838383610b3a565b60095481565b61046583838360405180602001604052806000815250610781565b6000818152600260205260408120546001600160a01b0316806103895760405162461bcd60e51b81526004016103c490611582565b60006001600160a01b0382166106885760405162461bcd60e51b81526004016103c490611538565b506001600160a01b031660009081526003602052604090205490565b6060600180546104799061186d565b6106bb610a43565b6001600160a01b0316826001600160a01b031614156106ec5760405162461bcd60e51b81526004016103c490611458565b80600560006106f9610a43565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561073d610a43565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161077591906112d8565b60405180910390a35050565b61079261078c610a43565b83610ab5565b6107ae5760405162461bcd60e51b81526004016103c49061175c565b6107ba84848484610c67565b50505050565b60606107cb82610a26565b6107e75760405162461bcd60e51b81526004016103c490611695565b60006107f1610c9a565b90506000815111610811576040518060200160405280600081525061083c565b8061081b84610ca9565b60405160200161082c92919061123f565b6040516020818303038152906040525b9392505050565b6009544210156108655760405162461bcd60e51b81526004016103c4906112f6565b61086d610965565b81111561088c5760405162461bcd60e51b81526004016103c4906117ad565b61089d8166f8b0a10e47000061180b565b3410156108bc5760405162461bcd60e51b81526004016103c49061132d565b60005b818110156109205760006108d233610dc4565b90507fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d6733826040516109059291906112bf565b60405180910390a15080610918816118a8565b9150506108bf565b5060405173631fc1b7fc847976f2568c1ff712f4b7c33a9b3b903480156108fc02916000818181858888f19350505050158015610961573d6000803e3d6000fd5b5050565b6000601e60095442610977919061182a565b61098191906117f7565b61098b6006610a0d565b6109979061271061182a565b6109a1919061182a565b905090565b606060405180606001604052806031815260200161193360319139905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6001600160e01b031981166301ffc9a760e01b14919050565b5490565b6000610a1d6007610ded565b61038982610dc4565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610a7c8261062b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610ac082610a26565b610adc5760405162461bcd60e51b81526004016103c49061148f565b6000610ae78361062b565b9050806001600160a01b0316846001600160a01b03161480610b225750836001600160a01b0316610b17846104fc565b6001600160a01b0316145b80610b325750610b3281856109c6565b949350505050565b826001600160a01b0316610b4d8261062b565b6001600160a01b031614610b735760405162461bcd60e51b81526004016103c49061164c565b6001600160a01b038216610b995760405162461bcd60e51b81526004016103c490611414565b610ba4838383610465565b610baf600082610a47565b6001600160a01b0383166000908152600360205260408120805460019290610bd890849061182a565b90915550506001600160a01b0382166000908152600360205260408120805460019290610c069084906117df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610c72848484610b3a565b610c7e84848484610df6565b6107ba5760405162461bcd60e51b81526004016103c490611364565b6060600880546104799061186d565b606081610cce57506040805180820190915260018152600360fc1b602082015261038c565b8160005b8115610cf85780610ce2816118a8565b9150610cf19050600a836117f7565b9150610cd2565b60008167ffffffffffffffff811115610d2157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610d4b576020820181803683370190505b5090505b8415610b3257610d6060018361182a565b9150610d6d600a866118c3565b610d789060306117df565b60f81b818381518110610d9b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350610dbd600a866117f7565b9450610d4f565b6000610dd982610dd46006610a0d565b610f11565b610de36006610ded565b6103896006610a0d565b80546001019055565b6000610e0a846001600160a01b0316610ff0565b15610f0657836001600160a01b031663150b7a02610e26610a43565b8786866040518563ffffffff1660e01b8152600401610e489493929190611282565b602060405180830381600087803b158015610e6257600080fd5b505af1925050508015610e92575060408051601f3d908101601f19168201909252610e8f918101906111df565b60015b610eec573d808015610ec0576040519150601f19603f3d011682016040523d82523d6000602084013e610ec5565b606091505b508051610ee45760405162461bcd60e51b81526004016103c490611364565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610b32565b506001949350505050565b6001600160a01b038216610f375760405162461bcd60e51b81526004016103c4906115cb565b610f4081610a26565b15610f5d5760405162461bcd60e51b81526004016103c4906113b6565b610f6960008383610465565b6001600160a01b0382166000908152600360205260408120805460019290610f929084906117df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b80356001600160a01b038116811461038c57600080fd5b60006020828403121561101e578081fd5b61083c82610ff6565b60008060408385031215611039578081fd5b61104283610ff6565b915061105060208401610ff6565b90509250929050565b60008060006060848603121561106d578081fd5b61107684610ff6565b925061108460208501610ff6565b9150604084013590509250925092565b600080600080608085870312156110a9578081fd5b6110b285610ff6565b935060206110c1818701610ff6565b935060408601359250606086013567ffffffffffffffff808211156110e4578384fd5b818801915088601f8301126110f7578384fd5b81358181111561110957611109611903565b604051601f8201601f191681018501838111828210171561112c5761112c611903565b60405281815283820185018b1015611142578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215611172578182fd5b61117b83610ff6565b91506020830135801515811461118f578182fd5b809150509250929050565b600080604083850312156111ac578182fd5b6111b583610ff6565b946020939093013593505050565b6000602082840312156111d4578081fd5b813561083c81611919565b6000602082840312156111f0578081fd5b815161083c81611919565b60006020828403121561120c578081fd5b5035919050565b6000815180845261122b816020860160208601611841565b601f01601f19169290920160200192915050565b60008351611251818460208801611841565b835190830190611265818360208801611841565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906112b590830184611213565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60006020825261083c6020830184611213565b60208082526018908201527f53616c6520686173206e6f742073746172746564207965740000000000000000604082015260600190565b6020808252601a908201527f496e76616c696420657468657220616d6f756e742073656e7420000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600d908201526c36bab9ba1031329037bbb732b960991b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526017908201527f4e6f7420656e6f756768206c65667420746f2067697665000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600f908201526e139bdd08195b9bdd59da081b19599d608a1b604082015260600190565b90815260200190565b600082198211156117f2576117f26118d7565b500190565b600082611806576118066118ed565b500490565b6000816000190483118215151615611825576118256118d7565b500290565b60008282101561183c5761183c6118d7565b500390565b60005b8381101561185c578181015183820152602001611844565b838111156107ba5750506000910152565b60028104600182168061188157607f821691505b602082108114156118a257634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156118bc576118bc6118d7565b5060010190565b6000826118d2576118d26118ed565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461192f57600080fd5b5056fe68747470733a2f2f7777772e6368616f73626c6f636b732e6172742f6170692f636f6e74726163745f6d65746164617461a264697066735822122026e6b5e29fa4510a1d489130cc3f7760e2f9e520dd70844088e4476e3ca0b4ae64736f6c6343000800003368747470733a2f2f7777772e6368616f73626c6f636b732e6172742f6170692f746f6b656e2f
Deployed Bytecode
0x6080604052600436106101095760003560e01c806370a0823111610095578063c87b56dd11610064578063c87b56dd146102cc578063d96a094a146102ec578063e011ac87146102ff578063e8a3d48514610314578063e985e9c51461032957610109565b806370a082311461025757806395d89b4114610277578063a22cb4651461028c578063b88d4fde146102ac57610109565b8063095ea7b3116100dc578063095ea7b3146101b557806323b872dd146101d55780633c276d86146101f557806342842e0e146102175780636352211e1461023757610109565b806301ffc9a71461010e578063050225ea1461014457806306fdde0314610166578063081812fc14610188575b600080fd5b34801561011a57600080fd5b5061012e6101293660046111c3565b610349565b60405161013b91906112d8565b60405180910390f35b34801561015057600080fd5b5061016461015f36600461119a565b610391565b005b34801561017257600080fd5b5061017b61046a565b60405161013b91906112e3565b34801561019457600080fd5b506101a86101a33660046111fb565b6104fc565b60405161013b919061126e565b3480156101c157600080fd5b506101646101d036600461119a565b61053f565b3480156101e157600080fd5b506101646101f0366004611059565b6105d2565b34801561020157600080fd5b5061020a61060a565b60405161013b91906117d6565b34801561022357600080fd5b50610164610232366004611059565b610610565b34801561024357600080fd5b506101a86102523660046111fb565b61062b565b34801561026357600080fd5b5061020a61027236600461100d565b610660565b34801561028357600080fd5b5061017b6106a4565b34801561029857600080fd5b506101646102a7366004611160565b6106b3565b3480156102b857600080fd5b506101646102c7366004611094565b610781565b3480156102d857600080fd5b5061017b6102e73660046111fb565b6107c0565b6101646102fa3660046111fb565b610843565b34801561030b57600080fd5b5061020a610965565b34801561032057600080fd5b5061017b6109a6565b34801561033557600080fd5b5061012e610344366004611027565b6109c6565b60006001600160e01b031982166380ac58cd60e01b148061037a57506001600160e01b03198216635b5e139f60e01b145b806103895750610389826109f4565b90505b919050565b3373631fc1b7fc847976f2568c1ff712f4b7c33a9b3b146103cd5760405162461bcd60e51b81526004016103c4906113ed565b60405180910390fd5b6103d76007610a0d565b6103e29060fa61182a565b8111156104015760405162461bcd60e51b81526004016103c490611725565b60005b8181101561046557600061041784610a11565b90507fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d67848260405161044a9291906112bf565b60405180910390a1508061045d816118a8565b915050610404565b505050565b6060600080546104799061186d565b80601f01602080910402602001604051908101604052809291908181526020018280546104a59061186d565b80156104f25780601f106104c7576101008083540402835291602001916104f2565b820191906000526020600020905b8154815290600101906020018083116104d557829003601f168201915b5050505050905090565b600061050782610a26565b6105235760405162461bcd60e51b81526004016103c490611600565b506000908152600460205260409020546001600160a01b031690565b600061054a8261062b565b9050806001600160a01b0316836001600160a01b0316141561057e5760405162461bcd60e51b81526004016103c4906116e4565b806001600160a01b0316610590610a43565b6001600160a01b031614806105ac57506105ac81610344610a43565b6105c85760405162461bcd60e51b81526004016103c4906114db565b6104658383610a47565b6105e36105dd610a43565b82610ab5565b6105ff5760405162461bcd60e51b81526004016103c49061175c565b610465838383610b3a565b60095481565b61046583838360405180602001604052806000815250610781565b6000818152600260205260408120546001600160a01b0316806103895760405162461bcd60e51b81526004016103c490611582565b60006001600160a01b0382166106885760405162461bcd60e51b81526004016103c490611538565b506001600160a01b031660009081526003602052604090205490565b6060600180546104799061186d565b6106bb610a43565b6001600160a01b0316826001600160a01b031614156106ec5760405162461bcd60e51b81526004016103c490611458565b80600560006106f9610a43565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561073d610a43565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161077591906112d8565b60405180910390a35050565b61079261078c610a43565b83610ab5565b6107ae5760405162461bcd60e51b81526004016103c49061175c565b6107ba84848484610c67565b50505050565b60606107cb82610a26565b6107e75760405162461bcd60e51b81526004016103c490611695565b60006107f1610c9a565b90506000815111610811576040518060200160405280600081525061083c565b8061081b84610ca9565b60405160200161082c92919061123f565b6040516020818303038152906040525b9392505050565b6009544210156108655760405162461bcd60e51b81526004016103c4906112f6565b61086d610965565b81111561088c5760405162461bcd60e51b81526004016103c4906117ad565b61089d8166f8b0a10e47000061180b565b3410156108bc5760405162461bcd60e51b81526004016103c49061132d565b60005b818110156109205760006108d233610dc4565b90507fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d6733826040516109059291906112bf565b60405180910390a15080610918816118a8565b9150506108bf565b5060405173631fc1b7fc847976f2568c1ff712f4b7c33a9b3b903480156108fc02916000818181858888f19350505050158015610961573d6000803e3d6000fd5b5050565b6000601e60095442610977919061182a565b61098191906117f7565b61098b6006610a0d565b6109979061271061182a565b6109a1919061182a565b905090565b606060405180606001604052806031815260200161193360319139905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6001600160e01b031981166301ffc9a760e01b14919050565b5490565b6000610a1d6007610ded565b61038982610dc4565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610a7c8261062b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610ac082610a26565b610adc5760405162461bcd60e51b81526004016103c49061148f565b6000610ae78361062b565b9050806001600160a01b0316846001600160a01b03161480610b225750836001600160a01b0316610b17846104fc565b6001600160a01b0316145b80610b325750610b3281856109c6565b949350505050565b826001600160a01b0316610b4d8261062b565b6001600160a01b031614610b735760405162461bcd60e51b81526004016103c49061164c565b6001600160a01b038216610b995760405162461bcd60e51b81526004016103c490611414565b610ba4838383610465565b610baf600082610a47565b6001600160a01b0383166000908152600360205260408120805460019290610bd890849061182a565b90915550506001600160a01b0382166000908152600360205260408120805460019290610c069084906117df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610c72848484610b3a565b610c7e84848484610df6565b6107ba5760405162461bcd60e51b81526004016103c490611364565b6060600880546104799061186d565b606081610cce57506040805180820190915260018152600360fc1b602082015261038c565b8160005b8115610cf85780610ce2816118a8565b9150610cf19050600a836117f7565b9150610cd2565b60008167ffffffffffffffff811115610d2157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610d4b576020820181803683370190505b5090505b8415610b3257610d6060018361182a565b9150610d6d600a866118c3565b610d789060306117df565b60f81b818381518110610d9b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350610dbd600a866117f7565b9450610d4f565b6000610dd982610dd46006610a0d565b610f11565b610de36006610ded565b6103896006610a0d565b80546001019055565b6000610e0a846001600160a01b0316610ff0565b15610f0657836001600160a01b031663150b7a02610e26610a43565b8786866040518563ffffffff1660e01b8152600401610e489493929190611282565b602060405180830381600087803b158015610e6257600080fd5b505af1925050508015610e92575060408051601f3d908101601f19168201909252610e8f918101906111df565b60015b610eec573d808015610ec0576040519150601f19603f3d011682016040523d82523d6000602084013e610ec5565b606091505b508051610ee45760405162461bcd60e51b81526004016103c490611364565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610b32565b506001949350505050565b6001600160a01b038216610f375760405162461bcd60e51b81526004016103c4906115cb565b610f4081610a26565b15610f5d5760405162461bcd60e51b81526004016103c4906113b6565b610f6960008383610465565b6001600160a01b0382166000908152600360205260408120805460019290610f929084906117df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b80356001600160a01b038116811461038c57600080fd5b60006020828403121561101e578081fd5b61083c82610ff6565b60008060408385031215611039578081fd5b61104283610ff6565b915061105060208401610ff6565b90509250929050565b60008060006060848603121561106d578081fd5b61107684610ff6565b925061108460208501610ff6565b9150604084013590509250925092565b600080600080608085870312156110a9578081fd5b6110b285610ff6565b935060206110c1818701610ff6565b935060408601359250606086013567ffffffffffffffff808211156110e4578384fd5b818801915088601f8301126110f7578384fd5b81358181111561110957611109611903565b604051601f8201601f191681018501838111828210171561112c5761112c611903565b60405281815283820185018b1015611142578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215611172578182fd5b61117b83610ff6565b91506020830135801515811461118f578182fd5b809150509250929050565b600080604083850312156111ac578182fd5b6111b583610ff6565b946020939093013593505050565b6000602082840312156111d4578081fd5b813561083c81611919565b6000602082840312156111f0578081fd5b815161083c81611919565b60006020828403121561120c578081fd5b5035919050565b6000815180845261122b816020860160208601611841565b601f01601f19169290920160200192915050565b60008351611251818460208801611841565b835190830190611265818360208801611841565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906112b590830184611213565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60006020825261083c6020830184611213565b60208082526018908201527f53616c6520686173206e6f742073746172746564207965740000000000000000604082015260600190565b6020808252601a908201527f496e76616c696420657468657220616d6f756e742073656e7420000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600d908201526c36bab9ba1031329037bbb732b960991b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526017908201527f4e6f7420656e6f756768206c65667420746f2067697665000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600f908201526e139bdd08195b9bdd59da081b19599d608a1b604082015260600190565b90815260200190565b600082198211156117f2576117f26118d7565b500190565b600082611806576118066118ed565b500490565b6000816000190483118215151615611825576118256118d7565b500290565b60008282101561183c5761183c6118d7565b500390565b60005b8381101561185c578181015183820152602001611844565b838111156107ba5750506000910152565b60028104600182168061188157607f821691505b602082108114156118a257634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156118bc576118bc6118d7565b5060010190565b6000826118d2576118d26118ed565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461192f57600080fd5b5056fe68747470733a2f2f7777772e6368616f73626c6f636b732e6172742f6170692f636f6e74726163745f6d65746164617461a264697066735822122026e6b5e29fa4510a1d489130cc3f7760e2f9e520dd70844088e4476e3ca0b4ae64736f6c63430008000033
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.