ERC-721
Overview
Max Total Supply
6 ani
Holders
2
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Balance
2 aniLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
TestNFT
Compiler Version
v0.8.6+commit.11564f7e
Contract Source Code (Solidity)
/** *Submitted for verification at ftmscan.com on 2021-09-01 */ // 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) { 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(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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 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 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 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 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 https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be 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 || 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 || 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.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } /** * @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 TestNFT is ERC721Enumerable, Ownable { constructor(string memory _name, string memory _symbol) ERC721(_name, _symbol) { } function mint(address _to, uint256 _tokenId) external onlyOwner { super._mint(_to, _tokenId); } function _baseURI() internal view override virtual returns (string memory) { return "TestNFT"; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":"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":"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":"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
60806040523480156200001157600080fd5b5060405162001cb938038062001cb983398101604081905262000034916200023b565b8151829082906200004d906000906020850190620000de565b50805162000063906001906020840190620000de565b505050620000806200007a6200008860201b60201c565b6200008c565b5050620002f8565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000ec90620002a5565b90600052602060002090601f0160209004810192826200011057600085556200015b565b82601f106200012b57805160ff19168380011785556200015b565b828001600101855582156200015b579182015b828111156200015b5782518255916020019190600101906200013e565b50620001699291506200016d565b5090565b5b808211156200016957600081556001016200016e565b600082601f8301126200019657600080fd5b81516001600160401b0380821115620001b357620001b3620002e2565b604051601f8301601f19908116603f01168101908282118183101715620001de57620001de620002e2565b81604052838152602092508683858801011115620001fb57600080fd5b600091505b838210156200021f578582018301518183018401529082019062000200565b83821115620002315760008385830101525b9695505050505050565b600080604083850312156200024f57600080fd5b82516001600160401b03808211156200026757600080fd5b620002758683870162000184565b935060208501519150808211156200028c57600080fd5b506200029b8582860162000184565b9150509250929050565b600181811c90821680620002ba57607f821691505b60208210811415620002dc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6119b180620003086000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80636352211e116100ad578063a22cb46511610071578063a22cb46514610266578063b88d4fde14610279578063c87b56dd1461028c578063e985e9c51461029f578063f2fde38b146102db57600080fd5b80636352211e1461021f57806370a0823114610232578063715018a6146102455780638da5cb5b1461024d57806395d89b411461025e57600080fd5b806323b872dd116100f457806323b872dd146101c05780632f745c59146101d357806340c10f19146101e657806342842e0e146101f95780634f6ccce71461020c57600080fd5b806301ffc9a71461013157806306fdde0314610159578063081812fc1461016e578063095ea7b31461019957806318160ddd146101ae575b600080fd5b61014461013f366004611648565b6102ee565b60405190151581526020015b60405180910390f35b610161610319565b6040516101509190611733565b61018161017c366004611682565b6103ab565b6040516001600160a01b039091168152602001610150565b6101ac6101a736600461161e565b610445565b005b6008545b604051908152602001610150565b6101ac6101ce3660046114ca565b61055b565b6101b26101e136600461161e565b61058c565b6101ac6101f436600461161e565b610622565b6101ac6102073660046114ca565b61065a565b6101b261021a366004611682565b610675565b61018161022d366004611682565b610708565b6101b261024036600461147c565b61077f565b6101ac610806565b600a546001600160a01b0316610181565b61016161083c565b6101ac6102743660046115e2565b61084b565b6101ac610287366004611506565b610910565b61016161029a366004611682565b610948565b6101446102ad366004611497565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101ac6102e936600461147c565b610a3f565b60006001600160e01b0319821663780e9d6360e01b1480610313575061031382610ada565b92915050565b6060600080546103289061188d565b80601f01602080910402602001604051908101604052809291908181526020018280546103549061188d565b80156103a15780601f10610376576101008083540402835291602001916103a1565b820191906000526020600020905b81548152906001019060200180831161038457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104295760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061045082610708565b9050806001600160a01b0316836001600160a01b031614156104be5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610420565b336001600160a01b03821614806104da57506104da81336102ad565b61054c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610420565b6105568383610b2a565b505050565b6105653382610b98565b6105815760405162461bcd60e51b8152600401610420906117cd565b610556838383610c8f565b60006105978361077f565b82106105f95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610420565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b0316331461064c5760405162461bcd60e51b815260040161042090611798565b6106568282610e3a565b5050565b61055683838360405180602001604052806000815250610910565b600061068060085490565b82106106e35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610420565b600882815481106106f6576106f6611939565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806103135760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610420565b60006001600160a01b0382166107ea5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610420565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146108305760405162461bcd60e51b815260040161042090611798565b61083a6000610f88565b565b6060600180546103289061188d565b6001600160a01b0382163314156108a45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610420565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61091a3383610b98565b6109365760405162461bcd60e51b8152600401610420906117cd565b61094284848484610fda565b50505050565b6000818152600260205260409020546060906001600160a01b03166109c75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610420565b60006109ed60408051808201909152600781526615195cdd13919560ca1b602082015290565b90506000815111610a0d5760405180602001604052806000815250610a38565b80610a178461100d565b604051602001610a289291906116c7565b6040516020818303038152906040525b9392505050565b600a546001600160a01b03163314610a695760405162461bcd60e51b815260040161042090611798565b6001600160a01b038116610ace5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610420565b610ad781610f88565b50565b60006001600160e01b031982166380ac58cd60e01b1480610b0b57506001600160e01b03198216635b5e139f60e01b145b8061031357506301ffc9a760e01b6001600160e01b0319831614610313565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610b5f82610708565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610c115760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610420565b6000610c1c83610708565b9050806001600160a01b0316846001600160a01b03161480610c575750836001600160a01b0316610c4c846103ab565b6001600160a01b0316145b80610c8757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610ca282610708565b6001600160a01b031614610d0a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610420565b6001600160a01b038216610d6c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610420565b610d7783838361110b565b610d82600082610b2a565b6001600160a01b0383166000908152600360205260408120805460019290610dab90849061184a565b90915550506001600160a01b0382166000908152600360205260408120805460019290610dd990849061181e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610e905760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610420565b6000818152600260205260409020546001600160a01b031615610ef55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610420565b610f016000838361110b565b6001600160a01b0382166000908152600360205260408120805460019290610f2a90849061181e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610fe5848484610c8f565b610ff1848484846111c3565b6109425760405162461bcd60e51b815260040161042090611746565b6060816110315750506040805180820190915260018152600360fc1b602082015290565b8160005b811561105b5780611045816118c8565b91506110549050600a83611836565b9150611035565b60008167ffffffffffffffff8111156110765761107661194f565b6040519080825280601f01601f1916602001820160405280156110a0576020820181803683370190505b5090505b8415610c87576110b560018361184a565b91506110c2600a866118e3565b6110cd90603061181e565b60f81b8183815181106110e2576110e2611939565b60200101906001600160f81b031916908160001a905350611104600a86611836565b94506110a4565b6001600160a01b0383166111665761116181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611189565b816001600160a01b0316836001600160a01b0316146111895761118983826112d0565b6001600160a01b0382166111a0576105568161136d565b826001600160a01b0316826001600160a01b03161461055657610556828261141c565b60006001600160a01b0384163b156112c557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906112079033908990889088906004016116f6565b602060405180830381600087803b15801561122157600080fd5b505af1925050508015611251575060408051601f3d908101601f1916820190925261124e91810190611665565b60015b6112ab573d80801561127f576040519150601f19603f3d011682016040523d82523d6000602084013e611284565b606091505b5080516112a35760405162461bcd60e51b815260040161042090611746565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c87565b506001949350505050565b600060016112dd8461077f565b6112e7919061184a565b60008381526007602052604090205490915080821461133a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061137f9060019061184a565b600083815260096020526040812054600880549394509092849081106113a7576113a7611939565b9060005260206000200154905080600883815481106113c8576113c8611939565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061140057611400611923565b6001900381819060005260206000200160009055905550505050565b60006114278361077f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b80356001600160a01b038116811461147757600080fd5b919050565b60006020828403121561148e57600080fd5b610a3882611460565b600080604083850312156114aa57600080fd5b6114b383611460565b91506114c160208401611460565b90509250929050565b6000806000606084860312156114df57600080fd5b6114e884611460565b92506114f660208501611460565b9150604084013590509250925092565b6000806000806080858703121561151c57600080fd5b61152585611460565b935061153360208601611460565b925060408501359150606085013567ffffffffffffffff8082111561155757600080fd5b818701915087601f83011261156b57600080fd5b81358181111561157d5761157d61194f565b604051601f8201601f19908116603f011681019083821181831017156115a5576115a561194f565b816040528281528a60208487010111156115be57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156115f557600080fd5b6115fe83611460565b91506020830135801515811461161357600080fd5b809150509250929050565b6000806040838503121561163157600080fd5b61163a83611460565b946020939093013593505050565b60006020828403121561165a57600080fd5b8135610a3881611965565b60006020828403121561167757600080fd5b8151610a3881611965565b60006020828403121561169457600080fd5b5035919050565b600081518084526116b3816020860160208601611861565b601f01601f19169290920160200192915050565b600083516116d9818460208801611861565b8351908301906116ed818360208801611861565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117299083018461169b565b9695505050505050565b602081526000610a38602083018461169b565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115611831576118316118f7565b500190565b6000826118455761184561190d565b500490565b60008282101561185c5761185c6118f7565b500390565b60005b8381101561187c578181015183820152602001611864565b838111156109425750506000910152565b600181811c908216806118a157607f821691505b602082108114156118c257634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156118dc576118dc6118f7565b5060010190565b6000826118f2576118f261190d565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ad757600080fdfea2646970667358221220fdbeb25b2ca73d54479abae2ed56b78f2eb6857cc21415b1761c5bc1bd0d7e1664736f6c63430008060033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000006416e696d616c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003616e690000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80636352211e116100ad578063a22cb46511610071578063a22cb46514610266578063b88d4fde14610279578063c87b56dd1461028c578063e985e9c51461029f578063f2fde38b146102db57600080fd5b80636352211e1461021f57806370a0823114610232578063715018a6146102455780638da5cb5b1461024d57806395d89b411461025e57600080fd5b806323b872dd116100f457806323b872dd146101c05780632f745c59146101d357806340c10f19146101e657806342842e0e146101f95780634f6ccce71461020c57600080fd5b806301ffc9a71461013157806306fdde0314610159578063081812fc1461016e578063095ea7b31461019957806318160ddd146101ae575b600080fd5b61014461013f366004611648565b6102ee565b60405190151581526020015b60405180910390f35b610161610319565b6040516101509190611733565b61018161017c366004611682565b6103ab565b6040516001600160a01b039091168152602001610150565b6101ac6101a736600461161e565b610445565b005b6008545b604051908152602001610150565b6101ac6101ce3660046114ca565b61055b565b6101b26101e136600461161e565b61058c565b6101ac6101f436600461161e565b610622565b6101ac6102073660046114ca565b61065a565b6101b261021a366004611682565b610675565b61018161022d366004611682565b610708565b6101b261024036600461147c565b61077f565b6101ac610806565b600a546001600160a01b0316610181565b61016161083c565b6101ac6102743660046115e2565b61084b565b6101ac610287366004611506565b610910565b61016161029a366004611682565b610948565b6101446102ad366004611497565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101ac6102e936600461147c565b610a3f565b60006001600160e01b0319821663780e9d6360e01b1480610313575061031382610ada565b92915050565b6060600080546103289061188d565b80601f01602080910402602001604051908101604052809291908181526020018280546103549061188d565b80156103a15780601f10610376576101008083540402835291602001916103a1565b820191906000526020600020905b81548152906001019060200180831161038457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104295760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061045082610708565b9050806001600160a01b0316836001600160a01b031614156104be5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610420565b336001600160a01b03821614806104da57506104da81336102ad565b61054c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610420565b6105568383610b2a565b505050565b6105653382610b98565b6105815760405162461bcd60e51b8152600401610420906117cd565b610556838383610c8f565b60006105978361077f565b82106105f95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610420565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b0316331461064c5760405162461bcd60e51b815260040161042090611798565b6106568282610e3a565b5050565b61055683838360405180602001604052806000815250610910565b600061068060085490565b82106106e35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610420565b600882815481106106f6576106f6611939565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806103135760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610420565b60006001600160a01b0382166107ea5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610420565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146108305760405162461bcd60e51b815260040161042090611798565b61083a6000610f88565b565b6060600180546103289061188d565b6001600160a01b0382163314156108a45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610420565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61091a3383610b98565b6109365760405162461bcd60e51b8152600401610420906117cd565b61094284848484610fda565b50505050565b6000818152600260205260409020546060906001600160a01b03166109c75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610420565b60006109ed60408051808201909152600781526615195cdd13919560ca1b602082015290565b90506000815111610a0d5760405180602001604052806000815250610a38565b80610a178461100d565b604051602001610a289291906116c7565b6040516020818303038152906040525b9392505050565b600a546001600160a01b03163314610a695760405162461bcd60e51b815260040161042090611798565b6001600160a01b038116610ace5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610420565b610ad781610f88565b50565b60006001600160e01b031982166380ac58cd60e01b1480610b0b57506001600160e01b03198216635b5e139f60e01b145b8061031357506301ffc9a760e01b6001600160e01b0319831614610313565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610b5f82610708565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610c115760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610420565b6000610c1c83610708565b9050806001600160a01b0316846001600160a01b03161480610c575750836001600160a01b0316610c4c846103ab565b6001600160a01b0316145b80610c8757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610ca282610708565b6001600160a01b031614610d0a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610420565b6001600160a01b038216610d6c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610420565b610d7783838361110b565b610d82600082610b2a565b6001600160a01b0383166000908152600360205260408120805460019290610dab90849061184a565b90915550506001600160a01b0382166000908152600360205260408120805460019290610dd990849061181e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610e905760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610420565b6000818152600260205260409020546001600160a01b031615610ef55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610420565b610f016000838361110b565b6001600160a01b0382166000908152600360205260408120805460019290610f2a90849061181e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610fe5848484610c8f565b610ff1848484846111c3565b6109425760405162461bcd60e51b815260040161042090611746565b6060816110315750506040805180820190915260018152600360fc1b602082015290565b8160005b811561105b5780611045816118c8565b91506110549050600a83611836565b9150611035565b60008167ffffffffffffffff8111156110765761107661194f565b6040519080825280601f01601f1916602001820160405280156110a0576020820181803683370190505b5090505b8415610c87576110b560018361184a565b91506110c2600a866118e3565b6110cd90603061181e565b60f81b8183815181106110e2576110e2611939565b60200101906001600160f81b031916908160001a905350611104600a86611836565b94506110a4565b6001600160a01b0383166111665761116181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611189565b816001600160a01b0316836001600160a01b0316146111895761118983826112d0565b6001600160a01b0382166111a0576105568161136d565b826001600160a01b0316826001600160a01b03161461055657610556828261141c565b60006001600160a01b0384163b156112c557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906112079033908990889088906004016116f6565b602060405180830381600087803b15801561122157600080fd5b505af1925050508015611251575060408051601f3d908101601f1916820190925261124e91810190611665565b60015b6112ab573d80801561127f576040519150601f19603f3d011682016040523d82523d6000602084013e611284565b606091505b5080516112a35760405162461bcd60e51b815260040161042090611746565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c87565b506001949350505050565b600060016112dd8461077f565b6112e7919061184a565b60008381526007602052604090205490915080821461133a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061137f9060019061184a565b600083815260096020526040812054600880549394509092849081106113a7576113a7611939565b9060005260206000200154905080600883815481106113c8576113c8611939565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061140057611400611923565b6001900381819060005260206000200160009055905550505050565b60006114278361077f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b80356001600160a01b038116811461147757600080fd5b919050565b60006020828403121561148e57600080fd5b610a3882611460565b600080604083850312156114aa57600080fd5b6114b383611460565b91506114c160208401611460565b90509250929050565b6000806000606084860312156114df57600080fd5b6114e884611460565b92506114f660208501611460565b9150604084013590509250925092565b6000806000806080858703121561151c57600080fd5b61152585611460565b935061153360208601611460565b925060408501359150606085013567ffffffffffffffff8082111561155757600080fd5b818701915087601f83011261156b57600080fd5b81358181111561157d5761157d61194f565b604051601f8201601f19908116603f011681019083821181831017156115a5576115a561194f565b816040528281528a60208487010111156115be57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156115f557600080fd5b6115fe83611460565b91506020830135801515811461161357600080fd5b809150509250929050565b6000806040838503121561163157600080fd5b61163a83611460565b946020939093013593505050565b60006020828403121561165a57600080fd5b8135610a3881611965565b60006020828403121561167757600080fd5b8151610a3881611965565b60006020828403121561169457600080fd5b5035919050565b600081518084526116b3816020860160208601611861565b601f01601f19169290920160200192915050565b600083516116d9818460208801611861565b8351908301906116ed818360208801611861565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117299083018461169b565b9695505050505050565b602081526000610a38602083018461169b565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115611831576118316118f7565b500190565b6000826118455761184561190d565b500490565b60008282101561185c5761185c6118f7565b500390565b60005b8381101561187c578181015183820152602001611864565b838111156109425750506000910152565b600181811c908216806118a157607f821691505b602082108114156118c257634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156118dc576118dc6118f7565b5060010190565b6000826118f2576118f261190d565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ad757600080fdfea2646970667358221220fdbeb25b2ca73d54479abae2ed56b78f2eb6857cc21415b1761c5bc1bd0d7e1664736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000006416e696d616c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003616e690000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Animal
Arg [1] : _symbol (string): ani
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [3] : 416e696d616c0000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 616e690000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
41992:383:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35844:224;;;;;;:::i;:::-;;:::i;:::-;;;5027:14:1;;5020:22;5002:41;;4990:2;4975:18;35844:224:0;;;;;;;;22976:100;;;:::i;:::-;;;;;;;:::i;24535:221::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;4325:32:1;;;4307:51;;4295:2;4280:18;24535:221:0;4262:102:1;24058:411:0;;;;;;:::i;:::-;;:::i;:::-;;36484:113;36572:10;:17;36484:113;;;12631:25:1;;;12619:2;12604:18;36484:113:0;12586:76:1;25425:339:0;;;;;;:::i;:::-;;:::i;36152:256::-;;;;;;:::i;:::-;;:::i;42145:109::-;;;;;;:::i;:::-;;:::i;25835:185::-;;;;;;:::i;:::-;;:::i;36674:233::-;;;;;;:::i;:::-;;:::i;22670:239::-;;;;;;:::i;:::-;;:::i;22400:208::-;;;;;;:::i;:::-;;:::i;2377:94::-;;;:::i;1726:87::-;1799:6;;-1:-1:-1;;;;;1799:6:0;1726:87;;23145:104;;;:::i;24828:295::-;;;;;;:::i;:::-;;:::i;26091:328::-;;;;;;:::i;:::-;;:::i;23320:334::-;;;;;;:::i;:::-;;:::i;25194:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;25315:25:0;;;25291:4;25315:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;25194:164;2626:192;;;;;;:::i;:::-;;:::i;35844:224::-;35946:4;-1:-1:-1;;;;;;35970:50:0;;-1:-1:-1;;;35970:50:0;;:90;;;36024:36;36048:11;36024:23;:36::i;:::-;35963:97;35844:224;-1:-1:-1;;35844:224:0:o;22976:100::-;23030:13;23063:5;23056:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22976:100;:::o;24535:221::-;24611:7;28018:16;;;:7;:16;;;;;;-1:-1:-1;;;;;28018:16:0;24631:73;;;;-1:-1:-1;;;24631:73:0;;9854:2:1;24631:73:0;;;9836:21:1;9893:2;9873:18;;;9866:30;9932:34;9912:18;;;9905:62;-1:-1:-1;;;9983:18:1;;;9976:42;10035:19;;24631:73:0;;;;;;;;;-1:-1:-1;24724:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;24724:24:0;;24535:221::o;24058:411::-;24139:13;24155:23;24170:7;24155:14;:23::i;:::-;24139:39;;24203:5;-1:-1:-1;;;;;24197:11:0;:2;-1:-1:-1;;;;;24197:11:0;;;24189:57;;;;-1:-1:-1;;;24189:57:0;;11454:2:1;24189:57:0;;;11436:21:1;11493:2;11473:18;;;11466:30;11532:34;11512:18;;;11505:62;-1:-1:-1;;;11583:18:1;;;11576:31;11624:19;;24189:57:0;11426:223:1;24189:57:0;682:10;-1:-1:-1;;;;;24281:21:0;;;;:62;;-1:-1:-1;24306:37:0;24323:5;682:10;25194:164;:::i;24306:37::-;24259:168;;;;-1:-1:-1;;;24259:168:0;;8247:2:1;24259:168:0;;;8229:21:1;8286:2;8266:18;;;8259:30;8325:34;8305:18;;;8298:62;8396:26;8376:18;;;8369:54;8440:19;;24259:168:0;8219:246:1;24259:168:0;24440:21;24449:2;24453:7;24440:8;:21::i;:::-;24128:341;24058:411;;:::o;25425:339::-;25620:41;682:10;25653:7;25620:18;:41::i;:::-;25612:103;;;;-1:-1:-1;;;25612:103:0;;;;;;;:::i;:::-;25728:28;25738:4;25744:2;25748:7;25728:9;:28::i;36152:256::-;36249:7;36285:23;36302:5;36285:16;:23::i;:::-;36277:5;:31;36269:87;;;;-1:-1:-1;;;36269:87:0;;5480:2:1;36269:87:0;;;5462:21:1;5519:2;5499:18;;;5492:30;5558:34;5538:18;;;5531:62;-1:-1:-1;;;5609:18:1;;;5602:41;5660:19;;36269:87:0;5452:233:1;36269:87:0;-1:-1:-1;;;;;;36374:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;36152:256::o;42145:109::-;1799:6;;-1:-1:-1;;;;;1799:6:0;682:10;1946:23;1938:68;;;;-1:-1:-1;;;1938:68:0;;;;;;;:::i;:::-;42220:26:::1;42232:3;42237:8;42220:11;:26::i;:::-;42145:109:::0;;:::o;25835:185::-;25973:39;25990:4;25996:2;26000:7;25973:39;;;;;;;;;;;;:16;:39::i;36674:233::-;36749:7;36785:30;36572:10;:17;;36484:113;36785:30;36777:5;:38;36769:95;;;;-1:-1:-1;;;36769:95:0;;12274:2:1;36769:95:0;;;12256:21:1;12313:2;12293:18;;;12286:30;12352:34;12332:18;;;12325:62;-1:-1:-1;;;12403:18:1;;;12396:42;12455:19;;36769:95:0;12246:234:1;36769:95:0;36882:10;36893:5;36882:17;;;;;;;;:::i;:::-;;;;;;;;;36875:24;;36674:233;;;:::o;22670:239::-;22742:7;22778:16;;;:7;:16;;;;;;-1:-1:-1;;;;;22778:16:0;22813:19;22805:73;;;;-1:-1:-1;;;22805:73:0;;9083:2:1;22805:73:0;;;9065:21:1;9122:2;9102:18;;;9095:30;9161:34;9141:18;;;9134:62;-1:-1:-1;;;9212:18:1;;;9205:39;9261:19;;22805:73:0;9055:231:1;22400:208:0;22472:7;-1:-1:-1;;;;;22500:19:0;;22492:74;;;;-1:-1:-1;;;22492:74:0;;8672:2:1;22492:74:0;;;8654:21:1;8711:2;8691:18;;;8684:30;8750:34;8730:18;;;8723:62;-1:-1:-1;;;8801:18:1;;;8794:40;8851:19;;22492:74:0;8644:232:1;22492:74:0;-1:-1:-1;;;;;;22584:16:0;;;;;:9;:16;;;;;;;22400:208::o;2377:94::-;1799:6;;-1:-1:-1;;;;;1799:6:0;682:10;1946:23;1938:68;;;;-1:-1:-1;;;1938:68:0;;;;;;;:::i;:::-;2442:21:::1;2460:1;2442:9;:21::i;:::-;2377:94::o:0;23145:104::-;23201:13;23234:7;23227:14;;;;;:::i;24828:295::-;-1:-1:-1;;;;;24931:24:0;;682:10;24931:24;;24923:62;;;;-1:-1:-1;;;24923:62:0;;7480:2:1;24923:62:0;;;7462:21:1;7519:2;7499:18;;;7492:30;7558:27;7538:18;;;7531:55;7603:18;;24923:62:0;7452:175:1;24923:62:0;682:10;24998:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;24998:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;24998:53:0;;;;;;;;;;25067:48;;5002:41:1;;;24998:42:0;;682:10;25067:48;;4975:18:1;25067:48:0;;;;;;;24828:295;;:::o;26091:328::-;26266:41;682:10;26299:7;26266:18;:41::i;:::-;26258:103;;;;-1:-1:-1;;;26258:103:0;;;;;;;:::i;:::-;26372:39;26386:4;26392:2;26396:7;26405:5;26372:13;:39::i;:::-;26091:328;;;;:::o;23320:334::-;27994:4;28018:16;;;:7;:16;;;;;;23393:13;;-1:-1:-1;;;;;28018:16:0;23419:76;;;;-1:-1:-1;;;23419:76:0;;11038:2:1;23419:76:0;;;11020:21:1;11077:2;11057:18;;;11050:30;11116:34;11096:18;;;11089:62;-1:-1:-1;;;11167:18:1;;;11160:45;11222:19;;23419:76:0;11010:237:1;23419:76:0;23508:21;23532:10;42348:16;;;;;;;;;;;;-1:-1:-1;;;42348:16:0;;;;;42262:110;23532:10;23508:34;;23584:1;23566:7;23560:21;:25;:86;;;;;;;;;;;;;;;;;23612:7;23621:18;:7;:16;:18::i;:::-;23595:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;23560:86;23553:93;23320:334;-1:-1:-1;;;23320:334:0:o;2626:192::-;1799:6;;-1:-1:-1;;;;;1799:6:0;682:10;1946:23;1938:68;;;;-1:-1:-1;;;1938:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;2715:22:0;::::1;2707:73;;;::::0;-1:-1:-1;;;2707:73:0;;6311:2:1;2707:73:0::1;::::0;::::1;6293:21:1::0;6350:2;6330:18;;;6323:30;6389:34;6369:18;;;6362:62;-1:-1:-1;;;6440:18:1;;;6433:36;6486:19;;2707:73:0::1;6283:228:1::0;2707:73:0::1;2791:19;2801:8;2791:9;:19::i;:::-;2626:192:::0;:::o;22031:305::-;22133:4;-1:-1:-1;;;;;;22170:40:0;;-1:-1:-1;;;22170:40:0;;:105;;-1:-1:-1;;;;;;;22227:48:0;;-1:-1:-1;;;22227:48:0;22170:105;:158;;;-1:-1:-1;;;;;;;;;;14560:40:0;;;22292:36;14451:157;31911:174;31986:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;31986:29:0;-1:-1:-1;;;;;31986:29:0;;;;;;;;:24;;32040:23;31986:24;32040:14;:23::i;:::-;-1:-1:-1;;;;;32031:46:0;;;;;;;;;;;31911:174;;:::o;28223:348::-;28316:4;28018:16;;;:7;:16;;;;;;-1:-1:-1;;;;;28018:16:0;28333:73;;;;-1:-1:-1;;;28333:73:0;;7834:2:1;28333:73:0;;;7816:21:1;7873:2;7853:18;;;7846:30;7912:34;7892:18;;;7885:62;-1:-1:-1;;;7963:18:1;;;7956:42;8015:19;;28333:73:0;7806:234:1;28333:73:0;28417:13;28433:23;28448:7;28433:14;:23::i;:::-;28417:39;;28486:5;-1:-1:-1;;;;;28475:16:0;:7;-1:-1:-1;;;;;28475:16:0;;:51;;;;28519:7;-1:-1:-1;;;;;28495:31:0;:20;28507:7;28495:11;:20::i;:::-;-1:-1:-1;;;;;28495:31:0;;28475:51;:87;;;-1:-1:-1;;;;;;25315:25:0;;;25291:4;25315:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;28530:32;28467:96;28223:348;-1:-1:-1;;;;28223:348:0:o;31215:578::-;31374:4;-1:-1:-1;;;;;31347:31:0;:23;31362:7;31347:14;:23::i;:::-;-1:-1:-1;;;;;31347:31:0;;31339:85;;;;-1:-1:-1;;;31339:85:0;;10628:2:1;31339:85:0;;;10610:21:1;10667:2;10647:18;;;10640:30;10706:34;10686:18;;;10679:62;-1:-1:-1;;;10757:18:1;;;10750:39;10806:19;;31339:85:0;10600:231:1;31339:85:0;-1:-1:-1;;;;;31443:16:0;;31435:65;;;;-1:-1:-1;;;31435:65:0;;7075:2:1;31435:65:0;;;7057:21:1;7114:2;7094:18;;;7087:30;7153:34;7133:18;;;7126:62;-1:-1:-1;;;7204:18:1;;;7197:34;7248:19;;31435:65:0;7047:226:1;31435:65:0;31513:39;31534:4;31540:2;31544:7;31513:20;:39::i;:::-;31617:29;31634:1;31638:7;31617:8;:29::i;:::-;-1:-1:-1;;;;;31659:15:0;;;;;;:9;:15;;;;;:20;;31678:1;;31659:15;:20;;31678:1;;31659:20;:::i;:::-;;;;-1:-1:-1;;;;;;;31690:13:0;;;;;;:9;:13;;;;;:18;;31707:1;;31690:13;:18;;31707:1;;31690:18;:::i;:::-;;;;-1:-1:-1;;31719:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;31719:21:0;-1:-1:-1;;;;;31719:21:0;;;;;;;;;31758:27;;31719:16;;31758:27;;;;;;;31215:578;;;:::o;29907:382::-;-1:-1:-1;;;;;29987:16:0;;29979:61;;;;-1:-1:-1;;;29979:61:0;;9493:2:1;29979:61:0;;;9475:21:1;;;9512:18;;;9505:30;9571:34;9551:18;;;9544:62;9623:18;;29979:61:0;9465:182:1;29979:61:0;27994:4;28018:16;;;:7;:16;;;;;;-1:-1:-1;;;;;28018:16:0;:30;30051:58;;;;-1:-1:-1;;;30051:58:0;;6718:2:1;30051:58:0;;;6700:21:1;6757:2;6737:18;;;6730:30;6796;6776:18;;;6769:58;6844:18;;30051:58:0;6690:178:1;30051:58:0;30122:45;30151:1;30155:2;30159:7;30122:20;:45::i;:::-;-1:-1:-1;;;;;30180:13:0;;;;;;:9;:13;;;;;:18;;30197:1;;30180:13;:18;;30197:1;;30180:18;:::i;:::-;;;;-1:-1:-1;;30209:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;30209:21:0;-1:-1:-1;;;;;30209:21:0;;;;;;;;30248:33;;30209:16;;;30248:33;;30209:16;;30248:33;29907:382;;:::o;2826:173::-;2901:6;;;-1:-1:-1;;;;;2918:17:0;;;-1:-1:-1;;;;;;2918:17:0;;;;;;;2951:40;;2901:6;;;2918:17;2901:6;;2951:40;;2882:16;;2951:40;2871:128;2826:173;:::o;27301:315::-;27458:28;27468:4;27474:2;27478:7;27458:9;:28::i;:::-;27505:48;27528:4;27534:2;27538:7;27547:5;27505:22;:48::i;:::-;27497:111;;;;-1:-1:-1;;;27497:111:0;;;;;;;:::i;11244:723::-;11300:13;11521:10;11517:53;;-1:-1:-1;;11548:10:0;;;;;;;;;;;;-1:-1:-1;;;11548:10:0;;;;;11244:723::o;11517:53::-;11595:5;11580:12;11636:78;11643:9;;11636:78;;11669:8;;;;:::i;:::-;;-1:-1:-1;11692:10:0;;-1:-1:-1;11700:2:0;11692:10;;:::i;:::-;;;11636:78;;;11724:19;11756:6;11746:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11746:17:0;;11724:39;;11774:154;11781:10;;11774:154;;11808:11;11818:1;11808:11;;:::i;:::-;;-1:-1:-1;11877:10:0;11885:2;11877:5;:10;:::i;:::-;11864:24;;:2;:24;:::i;:::-;11851:39;;11834:6;11841;11834:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;11834:56:0;;;;;;;;-1:-1:-1;11905:11:0;11914:2;11905:11;;:::i;:::-;;;11774:154;;37520:589;-1:-1:-1;;;;;37726:18:0;;37722:187;;37761:40;37793:7;38936:10;:17;;38909:24;;;;:15;:24;;;;;:44;;;38964:24;;;;;;;;;;;;38832:164;37761:40;37722:187;;;37831:2;-1:-1:-1;;;;;37823:10:0;:4;-1:-1:-1;;;;;37823:10:0;;37819:90;;37850:47;37883:4;37889:7;37850:32;:47::i;:::-;-1:-1:-1;;;;;37923:16:0;;37919:183;;37956:45;37993:7;37956:36;:45::i;37919:183::-;38029:4;-1:-1:-1;;;;;38023:10:0;:2;-1:-1:-1;;;;;38023:10:0;;38019:83;;38050:40;38078:2;38082:7;38050:27;:40::i;32650:799::-;32805:4;-1:-1:-1;;;;;32826:13:0;;4010:20;4058:8;32822:620;;32862:72;;-1:-1:-1;;;32862:72:0;;-1:-1:-1;;;;;32862:36:0;;;;;:72;;682:10;;32913:4;;32919:7;;32928:5;;32862:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32862:72:0;;;;;;;;-1:-1:-1;;32862:72:0;;;;;;;;;;;;:::i;:::-;;;32858:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33104:13:0;;33100:272;;33147:60;;-1:-1:-1;;;33147:60:0;;;;;;;:::i;33100:272::-;33322:6;33316:13;33307:6;33303:2;33299:15;33292:38;32858:529;-1:-1:-1;;;;;;32985:51:0;-1:-1:-1;;;32985:51:0;;-1:-1:-1;32978:58:0;;32822:620;-1:-1:-1;33426:4:0;32650:799;;;;;;:::o;39623:988::-;39889:22;39939:1;39914:22;39931:4;39914:16;:22::i;:::-;:26;;;;:::i;:::-;39951:18;39972:26;;;:17;:26;;;;;;39889:51;;-1:-1:-1;40105:28:0;;;40101:328;;-1:-1:-1;;;;;40172:18:0;;40150:19;40172:18;;;:12;:18;;;;;;;;:34;;;;;;;;;40223:30;;;;;;:44;;;40340:30;;:17;:30;;;;;:43;;;40101:328;-1:-1:-1;40525:26:0;;;;:17;:26;;;;;;;;40518:33;;;-1:-1:-1;;;;;40569:18:0;;;;;:12;:18;;;;;:34;;;;;;;40562:41;39623:988::o;40906:1079::-;41184:10;:17;41159:22;;41184:21;;41204:1;;41184:21;:::i;:::-;41216:18;41237:24;;;:15;:24;;;;;;41610:10;:26;;41159:46;;-1:-1:-1;41237:24:0;;41159:46;;41610:26;;;;;;:::i;:::-;;;;;;;;;41588:48;;41674:11;41649:10;41660;41649:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;41754:28;;;:15;:28;;;;;;;:41;;;41926:24;;;;;41919:31;41961:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;40977:1008;;;40906:1079;:::o;38410:221::-;38495:14;38512:20;38529:2;38512:16;:20::i;:::-;-1:-1:-1;;;;;38543:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;38588:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;38410:221:0:o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:2;;;320:1;317;310:12;272:2;343:29;362:9;343:29;:::i;383:260::-;451:6;459;512:2;500:9;491:7;487:23;483:32;480:2;;;528:1;525;518:12;480:2;551:29;570:9;551:29;:::i;:::-;541:39;;599:38;633:2;622:9;618:18;599:38;:::i;:::-;589:48;;470:173;;;;;:::o;648:328::-;725:6;733;741;794:2;782:9;773:7;769:23;765:32;762:2;;;810:1;807;800:12;762:2;833:29;852:9;833:29;:::i;:::-;823:39;;881:38;915:2;904:9;900:18;881:38;:::i;:::-;871:48;;966:2;955:9;951:18;938:32;928:42;;752:224;;;;;:::o;981:1138::-;1076:6;1084;1092;1100;1153:3;1141:9;1132:7;1128:23;1124:33;1121:2;;;1170:1;1167;1160:12;1121:2;1193:29;1212:9;1193:29;:::i;:::-;1183:39;;1241:38;1275:2;1264:9;1260:18;1241:38;:::i;:::-;1231:48;;1326:2;1315:9;1311:18;1298:32;1288:42;;1381:2;1370:9;1366:18;1353:32;1404:18;1445:2;1437:6;1434:14;1431:2;;;1461:1;1458;1451:12;1431:2;1499:6;1488:9;1484:22;1474:32;;1544:7;1537:4;1533:2;1529:13;1525:27;1515:2;;1566:1;1563;1556:12;1515:2;1602;1589:16;1624:2;1620;1617:10;1614:2;;;1630:18;;:::i;:::-;1705:2;1699:9;1673:2;1759:13;;-1:-1:-1;;1755:22:1;;;1779:2;1751:31;1747:40;1735:53;;;1803:18;;;1823:22;;;1800:46;1797:2;;;1849:18;;:::i;:::-;1889:10;1885:2;1878:22;1924:2;1916:6;1909:18;1964:7;1959:2;1954;1950;1946:11;1942:20;1939:33;1936:2;;;1985:1;1982;1975:12;1936:2;2041;2036;2032;2028:11;2023:2;2015:6;2011:15;1998:46;2086:1;2081:2;2076;2068:6;2064:15;2060:24;2053:35;2107:6;2097:16;;;;;;;1111:1008;;;;;;;:::o;2124:347::-;2189:6;2197;2250:2;2238:9;2229:7;2225:23;2221:32;2218:2;;;2266:1;2263;2256:12;2218:2;2289:29;2308:9;2289:29;:::i;:::-;2279:39;;2368:2;2357:9;2353:18;2340:32;2415:5;2408:13;2401:21;2394:5;2391:32;2381:2;;2437:1;2434;2427:12;2381:2;2460:5;2450:15;;;2208:263;;;;;:::o;2476:254::-;2544:6;2552;2605:2;2593:9;2584:7;2580:23;2576:32;2573:2;;;2621:1;2618;2611:12;2573:2;2644:29;2663:9;2644:29;:::i;:::-;2634:39;2720:2;2705:18;;;;2692:32;;-1:-1:-1;;;2563:167:1:o;2735:245::-;2793:6;2846:2;2834:9;2825:7;2821:23;2817:32;2814:2;;;2862:1;2859;2852:12;2814:2;2901:9;2888:23;2920:30;2944:5;2920:30;:::i;2985:249::-;3054:6;3107:2;3095:9;3086:7;3082:23;3078:32;3075:2;;;3123:1;3120;3113:12;3075:2;3155:9;3149:16;3174:30;3198:5;3174:30;:::i;3239:180::-;3298:6;3351:2;3339:9;3330:7;3326:23;3322:32;3319:2;;;3367:1;3364;3357:12;3319:2;-1:-1:-1;3390:23:1;;3309:110;-1:-1:-1;3309:110:1:o;3424:257::-;3465:3;3503:5;3497:12;3530:6;3525:3;3518:19;3546:63;3602:6;3595:4;3590:3;3586:14;3579:4;3572:5;3568:16;3546:63;:::i;:::-;3663:2;3642:15;-1:-1:-1;;3638:29:1;3629:39;;;;3670:4;3625:50;;3473:208;-1:-1:-1;;3473:208:1:o;3686:470::-;3865:3;3903:6;3897:13;3919:53;3965:6;3960:3;3953:4;3945:6;3941:17;3919:53;:::i;:::-;4035:13;;3994:16;;;;4057:57;4035:13;3994:16;4091:4;4079:17;;4057:57;:::i;:::-;4130:20;;3873:283;-1:-1:-1;;;;3873:283:1:o;4369:488::-;-1:-1:-1;;;;;4638:15:1;;;4620:34;;4690:15;;4685:2;4670:18;;4663:43;4737:2;4722:18;;4715:34;;;4785:3;4780:2;4765:18;;4758:31;;;4563:4;;4806:45;;4831:19;;4823:6;4806:45;:::i;:::-;4798:53;4572:285;-1:-1:-1;;;;;;4572:285:1:o;5054:219::-;5203:2;5192:9;5185:21;5166:4;5223:44;5263:2;5252:9;5248:18;5240:6;5223:44;:::i;5690:414::-;5892:2;5874:21;;;5931:2;5911:18;;;5904:30;5970:34;5965:2;5950:18;;5943:62;-1:-1:-1;;;6036:2:1;6021:18;;6014:48;6094:3;6079:19;;5864:240::o;10065:356::-;10267:2;10249:21;;;10286:18;;;10279:30;10345:34;10340:2;10325:18;;10318:62;10412:2;10397:18;;10239:182::o;11654:413::-;11856:2;11838:21;;;11895:2;11875:18;;;11868:30;11934:34;11929:2;11914:18;;11907:62;-1:-1:-1;;;12000:2:1;11985:18;;11978:47;12057:3;12042:19;;11828:239::o;12667:128::-;12707:3;12738:1;12734:6;12731:1;12728:13;12725:2;;;12744:18;;:::i;:::-;-1:-1:-1;12780:9:1;;12715:80::o;12800:120::-;12840:1;12866;12856:2;;12871:18;;:::i;:::-;-1:-1:-1;12905:9:1;;12846:74::o;12925:125::-;12965:4;12993:1;12990;12987:8;12984:2;;;12998:18;;:::i;:::-;-1:-1:-1;13035:9:1;;12974:76::o;13055:258::-;13127:1;13137:113;13151:6;13148:1;13145:13;13137:113;;;13227:11;;;13221:18;13208:11;;;13201:39;13173:2;13166:10;13137:113;;;13268:6;13265:1;13262:13;13259:2;;;-1:-1:-1;;13303:1:1;13285:16;;13278:27;13108:205::o;13318:380::-;13397:1;13393:12;;;;13440;;;13461:2;;13515:4;13507:6;13503:17;13493:27;;13461:2;13568;13560:6;13557:14;13537:18;13534:38;13531:2;;;13614:10;13609:3;13605:20;13602:1;13595:31;13649:4;13646:1;13639:15;13677:4;13674:1;13667:15;13531:2;;13373:325;;;:::o;13703:135::-;13742:3;-1:-1:-1;;13763:17:1;;13760:2;;;13783:18;;:::i;:::-;-1:-1:-1;13830:1:1;13819:13;;13750:88::o;13843:112::-;13875:1;13901;13891:2;;13906:18;;:::i;:::-;-1:-1:-1;13940:9:1;;13881:74::o;13960:127::-;14021:10;14016:3;14012:20;14009:1;14002:31;14052:4;14049:1;14042:15;14076:4;14073:1;14066:15;14092:127;14153:10;14148:3;14144:20;14141:1;14134:31;14184:4;14181:1;14174:15;14208:4;14205:1;14198:15;14224:127;14285:10;14280:3;14276:20;14273:1;14266:31;14316:4;14313:1;14306:15;14340:4;14337:1;14330:15;14356:127;14417:10;14412:3;14408:20;14405:1;14398:31;14448:4;14445:1;14438:15;14472:4;14469:1;14462:15;14488:127;14549:10;14544:3;14540:20;14537:1;14530:31;14580:4;14577:1;14570:15;14604:4;14601:1;14594:15;14620:131;-1:-1:-1;;;;;;14694:32:1;;14684:43;;14674:2;;14741:1;14738;14731:12
Swarm Source
ipfs://fdbeb25b2ca73d54479abae2ed56b78f2eb6857cc21415b1761c5bc1bd0d7e16
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.