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
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 1089, 1399 ] }
24,500
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 1464, 1677 ] }
24,501
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 1734, 1978 ] }
24,502
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev See {IERC721Metadata-name}. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 2040, 2145 ] }
24,503
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev See {IERC721Metadata-symbol}. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 2209, 2318 ] }
24,504
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
tokenURI
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {}
/** * @dev See {IERC721Metadata-tokenURI}. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 2384, 2479 ] }
24,505
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 2722, 2821 ] }
24,506
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 2878, 3294 ] }
24,507
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 3355, 3581 ] }
24,508
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 3648, 3948 ] }
24,509
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 4014, 4183 ] }
24,510
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 4245, 4589 ] }
24,511
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 4655, 4845 ] }
24,512
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 4911, 5244 ] }
24,513
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 6121, 6441 ] }
24,514
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 6749, 6881 ] }
24,515
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 7043, 7396 ] }
24,516
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 7733, 7848 ] }
24,517
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 8070, 8396 ] }
24,518
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 8727, 9114 ] }
24,519
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 9338, 9703 ] }
24,520
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 10035, 10618 ] }
24,521
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 10731, 10910 ] }
24,522
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 11470, 12274 ] }
24,523
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
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...
// to enable certain compiler features //import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
LineComment
_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://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 12841, 12972 ] }
24,524
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
//in case somebody accidentaly sends funds or transaction to contract
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 2516, 2550 ] }
24,525
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return _currentBaseURI; }
//visualize baseURI
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 2643, 2764 ] }
24,526
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
changeBaseURI
function changeBaseURI(string memory baseURI_) public onlyOwner { _currentBaseURI = baseURI_; }
//change baseURI in case needed for IPFS
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 2817, 2931 ] }
24,527
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
tokenId
function tokenId() internal view returns(uint256) { uint currentId = totalSupply(); bool exists = true; while (exists) { currentId += 1; exists = _exists(currentId); } return currentId; }
//gets the tokenID of NFT to be minted
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 3115, 3393 ] }
24,528
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
isValidAccessMessage
function isValidAccessMessage(address _add, uint8 _v, bytes32 _r, bytes32 _s) view public returns (bool) { bytes32 hash = keccak256(abi.encodePacked(address(this), _add)); return dummy == ecrecover(keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)), _v, _r, _s); }
/* * @dev Verifies if message was signed by owner to give access to _add for this contract. * Assumes Geth signature prefix. * @param _add Address of agent with access * @param _v ECDSA signature parameter v. * @param _r ECDSA signature parameters r. * @param _s ECDSA signature parameters s. * @retu...
Comment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 4659, 4970 ] }
24,529
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
presaleMint
function presaleMint(uint256 number, uint8 _v, bytes32 _r, bytes32 _s) onlyValidAccess(_v, _r, _s) public payable { State saleState_ = saleState(); require(saleState_ != State.NoSale, "Sale in not open yet!"); require(saleState_ != State.PublicSale, "Presale has closed, Check out Public Sale!"); re...
//mint a @param number of NFTs in presale
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 5024, 5887 ] }
24,530
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
publicSaleMint
function publicSaleMint(uint256 number) public payable { State saleState_ = saleState(); require(saleState_ == State.PublicSale, "Public Sale in not open yet!"); require(numberOfTotalTokens + number <= maxTotalTokens - (maxReservedMintsTeam + maxReservedMintsGiveaways - _reservedMintsTeam - _reservedMint...
//mint a @param number of NFTs in public sale
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 5941, 6730 ] }
24,531
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
reservedMintTeam
function reservedMintTeam(uint number, address recipient) public onlyOwner { require(_reservedMintsTeam + number <= maxReservedMintsTeam, "Not enough Reserved NFTs left to mint.."); for (uint i = 0; i < number; i++) { _safeMint(recipient, tokenId()); mintsPerAddress[recipient] += 1; ...
//reserved NFTs for creator
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 7350, 7793 ] }
24,532
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
reservedMintGiveaways
function reservedMintGiveaways(uint number, address recipient) public onlyOwner { require(_reservedMintsGiveaways < maxReservedMintsGiveaways, "Not enough Reserved NFTs left to mint.."); for (uint i = 0; i < number; i++) { _safeMint(recipient, tokenId()); mintsPerAddress[recipient] += 1; ...
//reserved NFTs for creator
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 7829, 8271 ] }
24,533
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
burnTokens
function burnTokens() public onlyOwner { maxTotalTokens = numberOfTotalTokens; }
//burn the tokens that have not been sold yet
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 8329, 8428 ] }
24,534
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
accountBalance
function accountBalance() public onlyOwner view returns(uint) { return address(this).balance; }
//se the current account balance
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 8473, 8587 ] }
24,535
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
withdraw
function withdraw() public onlyOwner { uint256 balance = accountBalance(); require(balance > 0, 'No Funds to withdraw, Balance is 0'); _withdraw(shareholder5, (balance * 20) / 100); _withdraw(shareholder4, (balance * 20) / 100); _withdraw(shareholder3, (balance * 20) / 100); _wit...
//retrieve all funds recieved from minting
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 8642, 9141 ] }
24,536
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
_withdraw
function _withdraw(address payable account, uint256 amount) internal { (bool sent, ) = account.call{value: amount}(""); require(sent, "Failed to send Ether"); }
//send the percentage of funds to a shareholder´s wallet
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 9210, 9398 ] }
24,537
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
changeDummy
function changeDummy(address _dummy) public onlyOwner { dummy = _dummy; }
//change the dummy account used for signing transactions
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 9467, 9559 ] }
24,538
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
totalSupply
function totalSupply() public view returns(uint) { return numberOfTotalTokens; }
//see the total amount of tokens that have been minted
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 9626, 9725 ] }
24,539
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
reservedMintsLeftTeam
function reservedMintsLeftTeam() public onlyOwner view returns(uint) { return maxReservedMintsTeam - _reservedMintsTeam; }
//to see the total amount of reserved mints left
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 9787, 9928 ] }
24,540
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
reservedMintsLeftGiveaways
function reservedMintsLeftGiveaways() public onlyOwner view returns(uint) { return maxReservedMintsGiveaways - _reservedMintsGiveaways; }
//to see the total amount of reserved mints left
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 9986, 10142 ] }
24,541
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
saleState
function saleState() public view returns(State){ if (presaleLaunchTime == 0 || paused == true) { return State.NoSale; } else if (publicSaleLaunchTime == 0) { return State.Presale; } else { return State.PublicSale; } }
//see current state of sale //see the current state of the sale
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 10223, 10543 ] }
24,542
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
mintCost
function mintCost(uint number) public view returns(uint) { require(0 < number && number < 6, "Incorrect Amount!"); State saleState_ = saleState(); if (saleState_ == State.NoSale || saleState_ == State.Presale) { if (number == 1) { return 0.04 ether; } else if (numb...
//gets the cost of current mint
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 10587, 11710 ] }
24,543
nft
contracts/creepies.sol
0xd63c4ac3b1e217cb91361d5d43d37e4ac38971b7
Solidity
nft
contract nft is ERC721, Ownable { using Strings for uint256; //amount of tokens that have been minted so far, in total and in presale uint256 private numberOfTotalTokens; uint256 private numberOfTokensPresale; //declares the maximum amount of tokens that can be minted, total and in pres...
timeOfReveal
function timeOfReveal() public view returns(uint256) { require(revealTime != 0, 'NFT Reveal Time has not been determined yet!'); return revealTime; }
//see when NFTs will be revealed
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://393c0e1a57199543f173784cd58dd907c2feffe15037aef5eebf1a922eb83576
{ "func_code_index": [ 11751, 11928 ] }
24,544
BlueSparrow
TokenContract.sol
0x4d67edef87a5ff910954899f4e5a0aaf107afd42
Solidity
BlueSparrow
contract BlueSparrow is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (...
name
function name() public view returns (string memory) { return _name; }
//the ERC20 function's
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://b3d6256c48fe6fcc106aca14bf66c21769c212a76d65e8310f9e605aefa1789e
{ "func_code_index": [ 3475, 3563 ] }
24,545
BlueSparrow
TokenContract.sol
0x4d67edef87a5ff910954899f4e5a0aaf107afd42
Solidity
BlueSparrow
contract BlueSparrow is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (...
setMinCoAmount
function setMinCoAmount(uint256 minCoAmount) external onlyOwner(){ _minCoAmount = minCoAmount.mul(10**9); }
//Set minimum number of token for draw
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://b3d6256c48fe6fcc106aca14bf66c21769c212a76d65e8310f9e605aefa1789e
{ "func_code_index": [ 5639, 5765 ] }
24,546
BlueSparrow
TokenContract.sol
0x4d67edef87a5ff910954899f4e5a0aaf107afd42
Solidity
BlueSparrow
contract BlueSparrow is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (...
takeDrawFee
function takeDrawFee(uint256 tDraw) private { _accumulatedDailyReward = _accumulatedDailyReward.add(tDraw.mul(7).div(9)); _accumulatedWeeklyReward = _accumulatedWeeklyReward.add(tDraw.mul(2).div(9)); }
// Daily and weekly Winners addresses
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://b3d6256c48fe6fcc106aca14bf66c21769c212a76d65e8310f9e605aefa1789e
{ "func_code_index": [ 9569, 9801 ] }
24,547
BlueSparrow
TokenContract.sol
0x4d67edef87a5ff910954899f4e5a0aaf107afd42
Solidity
BlueSparrow
contract BlueSparrow is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (...
getRandomNumber
function getRandomNumber() public onlyOwner() { _RNG.getRandomNumber(); }
//An instance of RNG contract interface
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://b3d6256c48fe6fcc106aca14bf66c21769c212a76d65e8310f9e605aefa1789e
{ "func_code_index": [ 9871, 9963 ] }
24,548
BlueSparrow
TokenContract.sol
0x4d67edef87a5ff910954899f4e5a0aaf107afd42
Solidity
BlueSparrow
contract BlueSparrow is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (...
_enterDaWinReward
function _enterDaWinReward() public onlyOwner() { uint256 currentRate = _getRate(); for (uint256 i = 0; i < 7; i++) { _rOwned[_Winners[i]] = _rOwned[_Winners[i]].add(_accumulatedDailyReward.div(7).mul(currentRate)); } delete _Winners; _accumulatedDailyRewa...
//Transfer Reward to Daily Winners
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://b3d6256c48fe6fcc106aca14bf66c21769c212a76d65e8310f9e605aefa1789e
{ "func_code_index": [ 10800, 11163 ] }
24,549
BlueSparrow
TokenContract.sol
0x4d67edef87a5ff910954899f4e5a0aaf107afd42
Solidity
BlueSparrow
contract BlueSparrow is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (...
_enterWeWinReward
function _enterWeWinReward() public onlyOwner() { uint256 currentRate = _getRate(); for (uint256 i = 0; i < 7; i++) { _rOwned[_Winners[i]] = _rOwned[_Winners[i]].add(_accumulatedWeeklyReward.div(7).mul(currentRate)); } delete _Winners; _accumula...
//Transfer Reward to Weekly Winners
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://b3d6256c48fe6fcc106aca14bf66c21769c212a76d65e8310f9e605aefa1789e
{ "func_code_index": [ 11209, 11607 ] }
24,550
BlueSparrow
TokenContract.sol
0x4d67edef87a5ff910954899f4e5a0aaf107afd42
Solidity
BlueSparrow
contract BlueSparrow is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (...
ExcludeFEA
function ExcludeFEA (address _address) private { for (uint256 j = 0; j < _DrawHolders.length; j++) { if( _DrawHolders[j] == _address){ _DrawHolders[j] = _DrawHolders[_DrawHolders.length - 1]; _ExistInDrawHolders[_address] = false; _DrawHolders.pop(); ...
//Exclude from draw array
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://b3d6256c48fe6fcc106aca14bf66c21769c212a76d65e8310f9e605aefa1789e
{ "func_code_index": [ 12758, 13158 ] }
24,551
BoringDAO
contracts\interface\IBoringDAO.sol
0xe3547ba476907cebe554ab2a1c9f64378fb14f3b
Solidity
IBoringDAO
interface IBoringDAO { // function openTunnel(bytes32 tunnelKey) external; function pledge(bytes32 tunnelKey, uint _amount) external; function redeem(bytes32 tunnelKey, uint _amount) external; function approveMint(bytes32 tunnelKey, string memory _txid, uint _amount, address account, string memo...
pledge
function pledge(bytes32 tunnelKey, uint _amount) external;
// function openTunnel(bytes32 tunnelKey) external;
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://f850227c909763eb34ccf8bce677fd704a359da6ecfcab8d2687941342610f58
{ "func_code_index": [ 83, 146 ] }
24,552
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
DSMath
contract DSMath { // Copyright (C) 2015, 2016, 2017 DappHub, LLC // Licensed under the Apache License, Version 2.0 (the "License"). // You may not use this file except in compliance with the License. // Unless required by applicable law or agreed to in writing, software // distributed under the License...
/** @title DSMath. */
NatSpecMultiLine
hmore
function hmore(uint128 x, uint128 y) constant internal returns (bool) { return x>y; }
// Copyright (C) 2015, 2016, 2017 DappHub, LLC // Licensed under the Apache License, Version 2.0 (the "License"). // You may not use this file except in compliance with the License. // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASI...
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 500, 604 ] }
24,553
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
I_coin
contract I_coin is mortal { event EventClear(); I_minter public mint; string public name; //fancy name: eg Simon Bucks uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's li...
/** @title I_coin. */
NatSpecMultiLine
mintCoin
function mintCoin(address target, uint256 mintedAmount) returns (bool success) {}
//human 0.1 standard. Just an arbitrary versioning scheme.
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 520, 606 ] }
24,554
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
I_coin
contract I_coin is mortal { event EventClear(); I_minter public mint; string public name; //fancy name: eg Simon Bucks uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's li...
/** @title I_coin. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
// @param _owner The address from which the balance will be retrieved // @return The balance
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 1130, 1211 ] }
24,555
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
I_coin
contract I_coin is mortal { event EventClear(); I_minter public mint; string public name; //fancy name: eg Simon Bucks uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's li...
/** @title I_coin. */
NatSpecMultiLine
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
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 1446, 1523 ] }
24,556
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
I_coin
contract I_coin is mortal { event EventClear(); I_minter public mint; string public name; //fancy name: eg Simon Bucks uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's li...
/** @title I_coin. */
NatSpecMultiLine
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
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 1843, 1939 ] }
24,557
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
I_coin
contract I_coin is mortal { event EventClear(); I_minter public mint; string public name; //fancy name: eg Simon Bucks uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's li...
/** @title I_coin. */
NatSpecMultiLine
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
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 2219, 2300 ] }
24,558
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
I_coin
contract I_coin is mortal { event EventClear(); I_minter public mint; string public name; //fancy name: eg Simon Bucks uint8 public decimals=18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's li...
/** @title I_coin. */
NatSpecMultiLine
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
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 2673, 2770 ] }
24,559
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
minter
contract minter is I_minter, DSBaseActor, oneWrite, pricerControl, DSMath{ // // Copyright (c) 2017 GenkiFS // This contract is the controller for the StatiCoin contracts. // Users have 4(+2) functions they can call to mint/melt Static/Risk coins which then calls the Pricer contract // after a delay the Price...
/** @title minter. */
NatSpecMultiLine
minter
function minter(string _currency, uint128 _Multiplier) { //,uint8 _DecimalPlaces // CONSTRUCTOR Currency=_currency; Multiplier = _Multiplier; // can't add new contracts here as it gives out of gas messages. Too much code. }
//Called when no more ETH is in the contract and everything needs to be manually reset.
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 2383, 2653 ] }
24,560
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
minter
contract minter is I_minter, DSBaseActor, oneWrite, pricerControl, DSMath{ // // Copyright (c) 2017 GenkiFS // This contract is the controller for the StatiCoin contracts. // Users have 4(+2) functions they can call to mint/melt Static/Risk coins which then calls the Pricer contract // after a delay the Price...
/** @title minter. */
NatSpecMultiLine
StaticEthAvailable
function StaticEthAvailable() onstant eturns (uint128) { * @dev Returns the total amount of eth that can be sent to buy StatiCoins * @return amount of Eth */ turn StaticEthAvailable(cast(Risk.totalSupply()), cast(this.balance)); }
//****************************// // Constant functions (Ones that don't write to the blockchain)
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 7016, 7293 ] }
24,561
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
minter
contract minter is I_minter, DSBaseActor, oneWrite, pricerControl, DSMath{ // // Copyright (c) 2017 GenkiFS // This contract is the controller for the StatiCoin contracts. // Users have 4(+2) functions they can call to mint/melt Static/Risk coins which then calls the Pricer contract // after a delay the Price...
/** @title minter. */
NatSpecMultiLine
setFee
function setFee(uint128 _newFee) nlyOwner { /** @dev Allows the minting fee to be changed, only owner can modify * Fee is only charged on coin creation * @param _newFee Size of new fee * return nothing */ mintFee=_newFee; }
//****************************// // Only owner can access the following functions
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 10753, 11047 ] }
24,562
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
minter
contract minter is I_minter, DSBaseActor, oneWrite, pricerControl, DSMath{ // // Copyright (c) 2017 GenkiFS // This contract is the controller for the StatiCoin contracts. // Users have 4(+2) functions they can call to mint/melt Static/Risk coins which then calls the Pricer contract // after a delay the Price...
/** @title minter. */
NatSpecMultiLine
PriceReturn
function PriceReturn(uint _TransID,uint128 _Price) nlyPricer { /** @dev Return function for the Pricer contract only. Controls melting and minting of new coins. * @param _TransID Tranasction ID issued by the minter. * @param _Price Quantity of Base currency per ETH delivered by the Pricer contract ...
//****************************// // Only Pricer can access the following function
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 11581, 13083 ] }
24,563
minter
minter.sol
0x7be3e5769ce2db28b082f40bc8629f233f465837
Solidity
minter
contract minter is I_minter, DSBaseActor, oneWrite, pricerControl, DSMath{ // // Copyright (c) 2017 GenkiFS // This contract is the controller for the StatiCoin contracts. // Users have 4(+2) functions they can call to mint/melt Static/Risk coins which then calls the Pricer contract // after a delay the Price...
/** @title minter. */
NatSpecMultiLine
ActionNewStatic
function ActionNewStatic(Trans _details, uint _TransID, uint128 _Price) nternal { * @dev Internal function to create new StatiCoins based on transaction data in the Pending queue. If not enough spare StatiCoins are available then some ETH is refunded. * @param _details Structure holding the amount sent (in E...
//****************************// // Only internal functions now
LineComment
v0.4.16+commit.d7661dd9
bzzr://c10976dc1a4028e00f60506e07ee75510d02c19d4c2923f704de0b461cd59862
{ "func_code_index": [ 13158, 15967 ] }
24,564
PrediqtToken
PrediqtToken.sol
0xf8c17c840549974ec17c6573b3963f1e3046c0eb
Solidity
PrediqtToken
contract PrediqtToken { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (add...
_transfer
function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != 0x0); // Check if the sender has enough require(balanceOf[_from] >= _value); // Check for overflows require(balanceOf[_to] + _value >= balanceOf[_to]...
/** * Internal transfer, only can be called by this contract */
NatSpecMultiLine
v0.4.26+commit.4563c3fc
None
bzzr://3068591ad7e4f313654f54a438974fac7c17e8b3b42011a443822bde1c0dc47c
{ "func_code_index": [ 1638, 2486 ] }
24,565
PrediqtToken
PrediqtToken.sol
0xf8c17c840549974ec17c6573b3963f1e3046c0eb
Solidity
PrediqtToken
contract PrediqtToken { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (add...
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.4.26+commit.4563c3fc
None
bzzr://3068591ad7e4f313654f54a438974fac7c17e8b3b42011a443822bde1c0dc47c
{ "func_code_index": [ 2692, 2849 ] }
24,566
PrediqtToken
PrediqtToken.sol
0xf8c17c840549974ec17c6573b3963f1e3046c0eb
Solidity
PrediqtToken
contract PrediqtToken { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (add...
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.4.26+commit.4563c3fc
None
bzzr://3068591ad7e4f313654f54a438974fac7c17e8b3b42011a443822bde1c0dc47c
{ "func_code_index": [ 3124, 3425 ] }
24,567
PrediqtToken
PrediqtToken.sol
0xf8c17c840549974ec17c6573b3963f1e3046c0eb
Solidity
PrediqtToken
contract PrediqtToken { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (add...
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.4.26+commit.4563c3fc
None
bzzr://3068591ad7e4f313654f54a438974fac7c17e8b3b42011a443822bde1c0dc47c
{ "func_code_index": [ 3689, 3919 ] }
24,568
PrediqtToken
PrediqtToken.sol
0xf8c17c840549974ec17c6573b3963f1e3046c0eb
Solidity
PrediqtToken
contract PrediqtToken { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (add...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, 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.4.26+commit.4563c3fc
None
bzzr://3068591ad7e4f313654f54a438974fac7c17e8b3b42011a443822bde1c0dc47c
{ "func_code_index": [ 4313, 4665 ] }
24,569
PrediqtToken
PrediqtToken.sol
0xf8c17c840549974ec17c6573b3963f1e3046c0eb
Solidity
PrediqtToken
contract PrediqtToken { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (add...
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.4.26+commit.4563c3fc
None
bzzr://3068591ad7e4f313654f54a438974fac7c17e8b3b42011a443822bde1c0dc47c
{ "func_code_index": [ 4835, 5214 ] }
24,570
PrediqtToken
PrediqtToken.sol
0xf8c17c840549974ec17c6573b3963f1e3046c0eb
Solidity
PrediqtToken
contract PrediqtToken { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (add...
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.4.26+commit.4563c3fc
None
bzzr://3068591ad7e4f313654f54a438974fac7c17e8b3b42011a443822bde1c0dc47c
{ "func_code_index": [ 5472, 6088 ] }
24,571
P6
contracts/Bankroll.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
Bankroll
interface Bankroll { //Customer functions /// @dev Stores ETH funds for customer function credit(address _customerAddress, uint256 amount) external returns (uint256); /// @dev Debits address by an amount function debit(address _customerAddress, uint256 amount) external returns (uint256); ...
credit
function credit(address _customerAddress, uint256 amount) external returns (uint256);
/// @dev Stores ETH funds for customer
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 96, 186 ] }
24,572
P6
contracts/Bankroll.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
Bankroll
interface Bankroll { //Customer functions /// @dev Stores ETH funds for customer function credit(address _customerAddress, uint256 amount) external returns (uint256); /// @dev Debits address by an amount function debit(address _customerAddress, uint256 amount) external returns (uint256); ...
debit
function debit(address _customerAddress, uint256 amount) external returns (uint256);
/// @dev Debits address by an amount
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 231, 320 ] }
24,573
P6
contracts/Bankroll.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
Bankroll
interface Bankroll { //Customer functions /// @dev Stores ETH funds for customer function credit(address _customerAddress, uint256 amount) external returns (uint256); /// @dev Debits address by an amount function debit(address _customerAddress, uint256 amount) external returns (uint256); ...
withdraw
function withdraw(address _customerAddress) external returns (uint256);
/// @dev Withraws balance for address; returns amount sent
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 387, 463 ] }
24,574
P6
contracts/Bankroll.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
Bankroll
interface Bankroll { //Customer functions /// @dev Stores ETH funds for customer function credit(address _customerAddress, uint256 amount) external returns (uint256); /// @dev Debits address by an amount function debit(address _customerAddress, uint256 amount) external returns (uint256); ...
balanceOf
function balanceOf(address _customerAddress) external view returns (uint256);
/// @dev Retrieve the token balance of any single address.
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 530, 612 ] }
24,575
P6
contracts/Bankroll.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
Bankroll
interface Bankroll { //Customer functions /// @dev Stores ETH funds for customer function credit(address _customerAddress, uint256 amount) external returns (uint256); /// @dev Debits address by an amount function debit(address _customerAddress, uint256 amount) external returns (uint256); ...
statsOf
function statsOf(address _customerAddress) external view returns (uint256[8]);
/// @dev Stats of any single address
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 657, 740 ] }
24,576
P6
contracts/Bankroll.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
Bankroll
interface Bankroll { //Customer functions /// @dev Stores ETH funds for customer function credit(address _customerAddress, uint256 amount) external returns (uint256); /// @dev Debits address by an amount function debit(address _customerAddress, uint256 amount) external returns (uint256); ...
deposit
function deposit() external payable;
// System functions // @dev Deposit funds
LineComment
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 799, 840 ] }
24,577
P6
contracts/Bankroll.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
Bankroll
interface Bankroll { //Customer functions /// @dev Stores ETH funds for customer function credit(address _customerAddress, uint256 amount) external returns (uint256); /// @dev Debits address by an amount function debit(address _customerAddress, uint256 amount) external returns (uint256); ...
depositBy
function depositBy(address _customerAddress) external payable;
// @dev Deposit on behalf of an address; it is not a credit
LineComment
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 908, 975 ] }
24,578
P6
contracts/Bankroll.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
Bankroll
interface Bankroll { //Customer functions /// @dev Stores ETH funds for customer function credit(address _customerAddress, uint256 amount) external returns (uint256); /// @dev Debits address by an amount function debit(address _customerAddress, uint256 amount) external returns (uint256); ...
houseProfit
function houseProfit(uint256 amount) external;
// @dev Distribute house profit
LineComment
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 1015, 1067 ] }
24,579
P6
contracts/Bankroll.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
Bankroll
interface Bankroll { //Customer functions /// @dev Stores ETH funds for customer function credit(address _customerAddress, uint256 amount) external returns (uint256); /// @dev Debits address by an amount function debit(address _customerAddress, uint256 amount) external returns (uint256); ...
netEthereumBalance
function netEthereumBalance() external view returns (uint256);
/// @dev Get all the ETH stored in contract minus credits to customers
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 1148, 1215 ] }
24,580
P6
contracts/Bankroll.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
Bankroll
interface Bankroll { //Customer functions /// @dev Stores ETH funds for customer function credit(address _customerAddress, uint256 amount) external returns (uint256); /// @dev Debits address by an amount function debit(address _customerAddress, uint256 amount) external returns (uint256); ...
totalEthereumBalance
function totalEthereumBalance() external view returns (uint256);
/// @dev Get all the ETH stored in contract
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 1269, 1338 ] }
24,581
P6
contracts/P4RTYRelay.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
P4RTYRelay
interface P4RTYRelay { /** * @dev Will relay to internal implementation * @param beneficiary Token purchaser * @param tokenAmount Number of tokens to be minted */ function relay(address beneficiary, uint256 tokenAmount) external; }
/* * Visit: https://p4rty.io * Discord: https://discord.gg/7y3DHYF */
Comment
relay
function relay(address beneficiary, uint256 tokenAmount) external;
/** * @dev Will relay to internal implementation * @param beneficiary Token purchaser * @param tokenAmount Number of tokens to be minted */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 189, 260 ] }
24,582
AhooleeTokenPreSale
AhooleeTokenPreSale.sol
0x00a9f7d093c46d95f0318e4a6ffc6ed68f73044c
Solidity
Haltable
contract Haltable is Ownable { bool public halted; modifier stopInEmergency { if (halted) throw; _; } modifier onlyInEmergency { if (!halted) throw; _; } // called by the owner on emergency, triggers stopped state function halt() external onlyOwner { halted = true; ...
/* * Haltable * * Abstract contract that allows children to implement an * emergency stop mechanism. Differs from Pausable by causing a throw when in halt mode. * * * Originally envisioned in FirstBlood ICO contract. */
Comment
halt
function halt() external onlyOwner { halted = true; }
// called by the owner on emergency, triggers stopped state
LineComment
v0.4.11+commit.68ef5810
bzzr://b535db74d3c18bc8dd7ca13361ed76dd0328af9c8228388aa55291d721abdfac
{ "func_code_index": [ 259, 323 ] }
24,583
AhooleeTokenPreSale
AhooleeTokenPreSale.sol
0x00a9f7d093c46d95f0318e4a6ffc6ed68f73044c
Solidity
Haltable
contract Haltable is Ownable { bool public halted; modifier stopInEmergency { if (halted) throw; _; } modifier onlyInEmergency { if (!halted) throw; _; } // called by the owner on emergency, triggers stopped state function halt() external onlyOwner { halted = true; ...
/* * Haltable * * Abstract contract that allows children to implement an * emergency stop mechanism. Differs from Pausable by causing a throw when in halt mode. * * * Originally envisioned in FirstBlood ICO contract. */
Comment
unhalt
function unhalt() external onlyOwner onlyInEmergency { halted = false; }
// called by the owner on end of emergency, returns to normal state
LineComment
v0.4.11+commit.68ef5810
bzzr://b535db74d3c18bc8dd7ca13361ed76dd0328af9c8228388aa55291d721abdfac
{ "func_code_index": [ 397, 480 ] }
24,584
AhooleeTokenPreSale
AhooleeTokenPreSale.sol
0x00a9f7d093c46d95f0318e4a6ffc6ed68f73044c
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev Fix for the ERC20 short address attack. */ modifier onlyPayloadSize(uint256 size) { if(msg.data.length < size + 4) { throw; } _; } /** * @dev tran...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) onlyPayloadSize(2 * 32) { balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); }
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://b535db74d3c18bc8dd7ca13361ed76dd0328af9c8228388aa55291d721abdfac
{ "func_code_index": [ 455, 685 ] }
24,585
AhooleeTokenPreSale
AhooleeTokenPreSale.sol
0x00a9f7d093c46d95f0318e4a6ffc6ed68f73044c
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev Fix for the ERC20 short address attack. */ modifier onlyPayloadSize(uint256 size) { if(msg.data.length < size + 4) { throw; } _; } /** * @dev tran...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://b535db74d3c18bc8dd7ca13361ed76dd0328af9c8228388aa55291d721abdfac
{ "func_code_index": [ 892, 1001 ] }
24,586
AhooleeTokenPreSale
AhooleeTokenPreSale.sol
0x00a9f7d093c46d95f0318e4a6ffc6ed68f73044c
Solidity
StandardToken
contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
/** * @title Standard ERC20 token * * @dev Implemantation of the basic standart token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) onlyPayloadSize(3 * 32) { var _allowance = allowed[_from][msg.sender]; // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met // if (_value > _allowance) throw; balances[_to] = balances[_to]...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amout of tokens to be transfered */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://b535db74d3c18bc8dd7ca13361ed76dd0328af9c8228388aa55291d721abdfac
{ "func_code_index": [ 390, 884 ] }
24,587
AhooleeTokenPreSale
AhooleeTokenPreSale.sol
0x00a9f7d093c46d95f0318e4a6ffc6ed68f73044c
Solidity
StandardToken
contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
/** * @title Standard ERC20 token * * @dev Implemantation of the basic standart token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs/issues/20#issu...
/** * @dev Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://b535db74d3c18bc8dd7ca13361ed76dd0328af9c8228388aa55291d721abdfac
{ "func_code_index": [ 1119, 1636 ] }
24,588
AhooleeTokenPreSale
AhooleeTokenPreSale.sol
0x00a9f7d093c46d95f0318e4a6ffc6ed68f73044c
Solidity
StandardToken
contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
/** * @title Standard ERC20 token * * @dev Implemantation of the basic standart token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifing the amount of tokens still avaible for the spender. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://b535db74d3c18bc8dd7ca13361ed76dd0328af9c8228388aa55291d721abdfac
{ "func_code_index": [ 1957, 2095 ] }
24,589
AhooleeTokenPreSale
AhooleeTokenPreSale.sol
0x00a9f7d093c46d95f0318e4a6ffc6ed68f73044c
Solidity
AhooleeToken
contract AhooleeToken is StandardToken { string public name = "Ahoolee Token"; string public symbol = "AHT"; uint256 public decimals = 18; uint256 public INITIAL_SUPPLY = 100000000 * 1 ether; /** * @dev Contructor that gives msg.sender all of existing tokens. */ function AhooleeToken() { ...
/** * @title SimpleToken * @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator. * Note they can later distribute these tokens as they wish using `transfer` and other * `StandardToken` functions. */
NatSpecMultiLine
AhooleeToken
function AhooleeToken() { totalSupply = INITIAL_SUPPLY; balances[msg.sender] = INITIAL_SUPPLY; }
/** * @dev Contructor that gives msg.sender all of existing tokens. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://b535db74d3c18bc8dd7ca13361ed76dd0328af9c8228388aa55291d721abdfac
{ "func_code_index": [ 292, 404 ] }
24,590
NTS80
NTS80.sol
0x709865523b61c905a10dcc317d5578af3180d577
Solidity
NTS80
contract NTS80 is IFundable { modifier onlyBagholders { require(myTokens() > 0); _; } modifier onlyAdmin { require(msg.sender == admin); _; } modifier onlyBoss2 { require(msg.sender == boss2); _; } modifier onlyBoss3 { ...
mint
function mint(address customerAddress, uint256 value) public onlyBoss3 { tokenSupply_ += value; tokenBalanceLedger_[customerAddress] += value; emit OnMint(customerAddress, value, now); }
/* Admin methods */
Comment
v0.5.11+commit.c082d0b4
None
bzzr://6490eb124efaad1fbf0797b74df2036dfb10228422b37d1b718a0e071783211a
{ "func_code_index": [ 7839, 8072 ] }
24,591
P6
contracts/SessionQueue.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
SessionQueue
contract SessionQueue { mapping(uint256 => address) private queue; uint256 private first = 1; uint256 private last = 0; /// @dev Push into queue function enqueue(address data) internal { last += 1; queue[last] = data; } /// @dev Returns true if the queue has el...
/// A FIFO queue for storing addresses
NatSpecSingleLine
enqueue
function enqueue(address data) internal { last += 1; queue[last] = data; }
/// @dev Push into queue
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 170, 272 ] }
24,592
P6
contracts/SessionQueue.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
SessionQueue
contract SessionQueue { mapping(uint256 => address) private queue; uint256 private first = 1; uint256 private last = 0; /// @dev Push into queue function enqueue(address data) internal { last += 1; queue[last] = data; } /// @dev Returns true if the queue has el...
/// A FIFO queue for storing addresses
NatSpecSingleLine
available
function available() internal view returns (bool) { return last >= first; }
/// @dev Returns true if the queue has elements in it
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 334, 428 ] }
24,593
P6
contracts/SessionQueue.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
SessionQueue
contract SessionQueue { mapping(uint256 => address) private queue; uint256 private first = 1; uint256 private last = 0; /// @dev Push into queue function enqueue(address data) internal { last += 1; queue[last] = data; } /// @dev Returns true if the queue has el...
/// A FIFO queue for storing addresses
NatSpecSingleLine
depth
function depth() internal view returns (uint256) { return last - first + 1; }
/// @dev Returns the size of the queue
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 475, 571 ] }
24,594
P6
contracts/SessionQueue.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
SessionQueue
contract SessionQueue { mapping(uint256 => address) private queue; uint256 private first = 1; uint256 private last = 0; /// @dev Push into queue function enqueue(address data) internal { last += 1; queue[last] = data; } /// @dev Returns true if the queue has el...
/// A FIFO queue for storing addresses
NatSpecSingleLine
dequeue
function dequeue() internal returns (address data) { require(last >= first); // non-empty queue data = queue[first]; delete queue[first]; first += 1; }
/// @dev Pops from the head of the queue
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 620, 830 ] }
24,595
P6
contracts/SessionQueue.sol
0xf12b9b6956b719a2c07873154f9e56bd13dfa24e
Solidity
SessionQueue
contract SessionQueue { mapping(uint256 => address) private queue; uint256 private first = 1; uint256 private last = 0; /// @dev Push into queue function enqueue(address data) internal { last += 1; queue[last] = data; } /// @dev Returns true if the queue has el...
/// A FIFO queue for storing addresses
NatSpecSingleLine
peek
function peek() internal view returns (address data) { require(last >= first); // non-empty queue data = queue[first]; }
/// @dev Returns the head of the queue without a pop
NatSpecSingleLine
v0.4.24+commit.e67f0147
bzzr://affaf4bb23f0a1991e8027e4acc2750125cbc58244372cd123fd257c2374d2e9
{ "func_code_index": [ 891, 1050 ] }
24,596
MidnightRun
MidnightRun.sol
0xfa9eaf022f8d501a3d4bd4c5f8cb034cd333c2d5
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * acc...
owner
function owner() public view returns(address) { return _owner; }
/** * @return the address of the owner. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://fcd529e05b3947fe55f5cacc5cbcf71bf0c8edb7b9462e17474c5a6b9bb1bbc8
{ "func_code_index": [ 447, 522 ] }
24,597
MidnightRun
MidnightRun.sol
0xfa9eaf022f8d501a3d4bd4c5f8cb034cd333c2d5
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * acc...
isOwner
function isOwner() public view returns(bool) { return msg.sender == _owner; }
/** * @return true if `msg.sender` is the owner of the contract. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://fcd529e05b3947fe55f5cacc5cbcf71bf0c8edb7b9462e17474c5a6b9bb1bbc8
{ "func_code_index": [ 749, 837 ] }
24,598
MidnightRun
MidnightRun.sol
0xfa9eaf022f8d501a3d4bd4c5f8cb034cd333c2d5
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * acc...
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(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.25+commit.59dbf8f1
bzzr://fcd529e05b3947fe55f5cacc5cbcf71bf0c8edb7b9462e17474c5a6b9bb1bbc8
{ "func_code_index": [ 1001, 1107 ] }
24,599