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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
184,
912
]
} | 21,400 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
1017,
1362
]
} | 21,401 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
1485,
1941
]
} | 21,402 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
606,
998
]
} | 21,403 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
1928,
2250
]
} | 21,404 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
3007,
3187
]
} | 21,405 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
3412,
3646
]
} | 21,406 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
4016,
4281
]
} | 21,407 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
4532,
5048
]
} | 21,408 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
5228,
5432
]
} | 21,409 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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 _verifyCallR... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
5619,
6020
]
} | 21,410 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
6202,
6407
]
} | 21,411 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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 _verifyCall... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
6596,
6998
]
} | 21,412 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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 | balanceOf | function balanceOf(address owner) external view returns (uint256 balance);
| /**
* @dev Returns the number of tokens in ``owner``'s account.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
719,
798
]
} | 21,413 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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 | ownerOf | function ownerOf(uint256 tokenId) external view returns (address owner);
| /**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
944,
1021
]
} | 21,414 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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
) external;
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token mus... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
1733,
1850
]
} | 21,415 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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 | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) external;
| /**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If th... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
2376,
2489
]
} | 21,416 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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 | approve | function approve(address to, uint256 tokenId) external;
| /**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
2962,
3022
]
} | 21,417 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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 | getApproved | function getApproved(uint256 tokenId) external view returns (address operator);
| /**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
3176,
3260
]
} | 21,418 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
3587,
3662
]
} | 21,419 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
3813,
3906
]
} | 21,420 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
4483,
4630
]
} | 21,421 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
106,
165
]
} | 21,422 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
236,
297
]
} | 21,423 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
398,
476
]
} | 21,424 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | IERC721Receiver | interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other valu... | /**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/ | NatSpecMultiLine | onERC721Received | function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
| /**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by ... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
528,
698
]
} | 21,425 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
971,
1281
]
} | 21,426 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
1340,
1553
]
} | 21,427 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
1610,
1854
]
} | 21,428 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
1916,
2021
]
} | 21,429 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
2085,
2194
]
} | 21,430 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
2260,
2599
]
} | 21,431 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
2842,
2941
]
} | 21,432 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
2998,
3414
]
} | 21,433 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
3475,
3701
]
} | 21,434 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
3768,
4068
]
} | 21,435 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
4134,
4303
]
} | 21,436 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
4365,
4709
]
} | 21,437 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
4775,
4965
]
} | 21,438 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
5031,
5364
]
} | 21,439 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
6241,
6561
]
} | 21,440 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
6869,
7001
]
} | 21,441 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
7163,
7516
]
} | 21,442 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
7853,
7968
]
} | 21,443 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
8190,
8516
]
} | 21,444 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
8847,
9234
]
} | 21,445 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
9458,
9823
]
} | 21,446 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
10155,
10738
]
} | 21,447 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
10851,
11030
]
} | 21,448 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
11590,
12398
]
} | 21,449 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | 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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
12965,
13096
]
} | 21,450 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | IERC721Enumerable | interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanc... | /**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the total amount of tokens stored by the contract.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
132,
192
]
} | 21,451 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | IERC721Enumerable | interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanc... | /**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | tokenOfOwnerByIndex | function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
| /**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
375,
479
]
} | 21,452 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | IERC721Enumerable | interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanc... | /**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | tokenByIndex | function tokenByIndex(uint256 index) external view returns (uint256);
| /**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
655,
729
]
} | 21,453 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
605,
834
]
} | 21,454 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | tokenOfOwnerByIndex | function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
| /**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
913,
1174
]
} | 21,455 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
| /**
* @dev See {IERC721Enumerable-totalSupply}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
1245,
1363
]
} | 21,456 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | tokenByIndex | function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
| /**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
1435,
1673
]
} | 21,457 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnume... | /**
* @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.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
2281,
2875
]
} | 21,458 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _addTokenToOwnerEnumeration | function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
| /**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
3171,
3397
]
} | 21,459 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _addTokenToAllTokensEnumeration | function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
| /**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
3593,
3762
]
} | 21,460 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _removeTokenFromOwnerEnumeration | function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 ... | /**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
4384,
5377
]
} | 21,461 |
GoobersNFT | GoobersNFT.sol | 0x000e49c87d2874431567d38ff9548890ab39baac | Solidity | ERC721Enumerable | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;... | /**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/ | NatSpecMultiLine | _removeTokenFromAllTokensEnumeration | function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allT... | /**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | MIT | ipfs://22a70dffc88ea6faf44177c0e26bca1dd5069cfd601f511bc148a3c6481cb48b | {
"func_code_index": [
5667,
6751
]
} | 21,462 |
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | initialize | function initialize(
address _underlyingToken,
string memory _name,
string memory _symbol,
IControllerInterface _controller,
IInterestRateModelInterface _interestRateModel
) external initializer {
_initialize(
_name,
_symbol,
ERC20(_underlyingToken).decimals(),
_c... | /**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core controller contract address.
* @param _interestRateModel Token interest rate model contract address.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
432,
917
]
} | 21,463 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | _doTransferIn | function _doTransferIn(address _spender, uint256 _amount)
internal
override
returns (uint256)
{
uint256 _balanceBefore = underlying.balanceOf(address(this));
underlying.safeTransferFrom(_spender, address(this), _amount);
return underlying.balanceOf(address(this)).sub(_balanceBefore);
}
| /**
* @notice In order to support deflationary token, returns the changed amount.
* @dev Similar to EIP20 transfer, except it handles a False result from `transferFrom`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
1111,
1457
]
} | 21,464 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | _doTransferOut | function _doTransferOut(address payable _recipient, uint256 _amount)
internal
override
{
underlying.safeTransfer(_recipient, _amount);
}
| /**
* @dev Similar to EIP20 transfer, except it handles a False result from `transfer`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
1564,
1736
]
} | 21,465 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | _getCurrentCash | function _getCurrentCash() internal view override returns (uint256) {
return underlying.balanceOf(address(this));
}
| /**
* @dev Gets balance of this contract in terms of the underlying
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
1823,
1954
]
} | 21,466 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | mint | function mint(address _recipient, uint256 _mintAmount)
external
nonReentrant
settleInterest
{
_mintInternal(_recipient, _mintAmount);
}
| /**
* @dev Caller deposits assets into the market and `_recipient` receives iToken in exchange.
* @param _recipient The account that would receive the iToken.
* @param _mintAmount The amount of the underlying token to deposit.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
2210,
2389
]
} | 21,467 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | redeem | function redeem(address _from, uint256 _redeemiToken)
external
nonReentrant
settleInterest
{
_redeemInternal(
_from,
_redeemiToken,
_redeemiToken.rmul(_exchangeRateInternal())
);
}
| /**
* @dev Caller redeems specified iToken from `_from` to get underlying token.
* @param _from The account that would burn the iToken.
* @param _redeemiToken The number of iToken to redeem.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
2609,
2877
]
} | 21,468 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | redeemUnderlying | function redeemUnderlying(address _from, uint256 _redeemUnderlying)
external
nonReentrant
settleInterest
{
_redeemInternal(
_from,
_redeemUnderlying.rdivup(_exchangeRateInternal()),
_redeemUnderlying
);
}
| /**
* @dev Caller redeems specified underlying from `_from` to get underlying token.
* @param _from The account that would burn the iToken.
* @param _redeemUnderlying The number of underlying to redeem.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
3109,
3401
]
} | 21,469 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | borrow | function borrow(uint256 _borrowAmount)
external
nonReentrant
settleInterest
{
_borrowInternal(msg.sender, _borrowAmount);
}
| /**
* @dev Caller borrows tokens from the protocol to their own address.
* @param _borrowAmount The amount of the underlying token to borrow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
3567,
3734
]
} | 21,470 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | repayBorrow | function repayBorrow(uint256 _repayAmount)
external
nonReentrant
settleInterest
{
_repayInternal(msg.sender, msg.sender, _repayAmount);
}
| /**
* @dev Caller repays their own borrow.
* @param _repayAmount The amount to repay.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
3844,
4025
]
} | 21,471 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | repayBorrowBehalf | function repayBorrowBehalf(address _borrower, uint256 _repayAmount)
external
nonReentrant
settleInterest
{
_repayInternal(msg.sender, _borrower, _repayAmount);
}
| /**
* @dev Caller repays a borrow belonging to borrower.
* @param _borrower the account with the debt being payed off.
* @param _repayAmount The amount to repay.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
4216,
4421
]
} | 21,472 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | liquidateBorrow | function liquidateBorrow(
address _borrower,
uint256 _repayAmount,
address _assetCollateral
) external nonReentrant settleInterest {
_liquidateBorrowInternal(_borrower, _repayAmount, _assetCollateral);
}
| /**
* @dev The caller liquidates the borrowers collateral.
* @param _borrower The account whose borrow should be liquidated.
* @param _assetCollateral The market in which to seize collateral from the borrower.
* @param _repayAmount The amount to repay.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
4708,
4955
]
} | 21,473 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | seize | function seize(
address _liquidator,
address _borrower,
uint256 _seizeTokens
) external override nonReentrant {
_seizeInternal(msg.sender, _liquidator, _borrower, _seizeTokens);
}
| /**
* @dev Transfers this tokens to the liquidator.
* @param _liquidator The account receiving seized collateral.
* @param _borrower The account having collateral seized.
* @param _seizeTokens The number of iTokens to seize.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
5214,
5437
]
} | 21,474 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | updateInterest | function updateInterest() external override returns (bool) {
_updateInterest();
return true;
}
| /**
* @notice Calculates interest and update total borrows and reserves.
* @dev Updates total borrows and reserves with any accumulated interest.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
5607,
5725
]
} | 21,475 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | exchangeRateCurrent | function exchangeRateCurrent() external returns (uint256) {
// Accrues interest.
_updateInterest();
return _exchangeRateInternal();
}
| /**
* @dev Gets the newest exchange rate by accruing interest.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
5807,
5973
]
} | 21,476 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | exchangeRateStored | function exchangeRateStored() external view override returns (uint256) {
return _exchangeRateInternal();
}
| /**
* @dev Calculates the exchange rate without accruing interest.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
6059,
6181
]
} | 21,477 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | balanceOfUnderlying | function balanceOfUnderlying(address _account) external returns (uint256) {
// Accrues interest.
_updateInterest();
return _exchangeRateInternal().rmul(balanceOf[_account]);
}
| /**
* @dev Gets the underlying balance of the `_account`.
* @param _account The address of the account to query.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
6318,
6526
]
} | 21,478 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | borrowBalanceCurrent | function borrowBalanceCurrent(address _account)
external
nonReentrant
returns (uint256)
{
// Accrues interest.
_updateInterest();
return _borrowBalanceInternal(_account);
}
| /**
* @dev Gets the user's borrow balance with the latest `borrowIndex`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
6618,
6851
]
} | 21,479 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | borrowBalanceStored | function borrowBalanceStored(address _account)
external
view
override
returns (uint256)
{
return _borrowBalanceInternal(_account);
}
| /**
* @dev Gets the borrow balance of user without accruing interest.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
6940,
7124
]
} | 21,480 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | borrowSnapshot | function borrowSnapshot(address _account)
external
view
returns (uint256, uint256)
{
return (
accountBorrows[_account].principal,
accountBorrows[_account].interestIndex
);
}
| /**
* @dev Gets user borrowing information.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
7187,
7436
]
} | 21,481 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | totalBorrowsCurrent | function totalBorrowsCurrent() external returns (uint256) {
// Accrues interest.
_updateInterest();
return totalBorrows;
}
| /**
* @dev Gets the current total borrows by accruing interest.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
7519,
7674
]
} | 21,482 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | borrowRatePerBlock | function borrowRatePerBlock() public view returns (uint256) {
return
interestRateModel.getBorrowRate(
_getCurrentCash(),
totalBorrows,
totalReserves
);
}
| /**
* @dev Returns the current per-block borrow interest rate.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
7756,
7997
]
} | 21,483 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | supplyRatePerBlock | function supplyRatePerBlock() external view returns (uint256) {
// `_underlyingScaled` is scaled by 1e36.
uint256 _underlyingScaled = totalSupply.mul(_exchangeRateInternal());
if (_underlyingScaled == 0) return 0;
uint256 _totalBorrowsScaled = totalBorrows.mul(BASE);
return
borrowRatePerBlo... | /**
* @dev Returns the current per-block supply interest rate.
* Calculates the supply rate:
* underlying = totalSupply × exchangeRate
* borrowsPer = totalBorrows ÷ underlying
* supplyRate = borrowRate × (1-reserveFactor) × borrowsPer
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
8275,
8754
]
} | 21,484 | ||
iToken | contracts/iToken.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | iToken | contract iToken is Base {
using SafeERC20Upgradeable for IERC20Upgradeable;
/**
* @notice Expects to call only once to initialize a new market.
* @param _underlyingToken The underlying token address.
* @param _name Token name.
* @param _symbol Token symbol.
* @param _controller Core co... | /**
* @title dForce's Lending Protocol Contract.
* @notice iTokens which wrap an EIP-20 underlying.
* @author dForce Team.
*/ | NatSpecMultiLine | getCash | function getCash() external view returns (uint256) {
return _getCurrentCash();
}
| /**
* @dev Get cash balance of this iToken in the underlying token.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
8841,
8937
]
} | 21,485 | ||
ERC721Tradable | openzeppelin-solidity/contracts/token/ERC721/ERC721Mintable.sol | 0xe9ea75cc93c5fca2e6aa2b7a4a74851694f54f78 | Solidity | ERC721Mintable | contract ERC721Mintable is ERC721, MinterRole {
/**
* @dev Function to mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(address to, uint256... | /**
* @title ERC721Mintable
* @dev ERC721 minting logic.
*/ | NatSpecMultiLine | mint | function mint(address to, uint256 tokenId) public onlyMinter returns (bool) {
_mint(to, tokenId);
return true;
}
| /**
* @dev Function to mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://f07f044543ee19931d394c63c7f477e36933cdb3ecac91663bb2f550d38ace63 | {
"func_code_index": [
283,
419
]
} | 21,486 |
ERC721Tradable | openzeppelin-solidity/contracts/token/ERC721/ERC721Mintable.sol | 0xe9ea75cc93c5fca2e6aa2b7a4a74851694f54f78 | Solidity | ERC721Mintable | contract ERC721Mintable is ERC721, MinterRole {
/**
* @dev Function to mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(address to, uint256... | /**
* @title ERC721Mintable
* @dev ERC721 minting logic.
*/ | NatSpecMultiLine | safeMint | function safeMint(address to, uint256 tokenId) public onlyMinter returns (bool) {
_safeMint(to, tokenId);
return true;
}
| /**
* @dev Function to safely mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://f07f044543ee19931d394c63c7f477e36933cdb3ecac91663bb2f550d38ace63 | {
"func_code_index": [
663,
807
]
} | 21,487 |
ERC721Tradable | openzeppelin-solidity/contracts/token/ERC721/ERC721Mintable.sol | 0xe9ea75cc93c5fca2e6aa2b7a4a74851694f54f78 | Solidity | ERC721Mintable | contract ERC721Mintable is ERC721, MinterRole {
/**
* @dev Function to mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(address to, uint256... | /**
* @title ERC721Mintable
* @dev ERC721 minting logic.
*/ | NatSpecMultiLine | safeMint | function safeMint(address to, uint256 tokenId, bytes memory _data) public onlyMinter returns (bool) {
_safeMint(to, tokenId, _data);
return true;
}
| /**
* @dev Function to safely mint tokens.
* @param to The address that will receive the minted token.
* @param tokenId The token id to mint.
* @param _data bytes data to send along with a safe transfer check.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | MIT | bzzr://f07f044543ee19931d394c63c7f477e36933cdb3ecac91663bb2f550d38ace63 | {
"func_code_index": [
1124,
1295
]
} | 21,488 |
iToken | contracts/library/ERC20.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | ERC20 | contract ERC20 {
using SafeMathUpgradeable for uint256;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
/**
* @dev Emitted ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | __ERC20_init | function __ERC20_init(
string memory name_,
string memory symbol_,
uint8 decimals_
) internal {
name = name_;
symbol = symbol_;
decimals = decimals_;
}
| /**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be set once during
* construction.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
1116,
1327
]
} | 21,489 | ||
iToken | contracts/library/ERC20.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | ERC20 | contract ERC20 {
using SafeMathUpgradeable for uint256;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
/**
* @dev Emitted ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount)
public
virtual
returns (bool)
{
_transfer(msg.sender, recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
1526,
1719
]
} | 21,490 | ||
iToken | contracts/library/ERC20.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | ERC20 | contract ERC20 {
using SafeMathUpgradeable for uint256;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
/**
* @dev Emitted ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | approve | function approve(address spender, uint256 amount)
public
virtual
returns (bool)
{
_approve(msg.sender, spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
1853,
2040
]
} | 21,491 | ||
iToken | contracts/library/ERC20.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | ERC20 | contract ERC20 {
using SafeMathUpgradeable for uint256;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
/**
* @dev Emitted ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | transferFrom | function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, msg.sender, allowance[sender][msg.sender].sub(amount));
return true;
}
| /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
2503,
2795
]
} | 21,492 | ||
iToken | contracts/library/ERC20.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | ERC20 | contract ERC20 {
using SafeMathUpgradeable for uint256;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
/**
* @dev Emitted ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue)
public
virtual
returns (bool)
{
_approve(
msg.sender,
spender,
allowance[msg.sender][spender].add(addedValue)
);
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be t... | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
3186,
3473
]
} | 21,493 | ||
iToken | contracts/library/ERC20.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | ERC20 | contract ERC20 {
using SafeMathUpgradeable for uint256;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
/**
* @dev Emitted ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue)
public
virtual
returns (bool)
{
_approve(
msg.sender,
spender,
allowance[msg.sender][spender].sub(subtractedValue)
);
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be t... | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
3956,
4253
]
} | 21,494 | ||
iToken | contracts/library/ERC20.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | ERC20 | contract ERC20 {
using SafeMathUpgradeable for uint256;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
/**
* @dev Emitted ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _transfer | function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
balanceOf[sender] = balanceOf[sender].sub(amount);
bala... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipie... | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
4723,
5187
]
} | 21,495 | ||
iToken | contracts/library/ERC20.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | ERC20 | contract ERC20 {
using SafeMathUpgradeable for uint256;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
/**
* @dev Emitted ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _mint | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
totalSupply = totalSupply.add(amount);
balanceOf[account] = balanceOf[account].add(amount);
emit Transfer(address(0), account, amount);
}
| /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
5454,
5766
]
} | 21,496 | ||
iToken | contracts/library/ERC20.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | ERC20 | contract ERC20 {
using SafeMathUpgradeable for uint256;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
/**
* @dev Emitted ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
balanceOf[account] = balanceOf[account].sub(amount);
totalSupply = totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
| /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
6082,
6396
]
} | 21,497 | ||
iToken | contracts/library/ERC20.sol | 0xe227d81da324136670e6203adf20306e48dc3112 | Solidity | ERC20 | contract ERC20 {
using SafeMathUpgradeable for uint256;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
/**
* @dev Emitted ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _approve | function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
allowance[owner][spender] = amount;
emit Approval(owner, spender... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | {
"func_code_index": [
6815,
7187
]
} | 21,498 | ||
ERC721Tradable | IFactoryERC721.sol | 0xe9ea75cc93c5fca2e6aa2b7a4a74851694f54f78 | Solidity | IFactoryERC721 | interface IFactoryERC721 {
function mintTo(address _to) external;
// function mint(uint256 _num, string calldata _defaultTokenURI) external;
function setConfig(string calldata _baseTokenURI,uint256 _stepNum,bool _canMint) external;
function getTokenURI(uint256 _tokenId) external view returns (string memor... | setConfig | function setConfig(string calldata _baseTokenURI,uint256 _stepNum,bool _canMint) external;
| // function mint(uint256 _num, string calldata _defaultTokenURI) external; | LineComment | v0.5.17+commit.d19bba13 | MIT | bzzr://f07f044543ee19931d394c63c7f477e36933cdb3ecac91663bb2f550d38ace63 | {
"func_code_index": [
150,
242
]
} | 21,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.