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
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 895, 983 ] }
16,800
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 1647, 1726 ] }
16,801
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 2039, 2141 ] }
16,802
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 100, 159 ] }
16,803
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 226, 287 ] }
16,804
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 363, 418 ] }
16,805
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 779, 884 ] }
16,806
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 998, 1107 ] }
16,807
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view virtual override returns (uint8) { return 18; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 1741, 1839 ] }
16,808
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 1899, 2012 ] }
16,809
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 2070, 2202 ] }
16,810
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override 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.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 2410, 2590 ] }
16,811
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 2648, 2804 ] }
16,812
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 2946, 3120 ] }
16,813
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _ap...
/** * @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 `...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 3597, 4024 ] }
16,814
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + 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.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 4428, 4648 ] }
16,815
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - sub...
/** * @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.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 5146, 5528 ] }
16,816
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 sende...
/** * @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.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 6013, 6622 ] }
16,817
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += 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.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 6899, 7242 ] }
16,818
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds ba...
/** * @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.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 7570, 8069 ] }
16,819
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { 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, amoun...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This 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 a...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 8502, 8853 ] }
16,820
INFTToken
INFTToken.sol
0xa36d285633136f88c0e370864f43ed3f5022e540
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.8.4+commit.c7e474f2
MIT
ipfs://6e25b0075d3ffebb4ee4a6151a9dacd5509670f83b34fe579349ff51faa1ba2d
{ "func_code_index": [ 9451, 9548 ] }
16,821
Swap
@airswap/tokens/contracts/interfaces/INRERC20.sol
0x5fc1d62123558feabad1b806fdefec1de61162de
Solidity
INRERC20
interface INRERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @de...
/** * @notice Interface for non-returning ERC20 contract * @dev Modified Interface of the ERC20 standard that does not return bool * for transfer and transferFrom functions */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
bzzr://cf2206b67f7e14a44a96d5a82825487a2d1692aad3a99be6d9cb9e809096159e
{ "func_code_index": [ 92, 151 ] }
16,822
Swap
@airswap/tokens/contracts/interfaces/INRERC20.sol
0x5fc1d62123558feabad1b806fdefec1de61162de
Solidity
INRERC20
interface INRERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @de...
/** * @notice Interface for non-returning ERC20 contract * @dev Modified Interface of the ERC20 standard that does not return bool * for transfer and transferFrom functions */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
bzzr://cf2206b67f7e14a44a96d5a82825487a2d1692aad3a99be6d9cb9e809096159e
{ "func_code_index": [ 229, 301 ] }
16,823
Swap
@airswap/tokens/contracts/interfaces/INRERC20.sol
0x5fc1d62123558feabad1b806fdefec1de61162de
Solidity
INRERC20
interface INRERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @de...
/** * @notice Interface for non-returning ERC20 contract * @dev Modified Interface of the ERC20 standard that does not return bool * for transfer and transferFrom functions */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external;
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Doesn't returns a boolean value. * * Emits a `Transfer` event. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
bzzr://cf2206b67f7e14a44a96d5a82825487a2d1692aad3a99be6d9cb9e809096159e
{ "func_code_index": [ 481, 547 ] }
16,824
Swap
@airswap/tokens/contracts/interfaces/INRERC20.sol
0x5fc1d62123558feabad1b806fdefec1de61162de
Solidity
INRERC20
interface INRERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @de...
/** * @notice Interface for non-returning ERC20 contract * @dev Modified Interface of the ERC20 standard that does not return bool * for transfer and transferFrom functions */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through `transferFrom`. This is * zero by default. * * This value changes when `approve` or `transferFrom` are called. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
bzzr://cf2206b67f7e14a44a96d5a82825487a2d1692aad3a99be6d9cb9e809096159e
{ "func_code_index": [ 817, 904 ] }
16,825
Swap
@airswap/tokens/contracts/interfaces/INRERC20.sol
0x5fc1d62123558feabad1b806fdefec1de61162de
Solidity
INRERC20
interface INRERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @de...
/** * @notice Interface for non-returning ERC20 contract * @dev Modified Interface of the ERC20 standard that does not return bool * for transfer and transferFrom functions */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * > 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 ...
NatSpecMultiLine
v0.5.12+commit.7709ece9
bzzr://cf2206b67f7e14a44a96d5a82825487a2d1692aad3a99be6d9cb9e809096159e
{ "func_code_index": [ 1543, 1621 ] }
16,826
Swap
@airswap/tokens/contracts/interfaces/INRERC20.sol
0x5fc1d62123558feabad1b806fdefec1de61162de
Solidity
INRERC20
interface INRERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @de...
/** * @notice Interface for non-returning ERC20 contract * @dev Modified Interface of the ERC20 standard that does not return bool * for transfer and transferFrom functions */
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external;
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Doesn't return a boolean value. * * Emits a `Transfer` event. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
bzzr://cf2206b67f7e14a44a96d5a82825487a2d1692aad3a99be6d9cb9e809096159e
{ "func_code_index": [ 1887, 1973 ] }
16,827
Roulette
Roulette.sol
0x843311a93665de5a3e7d68909862a1a7412f9bc3
Solidity
Roulette
contract Roulette { event newRound(uint number); event newPlayer(address addr, uint roundNumber); event playerWin(address indexed addr); event playerLose(address indexed addr, uint8 num); uint public roundNumber = 1; address public feeAddr; address[] public players; const...
distributeFunds
function distributeFunds() internal { // determine who is lose uint8 loser = uint8(getRandom() % players.length + 1); for (uint i = 0; i <= players.length - 1; i++) { // if it is loser - skip if (loser == i + 1) { emit playerLose(players[i], loser); continue...
// Send ETH to winners
LineComment
v0.4.24+commit.e67f0147
bzzr://dcee88b778d62b570e02fa3a798b7cf726a5412ae4e4507bd8bde4c297c9999e
{ "func_code_index": [ 875, 1574 ] }
16,828
Swap
openzeppelin-solidity/contracts/math/SafeMath.sol
0x5fc1d62123558feabad1b806fdefec1de61162de
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
bzzr://cf2206b67f7e14a44a96d5a82825487a2d1692aad3a99be6d9cb9e809096159e
{ "func_code_index": [ 241, 420 ] }
16,829
Swap
openzeppelin-solidity/contracts/math/SafeMath.sol
0x5fc1d62123558feabad1b806fdefec1de61162de
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
bzzr://cf2206b67f7e14a44a96d5a82825487a2d1692aad3a99be6d9cb9e809096159e
{ "func_code_index": [ 679, 861 ] }
16,830
Swap
openzeppelin-solidity/contracts/math/SafeMath.sol
0x5fc1d62123558feabad1b806fdefec1de61162de
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.5.12+commit.7709ece9
bzzr://cf2206b67f7e14a44a96d5a82825487a2d1692aad3a99be6d9cb9e809096159e
{ "func_code_index": [ 1096, 1556 ] }
16,831
Swap
openzeppelin-solidity/contracts/math/SafeMath.sol
0x5fc1d62123558feabad1b806fdefec1de61162de
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, "SafeMath: division by zero"); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (co...
NatSpecMultiLine
v0.5.12+commit.7709ece9
bzzr://cf2206b67f7e14a44a96d5a82825487a2d1692aad3a99be6d9cb9e809096159e
{ "func_code_index": [ 2006, 2335 ] }
16,832
Swap
openzeppelin-solidity/contracts/math/SafeMath.sol
0x5fc1d62123558feabad1b806fdefec1de61162de
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "SafeMath: modulo by zero"); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all...
NatSpecMultiLine
v0.5.12+commit.7709ece9
bzzr://cf2206b67f7e14a44a96d5a82825487a2d1692aad3a99be6d9cb9e809096159e
{ "func_code_index": [ 2774, 2927 ] }
16,833
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } uint256...
/** * @dev Multiplies two numbers, reverts on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 90, 486 ] }
16,834
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0); // Solidity only automatically asserts when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Integer division of two numbers truncating the quotient, reverts on division by zero. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 598, 877 ] }
16,835
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; }
/** * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 992, 1131 ] }
16,836
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; }
/** * @dev Adds two numbers, reverts on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 1196, 1335 ] }
16,837
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; }
/** * @dev Divides two numbers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 1470, 1587 ] }
16,838
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
name
function name() public view returns(string) { return _name; }
/** * @return the name of the token. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 678, 750 ] }
16,839
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
symbol
function symbol() public view returns(string) { return _symbol; }
/** * @return the symbol of the token. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 806, 882 ] }
16,840
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
decimals
function decimals() public view returns(uint8) { return _decimals; }
/** * @return the number of decimals of the token. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 950, 1029 ] }
16,841
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
totalSupply
function totalSupply() public view returns (uint256) { return _totalSupply; }
/** * @dev Total number of tokens in existence */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 1091, 1179 ] }
16,842
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
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 balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 1380, 1483 ] }
16,843
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
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.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 1805, 1967 ] }
16,844
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
transfer
function transfer(address to, uint256 value) public returns (bool) { _transfer(msg.sender, to, value); return true; }
/** * @dev Transfer token for a specified address * @param to The address to transfer to. * @param value The amount to be transferred. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 2123, 2256 ] }
16,845
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
approve
function approve(address spender, uint256 value) public returns (bool) { require(spender != address(0)); _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 * race...
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 2880, 3109 ] }
16,846
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
transferFrom
function transferFrom( address from, address to, uint256 value ) public returns (bool) { require(value <= _allowed[from][msg.sender]); _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value); _transfer(from, to, value); return true; }
/** * @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.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 3386, 3690 ] }
16,847
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
increaseAllowance
function increaseAllowance( address spender, uint256 addedValue ) public returns (bool) { require(spender != address(0)); _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 spender T...
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 4149, 4495 ] }
16,848
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
decreaseAllowance
function decreaseAllowance( address spender, uint256 subtractedValue ) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = ( _allowed[msg.sender][spender].sub(subtractedValue)); emit Approval(msg.sender, spender, _allowed[msg.sender][spender]); return...
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * approve should be called when allowed_[_spender] == 0. To decrement * 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 spender T...
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 4959, 5315 ] }
16,849
ERC20
ERC20.sol
0x2fa3f0e6b72648877191aa146bca6a976a56049e
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; constructor(stri...
_transfer
function _transfer(address from, address to, uint256 value) internal { require(value <= _balances[from]); require(to != address(0)); _balances[from] = _balances[from].sub(value); _balances[to] = _balances[to].add(value); emit Transfer(from, to, value); }
/** * @dev Transfer token for a specified addresses * @param from The address to transfer from. * @param to The address to transfer to. * @param value The amount to be transferred. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://97996ee3cdfc2da8bdc07f6aa1af1e20914e5914792489d66ba5c0f3f02f91e9
{ "func_code_index": [ 5520, 5807 ] }
16,850
NBTC
NBTC.sol
0xc6e2fb603b1625a6e2ad06cd43d88d99f26e589e
Solidity
NBTC
contract NBTC is NBTCToken,ReentrancyGuard { using SafeMath for uint256; mapping (address => User) public users; mapping (uint8 => Slab) public mulfact; mapping (uint8 => uint8) public levelComm; mapping (uint8 => uint256) public levelVolume; uint256 public totalUsers; uint8 publi...
/* Dont accept eth*/
Comment
v0.7.1+commit.f4a555be
None
ipfs://fb6ab35bb6da3b6fe91e6b3999bee5716e1e02d04b2660e04b40b0ca524226f2
{ "func_code_index": [ 3314, 3475 ] }
16,851
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 94, 154 ] }
16,852
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 237, 310 ] }
16,853
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 534, 616 ] }
16,854
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 895, 983 ] }
16,855
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * ////IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortun...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 1651, 1730 ] }
16,856
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 2043, 2179 ] }
16,857
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 100, 159 ] }
16,858
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 226, 287 ] }
16,859
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 363, 418 ] }
16,860
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 776, 881 ] }
16,861
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 995, 1104 ] }
16,862
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view virtual override returns (uint8) { return 18; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 1738, 1836 ] }
16,863
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 1896, 2009 ] }
16,864
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 2067, 2199 ] }
16,865
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override 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.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 2407, 2587 ] }
16,866
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 2645, 2801 ] }
16,867
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 2943, 3117 ] }
16,868
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds all...
/** * @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 `...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 3594, 4091 ] }
16,869
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + 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.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 4495, 4715 ] }
16,870
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, c...
/** * @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.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 5213, 5631 ] }
16,871
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_transfer
function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); ...
/** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This 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.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 6116, 6854 ] }
16,872
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += 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: * * - `account` cannot be the zero address. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 7136, 7540 ] }
16,873
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds ba...
/** * @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.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 7868, 8464 ] }
16,874
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_approve
function _approve( address owner, address spender, uint256 amount ) internal virtual { 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(own...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This 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 a...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 8897, 9282 ] }
16,875
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - wh...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 9877, 10007 ] }
16,876
HISTToken
HISTToken.sol
0xf5a19e3fd7b3330fc5364aa9d62c93a7e4400af3
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_afterTokenTransfer
function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - ...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://5ac5b92a38c3d24fdba6fad8fd1d1cea9f37c5d758dbcccb3a1b694fdee6979a
{ "func_code_index": [ 10606, 10735 ] }
16,877
Yieldv2
Yieldv2.sol
0x975c00f91d85000c44e0a2a323cc2fc95363feb6
Solidity
EIP20Interface
contract EIP20Interface { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract sinc...
balanceOf
function balanceOf(address _owner) public view returns (uint256 balance);
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.21+commit.dfe3193c
MIT
bzzr://78d55e8dfbe6881126ea07c28a7029f4ae21c5aeb10c01b77448b419cf9ce166
{ "func_code_index": [ 638, 716 ] }
16,878
Yieldv2
Yieldv2.sol
0x975c00f91d85000c44e0a2a323cc2fc95363feb6
Solidity
EIP20Interface
contract EIP20Interface { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract sinc...
transfer
function transfer(address _to, uint256 _value) public returns (bool success);
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.21+commit.dfe3193c
MIT
bzzr://78d55e8dfbe6881126ea07c28a7029f4ae21c5aeb10c01b77448b419cf9ce166
{ "func_code_index": [ 953, 1035 ] }
16,879
Yieldv2
Yieldv2.sol
0x975c00f91d85000c44e0a2a323cc2fc95363feb6
Solidity
EIP20Interface
contract EIP20Interface { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract sinc...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.21+commit.dfe3193c
MIT
bzzr://78d55e8dfbe6881126ea07c28a7029f4ae21c5aeb10c01b77448b419cf9ce166
{ "func_code_index": [ 1358, 1459 ] }
16,880
Yieldv2
Yieldv2.sol
0x975c00f91d85000c44e0a2a323cc2fc95363feb6
Solidity
EIP20Interface
contract EIP20Interface { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract sinc...
approve
function approve(address _spender, uint256 _value) public returns (bool success);
/// @notice `msg.sender` approves `_spender` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of tokens to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.21+commit.dfe3193c
MIT
bzzr://78d55e8dfbe6881126ea07c28a7029f4ae21c5aeb10c01b77448b419cf9ce166
{ "func_code_index": [ 1749, 1835 ] }
16,881
Yieldv2
Yieldv2.sol
0x975c00f91d85000c44e0a2a323cc2fc95363feb6
Solidity
EIP20Interface
contract EIP20Interface { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract sinc...
allowance
function allowance(address _owner, address _spender) public view returns (uint256 remaining);
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.21+commit.dfe3193c
MIT
bzzr://78d55e8dfbe6881126ea07c28a7029f4ae21c5aeb10c01b77448b419cf9ce166
{ "func_code_index": [ 2043, 2141 ] }
16,882
Yieldv2
Yieldv2.sol
0x975c00f91d85000c44e0a2a323cc2fc95363feb6
Solidity
Yieldv2
contract Yieldv2 is EIP20Interface { uint256 constant private MAX_UINT256 = 2**256 - 1; mapping (address => uint256) public balances; mapping (address => mapping (address => uint256)) public allowed; /* NOTE: The following variables are OPTIONAL vanities. One does not have to include the...
Yieldv2
function Yieldv2( uint256 _initialAmount, string _tokenName, uint8 _decimalUnits, string _tokenSymbol ) public { balances[msg.sender] = _initialAmount; // Give the creator all initial tokens totalSupply = _initialAmount; // Update total supply nam...
//An identifier: eg SBX
LineComment
v0.4.21+commit.dfe3193c
MIT
bzzr://78d55e8dfbe6881126ea07c28a7029f4ae21c5aeb10c01b77448b419cf9ce166
{ "func_code_index": [ 724, 1380 ] }
16,883
TheAbyssDAICO
contracts/ownership/Ownable.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
Ownable
contract Ownable { address public owner; address public newOwner; event OwnershipTransferred(address previousOwner, address newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract. */ function Ownable(address _owner) public { owner = _owner...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable(address _owner) public { owner = _owner == address(0) ? msg.sender : _owner; }
/** * @dev The Ownable constructor sets the original `owner` of the contract. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 251, 365 ] }
16,884
TheAbyssDAICO
contracts/ownership/Ownable.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
Ownable
contract Ownable { address public owner; address public newOwner; event OwnershipTransferred(address previousOwner, address newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract. */ function Ownable(address _owner) public { owner = _owner...
/** * @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 != owner); newOwner = _newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param _newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 706, 851 ] }
16,885
TheAbyssDAICO
contracts/ownership/Ownable.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
Ownable
contract Ownable { address public owner; address public newOwner; event OwnershipTransferred(address previousOwner, address newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract. */ function Ownable(address _owner) public { owner = _owner...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
confirmOwnership
function confirmOwnership() public { require(msg.sender == newOwner); OwnershipTransferred(owner, newOwner); owner = newOwner; newOwner = 0x0; }
/** * @dev confirm ownership by a new owner */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 916, 1106 ] }
16,886
TheAbyssDAICO
contracts/fund/ICrowdsaleReservationFund.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
ICrowdsaleReservationFund
interface ICrowdsaleReservationFund { /** * @dev Check if contributor has transactions */ function canCompleteContribution(address contributor) external returns(bool); /** * @dev Complete contribution * @param contributor Contributor`s address */ function completeContri...
/** * @title ICrowdsaleReservationFund * @dev ReservationFund methods used by crowdsale contract */
NatSpecMultiLine
canCompleteContribution
function canCompleteContribution(address contributor) external returns(bool);
/** * @dev Check if contributor has transactions */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 108, 190 ] }
16,887
TheAbyssDAICO
contracts/fund/ICrowdsaleReservationFund.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
ICrowdsaleReservationFund
interface ICrowdsaleReservationFund { /** * @dev Check if contributor has transactions */ function canCompleteContribution(address contributor) external returns(bool); /** * @dev Complete contribution * @param contributor Contributor`s address */ function completeContri...
/** * @title ICrowdsaleReservationFund * @dev ReservationFund methods used by crowdsale contract */
NatSpecMultiLine
completeContribution
function completeContribution(address contributor) external;
/** * @dev Complete contribution * @param contributor Contributor`s address */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 293, 358 ] }
16,888
TheAbyssDAICO
contracts/fund/ICrowdsaleReservationFund.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
ICrowdsaleReservationFund
interface ICrowdsaleReservationFund { /** * @dev Check if contributor has transactions */ function canCompleteContribution(address contributor) external returns(bool); /** * @dev Complete contribution * @param contributor Contributor`s address */ function completeContri...
/** * @title ICrowdsaleReservationFund * @dev ReservationFund methods used by crowdsale contract */
NatSpecMultiLine
processContribution
function processContribution(address contributor, uint256 _tokensToIssue, uint256 _bonusTokensToIssue) external payable;
/** * @dev Function accepts user`s contributed ether and amount of tokens to issue * @param contributor Contributor wallet address. * @param _tokensToIssue Token amount to issue * @param _bonusTokensToIssue Bonus token amount to issue */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 632, 757 ] }
16,889
TheAbyssDAICO
contracts/fund/ICrowdsaleReservationFund.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
ICrowdsaleReservationFund
interface ICrowdsaleReservationFund { /** * @dev Check if contributor has transactions */ function canCompleteContribution(address contributor) external returns(bool); /** * @dev Complete contribution * @param contributor Contributor`s address */ function completeContri...
/** * @title ICrowdsaleReservationFund * @dev ReservationFund methods used by crowdsale contract */
NatSpecMultiLine
contributionsOf
function contributionsOf(address contributor) external returns(uint256);
/** * @dev Function returns current user`s contributed ether amount */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 848, 925 ] }
16,890
TheAbyssDAICO
contracts/fund/ICrowdsaleReservationFund.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
ICrowdsaleReservationFund
interface ICrowdsaleReservationFund { /** * @dev Check if contributor has transactions */ function canCompleteContribution(address contributor) external returns(bool); /** * @dev Complete contribution * @param contributor Contributor`s address */ function completeContri...
/** * @title ICrowdsaleReservationFund * @dev ReservationFund methods used by crowdsale contract */
NatSpecMultiLine
onCrowdsaleEnd
function onCrowdsaleEnd() external;
/** * @dev Function is called on the end of successful crowdsale */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 1013, 1053 ] }
16,891
TheAbyssDAICO
contracts/token/LockedTokens.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
LockedTokens
contract LockedTokens is SafeMath { struct Tokens { uint256 amount; uint256 lockEndTime; bool released; } event TokensUnlocked(address _to, uint256 _value); IERC20Token public token; address public crowdsaleAddress; mapping(address => Tokens[]) public walletT...
/** * @title LockedTokens * @dev Lock tokens for certain period of time */
NatSpecMultiLine
LockedTokens
function LockedTokens(IERC20Token _token, address _crowdsaleAddress) public { token = _token; crowdsaleAddress = _crowdsaleAddress; }
/** * @dev LockedTokens constructor * @param _token ERC20 compatible token contract * @param _crowdsaleAddress Crowdsale contract address */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 500, 661 ] }
16,892
TheAbyssDAICO
contracts/token/LockedTokens.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
LockedTokens
contract LockedTokens is SafeMath { struct Tokens { uint256 amount; uint256 lockEndTime; bool released; } event TokensUnlocked(address _to, uint256 _value); IERC20Token public token; address public crowdsaleAddress; mapping(address => Tokens[]) public walletT...
/** * @title LockedTokens * @dev Lock tokens for certain period of time */
NatSpecMultiLine
addTokens
function addTokens(address _to, uint256 _amount, uint256 _lockEndTime) external { require(msg.sender == crowdsaleAddress); walletTokens[_to].push(Tokens({amount: _amount, lockEndTime: _lockEndTime, released: false})); }
/** * @dev Functions locks tokens * @param _to Wallet address to transfer tokens after _lockEndTime * @param _amount Amount of tokens to lock * @param _lockEndTime End of lock period */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 885, 1132 ] }
16,893
TheAbyssDAICO
contracts/token/LockedTokens.sol
0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf
Solidity
LockedTokens
contract LockedTokens is SafeMath { struct Tokens { uint256 amount; uint256 lockEndTime; bool released; } event TokensUnlocked(address _to, uint256 _value); IERC20Token public token; address public crowdsaleAddress; mapping(address => Tokens[]) public walletT...
/** * @title LockedTokens * @dev Lock tokens for certain period of time */
NatSpecMultiLine
releaseTokens
function releaseTokens() public { require(walletTokens[msg.sender].length > 0); for(uint256 i = 0; i < walletTokens[msg.sender].length; i++) { if(!walletTokens[msg.sender][i].released && now >= walletTokens[msg.sender][i].lockEndTime) { walletTokens[msg.sender][i].released = true; ...
/** * @dev Called by owner of locked tokens to release them */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa
{ "func_code_index": [ 1215, 1746 ] }
16,894
IziCoin
IziCoin.sol
0x690776940f101a0b894154e7a99c531849151053
Solidity
IziCoin
contract IziCoin is ERC20Interface, Owned, WhiteListed { using SafeMath for uint; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; uint _totalSupply; string public symbol; string public name; uint8 public decimals; ...
totalSupply
function totalSupply() public view returns (uint){ return _totalSupply.sub(balances[address(0)]); }
//ERC20
LineComment
v0.5.7+commit.6da8b019
bzzr://5cc13c13480a51ec7a010799987151c4de05ffc7ea1d6d058ad92784b36a00d0
{ "func_code_index": [ 625, 743 ] }
16,895
IziCoin
IziCoin.sol
0x690776940f101a0b894154e7a99c531849151053
Solidity
IziCoin
contract IziCoin is ERC20Interface, Owned, WhiteListed { using SafeMath for uint; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; uint _totalSupply; string public symbol; string public name; uint8 public decimals; ...
executeTransfer
function executeTransfer(address from,address to, uint tokens) private{ uint previousBalances = balances[from] + balances[to]; balances[from] = balances[from].sub(tokens); balances[to] = balances[to].add(tokens); assert((balances[from] + balances[to] == previousBalances) && (whitelist[from] && white...
//IziCoin
LineComment
v0.5.7+commit.6da8b019
bzzr://5cc13c13480a51ec7a010799987151c4de05ffc7ea1d6d058ad92784b36a00d0
{ "func_code_index": [ 2634, 2993 ] }
16,896
IziCoin
IziCoin.sol
0x690776940f101a0b894154e7a99c531849151053
Solidity
IziCoin
contract IziCoin is ERC20Interface, Owned, WhiteListed { using SafeMath for uint; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; uint _totalSupply; string public symbol; string public name; uint8 public decimals; ...
seeWhitelist
function seeWhitelist(address whitelistUser) public view returns (bool){ return whitelist[whitelistUser] == true; }
//Whitelist
LineComment
v0.5.7+commit.6da8b019
bzzr://5cc13c13480a51ec7a010799987151c4de05ffc7ea1d6d058ad92784b36a00d0
{ "func_code_index": [ 4274, 4408 ] }
16,897
IziCoin
IziCoin.sol
0x690776940f101a0b894154e7a99c531849151053
Solidity
IziCoin
contract IziCoin is ERC20Interface, Owned, WhiteListed { using SafeMath for uint; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; uint _totalSupply; string public symbol; string public name; uint8 public decimals; ...
function () external payable { revert(); }
//Fallback
LineComment
v0.5.7+commit.6da8b019
bzzr://5cc13c13480a51ec7a010799987151c4de05ffc7ea1d6d058ad92784b36a00d0
{ "func_code_index": [ 5046, 5107 ] }
16,898
JungelTycoon
jt.sol
0xbca44d867c707080c504f286c35b237d2802b7e5
Solidity
JungelTycoon
contract JungelTycoon is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; uint256 public cost = 0.05 ether; uint256 public maxSupply = 20000; uint256 public maxMintAmount = 100; uint256 public nft...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a
{ "func_code_index": [ 820, 925 ] }
16,899