contract_name stringlengths 1 61 | file_path stringlengths 5 50.4k | contract_address stringlengths 42 42 | language stringclasses 1
value | class_name stringlengths 1 61 | class_code stringlengths 4 330k | class_documentation stringlengths 0 29.1k | class_documentation_type stringclasses 6
values | func_name stringlengths 0 62 | func_code stringlengths 1 303k | func_documentation stringlengths 2 14.9k | func_documentation_type stringclasses 4
values | compiler_version stringlengths 15 42 | license_type stringclasses 14
values | swarm_source stringlengths 0 71 | meta dict | __index_level_0__ int64 0 60.4k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | IERC721 | 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.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool _approved) external;
| /**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
3587,
3662
]
} | 26,900 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | IERC721 | 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.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator) external view returns (bool);
| /**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
3813,
3906
]
} | 26,901 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | IERC721 | 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.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
| /**
* @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 {appro... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
4483,
4630
]
} | 26,902 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | IERC721Metadata | 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... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | name | function name() external view returns (string memory);
| /**
* @dev Returns the token collection name.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
106,
165
]
} | 26,903 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | IERC721Metadata | 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... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the token collection symbol.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
236,
297
]
} | 26,904 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | IERC721Metadata | 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... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId) external view returns (string memory);
| /**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
398,
476
]
} | 26,905 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Address | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | 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)
... | /**
* @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:
... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
606,
998
]
} | 26,906 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Address | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | 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 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 `tr... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
1928,
2250
]
} | 26,907 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Address | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @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... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
3007,
3187
]
} | 26,908 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Address | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | 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 with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
3412,
3646
]
} | 26,909 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Address | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | 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-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._
*... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
4016,
4281
]
} | 26,910 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Address | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | 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");... | /**
* @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._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
4532,
5047
]
} | 26,911 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Address | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | 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-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
5227,
5431
]
} | 26,912 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Address | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | 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 verifyCallRe... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
5618,
6018
]
} | 26,913 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Address | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | 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-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
6200,
6405
]
} | 26,914 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Address | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | 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 verifyCallR... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
6594,
6995
]
} | 26,915 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Address | 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 ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | verifyCallResult | 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) {
... | /**
* @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._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
7218,
7935
]
} | 26,916 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Strings | 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 ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toString | 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 ... | /**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
184,
912
]
} | 26,917 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Strings | 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 ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toHexString | 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.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
1017,
1362
]
} | 26,918 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Strings | 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 ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toHexString | 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;
}
... | /**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
1485,
1941
]
} | 26,919 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC165 | 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 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 interface... | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
103,
265
]
} | 26,920 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | 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 {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
971,
1281
]
} | 26,921 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | 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-balanceOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
1340,
1553
]
} | 26,922 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | 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 {IERC721-ownerOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
1610,
1854
]
} | 26,923 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev See {IERC721Metadata-name}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
1916,
2021
]
} | 26,924 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev See {IERC721Metadata-symbol}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
2085,
2194
]
} | 26,925 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | 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 See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
2260,
2599
]
} | 26,926 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _baseURI | function _baseURI() internal view virtual returns (string memory) {
return "";
}
| /**
* @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.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
2842,
2941
]
} | 26,927 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | 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... | /**
* @dev See {IERC721-approve}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
2998,
3414
]
} | 26,928 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | 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-getApproved}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
3475,
3701
]
} | 26,929 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | 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-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
3768,
4068
]
} | 26,930 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
| /**
* @dev See {IERC721-isApprovedForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
4134,
4303
]
} | 26,931 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | 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-transferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
4365,
4709
]
} | 26,932 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
4775,
4965
]
} | 26,933 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | 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 See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
5031,
5364
]
} | 26,934 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _safeTransfer | 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 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 eq... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
6241,
6561
]
} | 26,935 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _exists | function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
| /**
* @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`).
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
6869,
7001
]
} | 26,936 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _isApprovedOrOwner | 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, s... | /**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
7163,
7516
]
} | 26,937 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _safeMint | function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
| /**
* @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.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
7853,
7968
]
} | 26,938 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _safeMint | 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 Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
8190,
8516
]
} | 26,939 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _mint | 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 Tra... | /**
* @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.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
8847,
9234
]
} | 26,940 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _burn | 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), toke... | /**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
9458,
9823
]
} | 26,941 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _transfer | 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);
//... | /**
* @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.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
10155,
10738
]
} | 26,942 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _approve | function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
| /**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
10851,
11030
]
} | 26,943 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _checkOnERC721Received | 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 == IERC721... | /**
* @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 to... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
11590,
12394
]
} | 26,944 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | ERC721 | 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 _ow... | /**
* @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}.
*/ | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
| /**
* @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, ``... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
12961,
13092
]
} | 26,945 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | IPresaleInfo | interface IPresaleInfo {
//----------------------------------------
// 登録確認されているか?
//----------------------------------------
function isRegistered( address user ) external view returns (bool);
} | //import "./IPresaleInfo.sol";
//-----------------------------------------------------------------------
// 事前販売情報:インターフェイス
//----------------------------------------------------------------------- | LineComment | isRegistered | function isRegistered( address user ) external view returns (bool);
| //----------------------------------------
// 登録確認されているか?
//---------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
142,
214
]
} | 26,946 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | isSaleAvailable | function isSaleAvailable() public view returns (bool) {
// フェーズが無効
if( _sale_phase < ID_PHASE_1ST || _sale_phase > ID_PHASE_3RD ){
return( false );
}
// 一時停止中
if( _sale_suspended ){
return( false );
}
// 開始前
if( _sale_start > block.timestamp ){
retu... | //---------------------------------------------------
// [public] 一般販売が利用可能か?
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
3153,
3736
]
} | 26,947 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | mintTokens | function mintTokens( uint256 num ) external payable {
// 購入可能か?
require( isSaleAvailable(), "sale: not available" );
// 試行回数は有効か?
require( num > 0 && num <= PUBLIC_SALE_MAX_SHOT, "sale: invalid num" );
// 残りはあるか?
require( _arr_num_mintable[_sale_phase] >= (_arr_num_minted[_sale_phase]+... | //--------------------------------------------
// [external] 一般販売
//-------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
3871,
4711
]
} | 26,948 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | isPresaleAvailable | function isPresaleAvailable() public view returns (bool) {
// フェーズが無効
if( _sale_phase < ID_PHASE_1ST || _sale_phase > ID_PHASE_3RD ){
return( false );
}
// 一時停止中
if( _presale_suspended ){
return( false );
}
// 開始前
if( _presale_start > block.timestamp ){
... | //---------------------------------------------------
// [public] 事前販売が利用可能か?
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
4861,
5462
]
} | 26,949 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | isRegisteredUser | function isRegisteredUser( address user ) public view returns (bool) {
for( uint256 i=0; i<_presale_infos.length; i++ ){
if( _presale_infos[i].isRegistered( user ) ){
return( true );
}
}
return( false );
}
| //---------------------------------------------------
// [public] 事前登録済みのユーザーか?
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
5614,
5901
]
} | 26,950 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | mintTokensForPresale | function mintTokensForPresale( uint256 num ) external payable {
// 購入可能か?
require( isPresaleAvailable(), "pre-sale: not available" );
// 事前登録に登録しているか?
require( isRegisteredUser(msg.sender), "pre-sale: not registered" );
// 試行回数は有効か?
require( num > 0 && num <= PRE_SALE_MAX_SHOT, "pre-sa... | //--------------------------------------------
// [external] 事前販売
//-------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
6036,
7758
]
} | 26,951 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | giveawayTokens | function giveawayTokens( address[] calldata users ) external onlyOwner {
// 発行上限未満か?
require( users.length > 0 && _arr_num_mintable[ID_PHASE_GA] >= (_arr_num_minted[ID_PHASE_GA]+users.length), "giveaway: invalid length" );
// 用心
for( uint256 i=0; i<users.length; i++ ){
require( users[i] !... | //--------------------------------------------
// [external/onlyOwner] トークンのgiveaway
//-------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
7912,
8624
]
} | 26,952 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | accountant | function accountant() external view returns (address) {
return( _accountant );
}
| //--------------------------------------------------------
// [external] 引き出せるアカウントの確認
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
8788,
8887
]
} | 26,953 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | setaAccountant | function setaAccountant( address target ) external onlyOwner {
_accountant = target;
}
| //--------------------------------------------------------
// [external/onlyOwner] 引き出せるアカウントの設定
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
9061,
9166
]
} | 26,954 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | idOffsetAt | function idOffsetAt( uint256 id ) external view returns (uint256) { return( _arr_id_offset[id] ); }
| //--------------------------------------------------------
// [external] 各種確認
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
9321,
9425
]
} | 26,955 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | totalMintable | function totalMintable() external view returns (uint256) {
uint256 mintable = 0;
for( uint256 i=0; i<ID_PHASE_MAX; i++ ){
mintable += _arr_num_mintable[i];
}
return( mintable );
}
| //--------------------------------------------------------
// [external] 発行可能数の確認
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
9802,
10040
]
} | 26,956 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | totalMinted | function totalMinted() external view returns (uint256) {
uint256 minted = 0;
for( uint256 i=0; i<ID_PHASE_MAX; i++ ){
minted += _arr_num_minted[i];
}
return( minted );
}
| //--------------------------------------------------------
// [external] 発行数の確認
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
10197,
10425
]
} | 26,957 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | baseUrlAt | function baseUrlAt( uint256 at ) external view returns (string memory) {
return( _arr_base_url[at] );
}
| //--------------------------------------------------------
// [external] _base_url の確認
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
10589,
10711
]
} | 26,958 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | setBaseUrlAt | function setBaseUrlAt( uint256 at, string calldata url ) external onlyOwner {
_arr_base_url[at] = url;
}
| //--------------------------------------------------------
// [external/onlyOwner] _base_url の設定
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
10885,
11008
]
} | 26,959 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | repairedUrl | function repairedUrl( uint256 tokenId ) public view returns (string memory) {
require( _exists( tokenId ), "nonexistent token" );
return( _repaired_urls[tokenId] );
}
| //---------------------------------------------------
// [public] 修復されたURLの確認
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
11158,
11354
]
} | 26,960 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | repairUrl | function repairUrl( uint256 tokenId, string calldata url ) external onlyOwner {
require( _exists( tokenId ), "nonexistent token" );
_repaired_urls[tokenId] = url;
}
| //---------------------------------------------------
// [external/onlyOwner] メタデータのURLの修復
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
11517,
11711
]
} | 26,961 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | tokenURI | function tokenURI( uint256 tokenId ) public view override returns (string memory) {
require( _exists( tokenId ), "nonexistent token" );
// 修復データがあれば
string memory url = repairedUrl( tokenId );
if( bytes(url).length > 0 ){
return( url );
}
uint256 at = ID_PHASE_MAX;
for( u... | //----------------------------------------------
// [public] tokenURI
//---------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
11848,
12652
]
} | 26,962 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | setSale | function setSale( uint256 phase, uint256 saleP, uint256 saleF, uint256 saleT, uint256 presaleP, uint256 presaleF, uint256 presaleT, address[] calldata arrInfo ) external onlyOwner {
_sale_phase = phase;
_sale_price = saleP;
_sale_start = saleF;
_sale_end = saleT;
_presale_price = presaleP;
... | //---------------------------------------------------
// [external/onlyOwner] 販売設定
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
12807,
13389
]
} | 26,963 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | salePhase | function salePhase() external view returns (uint256) { return(_sale_phase); }
| //---------------------------------------------------
// [external] 設定確認
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
13534,
13616
]
} | 26,964 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | saleInfo | function saleInfo() external view returns (uint256[12] memory) {
require( _sale_phase >= ID_PHASE_1ST && _sale_phase <= ID_PHASE_3RD, "invalid phase" );
uint256[12] memory info;
// 状況
info[0] = _sale_phase;
info[1] = _arr_id_offset[_sale_phase];
info[2] = _arr_num_mintable[_sale_phase]... | //---------------------------------------------------
// [external] 情報の一括取得(フロント向け)
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
14881,
15700
]
} | 26,965 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | suspendSale | function suspendSale( bool flag ) external onlyOwner { _sale_suspended = flag; }
| //---------------------------------------------------
// [external/onlyOwner] 販売停止
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
15855,
15940
]
} | 26,966 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | saleSuspended | function saleSuspended() external view returns (bool) { return( _sale_suspended ); }
| //---------------------------------------------------
// [external] 販売状況の確認
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
16180,
16269
]
} | 26,967 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | suspendStake | function suspendStake( bool flag ) external onlyOwner { _stake_suspended = flag; }
| //---------------------------------------------------
// [external/onlyOwner] ステークキングの停止
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
16526,
16613
]
} | 26,968 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | stakeSuspended | function stakeSuspended() external view returns (bool) { return( _stake_suspended ); }
| //---------------------------------------------------
// [external] ステーキング状況の確認
//--------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
16857,
16948
]
} | 26,969 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | stakeTokens | function stakeTokens( uint256[] calldata tokenIds ) external {
require( !_stake_suspended, "stake: not available" );
// 確認
for( uint256 i=0; i<tokenIds.length; i++ ){
require( _exists(tokenIds[i]), "stake: nonexistent token" );
require( ownerOf(tokenIds[i]) == msg.sender, "stake: not ... | //--------------------------------------------------------
// [external] NFTのステーク
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
17203,
18026
]
} | 26,970 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | unstakeTokens | function unstakeTokens( uint256[] calldata tokenIds ) external {
require( !_unstake_suspended, "unstake: not available" );
// 確認
for( uint256 i=0; i<tokenIds.length; i++ ){
require( _exists(tokenIds[i]), "unstake: nonexistent token" );
require( _token_to_stake_holder[tokenIds[i]] == m... | //--------------------------------------------------------
// [external] NFTのアンステーク
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
18187,
19024
]
} | 26,971 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | checkStakeHolder | function checkStakeHolder( uint256 tokenId ) external view returns (address) {
require( _exists(tokenId), "nonexistent token" );
return( _token_to_stake_holder[tokenId] );
}
| //--------------------------------------------------------
// [external] トークンをステークしているアドレスの確認
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
19195,
19398
]
} | 26,972 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | checkBalance | function checkBalance() external view returns (uint256) {
return( address(this).balance );
}
| //--------------------------------------------------------
// [external] 残高の確認
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
19554,
19665
]
} | 26,973 |
Token | Token.sol | 0x8ab1f4e0f5e7ed415ac9ba22898d7bfb1726e34d | Solidity | Token | contract Token is Ownable, ERC721{
//----------------------------------------------
// Events
//----------------------------------------------
event TokenStake( address indexed holder, uint256 indexed tokenId );
event TokenUnstake( address indexed holder, uint256 indexed tokenId );
//---... | //-------------------
// トークン
//------------------- | LineComment | withdraw | function withdraw( uint256 amount ) external {
require( msg.sender == _accountant, "not accountant" );
require( amount <= address(this).balance, "insufficient balance" );
address payable target = payable( msg.sender );
target.transfer( amount );
}
| //--------------------------------------------------------
// [external/onlyAccountant] 引き出し
//-------------------------------------------------------- | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://cd16db3839bcf85336a99be100cdbd196327d72df67a466d5433d90c9da625dd | {
"func_code_index": [
19835,
20130
]
} | 26,974 |
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
94,
154
]
} | 26,975 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
237,
310
]
} | 26,976 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
534,
616
]
} | 26,977 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
895,
983
]
} | 26,978 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
1647,
1726
]
} | 26,979 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
2039,
2141
]
} | 26,980 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
259,
445
]
} | 26,981 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
723,
864
]
} | 26,982 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
1162,
1359
]
} | 26,983 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
1613,
2089
]
} | 26,984 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
2560,
2697
]
} | 26,985 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
3188,
3471
]
} | 26,986 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
3931,
4066
]
} | 26,987 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
4546,
4717
]
} | 26,988 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | Address | 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 ... | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @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:
... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
606,
1230
]
} | 26,989 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | Address | 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 ... | sendValue | 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... | /**
* @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 `tr... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
2160,
2562
]
} | 26,990 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | Address | 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 ... | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @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 ... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
3318,
3496
]
} | 26,991 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | Address | 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 ... | functionCall | 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 with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
3721,
3922
]
} | 26,992 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | Address | 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 ... | functionCallWithValue | 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-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._
*... | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
4292,
4523
]
} | 26,993 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | Address | 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 ... | functionCallWithValue | 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");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @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._
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
4774,
5095
]
} | 26,994 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | Ownable | 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 () {
address msgSender = _msgSender();
... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
488,
572
]
} | 26,995 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | Ownable | 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 () {
address msgSender = _msgSender();
... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @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.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
1130,
1283
]
} | 26,996 | ||
MemeMoney | MemeMoney.sol | 0x130742173f2db86c1a7e46328bd3456009be5078 | Solidity | Ownable | 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 () {
address msgSender = _msgSender();
... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.0+commit.c7dfd78e | None | ipfs://a7a0cd58a0b40010ea81547f52f5fb0c8bfaf56c1bb86577cacf460209f76589 | {
"func_code_index": [
1433,
1682
]
} | 26,997 | ||
RollupEventBridge | contracts/rollup/facets/IRollupFacets.sol | 0x5c7355e46d5486583a1cc211701e25004231d9dd | Solidity | IRollupAdmin | interface IRollupAdmin {
/**
* @notice Add a contract authorized to put messages into this rollup's inbox
* @param _outbox Outbox contract to add
*/
function setOutbox(IOutbox _outbox) external;
/**
* @notice Disable an old outbox from interacting with the bridge
* @param _outbox O... | setOutbox | function setOutbox(IOutbox _outbox) external;
| /**
* @notice Add a contract authorized to put messages into this rollup's inbox
* @param _outbox Outbox contract to add
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | {
"func_code_index": [
168,
217
]
} | 26,998 | ||||
RollupEventBridge | contracts/rollup/facets/IRollupFacets.sol | 0x5c7355e46d5486583a1cc211701e25004231d9dd | Solidity | IRollupAdmin | interface IRollupAdmin {
/**
* @notice Add a contract authorized to put messages into this rollup's inbox
* @param _outbox Outbox contract to add
*/
function setOutbox(IOutbox _outbox) external;
/**
* @notice Disable an old outbox from interacting with the bridge
* @param _outbox O... | removeOldOutbox | function removeOldOutbox(address _outbox) external;
| /**
* @notice Disable an old outbox from interacting with the bridge
* @param _outbox Outbox contract to remove
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | {
"func_code_index": [
353,
408
]
} | 26,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.