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
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @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 override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 2142, 2266 ] }
17,600
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @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.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 2474, 2654 ] }
17,601
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @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.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 2712, 2868 ] }
17,602
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @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.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 3010, 3184 ] }
17,603
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @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); _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.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 3653, 3979 ] }
17,604
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @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].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.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 4383, 4606 ] }
17,605
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @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) { _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.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 5104, 5378 ] }
17,606
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @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); _balances[sen...
/** * @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.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 5863, 6407 ] }
17,607
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @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 = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfe...
/** @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.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 6683, 7066 ] }
17,608
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @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); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _to...
/** * @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.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 7393, 7816 ] }
17,609
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amoun...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This 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.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 8251, 8602 ] }
17,610
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @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
_setupDecimals
function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; }
/** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 8929, 9024 ] }
17,611
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string privat...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 9622, 9719 ] }
17,612
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
FixedPoint
library FixedPoint { // range: [0, 2**112 - 1] // resolution: 1 / 2**112 struct uq112x112 { uint224 _x; } // range: [0, 2**144 - 1] // resolution: 1 / 2**112 struct uq144x112 { uint _x; } uint8 private constant RESOLUTION = 112; // encode a uint1...
// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))
LineComment
encode
function encode(uint112 x) internal pure returns (uq112x112 memory) { return uq112x112(uint224(x) << RESOLUTION); }
// encode a uint112 as a UQ112x112
LineComment
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 339, 473 ] }
17,613
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
FixedPoint
library FixedPoint { // range: [0, 2**112 - 1] // resolution: 1 / 2**112 struct uq112x112 { uint224 _x; } // range: [0, 2**144 - 1] // resolution: 1 / 2**112 struct uq144x112 { uint _x; } uint8 private constant RESOLUTION = 112; // encode a uint1...
// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))
LineComment
encode144
function encode144(uint144 x) internal pure returns (uq144x112 memory) { return uq144x112(uint256(x) << RESOLUTION); }
// encodes a uint144 as a UQ144x112
LineComment
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 517, 654 ] }
17,614
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
FixedPoint
library FixedPoint { // range: [0, 2**112 - 1] // resolution: 1 / 2**112 struct uq112x112 { uint224 _x; } // range: [0, 2**144 - 1] // resolution: 1 / 2**112 struct uq144x112 { uint _x; } uint8 private constant RESOLUTION = 112; // encode a uint1...
// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))
LineComment
div
function div(uq112x112 memory self, uint112 x) internal pure returns (uq112x112 memory) { require(x != 0, 'FixedPoint: DIV_BY_ZERO'); return uq112x112(self._x / uint224(x)); }
// divide a UQ112x112 by a uint112, returning a UQ112x112
LineComment
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 720, 923 ] }
17,615
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
FixedPoint
library FixedPoint { // range: [0, 2**112 - 1] // resolution: 1 / 2**112 struct uq112x112 { uint224 _x; } // range: [0, 2**144 - 1] // resolution: 1 / 2**112 struct uq144x112 { uint _x; } uint8 private constant RESOLUTION = 112; // encode a uint1...
// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))
LineComment
mul
function mul(uq112x112 memory self, uint y) internal pure returns (uq144x112 memory) { uint z; require(y == 0 || (z = uint(self._x) * y) / y == uint(self._x), "FixedPoint: MULTIPLICATION_OVERFLOW"); return uq144x112(z); }
// multiply a UQ112x112 by a uint, returning a UQ144x112 // reverts on overflow
LineComment
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 1016, 1274 ] }
17,616
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
FixedPoint
library FixedPoint { // range: [0, 2**112 - 1] // resolution: 1 / 2**112 struct uq112x112 { uint224 _x; } // range: [0, 2**144 - 1] // resolution: 1 / 2**112 struct uq144x112 { uint _x; } uint8 private constant RESOLUTION = 112; // encode a uint1...
// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))
LineComment
fraction
function fraction(uint112 numerator, uint112 denominator) internal pure returns (uq112x112 memory) { require(denominator > 0, "FixedPoint: DIV_BY_ZERO"); return uq112x112((uint224(numerator) << RESOLUTION) / denominator); }
// returns a UQ112x112 which represents the ratio of the numerator to the denominator // equivalent to encode(numerator).div(denominator)
LineComment
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 1425, 1676 ] }
17,617
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
FixedPoint
library FixedPoint { // range: [0, 2**112 - 1] // resolution: 1 / 2**112 struct uq112x112 { uint224 _x; } // range: [0, 2**144 - 1] // resolution: 1 / 2**112 struct uq144x112 { uint _x; } uint8 private constant RESOLUTION = 112; // encode a uint1...
// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))
LineComment
decode
function decode(uq112x112 memory self) internal pure returns (uint112) { return uint112(self._x >> RESOLUTION); }
// decode a UQ112x112 into a uint112 by truncating after the radix point
LineComment
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 1757, 1889 ] }
17,618
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
FixedPoint
library FixedPoint { // range: [0, 2**112 - 1] // resolution: 1 / 2**112 struct uq112x112 { uint224 _x; } // range: [0, 2**144 - 1] // resolution: 1 / 2**112 struct uq144x112 { uint _x; } uint8 private constant RESOLUTION = 112; // encode a uint1...
// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))
LineComment
decode144
function decode144(uq144x112 memory self) internal pure returns (uint144) { return uint144(self._x >> RESOLUTION); }
// decode a UQ144x112 into a uint144 by truncating after the radix point
LineComment
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 1970, 2105 ] }
17,619
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
UniswapV2OracleLibrary
library UniswapV2OracleLibrary { using FixedPoint for *; // helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1] function currentBlockTimestamp() internal view returns (uint32) { return uint32(block.timestamp % 2 ** 32); } // prod...
// library with helper methods for oracles that are concerned with computing average prices
LineComment
currentBlockTimestamp
function currentBlockTimestamp() internal view returns (uint32) { return uint32(block.timestamp % 2 ** 32); }
// helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1]
LineComment
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 178, 306 ] }
17,620
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
UniswapV2OracleLibrary
library UniswapV2OracleLibrary { using FixedPoint for *; // helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1] function currentBlockTimestamp() internal view returns (uint32) { return uint32(block.timestamp % 2 ** 32); } // prod...
// library with helper methods for oracles that are concerned with computing average prices
LineComment
currentCumulativePrices
function currentCumulativePrices( address pair ) internal view returns (uint price0Cumulative, uint price1Cumulative, uint32 blockTimestamp) { blockTimestamp = currentBlockTimestamp(); price0Cumulative = IUniswapV2Pair(pair).price0CumulativeLast(); price1Cumulative = IUniswapV2Pair(pair).price1Cumu...
// produces the cumulative price using counterfactuals to save gas and avoid a call to sync.
LineComment
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 407, 1470 ] }
17,621
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
UniswapV2Library
library UniswapV2Library { using SafeMath for uint; // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'UniswapV2L...
//import "@uniswap/v2-periphery/contracts/libraries/UniswapV2Library.sol";
LineComment
sortTokens
function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'UniswapV2Library: ZERO_...
// returns sorted token addresses, used to handle return values from pairs sorted in this order
LineComment
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 161, 515 ] }
17,622
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
UniswapV2Library
library UniswapV2Library { using SafeMath for uint; // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'UniswapV2L...
//import "@uniswap/v2-periphery/contracts/libraries/UniswapV2Library.sol";
LineComment
pairFor
function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) { (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address(uint(keccak256(abi.encodePacked( hex'ff', factory, keccak256(abi.encodePacked(token0, to...
// calculates the CREATE2 address for a pair without making any external calls
LineComment
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 602, 1085 ] }
17,623
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ChadsToken
contract ChadsToken is ERC20, Ownable, Pausable { using SafeMath for uint256; /// @notice uniswap listing rate uint256 public constant INITIAL_TOKENS_PER_ETH = 133_333 * 1 ether; /// @notice max burn percentage to teach virgins what happens when they sell too early uint256 public constant B...
// @&#%&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @&@@%&@@&&&&%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@&@(....,*#&@@@&@&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@&...
LineComment
unpause
function unpause() external virtual onlyInitialDistributionAddress { super._unpause(); }
/** * @dev Unpauses all transfers from the distribution address (initial liquidity pool). */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 3207, 3314 ] }
17,624
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ChadsToken
contract ChadsToken is ERC20, Ownable, Pausable { using SafeMath for uint256; /// @notice uniswap listing rate uint256 public constant INITIAL_TOKENS_PER_ETH = 133_333 * 1 ether; /// @notice max burn percentage to teach virgins what happens when they sell too early uint256 public constant B...
// @&#%&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @&@@%&@@&&&&%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@&@(....,*#&@@@&@&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@&...
LineComment
setMinDeltaTwap
function setMinDeltaTwap(uint256 _minDeltaTwap) public onlyOwner { minDeltaTwap = _minDeltaTwap; }
/** * @dev Min time elapsed before twap is updated. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 3389, 3506 ] }
17,625
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ChadsToken
contract ChadsToken is ERC20, Ownable, Pausable { using SafeMath for uint256; /// @notice uniswap listing rate uint256 public constant INITIAL_TOKENS_PER_ETH = 133_333 * 1 ether; /// @notice max burn percentage to teach virgins what happens when they sell too early uint256 public constant B...
// @&#%&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @&@@%&@@&&&&%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@&@(....,*#&@@@&@&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@&...
LineComment
initializeTwap
function initializeTwap() external onlyInitialDistributionAddress { require(blockTimestampLast == 0, "twap already initialized"); (uint256 price0Cumulative, uint256 price1Cumulative, uint32 blockTimestamp) = UniswapV2OracleLibrary.currentCumulativePrices(uniswapPair); uint256 priceCumulative ...
/** * @dev Initializes the TWAP cumulative values for the burn curve. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 3599, 4156 ] }
17,626
ChadsToken
ChadsToken.sol
0x69692d3345010a207b759a7d1af6fc7f38b35c5e
Solidity
ChadsToken
contract ChadsToken is ERC20, Ownable, Pausable { using SafeMath for uint256; /// @notice uniswap listing rate uint256 public constant INITIAL_TOKENS_PER_ETH = 133_333 * 1 ether; /// @notice max burn percentage to teach virgins what happens when they sell too early uint256 public constant B...
// @&#%&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @&@@%&@@&&&&%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@&@(....,*#&@@@&@&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // @@@@&...
LineComment
setWhitelistedSender
function setWhitelistedSender(address _address, bool _whitelisted) public onlyOwner { whitelistedSenders[_address] = _whitelisted; }
/** * @dev Sets a whitelisted sender (liquidity sources mostly). */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://77ced8d6f42a6b872d46d5530095aa13fef82ea459af00f3c9fcacbb758e86f9
{ "func_code_index": [ 4244, 4395 ] }
17,627
ERC20Token
ERC20Token.sol
0xd445727ae9fe528d3b5e355eebd94b324b476e80
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` to...
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.21+commit.dfe3193c
bzzr://3b7469df205f5b2e49df2fc908e35e6b312fab0584e4082020b91e989ffbc23a
{ "func_code_index": [ 56, 116 ] }
17,628
ERC20Token
ERC20Token.sol
0xd445727ae9fe528d3b5e355eebd94b324b476e80
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` to...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.21+commit.dfe3193c
bzzr://3b7469df205f5b2e49df2fc908e35e6b312fab0584e4082020b91e989ffbc23a
{ "func_code_index": [ 216, 289 ] }
17,629
ERC20Token
ERC20Token.sol
0xd445727ae9fe528d3b5e355eebd94b324b476e80
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` to...
transfer
function transfer(address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.21+commit.dfe3193c
bzzr://3b7469df205f5b2e49df2fc908e35e6b312fab0584e4082020b91e989ffbc23a
{ "func_code_index": [ 510, 583 ] }
17,630
ERC20Token
ERC20Token.sol
0xd445727ae9fe528d3b5e355eebd94b324b476e80
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` to...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.21+commit.dfe3193c
bzzr://3b7469df205f5b2e49df2fc908e35e6b312fab0584e4082020b91e989ffbc23a
{ "func_code_index": [ 886, 978 ] }
17,631
ERC20Token
ERC20Token.sol
0xd445727ae9fe528d3b5e355eebd94b324b476e80
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` to...
approve
function approve(address _spender, uint256 _value) returns (bool success) {}
/// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.21+commit.dfe3193c
bzzr://3b7469df205f5b2e49df2fc908e35e6b312fab0584e4082020b91e989ffbc23a
{ "func_code_index": [ 1246, 1323 ] }
17,632
ERC20Token
ERC20Token.sol
0xd445727ae9fe528d3b5e355eebd94b324b476e80
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` to...
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.21+commit.dfe3193c
bzzr://3b7469df205f5b2e49df2fc908e35e6b312fab0584e4082020b91e989ffbc23a
{ "func_code_index": [ 1519, 1612 ] }
17,633
ERC20Token
ERC20Token.sol
0xd445727ae9fe528d3b5e355eebd94b324b476e80
Solidity
ERC20Token
contract ERC20Token is StandardToken { function () { //if ether is sent to this address, send it back. throw; } /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to customise the token contract & in no way influen...
//name this contract whatever you’d like
LineComment
ERC20Token
function ERC20Token( ) { balances[msg.sender] = 2800000000000000; // Give the creator all initial tokens (100000 for example) totalSupply = 2800000000000000; // Update total supply (100000 for example) name = "LamboX"; // Set the name for display purposes decimals = 8; // Amount of decimals for display purposes s...
//human 0.1 standard. Just an arbitrary versioning scheme. // // CHANGE THESE VALUES FOR YOUR TOKEN // //make sure this function name matches the contract name above. So if you’re token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token
LineComment
v0.4.21+commit.dfe3193c
bzzr://3b7469df205f5b2e49df2fc908e35e6b312fab0584e4082020b91e989ffbc23a
{ "func_code_index": [ 1036, 1414 ] }
17,634
ERC20Token
ERC20Token.sol
0xd445727ae9fe528d3b5e355eebd94b324b476e80
Solidity
ERC20Token
contract ERC20Token is StandardToken { function () { //if ether is sent to this address, send it back. throw; } /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to customise the token contract & in no way influen...
//name this contract whatever you’d like
LineComment
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); //call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually so one doesn’...
/* Approves and then calls the receiving contract */
Comment
v0.4.21+commit.dfe3193c
bzzr://3b7469df205f5b2e49df2fc908e35e6b312fab0584e4082020b91e989ffbc23a
{ "func_code_index": [ 1471, 2212 ] }
17,635
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() publ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 633, 798 ] }
17,636
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() publ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipRenounced(owner); owner = address(0); }
/** * @dev Allows the current owner to relinquish control of the contract. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 880, 985 ] }
17,637
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uin...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 81, 228 ] }
17,638
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uin...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return a / b; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 304, 564 ] }
17,639
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uin...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 671, 775 ] }
17,640
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uin...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 831, 945 ] }
17,641
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token for a specified address * @par...
totalSupply
function totalSupply() public view returns (uint256) { return totalSupply_; }
/** * @dev total number of tokens in existence */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 181, 261 ] }
17,642
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token for a specified address * @par...
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return true; }
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 407, 709 ] }
17,643
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token for a specified address * @par...
balanceOf
function balanceOf(address _owner) public view returns (uint256) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 903, 999 ] }
17,644
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _va...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sen...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 376, 796 ] }
17,645
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _va...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public returns (bool) { require((_value == 0 ) || (allowed[msg.sender][_spender] == 0)); allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate thi...
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 1401, 1646 ] }
17,646
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _va...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 1952, 2075 ] }
17,647
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _va...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
increaseApproval
function increaseApproval(address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spend...
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 2510, 2764 ] }
17,648
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _va...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
decreaseApproval
function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); } emit Approval(msg.sender, _sp...
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spend...
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 3204, 3580 ] }
17,649
QD
QD.sol
0x4eb6b36f91f84a63724798815030aa62c59f5a4c
Solidity
QD
contract QD is StandardToken{ string public constant name = "QD"; // solium-disable-line uppercase string public constant symbol = "QD"; // solium-disable-line uppercase uint8 public constant decimals = 18; // solium-disable-line uppercase uint256 public constant INITIAL_SUPPLY = 20000000000000000000000000; uint25...
function() payable public { revert(); }
/** * The fallback function. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://2d799488387e75ba4abd8647d816551cb2b4142a7f6028ad45d4c947c01bf7a6
{ "func_code_index": [ 665, 707 ] }
17,650
ClaimWearable
contracts/Donation.sol
0x8dd61d1a67bce13a87e20a76c6f164c388a726d6
Solidity
ClaimWearable
contract ClaimWearable { using SafeMath for uint256; uint256 public maxSenderBalance; address public owner; event ClaimedNFT( address indexed _caller, address indexed _erc721Collection, string _wearable ); constructor(uint256 _maxSenderBalance) publ...
claimNFT
function claimNFT(ERC721Collection _erc721Collection, string calldata _wearableId) external payable { require(_erc721Collection.balanceOf(msg.sender) < maxSenderBalance, "The sender has already reached maxSenderBalance"); require( canMint(_erc721Collection, _wearableId, 1), "The amount of we...
/** * @dev Claim an NFTs. * @notice Claim a `_wearableId` NFT. * @param _erc721Collection - collection address * @param _wearableId - wearable id */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
None
bzzr://bf4bd0c32e5f17d6de531ba3333f743a486a9aebae766345417e62465405226e
{ "func_code_index": [ 793, 1353 ] }
17,651
ClaimWearable
contracts/Donation.sol
0x8dd61d1a67bce13a87e20a76c6f164c388a726d6
Solidity
ClaimWearable
contract ClaimWearable { using SafeMath for uint256; uint256 public maxSenderBalance; address public owner; event ClaimedNFT( address indexed _caller, address indexed _erc721Collection, string _wearable ); constructor(uint256 _maxSenderBalance) publ...
canMint
function canMint(ERC721Collection _erc721Collection, string memory _wearableId, uint256 _amount) public view returns (bool) { uint256 balance = balanceOf(_erc721Collection, _wearableId); return balance >= _amount; }
/** * @dev Returns whether the wearable can be minted. * @param _erc721Collection - collection address * @param _wearableId - wearable id * @return whether a wearable can be minted */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
None
bzzr://bf4bd0c32e5f17d6de531ba3333f743a486a9aebae766345417e62465405226e
{ "func_code_index": [ 1570, 1815 ] }
17,652
ClaimWearable
contracts/Donation.sol
0x8dd61d1a67bce13a87e20a76c6f164c388a726d6
Solidity
ClaimWearable
contract ClaimWearable { using SafeMath for uint256; uint256 public maxSenderBalance; address public owner; event ClaimedNFT( address indexed _caller, address indexed _erc721Collection, string _wearable ); constructor(uint256 _maxSenderBalance) publ...
balanceOf
function balanceOf(ERC721Collection _erc721Collection, string memory _wearableId) public view returns (uint256) { bytes32 wearableKey = _erc721Collection.getWearableKey(_wearableId); uint256 issued = _erc721Collection.issued(wearableKey); uint256 maxIssuance = _erc721Collection.maxIssuance(wearableKey)...
/** * @dev Returns a wearable's available supply . * Throws if the option ID does not exist. May return 0. * @param _erc721Collection - collection address * @param _wearableId - wearable id * @return wearable's available supply */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
None
bzzr://bf4bd0c32e5f17d6de531ba3333f743a486a9aebae766345417e62465405226e
{ "func_code_index": [ 2090, 2478 ] }
17,653
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
Ownable
contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier only...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() public { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 165, 225 ] }
17,654
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
Ownable
contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier only...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) onlyOwner public { if (newOwner != address(0)) { owner = newOwner; } }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 539, 677 ] }
17,655
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev modifier to allow actions only when the contract IS paused */ modifier whenNotPaused() { require (!paused); _; } /** * @dev modifier to allow actions only when the contract IS...
/** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */
NatSpecMultiLine
pause
function pause() onlyOwner whenNotPaused public returns (bool) { paused = true; Pause(); return true; }
/** * @dev called by the owner to pause, triggers stopped state */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 479, 604 ] }
17,656
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev modifier to allow actions only when the contract IS paused */ modifier whenNotPaused() { require (!paused); _; } /** * @dev modifier to allow actions only when the contract IS...
/** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */
NatSpecMultiLine
unpause
function unpause() onlyOwner whenPaused public returns (bool) { paused = false; Unpause(); return true; }
/** * @dev called by the owner to unpause, returns to normal state */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 686, 812 ] }
17,657
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _valu...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public returns (bool){ require(_to != address(0)); require(_value <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; }
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 274, 604 ] }
17,658
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _valu...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) public constant returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 814, 930 ] }
17,659
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 401, 853 ] }
17,660
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * ...
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 1485, 1675 ] }
17,661
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 1999, 2130 ] }
17,662
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
increaseApproval
function increaseApproval(address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spend...
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 2596, 2860 ] }
17,663
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
decreaseApproval
function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); } Approval(msg...
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spend...
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 3331, 3741 ] }
17,664
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
BurnableToken
contract BurnableToken is BasicToken { event Burn(address indexed burner, uint256 value); /** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */ function burn(uint256 _value) public { _burn(msg.sender, _value); } function _burn(address _w...
/** * @title Burnable Token * @dev Token that can be irreversibly burned (destroyed). */
NatSpecMultiLine
burn
function burn(uint256 _value) public { _burn(msg.sender, _value); }
/** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 212, 290 ] }
17,665
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
MintableToken
contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint256 amount); event MintFinished(); bool public mintingFinished = false; uint256 public oneCoin = 10 ** 18; uint256 public maxTokens = 2000 * (10**6) * oneCoin; modifier canMint() { require(!mintingFini...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
mint
function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) { require(totalSupply.add(_amount) <= maxTokens); totalSupply = totalSupply.add(_amount); balances[_to] = balances[_to].add(_amount); Transfer(0X0, _to, _amount); return true; }
/** * @dev Function to mint tokens * @param _to The address that will recieve the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 581, 880 ] }
17,666
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
MintableToken
contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint256 amount); event MintFinished(); bool public mintingFinished = false; uint256 public oneCoin = 10 ** 18; uint256 public maxTokens = 2000 * (10**6) * oneCoin; modifier canMint() { require(!mintingFini...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
finishMinting
function finishMinting() onlyOwner public returns (bool) { mintingFinished = true; MintFinished(); return true; }
/** * @dev Function to stop minting new tokens. * @return True if the operation was successful. */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 995, 1129 ] }
17,667
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
IrisToken
contract IrisToken is MintableToken, BurnableToken, Pausable { // Coin Properties string public name = "IRIS"; string public symbol = "IRIS"; uint256 public decimals = 18; // Special propeties bool public tradingStarted = false; /** * @dev modifier that throws if trading has not started yet ...
// *********************************************************************************** // *************************** END OF THE BASIC ************************************** // ***********************************************************************************
LineComment
startTrading
function startTrading() public onlyOwner { tradingStarted = true; }
/** * @dev Allows the owner to enable the trading. This can not be undone */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 493, 571 ] }
17,668
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
IrisToken
contract IrisToken is MintableToken, BurnableToken, Pausable { // Coin Properties string public name = "IRIS"; string public symbol = "IRIS"; uint256 public decimals = 18; // Special propeties bool public tradingStarted = false; /** * @dev modifier that throws if trading has not started yet ...
// *********************************************************************************** // *************************** END OF THE BASIC ************************************** // ***********************************************************************************
LineComment
transfer
function transfer(address _to, uint _value) hasStartedTrading whenNotPaused public returns (bool) { return super.transfer(_to, _value); }
/** * @dev Allows anyone to transfer the Change tokens once trading has started * @param _to the recipient address of the tokens. * @param _value number of tokens to be transfered. */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 774, 922 ] }
17,669
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
IrisToken
contract IrisToken is MintableToken, BurnableToken, Pausable { // Coin Properties string public name = "IRIS"; string public symbol = "IRIS"; uint256 public decimals = 18; // Special propeties bool public tradingStarted = false; /** * @dev modifier that throws if trading has not started yet ...
// *********************************************************************************** // *************************** END OF THE BASIC ************************************** // ***********************************************************************************
LineComment
transferFrom
function transferFrom(address _from, address _to, uint _value) hasStartedTrading whenNotPaused public returns (bool) { return super.transferFrom(_from, _to, _value); }
/** * @dev Allows anyone to transfer the Change tokens once trading has started * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint the amout of tokens to be transfered */
NatSpecMultiLine
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 1218, 1396 ] }
17,670
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
IrisTokenPrivatSale
contract IrisTokenPrivatSale is Ownable, Pausable{ using SafeMath for uint256; // The token being sold IrisToken public token; uint256 public decimals = 18; uint256 public oneCoin = 10**decimals; address public multiSig; // *************************** // amount of raised money ...
buyTokens
function buyTokens(address buyer, uint256 amount) whenNotPaused internal { require (multiSig != 0x0); require (msg.value > 1 finney); // update state weiRaised = weiRaised.add(amount); HostEther(buyer, amount); // send the ether to the MultiSig Wallet multiSig.transfer(this.balance); ...
// low level token purchase function
LineComment
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 1679, 2113 ] }
17,671
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
IrisTokenPrivatSale
contract IrisTokenPrivatSale is Ownable, Pausable{ using SafeMath for uint256; // The token being sold IrisToken public token; uint256 public decimals = 18; uint256 public oneCoin = 10**decimals; address public multiSig; // *************************** // amount of raised money ...
transferTokenContractOwnership
function transferTokenContractOwnership(address _address) public onlyOwner { token.transferOwnership(_address); }
// transfer ownership of the token to the owner of the presale contract
LineComment
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 2191, 2325 ] }
17,672
IrisToken
IrisToken.sol
0xa3a205324988ec0ef09f0d2b3a605a4b936d09ea
Solidity
IrisTokenPrivatSale
contract IrisTokenPrivatSale is Ownable, Pausable{ using SafeMath for uint256; // The token being sold IrisToken public token; uint256 public decimals = 18; uint256 public oneCoin = 10**decimals; address public multiSig; // *************************** // amount of raised money ...
function () public payable { buyTokens(msg.sender, msg.value); }
// fallback function can be used to buy tokens
LineComment
v0.4.20+commit.3155dd80
bzzr://cf7c324c0a105baf61dec24ca3a180edf86ca180a1a3893abbd805da484eb875
{ "func_code_index": [ 2378, 2453 ] }
17,673
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
OwnerSigneture
contract OwnerSigneture { address[] public owners; mapping (address => bytes32) public signetures; function OwnerSigneture(address[] _owners) public { owners = _owners; initSignetures(); } function initSignetures() private { for (uint i = 0; i < owners.length; i++) { sign...
/** * @title OwnerSigneture * @dev The OwnerSigneture contract has multiple owner addresses * and does not execute if there is no signature of all owners. */
NatSpecMultiLine
addOwner
function addOwner(address _address) signed public { owners.push(_address); }
/** * @dev Add owners to the list * @param _address Address of owner to add */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 465, 552 ] }
17,674
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
OwnerSigneture
contract OwnerSigneture { address[] public owners; mapping (address => bytes32) public signetures; function OwnerSigneture(address[] _owners) public { owners = _owners; initSignetures(); } function initSignetures() private { for (uint i = 0; i < owners.length; i++) { sign...
/** * @title OwnerSigneture * @dev The OwnerSigneture contract has multiple owner addresses * and does not execute if there is no signature of all owners. */
NatSpecMultiLine
removeOwner
function removeOwner(address _address) signed public returns (bool) { uint NOT_FOUND = 1e10; uint index = NOT_FOUND; for (uint i = 0; i < owners.length; i++) { if (owners[i] == _address) { index = i; break; } } if (index == NOT_FOUND) { return false; } for (uint j...
/** * @dev Remove owners from the list * @param _address Address of owner to remove */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 657, 1169 ] }
17,675
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
ERC223
contract ERC223 { uint public totalSupply; // ERC223 and ERC20 functions and events function balanceOf(address who) public view returns (uint); function totalSupply() public view returns (uint256 _supply); function transfer(address to, uint value) public returns (bool ok); function transfer(address...
/** * @title ERC223 * @dev ERC223 contract interface with ERC20 functions and events * Fully backward compatible with ERC20 * Recommended implementation used at https://github.com/Dexaran/ERC223-token-standard/tree/Recommended */
NatSpecMultiLine
balanceOf
function balanceOf(address who) public view returns (uint);
// ERC223 and ERC20 functions and events
LineComment
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 94, 156 ] }
17,676
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
ERC223
contract ERC223 { uint public totalSupply; // ERC223 and ERC20 functions and events function balanceOf(address who) public view returns (uint); function totalSupply() public view returns (uint256 _supply); function transfer(address to, uint value) public returns (bool ok); function transfer(address...
/** * @title ERC223 * @dev ERC223 contract interface with ERC20 functions and events * Fully backward compatible with ERC20 * Recommended implementation used at https://github.com/Dexaran/ERC223-token-standard/tree/Recommended */
NatSpecMultiLine
name
function name() public view returns (string _name);
// ERC223 functions
LineComment
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 601, 655 ] }
17,677
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
ERC223
contract ERC223 { uint public totalSupply; // ERC223 and ERC20 functions and events function balanceOf(address who) public view returns (uint); function totalSupply() public view returns (uint256 _supply); function transfer(address to, uint value) public returns (bool ok); function transfer(address...
/** * @title ERC223 * @dev ERC223 contract interface with ERC20 functions and events * Fully backward compatible with ERC20 * Recommended implementation used at https://github.com/Dexaran/ERC223-token-standard/tree/Recommended */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
// ERC20 functions and events
LineComment
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 812, 911 ] }
17,678
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
freezeAccounts
function freezeAccounts(address[] _targets, bool _isFrozen) signed public { require(_targets.length > 0); for (uint i = 0; i < _targets.length; i++) { require(_targets[i] != 0x0); frozenAccount[_targets[i]] = _isFrozen; FrozenFunds(_targets[i], _isFrozen); } }
/** * @dev Prevent targets from sending or receiving tokens * @param _targets Addresses to be frozen * @param _isFrozen either to freeze it or not */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 2032, 2339 ] }
17,679
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
lockupAccounts
function lockupAccounts(address[] _targets, uint[] _unixTimes) signed public { require(true && _targets.length > 0 && _targets.length == _unixTimes.length ); for(uint i = 0; i < _targets.length; i++) { require(unlockUnixTime[_targets[i]] < _unixTimes[i]); unlockUnixTime[_targets[i]] = _u...
/** * @dev Prevent targets from sending or receiving tokens by setting Unix times * @param _targets Addresses to be locked funds * @param _unixTimes Unix times when locking up will be finished */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 2557, 2968 ] }
17,680
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
transfer
function transfer(address _to, uint _value, bytes _data, string _custom_fallback) public returns (bool success) { require(true && _value > 0 && frozenAccount[msg.sender] == false && frozenAccount[_to] == false && now > unlockUnixTime[msg.sender] && now > unlockUnixTime[_to] ); if (i...
/** * @dev Function that is called when a user or another contract wants to transfer funds. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 3077, 3932 ] }
17,681
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
transfer
function transfer(address _to, uint _value, bytes _data) public returns (bool success) { require(true && _value > 0 && frozenAccount[msg.sender] == false && frozenAccount[_to] == false && now > unlockUnixTime[msg.sender] && now > unlockUnixTime[_to] ); if (isContract(_to)) { re...
/** * @dev Function that is called when a user or another contract wants to transfer funds. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 4041, 4507 ] }
17,682
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
transfer
function transfer(address _to, uint _value) public returns (bool success) { require(true && _value > 0 && frozenAccount[msg.sender] == false && frozenAccount[_to] == false && now > unlockUnixTime[msg.sender] && now > unlockUnixTime[_to] ); bytes memory empty; if (isContract(_to))...
/** * @dev Standard function transfer similar to ERC20 transfer with no _data. Added due to backwards compatibility reasons. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 4649, 5127 ] }
17,683
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
isContract
function isContract(address _address) private view returns (bool is_contract) { uint length; assembly { // retrieve the size of the code on target address, this needs assembly length := extcodesize(_address) } return (length > 0); }
/** * @dev assemble the given address bytecode. If bytecode exists then the _address is a contract. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 5244, 5519 ] }
17,684
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
transferToAddress
function transferToAddress(address _to, uint _value, bytes _data) private returns (bool success) { if (balanceOf(msg.sender) < _value) { revert(); } balances[msg.sender] = SafeMath.sub(balanceOf(msg.sender), _value); balances[_to] = SafeMath.add(balanceOf(_to), _value); Transfer(msg.sender, _to, _v...
/** * @dev Function that is called when transaction target is an address. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 5610, 6023 ] }
17,685
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
transferToContract
function transferToContract(address _to, uint _value, bytes _data) private returns (bool success) { if (balanceOf(msg.sender) < _value) { revert(); } balances[msg.sender] = SafeMath.sub(balanceOf(msg.sender), _value); balances[_to] = SafeMath.add(balanceOf(_to), _value); ContractReceiver receiver =...
/** * @dev Function that is called when transaction target is a contract. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 6114, 6640 ] }
17,686
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
burn
function burn(address _from, uint256 _amount) signed public { require(true && _amount > 0 && balances[_from] >= _amount ); _amount = SafeMath.mul(_amount, dec); balances[_from] = SafeMath.sub(balances[_from], _amount); totalSupply = SafeMath.sub(totalSupply, _amount); Burn(_from, _amount)...
/** * @dev Burns a specific amount of tokens. * @param _from The address that will burn the tokens. * @param _amount The amount of token to be burned. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 6816, 7163 ] }
17,687
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
mint
function mint(address _to, uint256 _amount) signed canMint public returns (bool) { require(_amount > 0); _amount = SafeMath.mul(_amount, dec); totalSupply = SafeMath.add(totalSupply, _amount); balances[_to] = SafeMath.add(balances[_to], _amount); Mint(_to, _amount); Transfer(address(0), _to, _amoun...
/** * @dev Function to mint tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of tokens to mint. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 7406, 7769 ] }
17,688
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
finishMinting
function finishMinting() signed canMint public returns (bool) { mintingFinished = true; MintFinished(); return true; }
/** * @dev Function to stop minting new tokens. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 7834, 7976 ] }
17,689
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
distributeAirdrop
function distributeAirdrop(address[] _addresses, uint256 _amount) public returns (bool) { require(true && _amount > 0 && _addresses.length > 0 && frozenAccount[msg.sender] == false && now > unlockUnixTime[msg.sender] ); _amount = SafeMath.mul(_amount, dec); uint256 totalAmount = SafeM...
/** * @dev Function to distribute tokens to the list of addresses by the provided amount */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 8082, 8968 ] }
17,690
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
collectTokens
function collectTokens(address[] _addresses, uint256[] _amounts) signed public returns (bool) { require(true && _addresses.length > 0 && _addresses.length == _amounts.length ); uint256 totalAmount = 0; for (uint i = 0; i < _addresses.length; i++) { require(true && _amounts[i] > 0 ...
/** * @dev Function to collect tokens from the list of _addresses */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 9051, 9955 ] }
17,691
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
pushToken
function pushToken(address[] _addresses, uint256 _amount, uint _limitUnixTime) public returns (bool) { require(true && _amount > 0 && _addresses.length > 0 && frozenAccount[msg.sender] == false && now > unlockUnixTime[msg.sender] ); _amount = SafeMath.mul(_amount, dec); uint256 totalA...
/** * @dev Push tokens to temporary area. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 10014, 11086 ] }
17,692
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
popToken
function popToken(address _to) public returns (bool) { require(true && temporaryBalances[msg.sender] > 0 && frozenAccount[msg.sender] == false && now > unlockUnixTime[msg.sender] && frozenAccount[_to] == false && now > unlockUnixTime[_to] && balances[temporaryAddress] >= temporaryBalan...
/** * @dev Pop tokens from temporary area. _amount */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 11154, 11875 ] }
17,693
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(true && _to != address(0) && _value > 0 && balances[_from] >= _value && allowance[_from][msg.sender] >= _value && frozenAccount[_from] == false && frozenAccount[_to] ...
/** * @dev Transfer tokens from one address to another * Added due to backwards compatibility with ERC20 * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 12216, 12890 ] }
17,694
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
/** * @dev Allows _spender to spend no more than _value tokens in your behalf * Added due to backwards compatibility with ERC20 * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 13148, 13348 ] }
17,695
EnishiCoin
EnishiCoin.sol
0xf49c09c31245f27504f01f60186be5127458c08a
Solidity
EnishiCoin
contract EnishiCoin is ERC223, OwnerSigneture { using SafeMath for uint256; string public name = "EnishiCoin"; string public symbol = "XENS"; uint8 public decimals = 8; uint256 dec = 1e8; uint256 public initialSupply = 100e8 * dec; // 100億枚 uint256 public totalSupply; bool public mintingFin...
/** * @title EnishiCoin * @author Megumi 🌵 * @dev EnishiCoin is an ERC223 Token with ERC20 functions and events * Fully backward compatible with ERC20 */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public view returns (uint256 remaining) { return allowance[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender * Added due to backwards compatibility with ERC20 * @param _owner address The address which owns the funds * @param _spender address The address which will spend the funds */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://fd5ff3abc2eab02b180f6c35a1c7e8680294fba4a22b685f6e0ea64f847ec6c5
{ "func_code_index": [ 13639, 13782 ] }
17,696
BULLBEATS
BULLBEATS.sol
0x909f0cac75400ff45066746bc24264e0db901cf7
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e
{ "func_code_index": [ 165, 238 ] }
17,697
BULLBEATS
BULLBEATS.sol
0x909f0cac75400ff45066746bc24264e0db901cf7
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
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.6.12+commit.27d51765
None
ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e
{ "func_code_index": [ 462, 544 ] }
17,698
BULLBEATS
BULLBEATS.sol
0x909f0cac75400ff45066746bc24264e0db901cf7
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://47ee45ccf32eea311bacf7c0c3a43fb5775166023c794fe1638c0ed1ba4ad03e
{ "func_code_index": [ 823, 911 ] }
17,699