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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
528,
698
]
} | 13,600 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | IERC721Metadata | interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | name | function name() external view returns (string memory);
| /**
* @dev Returns the token collection name.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
106,
165
]
} | 13,601 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | IERC721Metadata | interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the token collection symbol.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
236,
297
]
} | 13,602 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | IERC721Metadata | interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId) external view returns (string memory);
| /**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
398,
476
]
} | 13,603 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
606,
998
]
} | 13,604 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
| /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
1928,
2250
]
} | 13,605 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
3007,
3187
]
} | 13,606 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
3412,
3646
]
} | 13,607 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
4016,
4281
]
} | 13,608 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");... | /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
4532,
5048
]
} | 13,609 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
5228,
5432
]
} | 13,610 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
5619,
6020
]
} | 13,611 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
6202,
6407
]
} | 13,612 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
6596,
6998
]
} | 13,613 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC165 | abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
} | /**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interface... | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
103,
265
]
} | 13,614 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
971,
1281
]
} | 13,615 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
| /**
* @dev See {IERC721-balanceOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
1340,
1553
]
} | 13,616 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | ownerOf | function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
| /**
* @dev See {IERC721-ownerOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
1610,
1854
]
} | 13,617 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev See {IERC721Metadata-name}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
1916,
2021
]
} | 13,618 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev See {IERC721Metadata-symbol}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
2085,
2194
]
} | 13,619 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
| /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
2260,
2599
]
} | 13,620 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _baseURI | function _baseURI() internal view virtual returns (string memory) {
return "";
}
| /**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
2842,
2941
]
} | 13,621 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | approve | function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor... | /**
* @dev See {IERC721-approve}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
2998,
3414
]
} | 13,622 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | getApproved | function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
| /**
* @dev See {IERC721-getApproved}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
3475,
3701
]
} | 13,623 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
| /**
* @dev See {IERC721-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
3768,
4068
]
} | 13,624 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
| /**
* @dev See {IERC721-isApprovedForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
4134,
4303
]
} | 13,625 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
| /**
* @dev See {IERC721-transferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
4365,
4709
]
} | 13,626 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
4775,
4965
]
} | 13,627 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
5031,
5364
]
} | 13,628 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeTransfer | function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is eq... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
6241,
6561
]
} | 13,629 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _exists | function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
| /**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
6869,
7001
]
} | 13,630 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _isApprovedOrOwner | function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, s... | /**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
7163,
7516
]
} | 13,631 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeMint | function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
| /**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
7853,
7968
]
} | 13,632 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeMint | function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
| /**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
8190,
8516
]
} | 13,633 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _mint | function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Tra... | /**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
8847,
9234
]
} | 13,634 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _burn | function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), toke... | /**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
9458,
9823
]
} | 13,635 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _transfer | function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
//... | /**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
10155,
10738
]
} | 13,636 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _approve | function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
| /**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
10851,
11030
]
} | 13,637 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _checkOnERC721Received | function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721... | /**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param to... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
11590,
12398
]
} | 13,638 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
| /**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
12965,
13096
]
} | 13,639 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
132,
192
]
} | 13,640 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
375,
479
]
} | 13,641 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
655,
729
]
} | 13,642 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
605,
834
]
} | 13,643 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
913,
1174
]
} | 13,644 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
1245,
1363
]
} | 13,645 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
1435,
1673
]
} | 13,646 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
2281,
2875
]
} | 13,647 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
3171,
3397
]
} | 13,648 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
3593,
3762
]
} | 13,649 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
4384,
5377
]
} | 13,650 |
LostPixels | LostPixels.sol | 0xa42cad2e9a408ba55dd73068f632f6b5c9a0fc8c | 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.7+commit.e28d00a7 | MIT | ipfs://20c8632140180f3fb35d73f6a3e78853c3c42f2710768e1f2452124bd7d16b75 | {
"func_code_index": [
5667,
6751
]
} | 13,651 |
MultiSDO | MultiSDO.sol | 0xf63b98516df86dacf10b3a33280f1dd4c2116112 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | bzzr://0de6d789fce2fc98f1975fe090a5c8c9d2440339e2279d35bdbc13679bc1a940 | {
"func_code_index": [
106,
581
]
} | 13,652 | |
MultiSDO | MultiSDO.sol | 0xf63b98516df86dacf10b3a33280f1dd4c2116112 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, "SafeMath: division by zero");
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | bzzr://0de6d789fce2fc98f1975fe090a5c8c9d2440339e2279d35bdbc13679bc1a940 | {
"func_code_index": [
711,
1049
]
} | 13,653 | |
MultiSDO | MultiSDO.sol | 0xf63b98516df86dacf10b3a33280f1dd4c2116112 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | bzzr://0de6d789fce2fc98f1975fe090a5c8c9d2440339e2279d35bdbc13679bc1a940 | {
"func_code_index": [
1182,
1371
]
} | 13,654 | |
MultiSDO | MultiSDO.sol | 0xf63b98516df86dacf10b3a33280f1dd4c2116112 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Adds two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | bzzr://0de6d789fce2fc98f1975fe090a5c8c9d2440339e2279d35bdbc13679bc1a940 | {
"func_code_index": [
1454,
1640
]
} | 13,655 | |
MultiSDO | MultiSDO.sol | 0xf63b98516df86dacf10b3a33280f1dd4c2116112 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
... | /**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0, "SafeMath: modulo by zero");
return a % b;
}
| /**
* @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.5.0+commit.1d4f565a | bzzr://0de6d789fce2fc98f1975fe090a5c8c9d2440339e2279d35bdbc13679bc1a940 | {
"func_code_index": [
1796,
1953
]
} | 13,656 | |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
165,
238
]
} | 13,657 | ||
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
462,
544
]
} | 13,658 | ||
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
823,
911
]
} | 13,659 | ||
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
1575,
1654
]
} | 13,660 | ||
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
1967,
2069
]
} | 13,661 | ||
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
259,
445
]
} | 13,662 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
723,
864
]
} | 13,663 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
1162,
1359
]
} | 13,664 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
1613,
2089
]
} | 13,665 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
2560,
2697
]
} | 13,666 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
3188,
3471
]
} | 13,667 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
3931,
4066
]
} | 13,668 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
4546,
4717
]
} | 13,669 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | Context | abstract contract Context {
//function _msgSender() internal view virtual returns (address payable) {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mut... | _msgSender | function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
| //function _msgSender() internal view virtual returns (address payable) { | LineComment | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
108,
211
]
} | 13,670 | ||
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | 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) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
606,
1230
]
} | 13,671 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | 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");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
2160,
2562
]
} | 13,672 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | 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.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
3318,
3498
]
} | 13,673 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | 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.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
3723,
3924
]
} | 13,674 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | 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.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
4294,
4525
]
} | 13,675 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | 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");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
4776,
5097
]
} | 13,676 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
488,
572
]
} | 13,677 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
1124,
1277
]
} | 13,678 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
1427,
1676
]
} | 13,679 |
DCNStudios | DCNStudios.sol | 0xf2586311cd368e2a8fde225e449531706663b217 | Solidity | DCNStudios | contract DCNStudios is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
modifier... | _tokenTransfer | function _tokenTransfer(address sender, address recipient, uint256 amount, bool takeFees, bool isSell) private {
doTakeFees = takeFees;
isSellTxn = isSell;
_transferStandard(sender, recipient, amount);
}
| //this method is responsible for taking all fee, if takeFee is true | LineComment | v0.8.13+commit.abaa5c0e | None | ipfs://16f5e6c5215240aac09f1a62ea489e5cde01fa71a69d2031c9963413107fa798 | {
"func_code_index": [
17433,
17673
]
} | 13,680 | ||
CumulativeMerkleDrop | contracts/interfaces/ICumulativeMerkleDrop.sol | 0xb686559bb45fcdb1f370836066ef9e9b4c2d9548 | Solidity | ICumulativeMerkleDrop | interface ICumulativeMerkleDrop {
// This event is triggered whenever a call to #setMerkleRoot succeeds.
event MerkelRootUpdated(bytes32 oldMerkleRoot, bytes32 newMerkleRoot);
// This event is triggered whenever a call to #claim succeeds.
event Claimed(address account, uint256 amount);
// Returns t... | // Allows anyone to claim a token if they exist in a merkle root. | LineComment | token | function token() external view returns (address);
| // Returns the address of the token distributed by this contract. | LineComment | v0.8.6+commit.11564f7e | {
"func_code_index": [
374,
427
]
} | 13,681 | ||
CumulativeMerkleDrop | contracts/interfaces/ICumulativeMerkleDrop.sol | 0xb686559bb45fcdb1f370836066ef9e9b4c2d9548 | Solidity | ICumulativeMerkleDrop | interface ICumulativeMerkleDrop {
// This event is triggered whenever a call to #setMerkleRoot succeeds.
event MerkelRootUpdated(bytes32 oldMerkleRoot, bytes32 newMerkleRoot);
// This event is triggered whenever a call to #claim succeeds.
event Claimed(address account, uint256 amount);
// Returns t... | // Allows anyone to claim a token if they exist in a merkle root. | LineComment | merkleRoot | function merkleRoot() external view returns (bytes32);
| // Returns the merkle root of the merkle tree containing cumulative account balances available to claim. | LineComment | v0.8.6+commit.11564f7e | {
"func_code_index": [
537,
595
]
} | 13,682 | ||
CumulativeMerkleDrop | contracts/interfaces/ICumulativeMerkleDrop.sol | 0xb686559bb45fcdb1f370836066ef9e9b4c2d9548 | Solidity | ICumulativeMerkleDrop | interface ICumulativeMerkleDrop {
// This event is triggered whenever a call to #setMerkleRoot succeeds.
event MerkelRootUpdated(bytes32 oldMerkleRoot, bytes32 newMerkleRoot);
// This event is triggered whenever a call to #claim succeeds.
event Claimed(address account, uint256 amount);
// Returns t... | // Allows anyone to claim a token if they exist in a merkle root. | LineComment | setMerkleRoot | function setMerkleRoot(bytes32 merkleRoot_) external;
| // Sets the merkle root of the merkle tree containing cumulative account balances available to claim. | LineComment | v0.8.6+commit.11564f7e | {
"func_code_index": [
702,
759
]
} | 13,683 | ||
CumulativeMerkleDrop | contracts/interfaces/ICumulativeMerkleDrop.sol | 0xb686559bb45fcdb1f370836066ef9e9b4c2d9548 | Solidity | ICumulativeMerkleDrop | interface ICumulativeMerkleDrop {
// This event is triggered whenever a call to #setMerkleRoot succeeds.
event MerkelRootUpdated(bytes32 oldMerkleRoot, bytes32 newMerkleRoot);
// This event is triggered whenever a call to #claim succeeds.
event Claimed(address account, uint256 amount);
// Returns t... | // Allows anyone to claim a token if they exist in a merkle root. | LineComment | claim | function claim(
address account,
uint256 cumulativeAmount,
bytes32 expectedMerkleRoot,
bytes32[] calldata merkleProof
) external;
| // Claim the given amount of the token to the given address. Reverts if the inputs are invalid. | LineComment | v0.8.6+commit.11564f7e | {
"func_code_index": [
860,
1029
]
} | 13,684 | ||
ForeignBridgeErcToErc | contracts/libraries/Message.sol | 0x3a8f33d145ee957a9e1e4985281082d084068011 | Solidity | Message | library Message {
// function uintToString(uint256 inputValue) internal pure returns (string) {
// // figure out the length of the resulting string
// uint256 length = 0;
// uint256 currentValue = inputValue;
// do {
// length++;
// currentValue /= 10;
... | addressArrayContains | function addressArrayContains(address[] array, address value) internal pure returns (bool) {
for (uint256 i = 0; i < array.length; i++) {
if (array[i] == value) {
return true;
}
}
return false;
}
| // function uintToString(uint256 inputValue) internal pure returns (string) {
// // figure out the length of the resulting string
// uint256 length = 0;
// uint256 currentValue = inputValue;
// do {
// length++;
// currentValue /= 10;
// } while (currentValue != 0);
// // allocat... | LineComment | v0.4.24+commit.e67f0147 | bzzr://51e1e311b0fe4fe0e8cb1e1ba1aae1660f066fde13cd77d8cc0e436e48426ff3 | {
"func_code_index": [
775,
1050
]
} | 13,685 | |||
ForeignBridgeErcToErc | contracts/libraries/Message.sol | 0x3a8f33d145ee957a9e1e4985281082d084068011 | Solidity | Message | library Message {
// function uintToString(uint256 inputValue) internal pure returns (string) {
// // figure out the length of the resulting string
// uint256 length = 0;
// uint256 currentValue = inputValue;
// do {
// length++;
// currentValue /= 10;
... | parseMessage | function parseMessage(bytes message)
internal
pure
returns(address recipient, uint256 amount, bytes32 txHash, address contractAddress)
{
require(isMessageValid(message));
assembly {
recipient := and(mload(add(message, 20)), 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)
amount :... | // layout of message :: bytes:
// offset 0: 32 bytes :: uint256 - message length
// offset 32: 20 bytes :: address - recipient address
// offset 52: 32 bytes :: uint256 - value
// offset 84: 32 bytes :: bytes32 - transaction hash
// offset 104: 20 bytes :: address - contract address to prevent double spending
// bytes... | LineComment | v0.4.24+commit.e67f0147 | bzzr://51e1e311b0fe4fe0e8cb1e1ba1aae1660f066fde13cd77d8cc0e436e48426ff3 | {
"func_code_index": [
2096,
2600
]
} | 13,686 | |||
x105 | x105.sol | 0xa871e6cf5657a0c14bda66c7a709ad0c42c42006 | Solidity | x105 | contract x105 {
//Address for promo expences
address constant private PROMO = 0x2a4589a23E3Ce45D72b27144D9b39ec032d3eAB6;
//Percent for promo expences
uint constant public PROMO_PERCENT = 5; //4 for advertizing, 1 for techsupport
//How many percent for your deposit to be multiplied
uint co... | /**
Multiplier contract: returns 105% of each investment!
Automatic payouts!
No bugs, no backdoors, NO OWNER - fully automatic!
Made and checked by professionals!
1. Send any sum to smart contract address
- sum from 0.01 to 5 ETH
- min 250000 gas limit
- you are added to a queue
2. Wait a little bi... | NatSpecMultiLine | function () public payable {
if(msg.value > 0){
require(gasleft() >= 220000, "We require more gas!"); //We need gas to process queue
require(msg.value <= 5 ether); //Do not allow too big investments to stabilize payouts
//Add the investor into the queue. Mark that he expects to receive... | //The index of the first depositor in the queue. The receiver of investments!
//This function receives all the deposits
//stores them and make immediate payouts | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://ecf7d9423e034ebfd7609722e0bedb44ce3c401ab48c0575501fa641ec64414e | {
"func_code_index": [
908,
1625
]
} | 13,687 | ||
x105 | x105.sol | 0xa871e6cf5657a0c14bda66c7a709ad0c42c42006 | Solidity | x105 | contract x105 {
//Address for promo expences
address constant private PROMO = 0x2a4589a23E3Ce45D72b27144D9b39ec032d3eAB6;
//Percent for promo expences
uint constant public PROMO_PERCENT = 5; //4 for advertizing, 1 for techsupport
//How many percent for your deposit to be multiplied
uint co... | /**
Multiplier contract: returns 105% of each investment!
Automatic payouts!
No bugs, no backdoors, NO OWNER - fully automatic!
Made and checked by professionals!
1. Send any sum to smart contract address
- sum from 0.01 to 5 ETH
- min 250000 gas limit
- you are added to a queue
2. Wait a little bi... | NatSpecMultiLine | pay | function pay() private {
//Try to send all the money on contract to the first investors in line
uint128 money = uint128(address(this).balance);
//We will do cycle on the queue
for(uint i=0; i<queue.length; i++){
uint idx = currentReceiverIndex + i; //get the index of the currently firs... | //Used to pay to current investors
//Each new transaction processes 1 - 4+ investors in the head of queue
//depending on balance and gas left | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://ecf7d9423e034ebfd7609722e0bedb44ce3c401ab48c0575501fa641ec64414e | {
"func_code_index": [
1786,
3191
]
} | 13,688 | |
x105 | x105.sol | 0xa871e6cf5657a0c14bda66c7a709ad0c42c42006 | Solidity | x105 | contract x105 {
//Address for promo expences
address constant private PROMO = 0x2a4589a23E3Ce45D72b27144D9b39ec032d3eAB6;
//Percent for promo expences
uint constant public PROMO_PERCENT = 5; //4 for advertizing, 1 for techsupport
//How many percent for your deposit to be multiplied
uint co... | /**
Multiplier contract: returns 105% of each investment!
Automatic payouts!
No bugs, no backdoors, NO OWNER - fully automatic!
Made and checked by professionals!
1. Send any sum to smart contract address
- sum from 0.01 to 5 ETH
- min 250000 gas limit
- you are added to a queue
2. Wait a little bi... | NatSpecMultiLine | getDeposit | function getDeposit(uint idx) public view returns (address depositor, uint deposit, uint expect){
Deposit storage dep = queue[idx];
return (dep.depositor, dep.deposit, dep.expect);
}
| //Get the deposit info by its index
//You can get deposit index from | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://ecf7d9423e034ebfd7609722e0bedb44ce3c401ab48c0575501fa641ec64414e | {
"func_code_index": [
3273,
3483
]
} | 13,689 | |
x105 | x105.sol | 0xa871e6cf5657a0c14bda66c7a709ad0c42c42006 | Solidity | x105 | contract x105 {
//Address for promo expences
address constant private PROMO = 0x2a4589a23E3Ce45D72b27144D9b39ec032d3eAB6;
//Percent for promo expences
uint constant public PROMO_PERCENT = 5; //4 for advertizing, 1 for techsupport
//How many percent for your deposit to be multiplied
uint co... | /**
Multiplier contract: returns 105% of each investment!
Automatic payouts!
No bugs, no backdoors, NO OWNER - fully automatic!
Made and checked by professionals!
1. Send any sum to smart contract address
- sum from 0.01 to 5 ETH
- min 250000 gas limit
- you are added to a queue
2. Wait a little bi... | NatSpecMultiLine | getDepositsCount | function getDepositsCount(address depositor) public view returns (uint) {
uint c = 0;
for(uint i=currentReceiverIndex; i<queue.length; ++i){
if(queue[i].depositor == depositor)
c++;
}
return c;
}
| //Get the count of deposits of specific investor | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://ecf7d9423e034ebfd7609722e0bedb44ce3c401ab48c0575501fa641ec64414e | {
"func_code_index": [
3540,
3811
]
} | 13,690 | |
x105 | x105.sol | 0xa871e6cf5657a0c14bda66c7a709ad0c42c42006 | Solidity | x105 | contract x105 {
//Address for promo expences
address constant private PROMO = 0x2a4589a23E3Ce45D72b27144D9b39ec032d3eAB6;
//Percent for promo expences
uint constant public PROMO_PERCENT = 5; //4 for advertizing, 1 for techsupport
//How many percent for your deposit to be multiplied
uint co... | /**
Multiplier contract: returns 105% of each investment!
Automatic payouts!
No bugs, no backdoors, NO OWNER - fully automatic!
Made and checked by professionals!
1. Send any sum to smart contract address
- sum from 0.01 to 5 ETH
- min 250000 gas limit
- you are added to a queue
2. Wait a little bi... | NatSpecMultiLine | getDeposits | function getDeposits(address depositor) public view returns (uint[] idxs, uint128[] deposits, uint128[] expects) {
uint c = getDepositsCount(depositor);
idxs = new uint[](c);
deposits = new uint128[](c);
expects = new uint128[](c);
if(c > 0) {
uint j = 0;
for(uint i=curren... | //Get all deposits (index, deposit, expect) of a specific investor | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://ecf7d9423e034ebfd7609722e0bedb44ce3c401ab48c0575501fa641ec64414e | {
"func_code_index": [
3886,
4580
]
} | 13,691 | |
x105 | x105.sol | 0xa871e6cf5657a0c14bda66c7a709ad0c42c42006 | Solidity | x105 | contract x105 {
//Address for promo expences
address constant private PROMO = 0x2a4589a23E3Ce45D72b27144D9b39ec032d3eAB6;
//Percent for promo expences
uint constant public PROMO_PERCENT = 5; //4 for advertizing, 1 for techsupport
//How many percent for your deposit to be multiplied
uint co... | /**
Multiplier contract: returns 105% of each investment!
Automatic payouts!
No bugs, no backdoors, NO OWNER - fully automatic!
Made and checked by professionals!
1. Send any sum to smart contract address
- sum from 0.01 to 5 ETH
- min 250000 gas limit
- you are added to a queue
2. Wait a little bi... | NatSpecMultiLine | getQueueLength | function getQueueLength() public view returns (uint) {
return queue.length - currentReceiverIndex;
}
| //Get current queue size | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://ecf7d9423e034ebfd7609722e0bedb44ce3c401ab48c0575501fa641ec64414e | {
"func_code_index": [
4617,
4736
]
} | 13,692 | |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Multiplies two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
96,
534
]
} | 13,693 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0); // Solidity only automatically asserts when dividing by 0
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
652,
951
]
} | 13,694 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
1072,
1227
]
} | 13,695 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
1298,
1453
]
} | 13,696 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two numbers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
1596,
1725
]
} | 13,697 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() intern... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | owner | function owner() public view returns(address) {
return _owner;
}
| /**
* @return the address of the owner.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
481,
564
]
} | 13,698 |
Token | Token.sol | 0xeac22301d1050ab3c0f9b2d4b74cef46e745b709 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() intern... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | isOwner | function isOwner() public view returns(bool) {
return msg.sender == _owner;
}
| /**
* @return true if `msg.sender` is the owner of the contract.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | None | bzzr://d929666413a0e0fdb27f38136f1ce1d0ecae1972e24bba0ae4a4b970172a13ff | {
"func_code_index": [
815,
911
]
} | 13,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.