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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) external;
| /**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If th... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
2376,
2489
]
} | 13,400 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | approve | function approve(address to, uint256 tokenId) external;
| /**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
2962,
3022
]
} | 13,401 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | getApproved | function getApproved(uint256 tokenId) external view returns (address operator);
| /**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
3176,
3260
]
} | 13,402 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool _approved) external;
| /**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
3587,
3662
]
} | 13,403 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator) external view returns (bool);
| /**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
3813,
3906
]
} | 13,404 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {appro... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
4483,
4630
]
} | 13,405 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | IERC721Metadata | interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | name | function name() external view returns (string memory);
| /**
* @dev Returns the token collection name.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
106,
165
]
} | 13,406 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | IERC721Metadata | interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the token collection symbol.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
236,
297
]
} | 13,407 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | IERC721Metadata | interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev... | /**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId) external view returns (string memory);
| /**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
398,
476
]
} | 13,408 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | IERC721Receiver | interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other valu... | /**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/ | NatSpecMultiLine | onERC721Received | function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
| /**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by ... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
528,
698
]
} | 13,409 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC165 | abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
} | /**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interface... | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
103,
265
]
} | 13,410 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
971,
1281
]
} | 13,411 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
| /**
* @dev See {IERC721-balanceOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
1340,
1553
]
} | 13,412 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | ownerOf | function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
| /**
* @dev See {IERC721-ownerOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
1610,
1854
]
} | 13,413 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev See {IERC721Metadata-name}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
1916,
2021
]
} | 13,414 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev See {IERC721Metadata-symbol}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
2085,
2194
]
} | 13,415 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | tokenURI | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
| /**
* @dev See {IERC721Metadata-tokenURI}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
2260,
2599
]
} | 13,416 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _baseURI | function _baseURI() internal view virtual returns (string memory) {
return "";
}
| /**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
2842,
2941
]
} | 13,417 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | approve | function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor... | /**
* @dev See {IERC721-approve}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
2998,
3414
]
} | 13,418 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | getApproved | function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
| /**
* @dev See {IERC721-getApproved}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
3475,
3701
]
} | 13,419 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
| /**
* @dev See {IERC721-setApprovalForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
3768,
4068
]
} | 13,420 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
| /**
* @dev See {IERC721-isApprovedForAll}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
4134,
4303
]
} | 13,421 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
| /**
* @dev See {IERC721-transferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
4365,
4709
]
} | 13,422 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
4775,
4965
]
} | 13,423 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
| /**
* @dev See {IERC721-safeTransferFrom}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
5031,
5364
]
} | 13,424 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeTransfer | function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is eq... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
6241,
6561
]
} | 13,425 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _exists | function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
| /**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
6869,
7001
]
} | 13,426 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _isApprovedOrOwner | function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, s... | /**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
7163,
7516
]
} | 13,427 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeMint | function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
| /**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
7853,
7968
]
} | 13,428 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _safeMint | function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
| /**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
8190,
8516
]
} | 13,429 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _mint | function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Tra... | /**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
8847,
9234
]
} | 13,430 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _burn | function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), toke... | /**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
9458,
9823
]
} | 13,431 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _transfer | function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
//... | /**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
10155,
10738
]
} | 13,432 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _approve | function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
| /**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
10851,
11030
]
} | 13,433 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _checkOnERC721Received | function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721... | /**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param to... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
11590,
12394
]
} | 13,434 |
TMBA | TMBA.sol | 0x0f34c401c2d64c063666cd40f762fcb924979d90 | Solidity | ERC721 | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _ow... | /**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/ | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
| /**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://e681bf8422d22ed969fa36d13faad6e1069f22a61113a46dba5df7df01a86eac | {
"func_code_index": [
12961,
13092
]
} | 13,435 |
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
94,
154
]
} | 13,436 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
237,
310
]
} | 13,437 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.s
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
535,
617
]
} | 13,438 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
896,
984
]
} | 13,439 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
1648,
1727
]
} | 13,440 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
2040,
2142
]
} | 13,441 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
606,
1230
]
} | 13,442 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
2160,
2562
]
} | 13,443 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
3318,
3496
]
} | 13,444 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
3721,
3922
]
} | 13,445 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
4292,
4523
]
} | 13,446 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
4774,
5095
]
} | 13,447 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
259,
445
]
} | 13,448 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
723,
864
]
} | 13,449 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
1162,
1359
]
} | 13,450 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
1613,
2089
]
} | 13,451 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
2560,
2697
]
} | 13,452 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
3188,
3471
]
} | 13,453 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
3931,
4066
]
} | 13,454 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
4546,
4717
]
} | 13,455 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | owner | function owner() public view returns (address) {
return address(0);
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
497,
585
]
} | 13,456 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
1143,
1266
]
} | 13,457 | ||
EHINATA | EHINATA.sol | 0xb2ecc7c1e2f12a4e4e519f47bcefeb63db95f3bb | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | GNU GPLv2 | ipfs://2cd0394c3b46d3e3961247df3c0ce8b7c5216742e79877faec380e4327e61185 | {
"func_code_index": [
1416,
1665
]
} | 13,458 | ||
UACCERC20 | UACCERC20.sol | 0xe5acfe17fb233eee84e055c0a313a2ebf300834a | Solidity | UACCERC20 | contract UACCERC20 {
string public name = "UNITED AFFIRMATIVE CREDIT CURRENCY";
string public symbol = "UACC";
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply = 500000000000;
// This creates an array with all balan... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != address(0x0));
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value > balanc... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | None | bzzr://9cf8841ea1df848f054d0553733beaf0398de5f92907d0e34694839352846227 | {
"func_code_index": [
1022,
1878
]
} | 13,459 | ||
UACCERC20 | UACCERC20.sol | 0xe5acfe17fb233eee84e055c0a313a2ebf300834a | Solidity | UACCERC20 | contract UACCERC20 {
string public name = "UNITED AFFIRMATIVE CREDIT CURRENCY";
string public symbol = "UACC";
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply = 500000000000;
// This creates an array with all balan... | transfer | function transfer(address _to, uint256 _value) public returns (bool success) {
_transfer(msg.sender, _to, _value);
return true;
}
| /**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | None | bzzr://9cf8841ea1df848f054d0553733beaf0398de5f92907d0e34694839352846227 | {
"func_code_index": [
2085,
2242
]
} | 13,460 | ||
UACCERC20 | UACCERC20.sol | 0xe5acfe17fb233eee84e055c0a313a2ebf300834a | Solidity | UACCERC20 | contract UACCERC20 {
string public name = "UNITED AFFIRMATIVE CREDIT CURRENCY";
string public symbol = "UACC";
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply = 500000000000;
// This creates an array with all balan... | burn | function burn(uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
emit Burn(msg.sender,... | /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | None | bzzr://9cf8841ea1df848f054d0553733beaf0398de5f92907d0e34694839352846227 | {
"func_code_index": [
2412,
2791
]
} | 13,461 | ||
MtTaborToken | MtTaborToken.sol | 0x56b3184645c0ffe809b0ca07b0d7abc0ceef8282 | Solidity | MtTaborToken | contract MtTaborToken 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 | MtTaborToken | function MtTaborToken() public {
symbol = "MTW";
name = "Mt Tabor Wolves";
decimals = 18;
_totalSupply = 1000000000000000000000000;
balances[0x2B478fBc81A528Be2C1E38b2b69BEbA3fca7F892] = _totalSupply;
emit Transfer(address(0), 0x2B478fBc81A528Be2C1E38b2b69BEbA3fca7F892, _totalSupply);
}
| // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.21+commit.dfe3193c | bzzr://8554eaf93a73d68bb828ffbd213fae0fa4e447d4fa13cca16fb8b9eac2002490 | {
"func_code_index": [
459,
810
]
} | 13,462 | |
MtTaborToken | MtTaborToken.sol | 0x56b3184645c0ffe809b0ca07b0d7abc0ceef8282 | Solidity | MtTaborToken | contract MtTaborToken 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.21+commit.dfe3193c | bzzr://8554eaf93a73d68bb828ffbd213fae0fa4e447d4fa13cca16fb8b9eac2002490 | {
"func_code_index": [
998,
1119
]
} | 13,463 | |
MtTaborToken | MtTaborToken.sol | 0x56b3184645c0ffe809b0ca07b0d7abc0ceef8282 | Solidity | MtTaborToken | contract MtTaborToken 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.21+commit.dfe3193c | bzzr://8554eaf93a73d68bb828ffbd213fae0fa4e447d4fa13cca16fb8b9eac2002490 | {
"func_code_index": [
1339,
1468
]
} | 13,464 | |
MtTaborToken | MtTaborToken.sol | 0x56b3184645c0ffe809b0ca07b0d7abc0ceef8282 | Solidity | MtTaborToken | contract MtTaborToken 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);
emit 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.21+commit.dfe3193c | bzzr://8554eaf93a73d68bb828ffbd213fae0fa4e447d4fa13cca16fb8b9eac2002490 | {
"func_code_index": [
1812,
2094
]
} | 13,465 | |
MtTaborToken | MtTaborToken.sol | 0x56b3184645c0ffe809b0ca07b0d7abc0ceef8282 | Solidity | MtTaborToken | contract MtTaborToken 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;
emit 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.21+commit.dfe3193c | bzzr://8554eaf93a73d68bb828ffbd213fae0fa4e447d4fa13cca16fb8b9eac2002490 | {
"func_code_index": [
2601,
2814
]
} | 13,466 | |
MtTaborToken | MtTaborToken.sol | 0x56b3184645c0ffe809b0ca07b0d7abc0ceef8282 | Solidity | MtTaborToken | contract MtTaborToken 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);
emit Transfer(from, to, tokens);
r... | // ------------------------------------------------------------------------
// 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
// - Sp... | LineComment | v0.4.21+commit.dfe3193c | bzzr://8554eaf93a73d68bb828ffbd213fae0fa4e447d4fa13cca16fb8b9eac2002490 | {
"func_code_index": [
3344,
3707
]
} | 13,467 | |
MtTaborToken | MtTaborToken.sol | 0x56b3184645c0ffe809b0ca07b0d7abc0ceef8282 | Solidity | MtTaborToken | contract MtTaborToken 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.21+commit.dfe3193c | bzzr://8554eaf93a73d68bb828ffbd213fae0fa4e447d4fa13cca16fb8b9eac2002490 | {
"func_code_index": [
3990,
4146
]
} | 13,468 | |
MtTaborToken | MtTaborToken.sol | 0x56b3184645c0ffe809b0ca07b0d7abc0ceef8282 | Solidity | MtTaborToken | contract MtTaborToken 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;
emit 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.21+commit.dfe3193c | bzzr://8554eaf93a73d68bb828ffbd213fae0fa4e447d4fa13cca16fb8b9eac2002490 | {
"func_code_index": [
4501,
4823
]
} | 13,469 | |
MtTaborToken | MtTaborToken.sol | 0x56b3184645c0ffe809b0ca07b0d7abc0ceef8282 | Solidity | MtTaborToken | contract MtTaborToken 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.21+commit.dfe3193c | bzzr://8554eaf93a73d68bb828ffbd213fae0fa4e447d4fa13cca16fb8b9eac2002490 | {
"func_code_index": [
5015,
5074
]
} | 13,470 | ||
MtTaborToken | MtTaborToken.sol | 0x56b3184645c0ffe809b0ca07b0d7abc0ceef8282 | Solidity | MtTaborToken | contract MtTaborToken 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.21+commit.dfe3193c | bzzr://8554eaf93a73d68bb828ffbd213fae0fa4e447d4fa13cca16fb8b9eac2002490 | {
"func_code_index": [
5307,
5496
]
} | 13,471 | |
Keep3rV2OracleFactory | Keep3rV2OracleFactory.sol | 0x31e43cee5433945dba82c09dffe8ae29edbb27c3 | Solidity | Keep3rV2Oracle | contract Keep3rV2Oracle {
constructor(address _pair) {
_factory = msg.sender;
pair = _pair;
(,,uint32 timestamp) = IUniswapV2Pair(_pair).getReserves();
uint112 _price0CumulativeLast = uint112(IUniswapV2Pair(_pair).price0CumulativeLast() * e10 / Q112);
uint112 _price1C... | // sliding oracle that uses observations collected to provide moving price averages in the past | LineComment | cache | function cache(uint size) external {
uint _length = length+size;
for (uint i = length; i < _length; i++) observations[i].timestamp = 1;
}
| // Pre-cache slots for cheaper oracle writes | LineComment | v0.8.3+commit.8d00100c | MIT | ipfs://bbbdea8bc830a1fcca4f02bfe7afad01c7a13db47a183df0c7ed87d732f13b81 | {
"func_code_index": [
1139,
1304
]
} | 13,472 |
Keep3rV2OracleFactory | Keep3rV2OracleFactory.sol | 0x31e43cee5433945dba82c09dffe8ae29edbb27c3 | Solidity | Keep3rV2Oracle | contract Keep3rV2Oracle {
constructor(address _pair) {
_factory = msg.sender;
pair = _pair;
(,,uint32 timestamp) = IUniswapV2Pair(_pair).getReserves();
uint112 _price0CumulativeLast = uint112(IUniswapV2Pair(_pair).price0CumulativeLast() * e10 / Q112);
uint112 _price1C... | // sliding oracle that uses observations collected to provide moving price averages in the past | LineComment | update | function update() external factory returns (bool) {
return _update();
}
| // update the current feed for free | LineComment | v0.8.3+commit.8d00100c | MIT | ipfs://bbbdea8bc830a1fcca4f02bfe7afad01c7a13db47a183df0c7ed87d732f13b81 | {
"func_code_index": [
1348,
1438
]
} | 13,473 |
Keep3rV2OracleFactory | Keep3rV2OracleFactory.sol | 0x31e43cee5433945dba82c09dffe8ae29edbb27c3 | Solidity | Keep3rV2OracleFactory | contract Keep3rV2OracleFactory {
function pairForSushi(address tokenA, address tokenB) internal pure returns (address pair) {
(address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
pair = address(uint160(uint256(keccak256(abi.encodePacked(
hex... | setGovernance | function setGovernance(address _governance) external {
require(msg.sender == governance, "!G");
pendingGovernance = _governance;
}
| /**
* @notice Allows governance to change governance (for future upgradability)
* @param _governance new governance address to set
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | MIT | ipfs://bbbdea8bc830a1fcca4f02bfe7afad01c7a13db47a183df0c7ed87d732f13b81 | {
"func_code_index": [
1724,
1882
]
} | 13,474 | ||
Keep3rV2OracleFactory | Keep3rV2OracleFactory.sol | 0x31e43cee5433945dba82c09dffe8ae29edbb27c3 | Solidity | Keep3rV2OracleFactory | contract Keep3rV2OracleFactory {
function pairForSushi(address tokenA, address tokenB) internal pure returns (address pair) {
(address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
pair = address(uint160(uint256(keccak256(abi.encodePacked(
hex... | acceptGovernance | function acceptGovernance() external {
require(msg.sender == pendingGovernance, "!pG");
governance = pendingGovernance;
}
| /**
* @notice Allows pendingGovernance to accept their role as governance (protection pattern)
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | MIT | ipfs://bbbdea8bc830a1fcca4f02bfe7afad01c7a13db47a183df0c7ed87d732f13b81 | {
"func_code_index": [
2000,
2149
]
} | 13,475 | ||
Mimon | contracts/Mimon/Mimon.sol | 0x7fb4a2249fd66510c1d77b99454cd6b968daf5f7 | Solidity | Mimon | contract Mimon is Context, ERC721, ERC721Enumerable, AccessControlEnumerable, Ownable {
using Counters for Counters.Counter;
string TOKEN_NAME = "Mimon";
string TOKEN_SYMBOL = "MIMON";
uint256 MAX_TOKEN_SUPPLY = 10000;
string private _baseTokenURI;
address public devAddress;
address public minterContrac... | isApprovedForAll | function isApprovedForAll(address _owner, address _operator) public view override returns (bool isOperator) {
// if OpenSea's ERC721 Proxy Address is detected, auto-return true
if (proxyContract == _operator || devAddress == _operator) {
return true;
}
return ERC721.isApprovedForAll(_owner, _operator);
}
| /**
* Override isApprovedForAll to auto-approve OS's proxy contract
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | MIT | ipfs://63b095122ded6ec8424b3f4313a0ead25550a1bdcc19925b557e06796097b138 | {
"func_code_index": [
2095,
2420
]
} | 13,476 | ||
CNYTTOKEN | CNYTTOKEN.sol | 0x2fe1e1ae6f1a65eccf3f1726d4727d42be6fddb8 | Solidity | CNYTTOKEN | contract CNYTTOKEN {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != address(0x0));
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value >= balan... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | None | bzzr://ea9b13272c4bdbe14135fb4204dc546a7aa545392b7c04f8638aa330df411860 | {
"func_code_index": [
1648,
2505
]
} | 13,477 | ||
CNYTTOKEN | CNYTTOKEN.sol | 0x2fe1e1ae6f1a65eccf3f1726d4727d42be6fddb8 | Solidity | CNYTTOKEN | contract CNYTTOKEN {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address... | transfer | function transfer(address _to, uint256 _value) public returns (bool success) {
_transfer(msg.sender, _to, _value);
return true;
}
| /**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | None | bzzr://ea9b13272c4bdbe14135fb4204dc546a7aa545392b7c04f8638aa330df411860 | {
"func_code_index": [
2711,
2868
]
} | 13,478 | ||
CNYTTOKEN | CNYTTOKEN.sol | 0x2fe1e1ae6f1a65eccf3f1726d4727d42be6fddb8 | Solidity | CNYTTOKEN | contract CNYTTOKEN {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
| /**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` on behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | None | bzzr://ea9b13272c4bdbe14135fb4204dc546a7aa545392b7c04f8638aa330df411860 | {
"func_code_index": [
3143,
3444
]
} | 13,479 | ||
CNYTTOKEN | CNYTTOKEN.sol | 0x2fe1e1ae6f1a65eccf3f1726d4727d42be6fddb8 | Solidity | CNYTTOKEN | contract CNYTTOKEN {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address... | approve | function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | None | bzzr://ea9b13272c4bdbe14135fb4204dc546a7aa545392b7c04f8638aa330df411860 | {
"func_code_index": [
3708,
3938
]
} | 13,480 | ||
CNYTTOKEN | CNYTTOKEN.sol | 0x2fe1e1ae6f1a65eccf3f1726d4727d42be6fddb8 | Solidity | CNYTTOKEN | contract CNYTTOKEN {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes memory _extraData)
public
returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, address(this), _extraData);
return true... | /**
* Set allowance for other address and notify
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf, and then ping the contract about it
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
* @param _extraData some extra information to s... | NatSpecMultiLine | v0.5.2+commit.1df8f40c | None | bzzr://ea9b13272c4bdbe14135fb4204dc546a7aa545392b7c04f8638aa330df411860 | {
"func_code_index": [
4332,
4700
]
} | 13,481 | ||
CNYTTOKEN | CNYTTOKEN.sol | 0x2fe1e1ae6f1a65eccf3f1726d4727d42be6fddb8 | Solidity | CNYTTOKEN | contract CNYTTOKEN {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address... | burn | function burn(uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
emit Burn(msg.sender,... | /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.5.2+commit.1df8f40c | None | bzzr://ea9b13272c4bdbe14135fb4204dc546a7aa545392b7c04f8638aa330df411860 | {
"func_code_index": [
4870,
5249
]
} | 13,482 | ||
CNYTTOKEN | CNYTTOKEN.sol | 0x2fe1e1ae6f1a65eccf3f1726d4727d42be6fddb8 | Solidity | CNYTTOKEN | contract CNYTTOKEN {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 8;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address... | burnFrom | function burnFrom(address _from, uint256 _value) public returns (bool success) {
require(balanceOf[_from] >= _value); // Check if the targeted balance is enough
require(_value <= allowance[_from][msg.sender]); // Check allowance
balanceOf[_from] -= _value; // Sub... | /**
* 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.5.2+commit.1df8f40c | None | bzzr://ea9b13272c4bdbe14135fb4204dc546a7aa545392b7c04f8638aa330df411860 | {
"func_code_index": [
5507,
6123
]
} | 13,483 | ||
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | Token | contract Token {
/// @return total amount of tokens
//function totalSupply() constant returns (uint256 supply);
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance);
/// @n... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance);
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
232,
307
]
} | 13,484 | |||
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | Token | contract Token {
/// @return total amount of tokens
//function totalSupply() constant returns (uint256 supply);
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance);
/// @n... | transfer | function transfer(address _to, uint256 _value) returns (bool success);
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
544,
619
]
} | 13,485 | |||
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | Token | contract Token {
/// @return total amount of tokens
//function totalSupply() constant returns (uint256 supply);
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance);
/// @n... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
942,
1036
]
} | 13,486 | |||
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | Token | contract Token {
/// @return total amount of tokens
//function totalSupply() constant returns (uint256 supply);
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance);
/// @n... | approve | function approve(address _spender, uint256 _value) returns (bool success);
| /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of wei to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
1320,
1399
]
} | 13,487 | |||
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | Token | contract Token {
/// @return total amount of tokens
//function totalSupply() constant returns (uint256 supply);
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance);
/// @n... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining);
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
1607,
1702
]
} | 13,488 | |||
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | LUVTOKEN | contract LUVTOKEN is StandardToken {
function () {
//if ether is sent to this address, send it back.
revert();
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to cus... | //name this contract whatever you'd like | LineComment | LUVTOKEN | function LUVTOKEN(
) {
decimals = 0;
totalSupply = 200000000; // Update total supply (100000 for example)
balances[msg.sender] = totalSupply; // Give the creator all initial tokens (100000 for example)
name = "LUVTOKEN"; //... | //human 0.1 standard. Just an arbitrary versioning scheme.
//
// CHANGE THESE VALUES FOR YOUR TOKEN
//
//make sure this function name matches the contract name above. So if you're token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token | LineComment | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
1160,
1640
]
} | 13,489 | |
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | LUVTOKEN | contract LUVTOKEN is StandardToken {
function () {
//if ether is sent to this address, send it back.
revert();
}
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to cus... | //name this contract whatever you'd like | LineComment | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s... | /* Approves and then calls the receiving contract */ | Comment | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
1701,
2509
]
} | 13,490 | |
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
... | /**
* @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.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
261,
314
]
} | 13,491 | |
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
... | /**
* @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 public {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
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.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
637,
813
]
} | 13,492 | |
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | LUV_Crowdsale | contract LUV_Crowdsale is Ownable {
using SafeMath for uint256;
// The token being sold
LUVTOKEN public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime = 1523750400;
uint256 public phase_1_Time = 1526342400 ;
uint256 public phase_2_... | /**
* @title Token
* @dev API interface for interacting with the LUVTOKEN contract
* /
interface Token {
function transfer (address _to, uint256 _value) returns (bool);
function balanceOf (address_owner) constant returns (uint256 balance);
}
/**
* @title LUV_Crowdsale
* @dev HDK_Crowdsale is a b... | NatSpecMultiLine | createTokenContract | function createTokenContract() internal returns (LUVTOKEN) {
return new LUVTOKEN();
}
| // creates the token to be sold.
// override this method to have crowdsale of a specific mintable token. | LineComment | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
1939,
2035
]
} | 13,493 | |
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | LUV_Crowdsale | contract LUV_Crowdsale is Ownable {
using SafeMath for uint256;
// The token being sold
LUVTOKEN public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime = 1523750400;
uint256 public phase_1_Time = 1526342400 ;
uint256 public phase_2_... | /**
* @title Token
* @dev API interface for interacting with the LUVTOKEN contract
* /
interface Token {
function transfer (address _to, uint256 _value) returns (bool);
function balanceOf (address_owner) constant returns (uint256 balance);
}
/**
* @title LUV_Crowdsale
* @dev HDK_Crowdsale is a b... | NatSpecMultiLine | function () payable {
buyTokens(msg.sender);
}
| // fallback function can be used to buy tokens | LineComment | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
2090,
2147
]
} | 13,494 | ||
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | LUV_Crowdsale | contract LUV_Crowdsale is Ownable {
using SafeMath for uint256;
// The token being sold
LUVTOKEN public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime = 1523750400;
uint256 public phase_1_Time = 1526342400 ;
uint256 public phase_2_... | /**
* @title Token
* @dev API interface for interacting with the LUVTOKEN contract
* /
interface Token {
function transfer (address _to, uint256 _value) returns (bool);
function balanceOf (address_owner) constant returns (uint256 balance);
}
/**
* @title LUV_Crowdsale
* @dev HDK_Crowdsale is a b... | NatSpecMultiLine | buyTokens | function buyTokens(address beneficiary) public payable {
require(beneficiary != 0x0);
require(validPurchase());
uint256 weiAmount = msg.value;
// calculate token amount to be created
uint256 tokens = weiAmount.mul(getRate());
// update state
weiRaised = weiRaised.add(weiAmount);
token.tr... | // low level token purchase function | LineComment | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
2190,
2649
]
} | 13,495 | |
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | LUV_Crowdsale | contract LUV_Crowdsale is Ownable {
using SafeMath for uint256;
// The token being sold
LUVTOKEN public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime = 1523750400;
uint256 public phase_1_Time = 1526342400 ;
uint256 public phase_2_... | /**
* @title Token
* @dev API interface for interacting with the LUVTOKEN contract
* /
interface Token {
function transfer (address _to, uint256 _value) returns (bool);
function balanceOf (address_owner) constant returns (uint256 balance);
}
/**
* @title LUV_Crowdsale
* @dev HDK_Crowdsale is a b... | NatSpecMultiLine | forwardFunds | function forwardFunds() internal {
wallet.transfer(msg.value);
}
| // send ether to the fund collection wallet
// override to create custom fund forwarding mechanisms | LineComment | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
2758,
2833
]
} | 13,496 | |
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | LUV_Crowdsale | contract LUV_Crowdsale is Ownable {
using SafeMath for uint256;
// The token being sold
LUVTOKEN public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime = 1523750400;
uint256 public phase_1_Time = 1526342400 ;
uint256 public phase_2_... | /**
* @title Token
* @dev API interface for interacting with the LUVTOKEN contract
* /
interface Token {
function transfer (address _to, uint256 _value) returns (bool);
function balanceOf (address_owner) constant returns (uint256 balance);
}
/**
* @title LUV_Crowdsale
* @dev HDK_Crowdsale is a b... | NatSpecMultiLine | validPurchase | function validPurchase() internal constant returns (bool) {
bool withinPeriod = now >= startTime && now <= endTime;
bool nonZeroPurchase = msg.value != 0;
return withinPeriod && nonZeroPurchase;
}
| // @return true if the transaction can buy tokens | LineComment | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
2889,
3106
]
} | 13,497 | |
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | LUV_Crowdsale | contract LUV_Crowdsale is Ownable {
using SafeMath for uint256;
// The token being sold
LUVTOKEN public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime = 1523750400;
uint256 public phase_1_Time = 1526342400 ;
uint256 public phase_2_... | /**
* @title Token
* @dev API interface for interacting with the LUVTOKEN contract
* /
interface Token {
function transfer (address _to, uint256 _value) returns (bool);
function balanceOf (address_owner) constant returns (uint256 balance);
}
/**
* @title LUV_Crowdsale
* @dev HDK_Crowdsale is a b... | NatSpecMultiLine | hasEnded | function hasEnded() public constant returns (bool) {
return now > endTime;
}
| // @return true if crowdsale event has ended | LineComment | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
3157,
3244
]
} | 13,498 | |
LUV_Crowdsale | LUV_Crowdsale.sol | 0x58849d4a250bbb9d47d6cd93c7ab39ab1e06aeda | Solidity | LUV_Crowdsale | contract LUV_Crowdsale is Ownable {
using SafeMath for uint256;
// The token being sold
LUVTOKEN public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime = 1523750400;
uint256 public phase_1_Time = 1526342400 ;
uint256 public phase_2_... | /**
* @title Token
* @dev API interface for interacting with the LUVTOKEN contract
* /
interface Token {
function transfer (address _to, uint256 _value) returns (bool);
function balanceOf (address_owner) constant returns (uint256 balance);
}
/**
* @title LUV_Crowdsale
* @dev HDK_Crowdsale is a b... | NatSpecMultiLine | destroy | function destroy() onlyOwner {
// Transfer tokens back to owner
uint256 balance = token.balanceOf(this);
assert (balance > 0);
token.transfer(owner,balance);
// There should be no ether in the contract but just in case
selfdestruct(owner);
}
| /**
* @notice Terminate contract and refund to owner
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://e5eeea145f7c5e60fddf3152cbd527239f57f79a47eaac4e6d949ef7378133ba | {
"func_code_index": [
3310,
3605
]
} | 13,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.