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
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 299, 395 ] }
2,100
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 453, 568 ] }
2,101
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 776, 939 ] }
2,102
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 997, 1136 ] }
2,103
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 1278, 1435 ] }
2,104
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amou...
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 1902, 2211 ] }
2,105
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 2615, 2830 ] }
2,106
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 3328, 3594 ] }
2,107
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exc...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 4079, 4555 ] }
2,108
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); }
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 4831, 5144 ] }
2,109
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amo...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 5472, 5825 ] }
2,110
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); }
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero...
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 6260, 6603 ] }
2,111
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
_burnFrom
function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); }
/** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 6784, 7021 ] }
2,112
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20Burnable
contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public { _burn(_msgSender(), amount); } /** * @dev See {ERC20-_burnFrom}. */ function burnFrom(a...
/** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */
NatSpecMultiLine
burn
function burn(uint256 amount) public { _burn(_msgSender(), amount); }
/** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 152, 240 ] }
2,113
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20Burnable
contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public { _burn(_msgSender(), amount); } /** * @dev See {ERC20-_burnFrom}. */ function burnFrom(a...
/** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */
NatSpecMultiLine
burnFrom
function burnFrom(address account, uint256 amount) public { _burnFrom(account, amount); }
/** * @dev See {ERC20-_burnFrom}. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 297, 405 ] }
2,114
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[accou...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
add
function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[account] = true; }
/** * @dev Give an account access to this role. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 156, 339 ] }
2,115
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[accou...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
remove
function remove(Role storage role, address account) internal { require(has(role, account), "Roles: account does not have role"); role.bearer[account] = false; }
/** * @dev Remove an account's access to this role. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 414, 602 ] }
2,116
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[accou...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
has
function has(Role storage role, address account) internal view returns (bool) { require(account != address(0), "Roles: account is the zero address"); return role.bearer[account]; }
/** * @dev Check if an account has this role. * @return bool */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 692, 900 ] }
2,117
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
ERC20Mintable
contract ERC20Mintable is ERC20, MinterRole { /** * @dev See {ERC20-_mint}. * * Requirements: * * - the caller must have the {MinterRole}. */ function mint(address account, uint256 amount) public onlyMinter returns (bool) { _mint(account, amount); return t...
/** * @dev Extension of {ERC20} that adds a set of accounts with the {MinterRole}, * which have permission to mint (create) new tokens as they see fit. * * At construction, the deployer of the contract is the only minter. */
NatSpecMultiLine
mint
function mint(address account, uint256 amount) public onlyMinter returns (bool) { _mint(account, amount); return true; }
/** * @dev See {ERC20-_mint}. * * Requirements: * * - the caller must have the {MinterRole}. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 184, 332 ] }
2,118
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IERC165
interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This f...
/** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool);
/** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 374, 455 ] }
2,119
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IERC721
contract IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
balanceOf
function balanceOf(address owner) public view returns (uint256 balance);
/** * @dev Returns the number of NFTs in `owner`'s account. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 387, 464 ] }
2,120
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IERC721
contract IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
ownerOf
function ownerOf(uint256 tokenId) public view returns (address owner);
/** * @dev Returns the owner of the NFT specified by `tokenId`. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 551, 626 ] }
2,121
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IERC721
contract IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
safeTransferFrom
function safeTransferFrom(address from, address to, uint256 tokenId) public;
/** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * * * Requirements: * - `from`, `to` cannot be zero. * - `tokenId` must be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this * NFT by either {approve} or {setApp...
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 1017, 1098 ] }
2,122
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IERC721
contract IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** ...
/** * @dev Required interface of an ERC721 compliant contract. */
NatSpecMultiLine
transferFrom
function transferFrom(address from, address to, uint256 tokenId) public;
/** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * Requirements: * - If the caller is not `from`, it must be approved to move this NFT by * either {approve} or {setApprovalForAll}. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 1378, 1455 ] }
2,123
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapExchange
contract IUniswapExchange { // Address of ERC20 token sold on this exchange function tokenAddress() external view returns (address token); // Address of Uniswap Factory function factoryAddress() external view returns (address factory); // Provide Liquidity function addLiquidity(uint256 min...
tokenAddress
function tokenAddress() external view returns (address token);
// Address of ERC20 token sold on this exchange
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 82, 149 ] }
2,124
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapExchange
contract IUniswapExchange { // Address of ERC20 token sold on this exchange function tokenAddress() external view returns (address token); // Address of Uniswap Factory function factoryAddress() external view returns (address factory); // Provide Liquidity function addLiquidity(uint256 min...
factoryAddress
function factoryAddress() external view returns (address factory);
// Address of Uniswap Factory
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 185, 256 ] }
2,125
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapExchange
contract IUniswapExchange { // Address of ERC20 token sold on this exchange function tokenAddress() external view returns (address token); // Address of Uniswap Factory function factoryAddress() external view returns (address factory); // Provide Liquidity function addLiquidity(uint256 min...
addLiquidity
function addLiquidity(uint256 min_liquidity, uint256 max_tokens, uint256 deadline) external payable returns (uint256);
// Provide Liquidity
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 283, 406 ] }
2,126
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapExchange
contract IUniswapExchange { // Address of ERC20 token sold on this exchange function tokenAddress() external view returns (address token); // Address of Uniswap Factory function factoryAddress() external view returns (address factory); // Provide Liquidity function addLiquidity(uint256 min...
getEthToTokenInputPrice
function getEthToTokenInputPrice(uint256 eth_sold) external view returns (uint256 tokens_bought);
// Get Prices
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 564, 666 ] }
2,127
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapExchange
contract IUniswapExchange { // Address of ERC20 token sold on this exchange function tokenAddress() external view returns (address token); // Address of Uniswap Factory function factoryAddress() external view returns (address factory); // Provide Liquidity function addLiquidity(uint256 min...
ethToTokenSwapInput
function ethToTokenSwapInput(uint256 min_tokens, uint256 deadline) external payable returns (uint256 tokens_bought);
// Trade ETH to ERC20
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 1005, 1127 ] }
2,128
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapExchange
contract IUniswapExchange { // Address of ERC20 token sold on this exchange function tokenAddress() external view returns (address token); // Address of Uniswap Factory function factoryAddress() external view returns (address factory); // Provide Liquidity function addLiquidity(uint256 min...
tokenToEthSwapInput
function tokenToEthSwapInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline) external returns (uint256 eth_bought);
// Trade ERC20 to ETH
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 1568, 1697 ] }
2,129
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapExchange
contract IUniswapExchange { // Address of ERC20 token sold on this exchange function tokenAddress() external view returns (address token); // Address of Uniswap Factory function factoryAddress() external view returns (address factory); // Provide Liquidity function addLiquidity(uint256 min...
tokenToTokenSwapInput
function tokenToTokenSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address token_addr) external returns (uint256 tokens_bought);
// Trade ERC20 to ERC20
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 2171, 2359 ] }
2,130
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapExchange
contract IUniswapExchange { // Address of ERC20 token sold on this exchange function tokenAddress() external view returns (address token); // Address of Uniswap Factory function factoryAddress() external view returns (address factory); // Provide Liquidity function addLiquidity(uint256 min...
tokenToExchangeSwapInput
function tokenToExchangeSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address exchange_addr) external returns (uint256 tokens_bought);
// Trade ERC20 to Custom Pool
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 3002, 3196 ] }
2,131
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapExchange
contract IUniswapExchange { // Address of ERC20 token sold on this exchange function tokenAddress() external view returns (address token); // Address of Uniswap Factory function factoryAddress() external view returns (address factory); // Provide Liquidity function addLiquidity(uint256 min...
setup
function setup(address token_addr) external;
// Never use
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 4451, 4500 ] }
2,132
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapFactory
contract IUniswapFactory { // Public Variables address public exchangeTemplate; uint256 public tokenCount; // Create Exchange function createExchange(address token) external returns (address exchange); // Get Exchange and Token Info function getExchange(address token) external view re...
createExchange
function createExchange(address token) external returns (address exchange);
// Create Exchange
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 147, 227 ] }
2,133
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapFactory
contract IUniswapFactory { // Public Variables address public exchangeTemplate; uint256 public tokenCount; // Create Exchange function createExchange(address token) external returns (address exchange); // Get Exchange and Token Info function getExchange(address token) external view re...
getExchange
function getExchange(address token) external view returns (address exchange);
// Get Exchange and Token Info
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 264, 346 ] }
2,134
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
IUniswapFactory
contract IUniswapFactory { // Public Variables address public exchangeTemplate; uint256 public tokenCount; // Create Exchange function createExchange(address token) external returns (address exchange); // Get Exchange and Token Info function getExchange(address token) external view re...
initializeFactory
function initializeFactory(address template) external;
// Never use
LineComment
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 530, 589 ] }
2,135
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
CardERC20Wrapper
contract CardERC20Wrapper is ERC20Burnable, ERC20Mintable { ICards public cards; IUniswapExchange public uniswapExchange; CardERC20WrapperFactory public cardWrapperFactory; uint16 public proto; uint8 ...
init
function init(ICards _cards, uint16 _proto, uint8 _quality, IUniswapExchange _uniswapExchange) public { require(address(cardWrapperFactory) == address(0x0), 'CardWrapper:Already initialized'); cardWrapperFactory = CardERC20WrapperFactory(msg.sender); uniswapExchange = _uniswapExchange; cards = _card...
/** * Initializes this wrapper contract * * Should set cards, proto, quality, and uniswap exchange * * Should fail if already initialized by checking if cardWrapperFatory is set * */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 920, 1324 ] }
2,136
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
CardERC20Wrapper
contract CardERC20Wrapper is ERC20Burnable, ERC20Mintable { ICards public cards; IUniswapExchange public uniswapExchange; CardERC20WrapperFactory public cardWrapperFactory; uint16 public proto; uint8 ...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), allowance(sender,_msgSender()).sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Copied from the OpenZeppelin ERC20 contract and modified to use * the allowance function instead of the _allowances mapping * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - th...
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 4011, 4317 ] }
2,137
CardERC20WrapperFactory
CardERC20WrapperFactory.sol
0xc121ab5405c3a8539667c547b89a210f0ac108dc
Solidity
CardERC20Wrapper
contract CardERC20Wrapper is ERC20Burnable, ERC20Mintable { ICards public cards; IUniswapExchange public uniswapExchange; CardERC20WrapperFactory public cardWrapperFactory; uint16 public proto; uint8 ...
allowance
function allowance(address owner, address spender) public view returns (uint256) { if(spender == address(uniswapExchange)){ return uint(-1); } return super.allowance(owner, spender); }
/** * @dev Automatic infinite approval for Uniswap */
NatSpecMultiLine
v0.5.12+commit.7709ece9
MIT
bzzr://bfde5549627d0b54ec25ce52df2bb044f9f3768b8acb9f21b62d8e3500ea38f2
{ "func_code_index": [ 4391, 4625 ] }
2,138
MWCBones
MWCBones.sol
0xf5b55c07ba111f3c467c7c4a34e0d4e31349092d
Solidity
MWCBones
contract MWCBones is ERC721Enum, Ownable, ReentrancyGuard { using Strings for uint256; string public baseURI; //sale settings uint256 public cost = 0.0015 ether; uint256 public maxSupply = 4999; uint256 public maxMint = 10; bool public status = true; constructor( string memory _name, string memory...
_baseURI
function _baseURI() internal view virtual returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.11+commit.d7f03943
None
ipfs://9b085b80c0b480fa7195f21fcbf01128c4169e56e163b5ca96bdcaa5d871d3e8
{ "func_code_index": [ 434, 525 ] }
2,139
MWCBones
MWCBones.sol
0xf5b55c07ba111f3c467c7c4a34e0d4e31349092d
Solidity
MWCBones
contract MWCBones is ERC721Enum, Ownable, ReentrancyGuard { using Strings for uint256; string public baseURI; //sale settings uint256 public cost = 0.0015 ether; uint256 public maxSupply = 4999; uint256 public maxMint = 10; bool public status = true; constructor( string memory _name, string memory...
mint
function mint(uint256 _mintAmount) public payable nonReentrant{ uint256 s = totalSupply(); require(status, "Off" ); require(_mintAmount > 0, "0" ); require(_mintAmount <= maxMint, "Too many" ); require(s + _mintAmount <= maxSupply, "Max" ); require(msg.value >= cost * _mintAmount); for (uint256 i = 0; i < _mintA...
// public minting
LineComment
v0.8.11+commit.d7f03943
None
ipfs://9b085b80c0b480fa7195f21fcbf01128c4169e56e163b5ca96bdcaa5d871d3e8
{ "func_code_index": [ 546, 944 ] }
2,140
MWCBones
MWCBones.sol
0xf5b55c07ba111f3c467c7c4a34e0d4e31349092d
Solidity
MWCBones
contract MWCBones is ERC721Enum, Ownable, ReentrancyGuard { using Strings for uint256; string public baseURI; //sale settings uint256 public cost = 0.0015 ether; uint256 public maxSupply = 4999; uint256 public maxMint = 10; bool public status = true; constructor( string memory _name, string memory...
adminMint
function adminMint(address[] calldata recipient) external onlyOwner{ nt256 s = totalSupply(); quire(s + recipient.length <= maxSupply, "Too many" ); r(uint i = 0; i < recipient.length; ++i){ afeMint(recipient[i], s++, "" ); lete s;
// admin minting
LineComment
v0.8.11+commit.d7f03943
None
ipfs://9b085b80c0b480fa7195f21fcbf01128c4169e56e163b5ca96bdcaa5d871d3e8
{ "func_code_index": [ 964, 1228 ] }
2,141
ERC721BulkTransfer
contracts/IERC721BulkTransfer.sol
0x582161ff68a8ea517f4d2a746ccf32adc65851e0
Solidity
IERC721BulkTransfer
interface IERC721BulkTransfer { struct ToRecipient { address recipient; uint256 tokenId; } struct FromCollection { address collection; uint256 tokenId; } struct FromCollectionToRecipient { address collection; address recipient; ...
/// @title ERC721 bulk transfer interface /// @author https://github.com/gnkz
NatSpecSingleLine
transfer
function transfer( address collection, address recipient, uint256[] calldata tokenIds ) external;
/// @notice Transfer multiple tokens from a single ERC721 collection to a single recipient /// @param collection The address of the ERC721 contract /// @param recipient The recipient of the tokens /// @param tokenIds The array of token ids to be transferred
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
ipfs://e92d1bd4db1b15515745aacfba251594a9c8ee9751cdd2b2e2c514cc0c7120b1
{ "func_code_index": [ 625, 759 ] }
2,142
ERC721BulkTransfer
contracts/IERC721BulkTransfer.sol
0x582161ff68a8ea517f4d2a746ccf32adc65851e0
Solidity
IERC721BulkTransfer
interface IERC721BulkTransfer { struct ToRecipient { address recipient; uint256 tokenId; } struct FromCollection { address collection; uint256 tokenId; } struct FromCollectionToRecipient { address collection; address recipient; ...
/// @title ERC721 bulk transfer interface /// @author https://github.com/gnkz
NatSpecSingleLine
transfer
function transfer(address collection, ToRecipient[] calldata recipientsData) external;
/// @notice Transfer multiple tokens from a single ERC721 collection to multiple recipients /// @param collection The address of the ERC721 contract /// @param recipientsData An array of { address recipient, uint256 tokenId }
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
ipfs://e92d1bd4db1b15515745aacfba251594a9c8ee9751cdd2b2e2c514cc0c7120b1
{ "func_code_index": [ 1003, 1103 ] }
2,143
ERC721BulkTransfer
contracts/IERC721BulkTransfer.sol
0x582161ff68a8ea517f4d2a746ccf32adc65851e0
Solidity
IERC721BulkTransfer
interface IERC721BulkTransfer { struct ToRecipient { address recipient; uint256 tokenId; } struct FromCollection { address collection; uint256 tokenId; } struct FromCollectionToRecipient { address collection; address recipient; ...
/// @title ERC721 bulk transfer interface /// @author https://github.com/gnkz
NatSpecSingleLine
transfer
function transfer( FromCollection[] calldata collectionsData, address recipient ) external;
/// @notice Transfer multiple tokens from multiple ERC721 collections to a single recipient /// @param collectionsData An array of { address collection, uint256 tokenId } /// @param recipient The recipient of the tokens
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
ipfs://e92d1bd4db1b15515745aacfba251594a9c8ee9751cdd2b2e2c514cc0c7120b1
{ "func_code_index": [ 1341, 1460 ] }
2,144
ERC721BulkTransfer
contracts/IERC721BulkTransfer.sol
0x582161ff68a8ea517f4d2a746ccf32adc65851e0
Solidity
IERC721BulkTransfer
interface IERC721BulkTransfer { struct ToRecipient { address recipient; uint256 tokenId; } struct FromCollection { address collection; uint256 tokenId; } struct FromCollectionToRecipient { address collection; address recipient; ...
/// @title ERC721 bulk transfer interface /// @author https://github.com/gnkz
NatSpecSingleLine
transfer
function transfer(FromCollectionToRecipient[] calldata transferData) external;
/// @notice Transfer multiple tokens from multiple ERC721 collections to multiple recipients /// @param transferData An array of { address collection, address recipient, uint256 tokenId }
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
ipfs://e92d1bd4db1b15515745aacfba251594a9c8ee9751cdd2b2e2c514cc0c7120b1
{ "func_code_index": [ 1661, 1753 ] }
2,145
ICOBuyer
ICOBuyer.sol
0x9f60c6140403b5b51154e5549c953f209a7e3cdd
Solidity
ICOBuyer
contract ICOBuyer { // Emergency kill switch in case a critical bug is found. address public developer = 0xF23B127Ff5a6a8b60CC4cbF937e5683315894DDA; // The crowdsale address. Settable by the developer. address public sale; // The token address. Settable by the developer. ERC20 public token; ...
set_addresses
function set_addresses(address _sale, address _token) { // Only allow the developer to set the sale and token addresses. require(msg.sender == developer); // Only allow setting the addresses once. // Set the crowdsale and token addresses. sale = _sale; token = ERC20(_token); }
// Allows the developer to set the crowdsale and token addresses.
LineComment
v0.4.13+commit.fb4cb1a
bzzr://11a9608022d4fcb91bf69014d093bb5e1e25712070a7a0add5432f19fbcde633
{ "func_code_index": [ 388, 701 ] }
2,146
ICOBuyer
ICOBuyer.sol
0x9f60c6140403b5b51154e5549c953f209a7e3cdd
Solidity
ICOBuyer
contract ICOBuyer { // Emergency kill switch in case a critical bug is found. address public developer = 0xF23B127Ff5a6a8b60CC4cbF937e5683315894DDA; // The crowdsale address. Settable by the developer. address public sale; // The token address. Settable by the developer. ERC20 public token; ...
withdraw
function withdraw(){ developer.transfer(this.balance); require(token.transfer(developer, token.balanceOf(address(this)))); }
// Withdraws all ETH deposited or tokens purchased by the given user and rewards the caller.
LineComment
v0.4.13+commit.fb4cb1a
bzzr://11a9608022d4fcb91bf69014d093bb5e1e25712070a7a0add5432f19fbcde633
{ "func_code_index": [ 806, 950 ] }
2,147
ICOBuyer
ICOBuyer.sol
0x9f60c6140403b5b51154e5549c953f209a7e3cdd
Solidity
ICOBuyer
contract ICOBuyer { // Emergency kill switch in case a critical bug is found. address public developer = 0xF23B127Ff5a6a8b60CC4cbF937e5683315894DDA; // The crowdsale address. Settable by the developer. address public sale; // The token address. Settable by the developer. ERC20 public token; ...
buy
function buy(){ require(sale != 0x0); require(sale.call.value(this.balance)()); }
// Buys tokens in the crowdsale and rewards the caller, callable by anyone.
LineComment
v0.4.13+commit.fb4cb1a
bzzr://11a9608022d4fcb91bf69014d093bb5e1e25712070a7a0add5432f19fbcde633
{ "func_code_index": [ 1038, 1141 ] }
2,148
ICOBuyer
ICOBuyer.sol
0x9f60c6140403b5b51154e5549c953f209a7e3cdd
Solidity
ICOBuyer
contract ICOBuyer { // Emergency kill switch in case a critical bug is found. address public developer = 0xF23B127Ff5a6a8b60CC4cbF937e5683315894DDA; // The crowdsale address. Settable by the developer. address public sale; // The token address. Settable by the developer. ERC20 public token; ...
function () payable { }
// Default function. Called when a user sends ETH to the contract.
LineComment
v0.4.13+commit.fb4cb1a
bzzr://11a9608022d4fcb91bf69014d093bb5e1e25712070a7a0add5432f19fbcde633
{ "func_code_index": [ 1217, 1252 ] }
2,149
Molecules
contracts/Molecules.sol
0xa96c108827674d6a08ed981477b7737495a9c547
Solidity
Molecules
contract Molecules{ IAtomReader atomReader; IPOWNFT pownft; bytes32[] TOKENS; string[10] _subscripts = [ unicode"₀", unicode"₁", unicode"₂", unicode"₃", unicode"₄", unicode"₅", unicode"₆", unicode"₇", unicode"₈", ...
totalSupply
function totalSupply() external view returns (uint256){ return TOKENS.length; }
// ENUMERABLE FUNCTIONS
LineComment
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 14541, 14639 ] }
2,150
ERC20Leven
ERC20Leven.sol
0x4b3f7f7816701d1fd665f0ad6dd046af9cab3999
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); ...
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://23bf2a1a7bda216637521058e39ae65ae56b8b1530b5207e577fa719b3da090b
{ "func_code_index": [ 480, 569 ] }
2,151
ERC20Leven
ERC20Leven.sol
0x4b3f7f7816701d1fd665f0ad6dd046af9cab3999
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); ...
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://23bf2a1a7bda216637521058e39ae65ae56b8b1530b5207e577fa719b3da090b
{ "func_code_index": [ 1112, 1261 ] }
2,152
ERC20Leven
ERC20Leven.sol
0x4b3f7f7816701d1fd665f0ad6dd046af9cab3999
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); ...
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://23bf2a1a7bda216637521058e39ae65ae56b8b1530b5207e577fa719b3da090b
{ "func_code_index": [ 1406, 1650 ] }
2,153
ERC721BulkTransfer
contracts/ERC721BulkTransfer.sol
0x582161ff68a8ea517f4d2a746ccf32adc65851e0
Solidity
ERC721BulkTransfer
contract ERC721BulkTransfer is IERC721BulkTransfer { /// @inheritdoc IERC721BulkTransfer function transfer( address collection, address recipient, uint256[] calldata tokenIds ) external { require(tokenIds.length > 0, "Invalid token ids amount"); for (uin...
/// @title ERC721 tokens bulk transfer /// @author https://github.com/gnkz /// @notice This smart contract allows to transfer multiple ERC721 tokens at once /// @dev The contract needs approvals for the tokens that are going to be transferred
NatSpecSingleLine
transfer
function transfer( address collection, address recipient, uint256[] calldata tokenIds ) external { require(tokenIds.length > 0, "Invalid token ids amount"); for (uint256 i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; IERC721(collection).transferFrom(msg.s...
/// @inheritdoc IERC721BulkTransfer
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
ipfs://e92d1bd4db1b15515745aacfba251594a9c8ee9751cdd2b2e2c514cc0c7120b1
{ "func_code_index": [ 99, 501 ] }
2,154
ERC721BulkTransfer
contracts/ERC721BulkTransfer.sol
0x582161ff68a8ea517f4d2a746ccf32adc65851e0
Solidity
ERC721BulkTransfer
contract ERC721BulkTransfer is IERC721BulkTransfer { /// @inheritdoc IERC721BulkTransfer function transfer( address collection, address recipient, uint256[] calldata tokenIds ) external { require(tokenIds.length > 0, "Invalid token ids amount"); for (uin...
/// @title ERC721 tokens bulk transfer /// @author https://github.com/gnkz /// @notice This smart contract allows to transfer multiple ERC721 tokens at once /// @dev The contract needs approvals for the tokens that are going to be transferred
NatSpecSingleLine
transfer
function transfer(address collection, ToRecipient[] calldata recipientsData) external { require(recipientsData.length > 0, "Empty recipients data"); for (uint256 i = 0; i < recipientsData.length; i++) { uint256 tokenId = recipientsData[i].tokenId; address recipient = recipientsData[i...
/// @inheritdoc IERC721BulkTransfer
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
ipfs://e92d1bd4db1b15515745aacfba251594a9c8ee9751cdd2b2e2c514cc0c7120b1
{ "func_code_index": [ 549, 1009 ] }
2,155
ERC721BulkTransfer
contracts/ERC721BulkTransfer.sol
0x582161ff68a8ea517f4d2a746ccf32adc65851e0
Solidity
ERC721BulkTransfer
contract ERC721BulkTransfer is IERC721BulkTransfer { /// @inheritdoc IERC721BulkTransfer function transfer( address collection, address recipient, uint256[] calldata tokenIds ) external { require(tokenIds.length > 0, "Invalid token ids amount"); for (uin...
/// @title ERC721 tokens bulk transfer /// @author https://github.com/gnkz /// @notice This smart contract allows to transfer multiple ERC721 tokens at once /// @dev The contract needs approvals for the tokens that are going to be transferred
NatSpecSingleLine
transfer
function transfer( FromCollection[] calldata collectionsData, address recipient ) external { require(collectionsData.length > 0, "Empty collections data"); for (uint256 i = 0; i < collectionsData.length; i++) { uint256 tokenId = collectionsData[i].tokenId; address collection = c...
/// @inheritdoc IERC721BulkTransfer
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
ipfs://e92d1bd4db1b15515745aacfba251594a9c8ee9751cdd2b2e2c514cc0c7120b1
{ "func_code_index": [ 1057, 1538 ] }
2,156
ERC721BulkTransfer
contracts/ERC721BulkTransfer.sol
0x582161ff68a8ea517f4d2a746ccf32adc65851e0
Solidity
ERC721BulkTransfer
contract ERC721BulkTransfer is IERC721BulkTransfer { /// @inheritdoc IERC721BulkTransfer function transfer( address collection, address recipient, uint256[] calldata tokenIds ) external { require(tokenIds.length > 0, "Invalid token ids amount"); for (uin...
/// @title ERC721 tokens bulk transfer /// @author https://github.com/gnkz /// @notice This smart contract allows to transfer multiple ERC721 tokens at once /// @dev The contract needs approvals for the tokens that are going to be transferred
NatSpecSingleLine
transfer
function transfer(FromCollectionToRecipient[] calldata transferData) external { require(transferData.length > 0, "Empty transfer data"); for (uint256 i = 0; i < transferData.length; i++) { uint256 tokenId = transferData[i].tokenId; address collection = transferData[i].collection; ...
/// @inheritdoc IERC721BulkTransfer
NatSpecSingleLine
v0.8.9+commit.e5eed63a
MIT
ipfs://e92d1bd4db1b15515745aacfba251594a9c8ee9751cdd2b2e2c514cc0c7120b1
{ "func_code_index": [ 1586, 2090 ] }
2,157
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 860, 1125 ] }
2,158
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 1171, 1362 ] }
2,159
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 1406, 1621 ] }
2,160
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 1670, 1760 ] }
2,161
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 1811, 1905 ] }
2,162
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 1958, 2267 ] }
2,163
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 2489, 2573 ] }
2,164
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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 approved for all"); _approve(...
/** * @dev See {IERC721-approve}. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 2617, 2958 ] }
2,165
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 3006, 3209 ] }
2,166
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 3263, 3533 ] }
2,167
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 3586, 3740 ] }
2,168
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 3789, 4078 ] }
2,169
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 4131, 4281 ] }
2,170
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 4334, 4613 ] }
2,171
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 5417, 5683 ] }
2,172
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 5958, 6075 ] }
2,173
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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, spender)); }
/** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 6208, 6532 ] }
2,174
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 6828, 6928 ] }
2,175
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 7133, 7375 ] }
2,176
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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 Transfer(address(0), to, token...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 7657, 7991 ] }
2,177
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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), tokenId); }
/** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 8174, 8478 ] }
2,178
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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); // Clear approvals from the previ...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 8765, 9248 ] }
2,179
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 9340, 9497 ] }
2,180
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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 == IERC721Receiver.onERC721Received.selector; ...
/** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @pa...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 10016, 10600 ] }
2,181
BoredLabs
ERC721.sol
0x2be68355412b3c4e23ddd4c3f6d4dd4337028de3
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 _owners; // Mapping owner address to...
/** * @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...
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://2a99a6d58f4e0d58f4aa24b02946a8cf70c4ec7bdb0dd1b7e2877351e6129cec
{ "func_code_index": [ 11110, 11212 ] }
2,182
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
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. */ constructor() public { owner = m...
/** * @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) public onlyOwner { require(_newOwner != address(0)); emit 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.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 684, 885 ] }
2,183
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
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. */ constructor() public { owner = m...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
rescueTokens
function rescueTokens(ERC20Basic _token) external onlyOwner { uint256 balance = _token.balanceOf(this); assert(_token.transfer(owner, balance)); }
/** * @dev Rescue compatible ERC20Basic Token * * @param _token ERC20Basic The address of the token contract */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 1029, 1203 ] }
2,184
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
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. */ constructor() public { owner = m...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
withdrawEther
function withdrawEther() external onlyOwner { owner.transfer(address(this).balance); }
/** * @dev Withdraw Ether */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 1252, 1357 ] }
2,185
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 97, 304 ] }
2,186
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return a / b; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 396, 696 ] }
2,187
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 768, 914 ] }
2,188
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 1036, 1164 ] }
2,189
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; uint256 totalSupply_; mapping(address => uint256) balances; mapping(address => uint256) lockedBalanceMap; // locked balance: address => amount mapping(address => uint256) releaseTimeMap; // release time: address => time...
/** * @title Basic token, Lockable * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256) { return totalSupply_; }
/** * @dev total number of tokens in existence */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 464, 560 ] }
2,190
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; uint256 totalSupply_; mapping(address => uint256) balances; mapping(address => uint256) lockedBalanceMap; // locked balance: address => amount mapping(address => uint256) releaseTimeMap; // release time: address => time...
/** * @title Basic token, Lockable * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
checkNotLocked
function checkNotLocked(address _addr, uint256 _value) internal view returns (bool) { uint256 balance = balances[_addr].sub(_value); if (releaseTimeMap[_addr] > block.timestamp && balance < lockedBalanceMap[_addr]) { revert(); } return true; }
/** * @dev function to make sure the balance is not locked * @param _addr address * @param _value uint256 */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 701, 1003 ] }
2,191
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; uint256 totalSupply_; mapping(address => uint256) balances; mapping(address => uint256) lockedBalanceMap; // locked balance: address => amount mapping(address => uint256) releaseTimeMap; // release time: address => time...
/** * @title Basic token, Lockable * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); checkNotLocked(msg.sender, _value); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Trans...
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 1175, 1582 ] }
2,192
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; uint256 totalSupply_; mapping(address => uint256) balances; mapping(address => uint256) lockedBalanceMap; // locked balance: address => amount mapping(address => uint256) releaseTimeMap; // release time: address => time...
/** * @title Basic token, Lockable * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) public view returns (uint256) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return Amount. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 1746, 1858 ] }
2,193
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; uint256 totalSupply_; mapping(address => uint256) balances; mapping(address => uint256) lockedBalanceMap; // locked balance: address => amount mapping(address => uint256) releaseTimeMap; // release time: address => time...
/** * @title Basic token, Lockable * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
lockedBalanceOf
function lockedBalanceOf(address _owner) public view returns (uint256) { return lockedBalanceMap[_owner]; }
/** * @dev Gets the locked balance of the specified address. * @param _owner The address to query. * @return Amount. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 2010, 2136 ] }
2,194
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; uint256 totalSupply_; mapping(address => uint256) balances; mapping(address => uint256) lockedBalanceMap; // locked balance: address => amount mapping(address => uint256) releaseTimeMap; // release time: address => time...
/** * @title Basic token, Lockable * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
releaseTimeOf
function releaseTimeOf(address _owner) public view returns (uint256) { return releaseTimeMap[_owner]; }
/** * @dev Gets the release timestamp of the specified address if it has a locked balance. * @param _owner The address to query. * @return Timestamp. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 2321, 2443 ] }
2,195
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal 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 t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); checkNotLocked(_from, _value); balances[_from] = balances[_from].sub(_value); balance...
/** * @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 amount of tokens to be transferred */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 413, 948 ] }
2,196
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal 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 t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * ...
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 1600, 1811 ] }
2,197
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal 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 t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public view returns (uint256) { 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 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 2147, 2286 ] }
2,198
VNETToken
VNETToken.sol
0xa71074b6c4a31c1d1798b04801a89d78f6e26123
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal 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 t...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 */
NatSpecMultiLine
increaseApproval
function increaseApproval(address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spend...
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://860909762eed448f609e635aaaf8ff4eb12d56d79187c6060d1736a6b1c0efd2
{ "func_code_index": [ 2772, 3057 ] }
2,199