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
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 776, 939 ] }
7,900
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 997, 1136 ] }
7,901
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 1278, 1435 ] }
7,902
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amou...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 1902, 2211 ] }
7,903
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 2615, 2830 ] }
7,904
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 3328, 3594 ] }
7,905
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exc...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 4079, 4555 ] }
7,906
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); }
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 4831, 5144 ] }
7,907
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) public { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amoun...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 5471, 5822 ] }
7,908
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); }
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 6257, 6600 ] }
7,909
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
_burnFrom
function _burnFrom(address account, uint256 amount) public { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); }
/** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 6781, 7016 ] }
7,910
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20Detailed
contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ con...
/** * @dev Optional functions from the ERC20 standard. */
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 550, 638 ] }
7,911
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20Detailed
contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ con...
/** * @dev Optional functions from the ERC20 standard. */
NatSpecMultiLine
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 752, 844 ] }
7,912
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20Detailed
contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ con...
/** * @dev Optional functions from the ERC20 standard. */
NatSpecMultiLine
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @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. * *...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 1402, 1490 ] }
7,913
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 497, 581 ] }
7,914
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
isOwner
function isOwner() public view returns (bool) { return _msgSender() == _owner; }
/** * @dev Returns true if the caller is the current owner. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 863, 962 ] }
7,915
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 1308, 1453 ] }
7,916
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 1603, 1717 ] }
7,917
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 1818, 2052 ] }
7,918
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 408, 500 ] }
7,919
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 1059, 1167 ] }
7,920
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 1317, 1523 ] }
7,921
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 1678, 1874 ] }
7,922
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 94, 154 ] }
7,923
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 237, 310 ] }
7,924
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 534, 616 ] }
7,925
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 895, 983 ] }
7,926
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 1647, 1726 ] }
7,927
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 2039, 2175 ] }
7,928
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 100, 159 ] }
7,929
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 226, 287 ] }
7,930
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 363, 418 ] }
7,931
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 776, 881 ] }
7,932
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 995, 1104 ] }
7,933
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 1738, 1836 ] }
7,934
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 1896, 2009 ] }
7,935
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 2067, 2199 ] }
7,936
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 2407, 2587 ] }
7,937
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 2645, 2801 ] }
7,938
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 2943, 3117 ] }
7,939
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 3594, 4091 ] }
7,940
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 4495, 4715 ] }
7,941
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 5213, 5631 ] }
7,942
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 6116, 6854 ] }
7,943
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 7136, 7540 ] }
7,944
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 7868, 8464 ] }
7,945
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 8897, 9282 ] }
7,946
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 9877, 10007 ] }
7,947
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
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.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 10606, 10735 ] }
7,948
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryAdd
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } }
/** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 161, 388 ] }
7,949
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
trySub
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } }
/** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 536, 735 ] }
7,950
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMul
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 ...
/** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 885, 1393 ] }
7,951
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryDiv
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } }
/** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 1544, 1744 ] }
7,952
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMod
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } }
/** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 1905, 2105 ] }
7,953
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 2347, 2450 ] }
7,954
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; }
/** * @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.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 2728, 2831 ] }
7,955
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; }
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 3085, 3188 ] }
7,956
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; }
/** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 3484, 3587 ] }
7,957
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 (consu...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 4049, 4152 ] }
7,958
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterp...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 4626, 4871 ] }
7,959
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } }
/** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 5364, 5608 ] }
7,960
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 6266, 6510 ] }
7,961
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
Shibnobyl
contract Shibnobyl is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address p...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
enableTrading
function enableTrading() external onlyOwner { tradingActive = true; swapEnabled = true; lastLpBurnTime = block.timestamp; }
// once enabled, can never be turned off
LineComment
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 4992, 5152 ] }
7,962
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
Shibnobyl
contract Shibnobyl is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address p...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
removeLimits
function removeLimits() external onlyOwner returns (bool) { limitsInEffect = false; return true; }
// remove limits after token is stable
LineComment
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 5199, 5325 ] }
7,963
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
Shibnobyl
contract Shibnobyl is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address p...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
disableTransferDelay
function disableTransferDelay() external onlyOwner returns (bool) { transferDelayEnabled = false; return true; }
// disable Transfer delay - cannot be reenabled
LineComment
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 5381, 5521 ] }
7,964
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
Shibnobyl
contract Shibnobyl is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address p...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
updateSwapTokensAtAmount
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool) { require( newAmount >= (totalSupply() * 1) / 100000, "Swap amount cannot be lower than 0.001% total supply." ); require( newAmount <= (totalSupply() * 5) / 1000, "Sw...
// change the minimum amount of tokens to sell from fees
LineComment
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 5586, 6088 ] }
7,965
Shibnobyl
Shibnobyl.sol
0x78a1a351b6f7cf770284a2ac769fad5076266e37
Solidity
Shibnobyl
contract Shibnobyl is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address p...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
updateSwapEnabled
function updateSwapEnabled(bool enabled) external onlyOwner { swapEnabled = enabled; }
// only use to disable contract sales if absolutely necessary (emergency use only)
LineComment
v0.8.10+commit.fc410830
None
ipfs://a5a3259b80d55cae3229cf8e8b4980dc1720a4805ca0b4c3281e642a197f2f37
{ "func_code_index": [ 6901, 7006 ] }
7,966
DeadCyborgApeClub
contracts/DeadCyborgApeClub.sol
0x5780cacdfadb4aa3f14ad374af014b70baa10952
Solidity
DeadCyborgApeClub
contract DeadCyborgApeClub is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; bool public revealed = false; uint256 public cost = 0.09 ether; uint256 public preSaleCost = 0.06 ether; uint256 public maxSupply = 9999; uint256 pu...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 604, 709 ] }
7,967
DeadCyborgApeClub
contracts/DeadCyborgApeClub.sol
0x5780cacdfadb4aa3f14ad374af014b70baa10952
Solidity
DeadCyborgApeClub
contract DeadCyborgApeClub is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; bool public revealed = false; uint256 public cost = 0.09 ether; uint256 public preSaleCost = 0.06 ether; uint256 public maxSupply = 9999; uint256 pu...
mint
function mint(address _to, uint256 _mintAmount) public payable { uint256 supply = totalSupply(); require(!paused, "Sale is not active!"); require(_mintAmount > 0,"Mint amount must be more than zero!"); require(_mintAmount <= maxMintAmount, "Exceeds maximum tokens you can purchase in a single transaction!");...
// public
LineComment
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 725, 1703 ] }
7,968
DeadCyborgApeClub
contracts/DeadCyborgApeClub.sol
0x5780cacdfadb4aa3f14ad374af014b70baa10952
Solidity
DeadCyborgApeClub
contract DeadCyborgApeClub is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; bool public revealed = false; uint256 public cost = 0.09 ether; uint256 public preSaleCost = 0.06 ether; uint256 public maxSupply = 9999; uint256 pu...
setCost
function setCost(uint256 _newCost) public onlyOwner() { cost = _newCost; }
//only owner
LineComment
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 2573, 2658 ] }
7,969
AugustusSwapper
openzeppelin-solidity/contracts/math/SafeMath.sol
0x66152a2a538644ae125570de522adeac9e41d865
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 la...
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.10+commit.5a6ea5b1
BSD-3-Clause
bzzr://a414e7ebbd4e22e20905576e075c51708f507cc3b4782f370cdcb29302473dd4
{ "func_code_index": [ 251, 437 ] }
7,970
AugustusSwapper
openzeppelin-solidity/contracts/math/SafeMath.sol
0x66152a2a538644ae125570de522adeac9e41d865
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 la...
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.10+commit.5a6ea5b1
BSD-3-Clause
bzzr://a414e7ebbd4e22e20905576e075c51708f507cc3b4782f370cdcb29302473dd4
{ "func_code_index": [ 707, 896 ] }
7,971
AugustusSwapper
openzeppelin-solidity/contracts/math/SafeMath.sol
0x66152a2a538644ae125570de522adeac9e41d865
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 la...
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.10+commit.5a6ea5b1
BSD-3-Clause
bzzr://a414e7ebbd4e22e20905576e075c51708f507cc3b4782f370cdcb29302473dd4
{ "func_code_index": [ 1142, 1617 ] }
7,972
AugustusSwapper
openzeppelin-solidity/contracts/math/SafeMath.sol
0x66152a2a538644ae125570de522adeac9e41d865
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 la...
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 reve...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
BSD-3-Clause
bzzr://a414e7ebbd4e22e20905576e075c51708f507cc3b4782f370cdcb29302473dd4
{ "func_code_index": [ 2080, 2418 ] }
7,973
AugustusSwapper
openzeppelin-solidity/contracts/math/SafeMath.sol
0x66152a2a538644ae125570de522adeac9e41d865
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 la...
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 (consumi...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
BSD-3-Clause
bzzr://a414e7ebbd4e22e20905576e075c51708f507cc3b4782f370cdcb29302473dd4
{ "func_code_index": [ 2870, 3027 ] }
7,974
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
ERC223
contract ERC223 { uint public totalSupply; // ERC223 functions and events function balanceOf(address who) public constant returns (uint); function totalSupply() constant public returns (uint256 _supply); function transfer(address to, uint value) public returns (bool ok); function transfe...
balanceOf
function balanceOf(address who) public constant returns (uint);
// ERC223 functions and events
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 87, 155 ] }
7,975
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
ERC223
contract ERC223 { uint public totalSupply; // ERC223 functions and events function balanceOf(address who) public constant returns (uint); function totalSupply() constant public returns (uint256 _supply); function transfer(address to, uint value) public returns (bool ok); function transfe...
name
function name() constant public returns (string _name);
// ERC223 functions
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 615, 675 ] }
7,976
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
CL
function CL() public { // Ensure token gets created once only require(tokenCreated == false); tokenCreated = true; owner = msg.sender; balances[owner] = totalSupply; // Final sanity check to ensure owner balance is greater than zero require(balances[owner] > 0); }
// Initialize to have owner have 100,000,000,000 CL on contract creation // Constructor is called only once and can not be called again (Ethereum Solidity specification)
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 688, 1039 ] }
7,977
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
distributeAirdrop
function distributeAirdrop(address[] addresses, uint256 amount) onlyOwner public { // Only allow undrop while token is locked // After token is unlocked, this method becomes permanently disabled //require(unlocked); // Amount is in Wei, convert to CL amount in 8 decimal places uint256 normali...
// Function to distribute tokens to list of addresses by the provided amount // Verify and require that: // - Balance of owner cannot be negative // - All transfers can be fulfilled with remaining owner balance // - No new tokens can ever be minted except originally created 100,000,000,000
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 1626, 2528 ] }
7,978
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
name
function name() constant public returns (string _name) { return name; }
// Function to access name of token .sha
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 2577, 2667 ] }
7,979
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
symbol
function symbol() constant public returns (string _symbol) { return symbol; }
// Function to access symbol of token .
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 2713, 2809 ] }
7,980
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
decimals
function decimals() constant public returns (uint8 _decimals) { return decimals; }
// Function to access decimals of token .
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 2857, 2958 ] }
7,981
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
totalSupply
function totalSupply() constant public returns (uint256 _totalSupply) { return totalSupply; }
// Function to access total supply of tokens .
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 3011, 3123 ] }
7,982
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
transfer
function transfer(address _to, uint _value, bytes _data, string _custom_fallback) public returns (bool success) { // Only allow transfer once unlocked // Once it is unlocked, it is unlocked forever and no one can lock again // require(unlocked); if (isContract(_to)) { if (balanceOf(msg.s...
// Function that is called when a user or another contract wants to transfer funds .
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 3216, 4095 ] }
7,983
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
transfer
function transfer(address _to, uint _value, bytes _data) public returns (bool success) { // Only allow transfer once unlocked // Once it is unlocked, it is unlocked forever and no one can lock again // require(unlocked); if (isContract(_to)) { return transferToContract(_to, _value, _dat...
// Function that is called when a user or another contract wants to transfer funds .
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 4188, 4631 ] }
7,984
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
transfer
function transfer(address _to, uint _value) public returns (bool success) { // Only allow transfer once unlocked // Once it is unlocked, it is unlocked forever and no one can lock again //require(unlocked); //standard function transfer similar to ERC223 transfer with no _data //added due to...
// Standard function transfer similar to ERC223 transfer with no _data . // Added due to backwards compatibility reasons .
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 4773, 5366 ] }
7,985
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
isContract
function isContract(address _addr) private returns (bool is_contract) { uint length; assembly { //retrieve the size of the code on target address, this needs assembly length := extcodesize(_addr) } return (length > 0); }
// assemble the given address bytecode. If bytecode exists then the _addr is a contract.
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 5463, 5755 ] }
7,986
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
transferToAddress
function transferToAddress(address _to, uint _value, bytes _data) private returns (bool success) { if (balanceOf(msg.sender) < _value) { revert(); } balances[msg.sender] = safeSub(balanceOf(msg.sender), _value); balances[_to] = safeAdd(balanceOf(_to), _value); Transfer(msg.sender, _to,...
// function that is called when transaction target is an address
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 5828, 6222 ] }
7,987
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
transferToContract
function transferToContract(address _to, uint _value, bytes _data) private returns (bool success) { if (balanceOf(msg.sender) < _value) { revert(); } balances[msg.sender] = safeSub(balanceOf(msg.sender), _value); balances[_to] = safeAdd(balanceOf(_to), _value); ContractReceiver receive...
// function that is called when transaction target is a contract
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 6301, 6816 ] }
7,988
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
balanceOf
function balanceOf(address _owner) constant public returns (uint256 balance) { return balances[_owner]; }
// Get balance of the address provided
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 6863, 6987 ] }
7,989
CL
CL.sol
0xdab860de671cc76c4a341615b69f878a08bb9bbb
Solidity
CL
contract CL is ERC223, SafeMath { string public name = "TCoin"; string public symbol = "TCoin"; uint8 public decimals = 8; uint256 public totalSupply = 10000 * 10**2; address public owner; address public admin; // bool public unlocked = false; bool public tokenCreate...
/* * CL token with ERC223 Extensions */
Comment
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { // Only allow transfer once unlocked // Once it is unlocked, it is unlocked forever and no one can lock again //require(unlocked); // Protect against wrapping uints. require(balances[_from] >= _val...
// Allow transfers if the owner provided an allowance // Prevent from any transfers if token is not yet unlocked // Use SafeMath for the main logic
LineComment
v0.4.21+commit.dfe3193c
bzzr://0229812b644488ee923e4eb4f1a4e597084e9051bf3bc7f9bb9a2cfc80180690
{ "func_code_index": [ 7357, 8239 ] }
7,990
MoonBase
MoonBase.sol
0x26cf82e4ae43d31ea51e72b663d26e26a75af729
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. Does not include * the optional functions; to access them see `ERC20Detailed`. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
Unlicense
bzzr://f935d5ccde7221a438fa262f6e70e4d860af324a927244a91e415368cc11da0d
{ "func_code_index": [ 94, 154 ] }
7,991
MoonBase
MoonBase.sol
0x26cf82e4ae43d31ea51e72b663d26e26a75af729
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. Does not include * the optional functions; to access them see `ERC20Detailed`. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
Unlicense
bzzr://f935d5ccde7221a438fa262f6e70e4d860af324a927244a91e415368cc11da0d
{ "func_code_index": [ 237, 310 ] }
7,992
MoonBase
MoonBase.sol
0x26cf82e4ae43d31ea51e72b663d26e26a75af729
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. Does not include * the optional functions; to access them see `ERC20Detailed`. */
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.5.17+commit.d19bba13
Unlicense
bzzr://f935d5ccde7221a438fa262f6e70e4d860af324a927244a91e415368cc11da0d
{ "func_code_index": [ 534, 616 ] }
7,993
MoonBase
MoonBase.sol
0x26cf82e4ae43d31ea51e72b663d26e26a75af729
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. Does not include * the optional functions; to access them see `ERC20Detailed`. */
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.17+commit.d19bba13
Unlicense
bzzr://f935d5ccde7221a438fa262f6e70e4d860af324a927244a91e415368cc11da0d
{ "func_code_index": [ 895, 983 ] }
7,994
MoonBase
MoonBase.sol
0x26cf82e4ae43d31ea51e72b663d26e26a75af729
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. Does not include * the optional functions; to access them see `ERC20Detailed`. */
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 * trans...
NatSpecMultiLine
v0.5.17+commit.d19bba13
Unlicense
bzzr://f935d5ccde7221a438fa262f6e70e4d860af324a927244a91e415368cc11da0d
{ "func_code_index": [ 1638, 1717 ] }
7,995
MoonBase
MoonBase.sol
0x26cf82e4ae43d31ea51e72b663d26e26a75af729
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. Does not include * the optional functions; to access them see `ERC20Detailed`. */
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.5.17+commit.d19bba13
Unlicense
bzzr://f935d5ccde7221a438fa262f6e70e4d860af324a927244a91e415368cc11da0d
{ "func_code_index": [ 2030, 2132 ] }
7,996
MoonBase
MoonBase.sol
0x26cf82e4ae43d31ea51e72b663d26e26a75af729
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 la...
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.17+commit.d19bba13
Unlicense
bzzr://f935d5ccde7221a438fa262f6e70e4d860af324a927244a91e415368cc11da0d
{ "func_code_index": [ 251, 437 ] }
7,997
MoonBase
MoonBase.sol
0x26cf82e4ae43d31ea51e72b663d26e26a75af729
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 la...
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.17+commit.d19bba13
Unlicense
bzzr://f935d5ccde7221a438fa262f6e70e4d860af324a927244a91e415368cc11da0d
{ "func_code_index": [ 707, 896 ] }
7,998
MoonBase
MoonBase.sol
0x26cf82e4ae43d31ea51e72b663d26e26a75af729
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 la...
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.17+commit.d19bba13
Unlicense
bzzr://f935d5ccde7221a438fa262f6e70e4d860af324a927244a91e415368cc11da0d
{ "func_code_index": [ 1142, 1617 ] }
7,999