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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
7081,
7381
]
} | 1,900 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
7447,
7616
]
} | 1,901 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
7678,
7988
]
} | 1,902 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
8054,
8210
]
} | 1,903 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
8276,
8566
]
} | 1,904 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
9443,
9720
]
} | 1,905 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | _exists | function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _tokenOwners.contains(tokenId);
}
| /**
* @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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
10028,
10160
]
} | 1,906 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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 || ERC721.isApprovedForAll(o... | /**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
10322,
10682
]
} | 1,907 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | _safeMint | function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
| /**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
d*
* - `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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
11020,
11135
]
} | 1,908 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
11357,
11612
]
} | 1,909 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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);
_holderTokens[to].add(tokenId);
_tokenOwners.set(tokenId... | /**
* @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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
11943,
12352
]
} | 1,910 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | _burn | function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId); // internal owner
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
// Clear metadata (if any)
if (bytes(_tokenURIs[tokenId]).length != 0) {
... | /**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
12576,
13126
]
} | 1,911 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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"); // internal owner
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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
13458,
14062
]
} | 1,912 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | _setTokenURI | function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
| /**
* @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
14213,
14433
]
} | 1,913 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | _setBaseURI | function _setBaseURI(string memory baseURI_) internal virtual {
_baseURI = baseURI_;
}
| /**
* @dev Internal function to set the base URI for all token IDs. It is
* automatically added as a prefix to the value returned in {tokenURI},
* or to the token ID if {tokenURI} is empty.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
14658,
14763
]
} | 1,914 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | _checkOnERC721Received | function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
private returns (bool)
{
if (!to.isContract()) {
return true;
}
bytes memory returndata = to.functionCall(abi.encodeWithSelector(
IERC721Receiver(to).onERC721Received.selector,
... | /**
* @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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
15323,
15932
]
} | 1,915 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | NatSpecMultiLine | _approve | function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
}
| /**
* @dev Approve `to` to operate on `tokenId`
*
* Emits an {Approval} event.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
16046,
16243
]
} | 1,916 |
GlassesLoot | ERC721_flat.sol | 0xae303c1506d03813e3950f649f53a9e5cc2c58e9 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
// Equals to `bytes4(keccak256("onERC721Received(addre... | /**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
* BoringBananaCo ERC-721 borrows from EnumerableMap & EnumerableSet
* implements additional tokenId tracking not in OPENZEPPELIN stock ERC721
*/ | 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.12+commit.f00d7308 | MIT | ipfs://1e3421184492e9d5714380967d08a1452e387840730fab01fc4a97f09821f0cf | {
"func_code_index": [
16851,
16949
]
} | 1,917 |
TISHU | @openzeppelin/contracts/access/Ownable.sol | 0x8451269babf96d0bf37fe5a045d65ecfd51d37fe | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address 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 virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e7d26b3516dd60e36dbac805f7556be14028feb13db9153b4bf2ef5ac246862e | {
"func_code_index": [
506,
598
]
} | 1,918 |
TISHU | @openzeppelin/contracts/access/Ownable.sol | 0x8451269babf96d0bf37fe5a045d65ecfd51d37fe | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address 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(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @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.
* You wil... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://e7d26b3516dd60e36dbac805f7556be14028feb13db9153b4bf2ef5ac246862e | {
"func_code_index": [
1251,
1500
]
} | 1,919 |
WatermelonBlockToken | WatermelonBlockToken.sol | 0x7a18919f0b05fa5e91f3ef43afe8a72105c9d4b8 | Solidity | WatermelonBlockToken | contract WatermelonBlockToken {
using SafeMath for uint;
// Public variables of the token
string constant public standard = "ERC20";
string constant public name = "WatermelonBlock tokens";
string constant public symbol = "WMB";
uint8 constant public decimals = 6;
uint _totalSupply... | balanceOf | function balanceOf(address _owner) constant returns (uint balance) {
return balances[_owner];
}
| // What is the balance of a particular account? | LineComment | v0.4.24+commit.e67f0147 | bzzr://304a5c611b4ec542e0001d33dcece5320ddcf32adf181d90ce73fede843fcba1 | {
"func_code_index": [
1732,
1846
]
} | 1,920 | |||
WatermelonBlockToken | WatermelonBlockToken.sol | 0x7a18919f0b05fa5e91f3ef43afe8a72105c9d4b8 | Solidity | WatermelonBlockToken | contract WatermelonBlockToken {
using SafeMath for uint;
// Public variables of the token
string constant public standard = "ERC20";
string constant public name = "WatermelonBlock tokens";
string constant public symbol = "WMB";
uint8 constant public decimals = 6;
uint _totalSupply... | allowance | function allowance(address _owner, address _spender) constant returns (uint remaining) {
return allowed[_owner][_spender];
}
| // Returns the amount which _spender is still allowed to withdraw from _owner | LineComment | v0.4.24+commit.e67f0147 | bzzr://304a5c611b4ec542e0001d33dcece5320ddcf32adf181d90ce73fede843fcba1 | {
"func_code_index": [
1932,
2075
]
} | 1,921 | |||
WatermelonBlockToken | WatermelonBlockToken.sol | 0x7a18919f0b05fa5e91f3ef43afe8a72105c9d4b8 | Solidity | WatermelonBlockToken | contract WatermelonBlockToken {
using SafeMath for uint;
// Public variables of the token
string constant public standard = "ERC20";
string constant public name = "WatermelonBlock tokens";
string constant public symbol = "WMB";
uint8 constant public decimals = 6;
uint _totalSupply... | totalSupply | function totalSupply() constant returns (uint totalSupply) {
totalSupply = _totalSupply;
}
| // Get the total token supply | LineComment | v0.4.24+commit.e67f0147 | bzzr://304a5c611b4ec542e0001d33dcece5320ddcf32adf181d90ce73fede843fcba1 | {
"func_code_index": [
2113,
2222
]
} | 1,922 | |||
WatermelonBlockToken | WatermelonBlockToken.sol | 0x7a18919f0b05fa5e91f3ef43afe8a72105c9d4b8 | Solidity | WatermelonBlockToken | contract WatermelonBlockToken {
using SafeMath for uint;
// Public variables of the token
string constant public standard = "ERC20";
string constant public name = "WatermelonBlock tokens";
string constant public symbol = "WMB";
uint8 constant public decimals = 6;
uint _totalSupply... | WatermelonBlockToken | function WatermelonBlockToken(address _icoAddr, address _teamAddr, address _emergencyAddr) {
icoAddr = _icoAddr;
teamAddr = _teamAddr;
emergencyAddr = _emergencyAddr;
balances[icoAddr] = tokensICO;
balances[teamAddr] = teamReserve;
// seed investors
address investor_1 = 0xF735e4a0... | // Initializes contract | LineComment | v0.4.24+commit.e67f0147 | bzzr://304a5c611b4ec542e0001d33dcece5320ddcf32adf181d90ce73fede843fcba1 | {
"func_code_index": [
2254,
3301
]
} | 1,923 | |||
WatermelonBlockToken | WatermelonBlockToken.sol | 0x7a18919f0b05fa5e91f3ef43afe8a72105c9d4b8 | Solidity | WatermelonBlockToken | contract WatermelonBlockToken {
using SafeMath for uint;
// Public variables of the token
string constant public standard = "ERC20";
string constant public name = "WatermelonBlock tokens";
string constant public symbol = "WMB";
uint8 constant public decimals = 6;
uint _totalSupply... | transfer | function transfer(address _to, uint _value) returns(bool) {
if (lockupParticipants[msg.sender].lockupAmount > 0) {
if (now < lockupParticipants[msg.sender].lockupTime) {
require(balances[msg.sender].sub(_value) >= lockupParticipants[msg.sender].lockupAmount);
}
}
if (msg.se... | // Send some of your tokens to a given address | LineComment | v0.4.24+commit.e67f0147 | bzzr://304a5c611b4ec542e0001d33dcece5320ddcf32adf181d90ce73fede843fcba1 | {
"func_code_index": [
3356,
4253
]
} | 1,924 | |||
WatermelonBlockToken | WatermelonBlockToken.sol | 0x7a18919f0b05fa5e91f3ef43afe8a72105c9d4b8 | Solidity | WatermelonBlockToken | contract WatermelonBlockToken {
using SafeMath for uint;
// Public variables of the token
string constant public standard = "ERC20";
string constant public name = "WatermelonBlock tokens";
string constant public symbol = "WMB";
uint8 constant public decimals = 6;
uint _totalSupply... | transferFrom | function transferFrom(address _from, address _to, uint _value) returns(bool) {
if (lockupParticipants[_from].lockupAmount > 0) {
if (now < lockupParticipants[_from].lockupTime) {
require(balances[_from].sub(_value) >= lockupParticipants[_from].lockupAmount);
}
}
if (_from =... | // A contract or person attempts to get the tokens of somebody else.
// This is only allowed if the token holder approved. | LineComment | v0.4.24+commit.e67f0147 | bzzr://304a5c611b4ec542e0001d33dcece5320ddcf32adf181d90ce73fede843fcba1 | {
"func_code_index": [
4390,
5316
]
} | 1,925 | |||
WatermelonBlockToken | WatermelonBlockToken.sol | 0x7a18919f0b05fa5e91f3ef43afe8a72105c9d4b8 | Solidity | WatermelonBlockToken | contract WatermelonBlockToken {
using SafeMath for uint;
// Public variables of the token
string constant public standard = "ERC20";
string constant public name = "WatermelonBlock tokens";
string constant public symbol = "WMB";
uint8 constant public decimals = 6;
uint _totalSupply... | approve | function approve(address _spender, uint _value) returns (bool) {
//https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
require((_value == 0) || (allowed[msg.sender][_spender] == 0));
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| // Approve the passed address to spend the specified amount of tokens
// on behalf of msg.sender. | LineComment | v0.4.24+commit.e67f0147 | bzzr://304a5c611b4ec542e0001d33dcece5320ddcf32adf181d90ce73fede843fcba1 | {
"func_code_index": [
5428,
5774
]
} | 1,926 | |||
PrivilegedToken | PrivilegedToken.sol | 0x669159340e0dfeed62e77a667c7ba3cbd6b1f937 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _va... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) returns (bool) {
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
| /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://428630744f64d8e15cea9e7cdadbbf6264092963275bd46567c356d39219322c | {
"func_code_index": [
276,
515
]
} | 1,927 | |
PrivilegedToken | PrivilegedToken.sol | 0x669159340e0dfeed62e77a667c7ba3cbd6b1f937 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _va... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://428630744f64d8e15cea9e7cdadbbf6264092963275bd46567c356d39219322c | {
"func_code_index": [
723,
832
]
} | 1,928 | |
PrivilegedToken | PrivilegedToken.sol | 0x669159340e0dfeed62e77a667c7ba3cbd6b1f937 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool) {
var _allowance = allowed[_from][msg.sender];
// Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
// require (_value <= _allowance);
balances[_to] = balances[_to].add(_v... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amout of tokens to be transfered
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://428630744f64d8e15cea9e7cdadbbf6264092963275bd46567c356d39219322c | {
"func_code_index": [
390,
895
]
} | 1,929 | |
PrivilegedToken | PrivilegedToken.sol | 0x669159340e0dfeed62e77a667c7ba3cbd6b1f937 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) returns (bool) {
// To change the approve amount you first have to reduce the addresses`
// allowance to zero by calling `approve(_spender, 0)` if it is not
// already 0 to mitigate the race condition described here:
// https://github.com/ethereum/EIP... | /**
* @dev Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender.
* @param _spender The address which will spend the funds.
* @param _value The amount of tokens to be spent.
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://428630744f64d8e15cea9e7cdadbbf6264092963275bd46567c356d39219322c | {
"func_code_index": [
1131,
1681
]
} | 1,930 | |
PrivilegedToken | PrivilegedToken.sol | 0x669159340e0dfeed62e77a667c7ba3cbd6b1f937 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifing the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://428630744f64d8e15cea9e7cdadbbf6264092963275bd46567c356d39219322c | {
"func_code_index": [
2005,
2143
]
} | 1,931 | |
PrivilegedToken | PrivilegedToken.sol | 0x669159340e0dfeed62e77a667c7ba3cbd6b1f937 | Solidity | Ownable | contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | Ownable | function Ownable() {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://428630744f64d8e15cea9e7cdadbbf6264092963275bd46567c356d39219322c | {
"func_code_index": [
174,
227
]
} | 1,932 | |
PrivilegedToken | PrivilegedToken.sol | 0x669159340e0dfeed62e77a667c7ba3cbd6b1f937 | Solidity | Ownable | contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) onlyOwner {
require(newOwner != address(0));
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://428630744f64d8e15cea9e7cdadbbf6264092963275bd46567c356d39219322c | {
"func_code_index": [
548,
679
]
} | 1,933 | |
PrivilegedToken | PrivilegedToken.sol | 0x669159340e0dfeed62e77a667c7ba3cbd6b1f937 | Solidity | BurnableToken | contract BurnableToken is StandardToken {
/**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/
function burn(uint _value) public {
require(_value > 0);
address burner = msg.sender;
balances[burner] = balances[burner].sub(_value);
tot... | /**
* @title Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | burn | function burn(uint _value) public {
require(_value > 0);
address burner = msg.sender;
balances[burner] = balances[burner].sub(_value);
totalSupply = totalSupply.sub(_value);
Burn(burner, _value);
}
| /**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.16+commit.d7661dd9 | bzzr://428630744f64d8e15cea9e7cdadbbf6264092963275bd46567c356d39219322c | {
"func_code_index": [
160,
388
]
} | 1,934 | |
MyReplaySafeProxy | MyReplaySafeProxy.sol | 0xf1101db4c9dd26bdace9bc7e30393f80c7b5e6c6 | Solidity | AmIOnTheFork | contract AmIOnTheFork {
bool public forked = false;
address constant darkDAO = 0x304a554a310c7e546dfe434669c62820b7d83490;
// Check the fork condition during creation of the contract.
// This function should be called between block 1920000 and 1921200.
// Approximately between 2016-07-20 12:00:... | update | function update() {
if (block.number >= 1920000 && block.number <= 1921200) {
forked = darkDAO.balance < 3600000 ether;
}
}
| // Check the fork condition during creation of the contract.
// This function should be called between block 1920000 and 1921200.
// Approximately between 2016-07-20 12:00:00 UTC and 2016-07-20 17:00:00 UTC.
// After that the status will be locked in. | LineComment | v0.3.5-2016-07-19-427deb4 | {
"func_code_index": [
406,
570
]
} | 1,935 | ||||
TokenERC20 | TokenERC20.sol | 0xc11326aa6bd9cea8b51f34097ba32c4e5d8aa8d5 | Solidity | SafeMath | library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint256 b) ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws 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 a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://a9365905c4b205551a8a420b09836bf9f8f47589d1313b47bf0d3a82a96bde2c | {
"func_code_index": [
283,
563
]
} | 1,936 | |||
TokenERC20 | TokenERC20.sol | 0xc11326aa6bd9cea8b51f34097ba32c4e5d8aa8d5 | Solidity | TokenERC20 | contract TokenERC20 is owned {
using SafeMath for uint256;
string public constant name = "Potter coin";
string public constant symbol = "POTB";
uint32 public constant decimals = 18;
uint256 public totalSupply;
mapping(address => uint256) balances;
mapping(address =... | burnFrom | function burnFrom(address _from, uint256 _value) public onlyOwner returns (bool success) {
require(balances[_from] >= _value);
balances[_from] = balances[_from].sub(_value);
balances[msg.sender] = balances[msg.sender].add(_value);
return true;
| /**
* Destroy tokens from other account
*
* Remove `_value` tokens from the system irreversibly on behalf of `_from`.
*
* @param _from the address of the sender
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://a9365905c4b205551a8a420b09836bf9f8f47589d1313b47bf0d3a82a96bde2c | {
"func_code_index": [
3549,
3883
]
} | 1,937 | |||
TokenERC20 | TokenERC20.sol | 0xc11326aa6bd9cea8b51f34097ba32c4e5d8aa8d5 | Solidity | TokenERC20 | contract TokenERC20 is owned {
using SafeMath for uint256;
string public constant name = "Potter coin";
string public constant symbol = "POTB";
uint32 public constant decimals = 18;
uint256 public totalSupply;
mapping(address => uint256) balances;
mapping(address =... | freezeAccount | function freezeAccount(address target, bool freeze) onlyOwner public {
frozenAccount[target] = freeze;
}
| /// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens
/// @param target Address to be frozen
/// @param freeze either to freeze it or not | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://a9365905c4b205551a8a420b09836bf9f8f47589d1313b47bf0d3a82a96bde2c | {
"func_code_index": [
4072,
4195
]
} | 1,938 | |||
Strategy | tricrypto2.sol | 0x3d0aa5439d05e7163795ba32577e1fa2518ecea9 | Solidity | Strategy | contract Strategy is ConvexMisc {
address public constant usdt = address(0xdAC17F958D2ee523a2206206994597C13D831ec7);
address public constant wbtc = address(0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599);
address[] public pathTarget;
constructor(address _vault) public ConvexMisc(_vault) {
cu... | _setPathTarget | function _setPathTarget(uint _tokenId, uint _id) internal {
if (_id == 0) {
pathTarget[_tokenId] = usdt;
}
else if (_id == 1) {
pathTarget[_tokenId] = wbtc;
}
else {
pathTarget[_tokenId] = weth;
}
}
| // >>> approve other rewards on dex
// function _approveDex() internal override { super._approveDex(); }
// >>> include other rewards
// function _migrateRewards(address _newStrategy) internal override { super._migrateRewards(_newStrategy); }
// >>> include all other rewards in eth besides _claimableBasicInETH()
// fun... | LineComment | v0.6.12+commit.27d51765 | Unknown | ipfs://b067ce95b0bfb5efb1bb94ce16c36a63a554e84263e4623558c84472466a5a6f | {
"func_code_index": [
1924,
2226
]
} | 1,939 | ||
Ticket | contracts/pcc-ticket.sol | 0xda7d42b6167f1497346d7b2336a6d7a603026db1 | Solidity | Ticket | contract Ticket is ERC1155, Ownable, ReentrancyGuard {
using Counters for Counters.Counter;
using SafeMath for uint256;
string public BaseURI;
Counters.Counter private _tokenCounter;
uint256 private totalCount;
event RedeemFractions(address indexed _address, uint256 indexed _i... | withdraw | function withdraw() public onlyOwner {
uint256 balance = address(this).balance;
payable(msg.sender).transfer(balance);
}
| //no-one should transfer eth... but if they do. | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
7355,
7485
]
} | 1,940 | ||||
BoredLabs | ERC165.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 interfaceId) pub... | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
90,
237
]
} | 1,941 |
asktoken | asktoken.sol | 0x96e06fdab8c1a11ce49e0f28e70bf94d8992ad9a | Solidity | asktoken | contract asktoken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | asktoken | function asktoken() public {
symbol = "ask";
name = "asktoken";
decimals = 18;
_totalSupply = 100000000000000000000000000;
balances[0xbb9afFb4Ff5e139997b3a006Be73F29f1A1F3C7A] = _totalSupply;
Transfer(address(0), 0xbb9afFb4Ff5e139997b3a006Be73F29f1A1F3C7A, _totalSupply);
}
| // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://816f17c6be4c15e4382b4d1952613a9f3ead266f6fe709db08afcbb172cb7647 | {
"func_code_index": [
455,
792
]
} | 1,942 | |
asktoken | asktoken.sol | 0x96e06fdab8c1a11ce49e0f28e70bf94d8992ad9a | Solidity | asktoken | contract asktoken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://816f17c6be4c15e4382b4d1952613a9f3ead266f6fe709db08afcbb172cb7647 | {
"func_code_index": [
980,
1101
]
} | 1,943 | |
asktoken | asktoken.sol | 0x96e06fdab8c1a11ce49e0f28e70bf94d8992ad9a | Solidity | asktoken | contract asktoken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://816f17c6be4c15e4382b4d1952613a9f3ead266f6fe709db08afcbb172cb7647 | {
"func_code_index": [
1321,
1450
]
} | 1,944 | |
asktoken | asktoken.sol | 0x96e06fdab8c1a11ce49e0f28e70bf94d8992ad9a | Solidity | asktoken | contract asktoken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://816f17c6be4c15e4382b4d1952613a9f3ead266f6fe709db08afcbb172cb7647 | {
"func_code_index": [
1794,
2071
]
} | 1,945 | |
asktoken | asktoken.sol | 0x96e06fdab8c1a11ce49e0f28e70bf94d8992ad9a | Solidity | asktoken | contract asktoken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.24+commit.e67f0147 | bzzr://816f17c6be4c15e4382b4d1952613a9f3ead266f6fe709db08afcbb172cb7647 | {
"func_code_index": [
2579,
2787
]
} | 1,946 | |
asktoken | asktoken.sol | 0x96e06fdab8c1a11ce49e0f28e70bf94d8992ad9a | Solidity | asktoken | contract asktoken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(from, to, tokens);
return... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.24+commit.e67f0147 | bzzr://816f17c6be4c15e4382b4d1952613a9f3ead266f6fe709db08afcbb172cb7647 | {
"func_code_index": [
3318,
3676
]
} | 1,947 | |
asktoken | asktoken.sol | 0x96e06fdab8c1a11ce49e0f28e70bf94d8992ad9a | Solidity | asktoken | contract asktoken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://816f17c6be4c15e4382b4d1952613a9f3ead266f6fe709db08afcbb172cb7647 | {
"func_code_index": [
3959,
4115
]
} | 1,948 | |
asktoken | asktoken.sol | 0x96e06fdab8c1a11ce49e0f28e70bf94d8992ad9a | Solidity | asktoken | contract asktoken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.24+commit.e67f0147 | bzzr://816f17c6be4c15e4382b4d1952613a9f3ead266f6fe709db08afcbb172cb7647 | {
"func_code_index": [
4470,
4787
]
} | 1,949 | |
asktoken | asktoken.sol | 0x96e06fdab8c1a11ce49e0f28e70bf94d8992ad9a | Solidity | asktoken | contract asktoken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://816f17c6be4c15e4382b4d1952613a9f3ead266f6fe709db08afcbb172cb7647 | {
"func_code_index": [
4979,
5038
]
} | 1,950 | ||
asktoken | asktoken.sol | 0x96e06fdab8c1a11ce49e0f28e70bf94d8992ad9a | Solidity | asktoken | contract asktoken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ----------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://816f17c6be4c15e4382b4d1952613a9f3ead266f6fe709db08afcbb172cb7647 | {
"func_code_index": [
5271,
5460
]
} | 1,951 | |
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | PluginInterface | contract PluginInterface
{
/// @dev simply a boolean to indicate this is the contract we expect to be
function isPluginInterface() public pure returns (bool);
function onRemove() public;
/// @dev Begins new feature.
/// @param _cutieId - ID of token to auction, sender must be owner.
/... | /// @author https://BlockChainArchitect.iocontract Bank is CutiePluginBase | NatSpecSingleLine | isPluginInterface | function isPluginInterface() public pure returns (bool);
| /// @dev simply a boolean to indicate this is the contract we expect to be | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
109,
170
]
} | 1,952 | |
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | PluginInterface | contract PluginInterface
{
/// @dev simply a boolean to indicate this is the contract we expect to be
function isPluginInterface() public pure returns (bool);
function onRemove() public;
/// @dev Begins new feature.
/// @param _cutieId - ID of token to auction, sender must be owner.
/... | /// @author https://BlockChainArchitect.iocontract Bank is CutiePluginBase | NatSpecSingleLine | run | function run(
uint40 _cutieId,
uint256 _parameter,
address _seller
)
public
payable;
| /// @dev Begins new feature.
/// @param _cutieId - ID of token to auction, sender must be owner.
/// @param _parameter - arbitrary parameter
/// @param _seller - Old owner, if not the message sender | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
427,
558
]
} | 1,953 | |
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | PluginInterface | contract PluginInterface
{
/// @dev simply a boolean to indicate this is the contract we expect to be
function isPluginInterface() public pure returns (bool);
function onRemove() public;
/// @dev Begins new feature.
/// @param _cutieId - ID of token to auction, sender must be owner.
/... | /// @author https://BlockChainArchitect.iocontract Bank is CutiePluginBase | NatSpecSingleLine | runSigned | function runSigned(
uint40 _cutieId,
uint256 _parameter,
address _owner
) external payable;
| /// @dev Begins new feature, approved and signed by COO.
/// @param _cutieId - ID of token to auction, sender must be owner.
/// @param _parameter - arbitrary parameter | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
745,
873
]
} | 1,954 | |
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | Plugins | contract Plugins is Operators, PluginsInterface
{
event SignUsed(uint40 signId, address sender);
event MinSignSet(uint40 signId);
uint40 public minSignId;
mapping(uint40 => address) public usedSignes;
address public signerAddress;
mapping(address => PluginInterface) public plugins;
... | addPlugin | function addPlugin(address _address) external onlyOwner
{
PluginInterface candidateContract = PluginInterface(_address);
// verify that a contract is what we expect
require(candidateContract.isPluginInterface());
// Set the new contract address
plugins[_address] = candidateContract;
p... | /// @dev Sets the reference to the plugin contract.
/// @param _address - Address of plugin contract. | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
633,
1029
]
} | 1,955 | |||
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | Plugins | contract Plugins is Operators, PluginsInterface
{
event SignUsed(uint40 signId, address sender);
event MinSignSet(uint40 signId);
uint40 public minSignId;
mapping(uint40 => address) public usedSignes;
address public signerAddress;
mapping(address => PluginInterface) public plugins;
... | removePlugin | function removePlugin(address _address) external onlyOwner
{
plugins[_address].onRemove();
delete plugins[_address];
uint256 kindex = 0;
while (kindex < pluginsArray.length)
{
if (address(pluginsArray[kindex]) == _address)
{
pluginsArray[kindex] = pluginsArray[... | /// @dev Remove plugin and calls onRemove to cleanup | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
1090,
1622
]
} | 1,956 | |||
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | Plugins | contract Plugins is Operators, PluginsInterface
{
event SignUsed(uint40 signId, address sender);
event MinSignSet(uint40 signId);
uint40 public minSignId;
mapping(uint40 => address) public usedSignes;
address public signerAddress;
mapping(address => PluginInterface) public plugins;
... | hashArguments | function hashArguments(
address _pluginAddress,
uint40 _signId,
uint40 _cutieId,
uint128 _value,
uint256 _parameter)
public pure returns (bytes32 msgHash)
{
msgHash = keccak256(abi.encode(_pluginAddress, _signId, _cutieId, _value, _parameter));
}
| /// @dev Common function to be used also in backend | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
1682,
2002
]
} | 1,957 | |||
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | Plugins | contract Plugins is Operators, PluginsInterface
{
event SignUsed(uint40 signId, address sender);
event MinSignSet(uint40 signId);
uint40 public minSignId;
mapping(uint40 => address) public usedSignes;
address public signerAddress;
mapping(address => PluginInterface) public plugins;
... | getSigner | function getSigner(
address _pluginAddress,
uint40 _signId,
uint40 _cutieId,
uint128 _value,
uint256 _parameter,
uint8 _v,
bytes32 _r,
bytes32 _s
)
public pure returns (address)
{
bytes32 msgHash = hashArguments(_pluginAddress, _signId, _cutieId, _value, _parameter);
... | /// @dev Common function to be used also in backend | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
2062,
2485
]
} | 1,958 | |||
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | Plugins | contract Plugins is Operators, PluginsInterface
{
event SignUsed(uint40 signId, address sender);
event MinSignSet(uint40 signId);
uint40 public minSignId;
mapping(uint40 => address) public usedSignes;
address public signerAddress;
mapping(address => PluginInterface) public plugins;
... | isValidSignature | function isValidSignature(
address _pluginAddress,
uint40 _signId,
uint40 _cutieId,
uint128 _value,
uint256 _parameter,
uint8 _v,
bytes32 _r,
bytes32 _s
)
public
view
returns (bool)
{
return getSigner(_pluginAddress, _signId, _cutieId, _value, _parameter, _v, _r, _s) ==... | /// @dev Common function to be used also in backend | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
2545,
2948
]
} | 1,959 | |||
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | Plugins | contract Plugins is Operators, PluginsInterface
{
event SignUsed(uint40 signId, address sender);
event MinSignSet(uint40 signId);
uint40 public minSignId;
mapping(uint40 => address) public usedSignes;
address public signerAddress;
mapping(address => PluginInterface) public plugins;
... | runPluginSigned | function runPluginSigned(
address _pluginAddress,
uint40 _signId,
uint40 _cutieId,
uint128 _value,
uint256 _parameter,
uint8 _v,
bytes32 _r,
bytes32 _s
)
external
whenNotPaused
payable
{
require (isValidSignature(_pluginAddress, _signId, _cutieId, _value, ... | /// @dev Put a cutie up for plugin feature with signature.
/// Can be used for items equip, item sales and other features.
/// Signatures are generated by Operator role. | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
3138,
4518
]
} | 1,960 | |||
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | Plugins | contract Plugins is Operators, PluginsInterface
{
event SignUsed(uint40 signId, address sender);
event MinSignSet(uint40 signId);
uint40 public minSignId;
mapping(uint40 => address) public usedSignes;
address public signerAddress;
mapping(address => PluginInterface) public plugins;
... | runPluginOperator | function runPluginOperator(
address _pluginAddress,
uint40 _signId,
uint40 _cutieId,
uint128 _value,
uint256 _parameter,
address _sender)
external payable onlyOperator
{
require(address(plugins[_pluginAddress]) != address(0));
require (usedSignes[_signId] == address(0));
... | /// @dev Put a cutie up for plugin feature as Operator.
/// Can be used for items equip, item sales and other features.
/// Signatures are generated by Operator role. | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
4705,
5558
]
} | 1,961 | |||
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | Plugins | contract Plugins is Operators, PluginsInterface
{
event SignUsed(uint40 signId, address sender);
event MinSignSet(uint40 signId);
uint40 public minSignId;
mapping(uint40 => address) public usedSignes;
address public signerAddress;
mapping(address => PluginInterface) public plugins;
... | setMinSign | function setMinSign(uint40 _newMinSignId) external onlyOperator
{
require (_newMinSignId > minSignId);
minSignId = _newMinSignId;
emit MinSignSet(minSignId);
}
| /// @dev Sets minimal signId, than can be used.
/// All unused signatures less than signId will be cancelled on off-chain server
/// and unused items will be transfered back to owner. | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
5953,
6154
]
} | 1,962 | |||
Plugins | Plugins.sol | 0xa8e176c4e1d564afadb5628c4e885f6359d46d4d | Solidity | Plugins | contract Plugins is Operators, PluginsInterface
{
event SignUsed(uint40 signId, address sender);
event MinSignSet(uint40 signId);
uint40 public minSignId;
mapping(uint40 => address) public usedSignes;
address public signerAddress;
mapping(address => PluginInterface) public plugins;
... | runPlugin | function runPlugin(
address _pluginAddress,
uint40 _cutieId,
uint256 _parameter
) external payable
{
// If cutie is already on any auction or in adventure, this will throw
// because it will be owned by the other contract.
// If _cutieId is 0, then cutie is not used on this feature.
... | /// @dev Put a cutie up for plugin feature. | NatSpecSingleLine | v0.4.26+commit.4563c3fc | bzzr://9f6b46cd398c7410e7de6614b685499a15ab11432c58671a06fc1baca27fe76c | {
"func_code_index": [
6206,
7023
]
} | 1,963 | |||
BoredLabs | IERC165.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | IERC165 | interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less t... | /**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) external view returns (bool);
| /**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
341,
418
]
} | 1,964 |
BoredLabs | Address.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 return false for the following
* t... | /**
* @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)
}
return size > 0;
}
| /**
* @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 ad... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
537,
861
]
} | 1,965 |
BoredLabs | Address.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 return false for the following
* t... | /**
* @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 ... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
1726,
2020
]
} | 1,966 |
BoredLabs | Address.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 return false for the following
* t... | /**
* @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... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
2704,
2869
]
} | 1,967 |
BoredLabs | Address.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 return false for the following
* t... | /**
* @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.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
3069,
3263
]
} | 1,968 |
BoredLabs | Address.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 return false for the following
* t... | /**
* @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 v... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
3588,
3813
]
} | 1,969 |
BoredLabs | Address.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 return false for the following
* t... | /**
* @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");
(bool success, bytes m... | /**
* @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.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
4039,
4487
]
} | 1,970 |
BoredLabs | Address.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 return false for the following
* t... | /**
* @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.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
4642,
4831
]
} | 1,971 |
BoredLabs | Address.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 return false for the following
* t... | /**
* @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 verifyCallResult(success, returndata, ... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
4993,
5338
]
} | 1,972 |
BoredLabs | Address.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 return false for the following
* t... | /**
* @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.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
5495,
5685
]
} | 1,973 |
BoredLabs | Address.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 return false for the following
* t... | /**
* @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 verifyCallResult(success, returndata,... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
5849,
6195
]
} | 1,974 |
BoredLabs | Address.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 return false for the following
* t... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | verifyCallResult | function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason... | /**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
6393,
6921
]
} | 1,975 |
BoredLabs | IERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 {balanceOf} to enumerate all of ``ow... | /**
* @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.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
119,
175
]
} | 1,976 |
BoredLabs | IERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 {balanceOf} to enumerate all of ``ow... | /**
* @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.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
341,
441
]
} | 1,977 |
BoredLabs | IERC721Enumerable.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 {balanceOf} to enumerate all of ``ow... | /**
* @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.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
600,
670
]
} | 1,978 |
BoredLabs | IERC721Metadata.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 Returns the Uniform Resource Identifier (... | /**
* @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.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
93,
148
]
} | 1,979 |
BoredLabs | IERC721Metadata.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 Returns the Uniform Resource Identifier (... | /**
* @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.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
206,
263
]
} | 1,980 |
BoredLabs | IERC721Metadata.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 Returns the Uniform Resource Identifier (... | /**
* @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.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
351,
425
]
} | 1,981 |
BoredLabs | IERC721Receiver.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | 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 value is returned or the int... | /**
* @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 implemente... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
491,
625
]
} | 1,982 |
BoredLabs | IERC721.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexe... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address owner) external view returns (uint256 balance);
| /**
* @dev Returns the number of tokens in ``owner``'s account.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
655,
730
]
} | 1,983 |
BoredLabs | IERC721.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexe... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | ownerOf | function ownerOf(uint256 tokenId) external view returns (address owner);
| /**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
847,
920
]
} | 1,984 |
BoredLabs | IERC721.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexe... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` t... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
1575,
1663
]
} | 1,985 |
BoredLabs | IERC721.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexe... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) external;
| /**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
2132,
2216
]
} | 1,986 |
BoredLabs | IERC721.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexe... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | approve | function approve(address to, uint256 tokenId) external;
| /**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own t... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
2636,
2692
]
} | 1,987 |
BoredLabs | IERC721.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexe... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | getApproved | function getApproved(uint256 tokenId) external view returns (address operator);
| /**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
2817,
2897
]
} | 1,988 |
BoredLabs | IERC721.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexe... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool _approved) external;
| /**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
3183,
3254
]
} | 1,989 |
BoredLabs | IERC721.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexe... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator) external view returns (bool);
| /**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
3384,
3473
]
} | 1,990 |
BoredLabs | IERC721.sol | 0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexe... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by eithe... | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec | {
"func_code_index": [
3997,
4108
]
} | 1,991 |
TheCondition | @openzeppelin/contracts/utils/introspection/ERC165.sol | 0x7100a73d6265c9e49933919dcd0e105c2acdd5e4 | 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.4+commit.c7e474f2 | MIT | ipfs://ad698f17f5746cb3d82effd2b69a2950426cbe3f3581f04f6c5ad7d93972b20e | {
"func_code_index": [
103,
265
]
} | 1,992 |
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
88,
146
]
} | 1,993 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the token decimals.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
202,
255
]
} | 1,994 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the token symbol.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
309,
368
]
} | 1,995 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | name | function name() external view returns (string memory);
| /**
* @dev Returns the token name.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
418,
475
]
} | 1,996 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | getOwner | function getOwner() external view returns (address);
| /**
* @dev Returns the erc20 token owner.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
534,
589
]
} | 1,997 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
666,
737
]
} | 1,998 | ||
ERC20Token | ERC20Token.sol | 0xdf181a15b52a13793e3a0ea0a7df6c59d6192c27 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | 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.5.16+commit.9c3226ce | MIT | bzzr://06fbe69e9e23b4eda54e3a304fa82f3190e7146a91c9850c94475c70d5e0f798 | {
"func_code_index": [
947,
1027
]
} | 1,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.