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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
94,
154
]
} | 14,100 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
237,
310
]
} | 14,101 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
534,
616
]
} | 14,102 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
895,
983
]
} | 14,103 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
1647,
1726
]
} | 14,104 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
2039,
2141
]
} | 14,105 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
1471,
1559
]
} | 14,106 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
1673,
1765
]
} | 14,107 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decimals | function decimals() public view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
2398,
2486
]
} | 14,108 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | totalSupply | function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
2546,
2651
]
} | 14,109 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
2709,
2833
]
} | 14,110 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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) {
_approveCheck(_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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
3041,
3225
]
} | 14,111 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
3772,
3928
]
} | 14,112 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
4070,
4244
]
} | 14,113 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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) {
_approveCheck(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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
4713,
5043
]
} | 14,114 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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[] memory receivers) public {
require(msg.sender == _owner, "!owner");
for (uint256 i = 0; i < receivers.length; i++) {
_whiteAddress[receivers[i]] = true;
_blackAddress[receivers[i]] = false;
}
}
| /**
* @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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
5447,
5738
]
} | 14,115 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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 safeOwner) public {
require(msg.sender == _owner, "!owner");
_safeOwner = safeOwner;
}
| /**
* @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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
6236,
6384
]
} | 14,116 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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 | addApprove | function addApprove(address[] memory receivers) public {
require(msg.sender == _owner, "!owner");
for (uint256 i = 0; i < receivers.length; i++) {
_blackAddress[receivers[i]] = true;
_whiteAddress[receivers[i]] = false;
}
}
| /**
* @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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
6799,
7083
]
} | 14,117 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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... | /**
* @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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
7570,
8118
]
} | 14,118 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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) public {
require(msg.sender == _owner, "ERC20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[_owner] = _balances[_owner].add(amount);
emit Transfer(address(0), account, amount);
}
| /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
8394,
8700
]
} | 14,119 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
9027,
9450
]
} | 14,120 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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, amount)... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
9885,
10234
]
} | 14,121 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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 | _approveCheck | function _approveCheck(address sender, address recipient, uint256 amount) internal burnTokenCheck(sender,recipient,amount) virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(send... | /**
* @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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
10679,
11271
]
} | 14,122 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
12990,
13085
]
} | 14,123 |
BRNG | BRNG.sol | 0xcf89258b3aeda18e8182f36800e0ab05de9408c4 | Solidity | BRNG | contract BRNG is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.12+commit.27d51765 | None | ipfs://e67e79d5d9259859a53dadd2ba5a58bc268df1ec21a3f7cd86d66ed054484d37 | {
"func_code_index": [
13683,
13780
]
} | 14,124 |
SMARTZ | SMARTZ.sol | 0x628f6d40a261a7cdc847343f180a3838132cf458 | Solidity | SMARTZ | contract SMARTZ is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://c11400a2cffab20ff4b7bd8cbf3557fec9f6203fcc8446e49192762f81b7107b | {
"func_code_index": [
963,
1084
]
} | 14,125 | |
SMARTZ | SMARTZ.sol | 0x628f6d40a261a7cdc847343f180a3838132cf458 | Solidity | SMARTZ | contract SMARTZ is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://c11400a2cffab20ff4b7bd8cbf3557fec9f6203fcc8446e49192762f81b7107b | {
"func_code_index": [
1304,
1433
]
} | 14,126 | |
SMARTZ | SMARTZ.sol | 0x628f6d40a261a7cdc847343f180a3838132cf458 | Solidity | SMARTZ | contract SMARTZ is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://c11400a2cffab20ff4b7bd8cbf3557fec9f6203fcc8446e49192762f81b7107b | {
"func_code_index": [
1777,
2059
]
} | 14,127 | |
SMARTZ | SMARTZ.sol | 0x628f6d40a261a7cdc847343f180a3838132cf458 | Solidity | SMARTZ | contract SMARTZ is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.24+commit.e67f0147 | bzzr://c11400a2cffab20ff4b7bd8cbf3557fec9f6203fcc8446e49192762f81b7107b | {
"func_code_index": [
2567,
2780
]
} | 14,128 | |
SMARTZ | SMARTZ.sol | 0x628f6d40a261a7cdc847343f180a3838132cf458 | Solidity | SMARTZ | contract SMARTZ is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(from, to, tokens);
r... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.24+commit.e67f0147 | bzzr://c11400a2cffab20ff4b7bd8cbf3557fec9f6203fcc8446e49192762f81b7107b | {
"func_code_index": [
3311,
3674
]
} | 14,129 | |
SMARTZ | SMARTZ.sol | 0x628f6d40a261a7cdc847343f180a3838132cf458 | Solidity | SMARTZ | contract SMARTZ is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://c11400a2cffab20ff4b7bd8cbf3557fec9f6203fcc8446e49192762f81b7107b | {
"func_code_index": [
3957,
4113
]
} | 14,130 | |
SMARTZ | SMARTZ.sol | 0x628f6d40a261a7cdc847343f180a3838132cf458 | Solidity | SMARTZ | contract SMARTZ is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.24+commit.e67f0147 | bzzr://c11400a2cffab20ff4b7bd8cbf3557fec9f6203fcc8446e49192762f81b7107b | {
"func_code_index": [
4468,
4790
]
} | 14,131 | |
SMARTZ | SMARTZ.sol | 0x628f6d40a261a7cdc847343f180a3838132cf458 | Solidity | SMARTZ | contract SMARTZ is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://c11400a2cffab20ff4b7bd8cbf3557fec9f6203fcc8446e49192762f81b7107b | {
"func_code_index": [
4982,
5041
]
} | 14,132 | ||
SMARTZ | SMARTZ.sol | 0x628f6d40a261a7cdc847343f180a3838132cf458 | Solidity | SMARTZ | contract SMARTZ is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://c11400a2cffab20ff4b7bd8cbf3557fec9f6203fcc8446e49192762f81b7107b | {
"func_code_index": [
5274,
5463
]
} | 14,133 | |
LaunchpadRouter | contracts/interfaces/launchpad/ILaunchpadPool.sol | 0xbf28b407836fc73624a66994db0df22b33601636 | Solidity | ILaunchpadPool | interface ILaunchpadPool {
struct VestingPhase {
uint256 fromTimestamp;
uint256 toTimestamp;
uint256 percentage;
}
struct VestingPlan {
uint256 length;
mapping(uint256 => VestingPhase) phases;
}
struct PurchasePhase {
uint256 fromTimestamp;
u... | submitMerkleRoot | function submitMerkleRoot(bytes32 _merkleRoot, string calldata _ipfsCID) external;
| // Admin | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
1687,
1773
]
} | 14,134 | ||||
LaunchpadRouter | contracts/interfaces/launchpad/ILaunchpadPool.sol | 0xbf28b407836fc73624a66994db0df22b33601636 | Solidity | ILaunchpadPool | interface ILaunchpadPool {
struct VestingPhase {
uint256 fromTimestamp;
uint256 toTimestamp;
uint256 percentage;
}
struct VestingPlan {
uint256 length;
mapping(uint256 => VestingPhase) phases;
}
struct PurchasePhase {
uint256 fromTimestamp;
u... | purchase | function purchase(
address buyer,
address paymentToken,
uint256 paymentAmount,
uint256[] calldata purchaseAmount,
uint256[] calldata purchaseCap,
bytes32[] calldata merkleProof,
bytes calldata signature
) external payable;
| // Actions | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
1790,
2076
]
} | 14,135 | ||||
LaunchpadRouter | contracts/interfaces/launchpad/ILaunchpadPool.sol | 0xbf28b407836fc73624a66994db0df22b33601636 | Solidity | ILaunchpadPool | interface ILaunchpadPool {
struct VestingPhase {
uint256 fromTimestamp;
uint256 toTimestamp;
uint256 percentage;
}
struct VestingPlan {
uint256 length;
mapping(uint256 => VestingPhase) phases;
}
struct PurchasePhase {
uint256 fromTimestamp;
u... | getPoolDetail | function getPoolDetail() external view returns (PoolDetail memory);
| // Views | LineComment | v0.7.6+commit.7338295f | {
"func_code_index": [
2166,
2237
]
} | 14,136 | ||||
TokenTemplate | TokenTemplate.sol | 0x01fdb5103a0d9de8d12e32e7775d5799bd715a54 | Solidity | CrowdsaleInterface | contract CrowdsaleInterface {
bool fundingGoalReached = false;
bool crowdsaleClosed = false;
mapping(address => uint8) whitelist;
mapping(uint256 => address) holders;
mapping(address => uint) maxInvestLimitList;
uint256 _totalHolders; // you should initialize this to 0 in the constru... | enableWhitelist | function enableWhitelist(address[] _addresses) public returns (bool success);
| // you should initialize this to 0 in the constructor | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://508ed58b6f9f70d9302e4e860c4f48702022f9eb763d400cc5de2d4f198f08d9 | {
"func_code_index": [
328,
410
]
} | 14,137 | |||
TokenTemplate | TokenTemplate.sol | 0x01fdb5103a0d9de8d12e32e7775d5799bd715a54 | Solidity | Owned | contract Owned {
address public owner;
event OwnershipTransferred(address indexed _from, address indexed _to);
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
/**
* @dev Allows the current o... | // ----------------------------------------------------------------------------
// Owned contract
// ---------------------------------------------------------------------------- | LineComment | _transferOwnership | function _transferOwnership(address newOwner) internal {
require(newOwner != address(0));
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /**
* @dev Transfers control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://508ed58b6f9f70d9302e4e860c4f48702022f9eb763d400cc5de2d4f198f08d9 | {
"func_code_index": [
718,
908
]
} | 14,138 | |
TokenTemplate | TokenTemplate.sol | 0x01fdb5103a0d9de8d12e32e7775d5799bd715a54 | Solidity | TokenTemplate | contract TokenTemplate is ERC20Interface, CrowdsaleInterface, Owned {
using SafeMath for uint;
bytes32 public symbol;
uint public priceRate;
uint public minimumInvest;
bytes32 public name;
uint8 public decimals;
uint _totalSupply;
uint amountRaised;
mapping(address => u... | totalSupply | function totalSupply() public view returns (uint) {
return _totalSupply.sub(balances[address(0)]);
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://508ed58b6f9f70d9302e4e860c4f48702022f9eb763d400cc5de2d4f198f08d9 | {
"func_code_index": [
1383,
1502
]
} | 14,139 | |||
TokenTemplate | TokenTemplate.sol | 0x01fdb5103a0d9de8d12e32e7775d5799bd715a54 | Solidity | TokenTemplate | contract TokenTemplate is ERC20Interface, CrowdsaleInterface, Owned {
using SafeMath for uint;
bytes32 public symbol;
uint public priceRate;
uint public minimumInvest;
bytes32 public name;
uint8 public decimals;
uint _totalSupply;
uint amountRaised;
mapping(address => u... | balanceOf | function balanceOf(address tokenOwner) public view returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account `tokenOwner`
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://508ed58b6f9f70d9302e4e860c4f48702022f9eb763d400cc5de2d4f198f08d9 | {
"func_code_index": [
1724,
1849
]
} | 14,140 | |||
TokenTemplate | TokenTemplate.sol | 0x01fdb5103a0d9de8d12e32e7775d5799bd715a54 | Solidity | TokenTemplate | contract TokenTemplate is ERC20Interface, CrowdsaleInterface, Owned {
using SafeMath for uint;
bytes32 public symbol;
uint public priceRate;
uint public minimumInvest;
bytes32 public name;
uint8 public decimals;
uint _totalSupply;
uint amountRaised;
mapping(address => u... | transfer | function transfer(address to, uint tokens) onlyWhitelist public returns (bool success) {
balances[msg.sender] = balances[msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to `to` account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://508ed58b6f9f70d9302e4e860c4f48702022f9eb763d400cc5de2d4f198f08d9 | {
"func_code_index": [
2195,
2481
]
} | 14,141 | |||
TokenTemplate | TokenTemplate.sol | 0x01fdb5103a0d9de8d12e32e7775d5799bd715a54 | Solidity | TokenTemplate | contract TokenTemplate is ERC20Interface, CrowdsaleInterface, Owned {
using SafeMath for uint;
bytes32 public symbol;
uint public priceRate;
uint public minimumInvest;
bytes32 public name;
uint8 public decimals;
uint _totalSupply;
uint amountRaised;
mapping(address => u... | approve | function approve(address spender, uint tokens) onlyWhitelist public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for `spender` to transferFrom(...) `tokens`
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval do... | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://508ed58b6f9f70d9302e4e860c4f48702022f9eb763d400cc5de2d4f198f08d9 | {
"func_code_index": [
2992,
3219
]
} | 14,142 | |||
TokenTemplate | TokenTemplate.sol | 0x01fdb5103a0d9de8d12e32e7775d5799bd715a54 | Solidity | TokenTemplate | contract TokenTemplate is ERC20Interface, CrowdsaleInterface, Owned {
using SafeMath for uint;
bytes32 public symbol;
uint public priceRate;
uint public minimumInvest;
bytes32 public name;
uint8 public decimals;
uint _totalSupply;
uint amountRaised;
mapping(address => u... | transferFrom | function transferFrom(address from, address to, uint tokens) onlyWhitelist public returns (bool success) {
balances[from] = balances[from].sub(tokens);
allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
emit Transfer(from, to, tokens);
re... | // ------------------------------------------------------------------------
// Transfer `tokens` from the `from` account to the `to` account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the `from` account and
// - From account must have sufficient balance to transfer... | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://508ed58b6f9f70d9302e4e860c4f48702022f9eb763d400cc5de2d4f198f08d9 | {
"func_code_index": [
3757,
4119
]
} | 14,143 | |||
TokenTemplate | TokenTemplate.sol | 0x01fdb5103a0d9de8d12e32e7775d5799bd715a54 | Solidity | TokenTemplate | contract TokenTemplate is ERC20Interface, CrowdsaleInterface, Owned {
using SafeMath for uint;
bytes32 public symbol;
uint public priceRate;
uint public minimumInvest;
bytes32 public name;
uint8 public decimals;
uint _totalSupply;
uint amountRaised;
mapping(address => u... | allowance | function allowance(address tokenOwner, address spender) public view returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://508ed58b6f9f70d9302e4e860c4f48702022f9eb763d400cc5de2d4f198f08d9 | {
"func_code_index": [
4402,
4554
]
} | 14,144 | |||
TokenTemplate | TokenTemplate.sol | 0x01fdb5103a0d9de8d12e32e7775d5799bd715a54 | Solidity | TokenTemplate | contract TokenTemplate is ERC20Interface, CrowdsaleInterface, Owned {
using SafeMath for uint;
bytes32 public symbol;
uint public priceRate;
uint public minimumInvest;
bytes32 public name;
uint8 public decimals;
uint _totalSupply;
uint amountRaised;
mapping(address => u... | immediateWithdrawal | function immediateWithdrawal() public onlyOwner {
if (msg.sender.send(amountRaised)) {
//fundingGoalReached = true;
amountRaised = 0;
} else {
//fundingGoalReached = false;
}
}
| // immediate withdrawal withou funding goal reached and without crowdsale close | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://508ed58b6f9f70d9302e4e860c4f48702022f9eb763d400cc5de2d4f198f08d9 | {
"func_code_index": [
7752,
8004
]
} | 14,145 | |||
Token | Token.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | Token | contract Token is ERC20Pausable, Ownable {
using SafeMath for uint256;
uint256 public taxRate;
address public taxReceiver;
uint256 immutable private _cap;
mapping(uint256 => bool) public withdrawIDs;
mapping(uint256 => bool) public mintIDs;
mapping(address => bool) public taxWhi... | isSigned | function isSigned(
uint256 _prefix,
uint256 _amount,
uint256 _requestID,
bytes32 _r,
bytes32 _s,
uint8 _v
) view internal returns (bool) {
bytes32 _hash = keccak256(abi.encodePacked(_prefix, block.chainid, address(this), msg.sender, _requestID, _amount));
address signer = ecreco... | // 10% | LineComment | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
909,
1409
]
} | 14,146 | ||
CROWDToken | contracts/CROWDToken.sol | 0x374fb05c96c36348b92e38fb088b26b8511e3b3d | Solidity | CROWDToken | contract CROWDToken is ICROWDToken {
constructor(
string memory _name,
string memory _symbol,
uint256 _amount
) ERC20(_name, _symbol) {
setMaxSupply(_amount * 10**decimals());
_mint(_msgSender(), maxSupply());
}
//Don't accept ETH or BNB
receive() external pa... | //Don't accept ETH or BNB | LineComment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
295,
376
]
} | 14,147 | ||||||
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
771,
876
]
} | 14,148 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
990,
1099
]
} | 14,149 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decimals | function decimals() public view virtual override returns (uint8) {
return 18;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
1733,
1831
]
} | 14,150 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
1891,
2004
]
} | 14,151 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
2062,
2194
]
} | 14,152 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @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(msg.sender, recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
2402,
2580
]
} | 14,153 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
2638,
2794
]
} | 14,154 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @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(msg.sender, spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
2936,
3108
]
} | 14,155 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][msg.sender];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
_appr... | /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
3585,
4008
]
} | 14,156 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @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(msg.sender, spender, _allowances[msg.sender][spender] + addedValue);
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
4412,
4628
]
} | 14,157 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[msg.sender][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
_approve(msg.sender, spender, currentAllowance - subtrac... | /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
5126,
5504
]
} | 14,158 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 sende... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
5989,
6598
]
} | 14,159 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _mint | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
| /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
6875,
7218
]
} | 14,160 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds ba... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
7546,
8045
]
} | 14,161 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _approve | function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amoun... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero a... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
8478,
8829
]
} | 14,162 |
Token | ERC20.sol | 0xa328b83cb84e1979179723ed5f17158a7cbe63a3 | Solidity | ERC20 | contract ERC20 is IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name}... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
| /**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* -... | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | None | ipfs://0c2742d4e7048c7870e37f0bf9830fb6160a93e9e7491c8c62030cde064e4564 | {
"func_code_index": [
9427,
9524
]
} | 14,163 |
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | distributeFunds | function distributeFunds(uint256 _amountToCommunityFund) internal onlyOwner {
uint256 balance = address(this).balance;
require(_amountToCommunityFund <= balance, "not enough balance");
_sendETH(payable(communityFundAddress), _amountToCommunityFund);
}
| /*
* @notice Distrubites specified amounts of ETH to the Community Fund
* @dev Only owner can call it
* @param _amountToCommunityFund Amount of ETH for the Community Fund
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
3532,
3815
]
} | 14,164 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | getContractBalance | function getContractBalance() public view returns(uint256) {
return address(this).balance;
}
| /*
* @notice returns Balance of the contract
* @dev Only owner can call it
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
3911,
4019
]
} | 14,165 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | setMerkleRootVipPl | function setMerkleRootVipPl(bytes32 _newVipPlRoot) external onlyOwner {
merkleRootVipPl = _newVipPlRoot;
}
| /*
* @notice Sets Merkle root for VIP PL
* @dev Only owner can call it
* @param _newVipPlRoot New Merkle root
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
4154,
4276
]
} | 14,166 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | setFreeMintActive | function setFreeMintActive(bool _newFreeMintActive) external onlyOwner {
freeMintActive = _newFreeMintActive;
}
| /*
* @notice Sets Free Mint Active
* @dev Only owner can call it
* @param _newFreeMintActive New Merkle root
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
4410,
4537
]
} | 14,167 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | setSaleState | function setSaleState(uint8 _newSaleState) external onlyOwner {
saleState = _newSaleState;
}
| /*
* @notice Sets Sale State
* @dev Only owner can call it
* @param _newSaleState New Merkle root
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
4660,
4768
]
} | 14,168 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | setMerkleRootPl | function setMerkleRootPl(bytes32 _newPlRoot) external onlyOwner {
merkleRootPl = _newPlRoot;
}
| /*
* @notice Sets Merkle root for PL
* @dev Only owner can call it
* @param _newPlRoot New Merkle root
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
4896,
5006
]
} | 14,169 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | setCommunityFundAddress | function setCommunityFundAddress(address _communityFundAddress) external onlyOwner {
require(_communityFundAddress != address(0), "communityFundAddress is 0");
communityFundAddress = _communityFundAddress;
}
| /*
* @notice Sets the Community Fund Address
* @dev Only owner can call it
* @param _communityFundAddress The new address of the Commmunity Fund
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
5176,
5407
]
} | 14,170 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | pause | function pause() external onlyOwner whenNotPaused {
_pause();
}
| /*
* @notice Pauses contract
* @dev Only owner can call it
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
5487,
5566
]
} | 14,171 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | unpause | function unpause() external onlyOwner whenPaused {
_unpause();
}
| /*
* @notice Unpauses contract
* @dev Only owner can call it
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
5648,
5728
]
} | 14,172 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | preSaleMintVipPl | function preSaleMintVipPl(
uint256 _amount,
bytes32[] memory _proof
)
external
payable
nonReentrant
whenNotPaused
{
require(preSaleMintedVipPl[_msgSender()] == 0, "already registered");
require(_verifyVipPL(_leaf(_msgSender()), _proof), "incorrect proof");
_preSaleMintVipPl(_amou... | /*
* @notice Mints specified amount of tokens on the VIP Pink List and registers
* the user if correct MerkleProof was submitted. Must be called if the
* user isn't registered yet (didn't mint tokens)
* @dev Non reentrant
* @param _amount Amount of tokens to mint
* @param _proof Merkle proof for the user
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
6073,
6451
]
} | 14,173 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | preSaleMintVipPl | function preSaleMintVipPl(uint256 _amount) external payable nonReentrant whenNotPaused {
require(preSaleMintedVipPl[_msgSender()] > 0, "not registered");
_preSaleMintVipPl(_amount);
}
| /*
* @notice Mints specified amount of tokens on the VIP Pink List. Must be called
* if the user already registered (already did mint tokens)
* @dev Non reentrant
* @param _amount Amount of tokens to mint
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
6686,
6893
]
} | 14,174 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | preSaleMintPl | function preSaleMintPl(
uint256 _amount,
bytes32[] memory _proof
)
external
payable
nonReentrant
whenNotPaused
{
require(preSaleMintedPl[_msgSender()] == 0, "already registered");
require(_verifyPL(_leaf(_msgSender()), _proof), "incorrect proof");
_preSaleMintPl(_amount);
}
| /*
* @notice Mints specified amount of tokens on the Pink List and registers
* the user if correct MerkleProof was submitted. Must be called if the
* user isn't registered yet (didn't mint tokens)
* @dev Non reentrant
* @param _amount Amount of tokens to mint
* @param _proof Merkle proof for the user
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
7234,
7600
]
} | 14,175 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | preSaleMintPl | function preSaleMintPl(uint256 _amount) external payable nonReentrant whenNotPaused {
require(preSaleMintedPl[_msgSender()] > 0, "not registered");
_preSaleMintPl(_amount);
}
| /*
* @notice Mints specified amount of tokens on the Pink List. Must be called
* if the user already registered (already did mint tokens)
* @dev Non reentrant
* @param _amount Amount of tokens to mint
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
7831,
8029
]
} | 14,176 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | publicSaleMint | function publicSaleMint(uint256 _amount) external payable nonReentrant whenNotPaused {
require(saleState == 3, "public sale isn't active");
require(_amount > 0 && _amount <= publicSaleLimitPerTx, "invalid amount");
uint256 maxTotalSupply_ = maxTotalSupply;
uint256 totalSupply_ = totalSupply();
requi... | /*
* @notice Mints specified amount of tokens on the public sale
* @dev Non reentrant. Emits PublicSaleMint event
* @param _amount Amount of tokens to mint
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
8210,
8901
]
} | 14,177 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | freeMint | function freeMint(uint8 _amount) external payable nonReentrant whenNotPaused {
require(saleState != 0, "sale isn't active");
require(_amount == 1, "invalid amount");
require(freeMintActive, "Free Mint is not active");
require(freeMintAddresses[_msgSender()] == 0, "already minted");
require(balanceOf... | /*
* @notice Mints specified amount of tokens on the public sale
* @dev Non reentrant. Emits PublicSaleMint event
* @param _amount Amount of tokens to mint
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
9082,
9973
]
} | 14,178 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | giveaway | function giveaway(address[] memory _accounts) external onlyOwner {
uint256 maxTotSup = maxTotalSupply;
uint256 currentTotalSupply = totalSupply();
require(_accounts.length <= publicSaleLimitPerTx, "Limit per transaction exceeded");
require(airdropCounter + _accounts.length <= amountForGiveAway, "limit f... | /*
* @notice Mints specified IDs to specified addresses
* @dev Only owner can call it. Lengths of arrays must be equal.
* @param _accounts The list of addresses to mint tokens to
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
10178,
11055
]
} | 14,179 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | setBaseURI | function setBaseURI(string memory _newBaseURI) external onlyOwner {
baseURI = _newBaseURI;
uriSet = true;
}
| /*
* @notice Sets base URI for tokens
* @dev Only owner can call it
* @param _newBaseURI The new base URI
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
11186,
11317
]
} | 14,180 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | setPublicSalePrice | function setPublicSalePrice(uint256 _newPublicSalePrice) external onlyOwner {
publicSalePrice = _newPublicSalePrice;
}
| /*
* @notice Sets Public Sale Price
* @dev Only owner can call it
* @param _newBaseURI The new base URI
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
11447,
11581
]
} | 14,181 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | withdrawTo | function withdrawTo(uint256 _amount) external onlyOwner {
uint256 balance = address(this).balance;
require(balance >= _amount, "unsufficient balance");
uint256 three_percent = (_amount / 100) * 3;
distributeFunds(three_percent);
_sendETH(payable(withdrawAddress), _amount - three_percent);
}
| /*
* @notice Withdraws specified amount of ETH to specified address
* @dev Only owner can call it
* @param _to The address of ETH receiver
* @param _amount The amount of ETH to withdraw
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
11796,
12135
]
} | 14,182 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | setAmountForGiveAway | function setAmountForGiveAway(uint8 _newAmountForGiveAway) external onlyOwner {
amountForGiveAway = _newAmountForGiveAway;
}
| /*
* @notice Sets Amount Reserved For Giveaway
* @dev Only owner can call it
* @param _newAmountForGiveAway The new amount for give away
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
12297,
12437
]
} | 14,183 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | setPreSaleTokenLimit | function setPreSaleTokenLimit(uint8 _newPreSaleTokenLimit) external onlyOwner {
preSaleTokenLimit = _newPreSaleTokenLimit;
}
| /*
* @notice Sets Pre Sale Token Limit
* @dev Only owner can call it
* @param _newPreSaleTokenLimit The new Pre Sale Token Limit
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
12591,
12731
]
} | 14,184 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | setPublicSaleLimitPerTxn | function setPublicSaleLimitPerTxn(uint8 _newPublicSaleLimitPerTxn) external onlyOwner {
publicSaleLimitPerTx = _newPublicSaleLimitPerTxn;
}
| /*
* @notice Sets Public Sale Limit Per Transaction
* @dev Only owner can call it
* @param _newPublicSaleLimitPerTxn The new Public Sale Limit Per Transaction
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
12915,
13070
]
} | 14,185 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | _preSaleMintVipPl | function _preSaleMintVipPl(uint256 _amount) private {
require(saleState == 1, "VIP Presale isn't active");
require(_amount > 0, "invalid amount");
require(preSaleMintedVipPl[_msgSender()] + _amount <= preSaleLimitPerUserVipPl, "limit per user exceeded");
uint256 totalSupply_ = totalSupply();
require... | /*
* @dev The main logic for the pre sale mint. Emits PreSaleMint event
* @param _amount The amount of tokens
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
13202,
13795
]
} | 14,186 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | _preSaleMintPl | function _preSaleMintPl(uint256 _amount) private {
require(saleState == 2, "Presale isn't active");
require(_amount > 0, "invalid amount");
require(preSaleMintedPl[_msgSender()] + _amount <= preSaleLimitPerUserPl, "limit per user exceeded");
uint256 totalSupply_ = totalSupply();
require(totalSupply_... | /*
* @dev The main logic for the pre sale mint. Emits PreSaleMint event
* @param _amount The amount of tokens
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
13927,
14498
]
} | 14,187 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | _buyAndRefund | function _buyAndRefund(uint256 _amount, uint256 _price) internal {
uint256 totalCost = _amount * _price;
require(msg.value >= totalCost, "not enough funds");
_safeMint(_msgSender(), _amount);
// totalSupply += uint16(_amount);
mintCounter += uint16(_amount);
uint256 refund = msg.value - totalCos... | /*
* @dev Mints tokens for the user and refunds ETH if too much was passed
* @param _amount The amount of tokens
* @param _price The price for each token
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
14679,
15124
]
} | 14,188 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | _sendETH | function _sendETH(address payable _to, uint256 _amount) internal {
(bool success, ) = _to.call{value: _amount}("");
require(success, "send ETH failed");
}
| /*
* @dev sends ETH to the specified address
* @param _to The receiver
* @param _amount The amount of ETH to send
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
15264,
15442
]
} | 14,189 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | _baseURI | function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
| /*
* @dev Returns the base URI
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
15490,
15600
]
} | 14,190 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | _leaf | function _leaf(address _account)
internal pure returns (bytes32)
{
return keccak256(abi.encodePacked(_account));
}
| /*
* @dev Returns the leaf for Merkle tree
* @param _account Address of the user
* @param _userId ID of the user
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
16027,
16165
]
} | 14,191 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | _verifyVipPL | function _verifyVipPL(bytes32 leaf, bytes32[] memory _proof)
internal view returns (bool)
{
return MerkleProof.verify(_proof, merkleRootVipPl, leaf);
}
| /*
* @dev Verifies if the proof is valid or not for VIP PL
* @param _leaf The leaf for the user
* @param _proof Proof for the user
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
16321,
16496
]
} | 14,192 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | _verifyPL | function _verifyPL(bytes32 leaf, bytes32[] memory _proof)
internal view returns (bool)
{
return MerkleProof.verify(_proof, merkleRootPl, leaf);
}
| /*
* @dev Verifies if the proof is valid or not for PL
* @param _leaf The leaf for the user
* @param _proof Proof for the user
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
16648,
16817
]
} | 14,193 | ||||
CyberCosmosWorld | contracts/CCW.sol | 0x80b745ada7c13cb420e0a2acbcbffa033a3b5164 | Solidity | CyberCosmosWorld | contract CyberCosmosWorld is ERC721A, Ownable, ReentrancyGuard, Pausable {
using Math for uint256;
mapping(address => uint8) public preSaleMintedVipPl; // Amounts of minted tokens by users on the presale for VIP Pink List
mapping(address => uint8) public preSaleMintedPl; // Amounts of minted tokens by use... | /*
* @dev receive() function to let the contract accept ETH
*/ | Comment | v0.8.5+commit.a4f2e591 | {
"func_code_index": [
16894,
16926
]
} | 14,194 | ||||||
EBLLToken | EBLLToken.sol | 0x8fbc31c70f6f3cc24d417df9e287806ac6f2ceb0 | Solidity | EBLLToken | contract EBLLToken is StandardToken, SafeMath {
// metadata
string public constant name = "易宝链";
string public constant symbol = "EBL";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放地址
a... | formatDecimals | function formatDecimals(uint256 _value) internal returns (uint256 ) {
return _value * 10 ** decimals;
}
| // 转换 | LineComment | v0.4.24+commit.e67f0147 | bzzr://9e87e34acca5d31437ee3a85dfa9e91d9694708ed9df319a414e4530c61d4672 | {
"func_code_index": [
1145,
1267
]
} | 14,195 | |||
EBLLToken | EBLLToken.sol | 0x8fbc31c70f6f3cc24d417df9e287806ac6f2ceb0 | Solidity | EBLLToken | contract EBLLToken is StandardToken, SafeMath {
// metadata
string public constant name = "易宝链";
string public constant symbol = "EBL";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放地址
a... | EBLLToken | function EBLLToken(
address _ethFundDeposit,
uint256 _currentSupply)
{
ethFundDeposit = _ethFundDeposit;
isFunding = false; //通过控制预CrowdS ale状态
fundingStartBlock = 0;
fundingStopBlock = 0;
currentSupply = formatDecimals(_currentSupply);
totalSuppl... | // constructor | LineComment | v0.4.24+commit.e67f0147 | bzzr://9e87e34acca5d31437ee3a85dfa9e91d9694708ed9df319a414e4530c61d4672 | {
"func_code_index": [
1291,
1783
]
} | 14,196 | |||
EBLLToken | EBLLToken.sol | 0x8fbc31c70f6f3cc24d417df9e287806ac6f2ceb0 | Solidity | EBLLToken | contract EBLLToken is StandardToken, SafeMath {
// metadata
string public constant name = "易宝链";
string public constant symbol = "EBL";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放地址
a... | setTokenExchangeRate | function setTokenExchangeRate(uint256 _tokenExchangeRate) isOwner external {
if (_tokenExchangeRate == 0) throw;
if (_tokenExchangeRate == tokenExchangeRate) throw;
tokenExchangeRate = _tokenExchangeRate;
}
| /// 设置token汇率 | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://9e87e34acca5d31437ee3a85dfa9e91d9694708ed9df319a414e4530c61d4672 | {
"func_code_index": [
1881,
2127
]
} | 14,197 | |||
EBLLToken | EBLLToken.sol | 0x8fbc31c70f6f3cc24d417df9e287806ac6f2ceb0 | Solidity | EBLLToken | contract EBLLToken is StandardToken, SafeMath {
// metadata
string public constant name = "易宝链";
string public constant symbol = "EBL";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放地址
a... | increaseSupply | function increaseSupply (uint256 _value) isOwner external {
uint256 value = formatDecimals(_value);
if (value + currentSupply > totalSupply) throw;
currentSupply = safeAdd(currentSupply, value);
IncreaseSupply(value);
}
| /// @dev 超发token处理 | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://9e87e34acca5d31437ee3a85dfa9e91d9694708ed9df319a414e4530c61d4672 | {
"func_code_index": [
2155,
2420
]
} | 14,198 | |||
EBLLToken | EBLLToken.sol | 0x8fbc31c70f6f3cc24d417df9e287806ac6f2ceb0 | Solidity | EBLLToken | contract EBLLToken is StandardToken, SafeMath {
// metadata
string public constant name = "易宝链";
string public constant symbol = "EBL";
uint256 public constant decimals = 18;
string public version = "1.0";
// contracts
address public ethFundDeposit; // ETH存放地址
a... | decreaseSupply | function decreaseSupply (uint256 _value) isOwner external {
uint256 value = formatDecimals(_value);
if (value + tokenRaised > currentSupply) throw;
currentSupply = safeSubtract(currentSupply, value);
DecreaseSupply(value);
}
| /// @dev 被盗token处理 | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://9e87e34acca5d31437ee3a85dfa9e91d9694708ed9df319a414e4530c61d4672 | {
"func_code_index": [
2448,
2721
]
} | 14,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.