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
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // S...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; }
/** * @dev Adds two numbers, reverts on overflow. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 1305, 1460 ] }
6,807
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // S...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; }
/** * @dev Divides two numbers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 1603, 1732 ] }
6,808
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an account access to this role */ function add(Role storage role, address account) internal { require(account != address(0)); require(!has(role, account)); role.beare...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
add
function add(Role storage role, address account) internal { require(account != address(0)); require(!has(role, account)); role.bearer[account] = true; }
/** * @dev give an account access to this role */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 155, 346 ] }
6,809
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an account access to this role */ function add(Role storage role, address account) internal { require(account != address(0)); require(!has(role, account)); role.beare...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
remove
function remove(Role storage role, address account) internal { require(account != address(0)); require(has(role, account)); role.bearer[account] = false; }
/** * @dev remove an account's access to this role */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 420, 614 ] }
6,810
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an account access to this role */ function add(Role storage role, address account) internal { require(account != address(0)); require(!has(role, account)); role.beare...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
has
function has(Role storage role, address account) internal view returns (bool) { require(account != address(0)); return role.bearer[account]; }
/** * @dev check if an account has this role * @return bool */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 703, 873 ] }
6,811
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256) { return _totalSupply; }
/** * @dev Total number of tokens in existence */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 295, 391 ] }
6,812
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
balanceOf
function balanceOf(address owner) public view returns (uint256) { return _balances[owner]; }
/** * @dev Gets the balance of the specified address. * @param owner The address to query the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 602, 713 ] }
6,813
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view returns (uint256) { return _allowed[owner][spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param owner address The address which owns the funds. * @param spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 1047, 1183 ] }
6,814
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
transfer
function transfer(address to, uint256 value) public returns (bool) { _transfer(msg.sender, to, value); return true; }
/** * @dev Transfer token for a specified address * @param to The address to transfer to. * @param value The amount to be transferred. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 1349, 1494 ] }
6,815
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
approve
function approve(address spender, uint256 value) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race...
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 2136, 2385 ] }
6,816
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
transferFrom
function transferFrom(address from, address to, uint256 value) public returns (bool) { _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value); _transfer(from, to, value); emit Approval(from, msg.sender, _allowed[from][msg.sender]); return true; }
/** * @dev Transfer tokens from one address to another. * Note that while this function emits an Approval event, this is not required as per the specification, * and other compliant implementations may not emit the event. * @param from address The address which you want to send tokens from * @param to address...
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 2853, 3157 ] }
6,817
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = _allowed[msg.sender][spender].add(addedValue); emit Approval(msg.sender, spender, _allowed[msg.sender][spender]); return true; }
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * approve should be called when allowed_[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Emits an Approva...
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 3667, 3995 ] }
6,818
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = _allowed[msg.sender][spender].sub(subtractedValue); emit Approval(msg.sender, spender, _allowed[msg.sender][spender]); return true; }
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * approve should be called when allowed_[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Emits an Approva...
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 4510, 4848 ] }
6,819
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
_transfer
function _transfer(address from, address to, uint256 value) internal { require(to != address(0)); _balances[from] = _balances[from].sub(value); _balances[to] = _balances[to].add(value); emit Transfer(from, to, value); }
/** * @dev Transfer token for a specified addresses * @param from The address to transfer from. * @param to The address to transfer to. * @param value The amount to be transferred. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 5065, 5332 ] }
6,820
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
_mint
function _mint(address account, uint256 value) internal { require(account != address(0)); _totalSupply = _totalSupply.add(value); _balances[account] = _balances[account].add(value); emit Transfer(address(0), account, value); }
/** * @dev Internal function that mints an amount of the token and assigns it to * an account. This encapsulates the modification of balances such that the * proper events are emitted. * @param account The account that will receive the created tokens. * @param value The amount that will be created. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 5679, 5953 ] }
6,821
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
_burn
function _burn(address account, uint256 value) internal { require(account != address(0)); _totalSupply = _totalSupply.sub(value); _balances[account] = _balances[account].sub(value); emit Transfer(account, address(0), value); }
/** * @dev Internal function that burns an amount of the token of a given * account. * @param account The account whose tokens will be burnt. * @param value The amount that will be burnt. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 6182, 6456 ] }
6,822
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply(...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits ...
NatSpecMultiLine
_burnFrom
function _burnFrom(address account, uint256 value) internal { _allowed[account][msg.sender] = _allowed[account][msg.sender].sub(value); _burn(account, value); emit Approval(account, msg.sender, _allowed[account][msg.sender]); }
/** * @dev Internal function that burns an amount of the token of a given * account, deducting from the sender's allowance for said account. Uses the * internal burn function. * Emits an Approval event (reflecting the reduced allowance). * @param account The account whose tokens will be burnt. * @param valu...
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 6850, 7114 ] }
6,823
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20Detailed
contract ERC20Detailed is ERC20 { string private _name; string private _symbol; uint8 private _decimals; constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @retur...
/** * @title ERC20Detailed token * @dev The decimals are only for visualization purposes. * All the operations are done using the smallest and indivisible token unit, * just as on Ethereum all the operations are done in wei. */
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @return the name of the token. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 355, 443 ] }
6,824
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20Detailed
contract ERC20Detailed is ERC20 { string private _name; string private _symbol; uint8 private _decimals; constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @retur...
/** * @title ERC20Detailed token * @dev The decimals are only for visualization purposes. * All the operations are done using the smallest and indivisible token unit, * just as on Ethereum all the operations are done in wei. */
NatSpecMultiLine
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @return the symbol of the token. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 505, 597 ] }
6,825
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
ERC20Detailed
contract ERC20Detailed is ERC20 { string private _name; string private _symbol; uint8 private _decimals; constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @retur...
/** * @title ERC20Detailed token * @dev The decimals are only for visualization purposes. * All the operations are done using the smallest and indivisible token unit, * just as on Ethereum all the operations are done in wei. */
NatSpecMultiLine
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @return the number of decimals of the token. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 671, 759 ] }
6,826
DicToken
DicToken.sol
0x263679bcbfd9b051629c1a56472ba9377e9175b4
Solidity
DicToken
contract DicToken is WhitelistToken { /// initial supply 35 million DIC uint256 public INITIAL_SUPPLY; address public saleTokensAddress; address public marketingTokensAddress; address public managementTokensAddress; address public affiliateTokensAddress; address public foundersToken...
recoverERC20Tokens
function recoverERC20Tokens(address _contractAddress) onlyAdmin external { IERC20 erc20Token = IERC20(_contractAddress); if(erc20Token.balanceOf(address(this)) > 0) { require(erc20Token.transfer(msg.sender, erc20Token.balanceOf(address(this)))); } }
/// @dev Admin-only function to recover any tokens mistakenly sent to this contract
NatSpecSingleLine
v0.5.1+commit.c8a2cb62
bzzr://6f0a96097c481ee91d521eb9a37ead9b2563dc25af811ce4af51d1042f874089
{ "func_code_index": [ 4287, 4586 ] }
6,827
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 251, 437 ] }
6,828
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 707, 848 ] }
6,829
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 1180, 1377 ] }
6,830
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 1623, 2099 ] }
6,831
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 2562, 2699 ] }
6,832
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; ...
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 3224, 3574 ] }
6,833
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 4026, 4161 ] }
6,834
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 4675, 4846 ] }
6,835
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 606, 1230 ] }
6,836
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 2160, 2562 ] }
6,837
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 3318, 3496 ] }
6,838
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 3721, 3922 ] }
6,839
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 4292, 4523 ] }
6,840
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 4774, 5095 ] }
6,841
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 94, 154 ] }
6,842
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 237, 310 ] }
6,843
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 534, 616 ] }
6,844
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 895, 983 ] }
6,845
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 1647, 1726 ] }
6,846
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 2039, 2141 ] }
6,847
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 1475, 1563 ] }
6,848
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 1677, 1769 ] }
6,849
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 2402, 2490 ] }
6,850
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 2550, 2655 ] }
6,851
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 2713, 2837 ] }
6,852
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 3045, 3229 ] }
6,853
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 3776, 3932 ] }
6,854
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 4074, 4248 ] }
6,855
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 4717, 5047 ] }
6,856
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 5451, 5742 ] }
6,857
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 6240, 6388 ] }
6,858
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 6803, 7087 ] }
6,859
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 7574, 8122 ] }
6,860
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 8398, 8704 ] }
6,861
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 9031, 9454 ] }
6,862
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 9889, 10238 ] }
6,863
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 10683, 11275 ] }
6,864
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 12994, 13089 ] }
6,865
EjsToken
EjsToken.sol
0x4db87579fc4e1b94f381110d292ce0e2f7523c31
Solidity
EjsToken
contract EjsToken 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; ...
/** * @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://91fa954b5108f79bb69acda26fe590061d91e8e0b2af628b0a363f8792403985
{ "func_code_index": [ 13687, 13784 ] }
6,866
Ruggles
contracts/Ruggles.sol
0xaac74ee474264689e5e5b7bd129d499587bf9cf1
Solidity
Ruggles
contract Ruggles is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ""; uint256 public cost = 1 ether; uint256 public maxSupply = 1000; uint256 public maxMintAmount = 10; bool public paused = false; constructor( string memory _...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://1604c48a8e4784b78f5e3ed76d33bf3ca7e579947b2f6b9864f2a3ba10a48955
{ "func_code_index": [ 406, 511 ] }
6,867
Ruggles
contracts/Ruggles.sol
0xaac74ee474264689e5e5b7bd129d499587bf9cf1
Solidity
Ruggles
contract Ruggles is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ""; uint256 public cost = 1 ether; uint256 public maxSupply = 1000; uint256 public maxMintAmount = 10; bool public paused = false; constructor( string memory _...
mint
function mint(address _to, uint256 _mintAmount) public payable { uint256 supply = totalSupply(); require(_mintAmount > 0); require(_mintAmount <= maxMintAmount); require(supply + _mintAmount <= maxSupply); if (msg.sender != owner()) { require(!paused); require(msg.value >= cost * _mintAmo...
// public
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://1604c48a8e4784b78f5e3ed76d33bf3ca7e579947b2f6b9864f2a3ba10a48955
{ "func_code_index": [ 527, 975 ] }
6,868
Ruggles
contracts/Ruggles.sol
0xaac74ee474264689e5e5b7bd129d499587bf9cf1
Solidity
Ruggles
contract Ruggles is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ""; uint256 public cost = 1 ether; uint256 public maxSupply = 1000; uint256 public maxMintAmount = 10; bool public paused = false; constructor( string memory _...
setCost
function setCost(uint256 _newCost) public onlyOwner() { cost = _newCost; }
//only owner
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://1604c48a8e4784b78f5e3ed76d33bf3ca7e579947b2f6b9864f2a3ba10a48955
{ "func_code_index": [ 1777, 1862 ] }
6,869
TransmutationEngine
TransmutationEngine.sol
0x63c5e03f12abe737fe859608189e238afe75f238
Solidity
VRFConsumerBase
abstract contract VRFConsumerBase is VRFRequestIDBase { using SafeMathChainlink for uint256; function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual; function requestRandomness(bytes32 _keyHash, uint256 _fee, uint256 _seed) internal returns (bytes32 requestId) { ...
rawFulfillRandomness
function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); }
// rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call
LineComment
v0.7.6+commit.7338295f
MIT
ipfs://191c692d3e6a90f23dd12543248f5c3648ff8da9ff5f64e94c408291a69919cf
{ "func_code_index": [ 2071, 2284 ] }
6,870
CoinolixToken
contracts\zeppelin\crowdsale\emission\MintedCrowdsale.sol
0x67fe7b4958a00f263ebd16d246a9a3b2ea3050d7
Solidity
MintedCrowdsale
contract MintedCrowdsale is Crowdsale { /** * @dev Overrides delivery by minting tokens upon purchase. * @param _beneficiary Token purchaser * @param _tokenAmount Number of tokens to be minted */ function _deliverTokens( address _beneficiary, uint256 _tokenAmount ) internal ...
/** * @title MintedCrowdsale * @dev Extension of Crowdsale contract whose tokens are minted in each purchase. * Token ownership should be transferred to MintedCrowdsale for minting. */
NatSpecMultiLine
_deliverTokens
function _deliverTokens( address _beneficiary, uint256 _tokenAmount ) internal { require(MintableToken(token).mint(_beneficiary, _tokenAmount)); }
/** * @dev Overrides delivery by minting tokens upon purchase. * @param _beneficiary Token purchaser * @param _tokenAmount Number of tokens to be minted */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://317c9534ceebbb8a9305966c591c4b572578356d3c9cb0e0fb32000e028135a5
{ "func_code_index": [ 218, 396 ] }
6,871
CoinolixToken
contracts\zeppelin\crowdsale\emission\MintedCrowdsale.sol
0x67fe7b4958a00f263ebd16d246a9a3b2ea3050d7
Solidity
AirdropAndAffiliateCrowdsale
contract AirdropAndAffiliateCrowdsale is MintedCrowdsale { uint256 public valueAirDrop; uint256 public referrerBonus1; uint256 public referrerBonus2; mapping (address => uint8) public payedAddress; mapping (address => address) public referrers; constructor(uint256 _valueAirDrop, uint256 _referrerBonus...
/** * @title AirdropAndAffiliateCrowdsale * @dev Extension of AirdropAndAffiliateCrowdsale contract */
NatSpecMultiLine
_deliverTokens
function _deliverTokens( address _beneficiary, uint256 _tokenAmount ) internal { address referer1; uint256 refererTokens1; address referer2; uint256 refererTokens2; if (_tokenAmount != 0){ super._deliverTokens(_beneficiary, _tokenAmount); //require(MintableToken(token).mint(_beneficia...
/** * @dev Overrides delivery by minting tokens upon purchase. * @param _beneficiary Token purchaser * @param _tokenAmount Number of tokens to be minted */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://317c9534ceebbb8a9305966c591c4b572578356d3c9cb0e0fb32000e028135a5
{ "func_code_index": [ 898, 2026 ] }
6,872
Token
Token.sol
0x7e6e9e7e337aacab93526f95c0977040c2a022a5
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "ORNG"; string public name = "Orange Protocol"; uint256 public decimals = 18; uint256 _totalSupply = 1e9 * 10 ** decimals; bool public _openTransfer = false; address team = 0x0d69E8cecc87906E...
// ---------------------------------------------------------------------------- // 'ORNG' token contract // Symbol : ORNG // Name : Orange Protocol // Total supply: 1,000,000,000 (1 billion) // Decimals : 18 // ---------------------------------------------------------------------------- // --------------...
LineComment
totalSupply
function totalSupply() public override view returns (uint256){ return _totalSupply; }
/** ERC20Interface function's implementation **/
NatSpecMultiLine
v0.6.12+commit.27d51765
Unlicense
ipfs://ee01fb06f13bb29b5be9f1e70a5bb06eb64a4059f11f5ce4d73a08f33e49b0bf
{ "func_code_index": [ 3903, 4006 ] }
6,873
Token
Token.sol
0x7e6e9e7e337aacab93526f95c0977040c2a022a5
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "ORNG"; string public name = "Orange Protocol"; uint256 public decimals = 18; uint256 _totalSupply = 1e9 * 10 ** decimals; bool public _openTransfer = false; address team = 0x0d69E8cecc87906E...
// ---------------------------------------------------------------------------- // 'ORNG' token contract // Symbol : ORNG // Name : Orange Protocol // Total supply: 1,000,000,000 (1 billion) // Decimals : 18 // ---------------------------------------------------------------------------- // --------------...
LineComment
balanceOf
function balanceOf(address tokenOwner) public override view returns (uint256 balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account `tokenOwner` // ------------------------------------------------------------------------
LineComment
v0.6.12+commit.27d51765
Unlicense
ipfs://ee01fb06f13bb29b5be9f1e70a5bb06eb64a4059f11f5ce4d73a08f33e49b0bf
{ "func_code_index": [ 4230, 4367 ] }
6,874
Token
Token.sol
0x7e6e9e7e337aacab93526f95c0977040c2a022a5
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "ORNG"; string public name = "Orange Protocol"; uint256 public decimals = 18; uint256 _totalSupply = 1e9 * 10 ** decimals; bool public _openTransfer = false; address team = 0x0d69E8cecc87906E...
// ---------------------------------------------------------------------------- // 'ORNG' token contract // Symbol : ORNG // Name : Orange Protocol // Total supply: 1,000,000,000 (1 billion) // Decimals : 18 // ---------------------------------------------------------------------------- // --------------...
LineComment
transfer
function transfer(address to, uint256 tokens) public override returns (bool success) { // prevent transfer to 0x0, use burn instead require(address(to) != address(0)); require(balances[msg.sender] >= tokens); require(balances[to] + tokens >= balances[to]); if(walletsLocking[msg.sender...
// ------------------------------------------------------------------------ // 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.6.12+commit.27d51765
Unlicense
ipfs://ee01fb06f13bb29b5be9f1e70a5bb06eb64a4059f11f5ce4d73a08f33e49b0bf
{ "func_code_index": [ 4711, 5800 ] }
6,875
Token
Token.sol
0x7e6e9e7e337aacab93526f95c0977040c2a022a5
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "ORNG"; string public name = "Orange Protocol"; uint256 public decimals = 18; uint256 _totalSupply = 1e9 * 10 ** decimals; bool public _openTransfer = false; address team = 0x0d69E8cecc87906E...
// ---------------------------------------------------------------------------- // 'ORNG' token contract // Symbol : ORNG // Name : Orange Protocol // Total supply: 1,000,000,000 (1 billion) // Decimals : 18 // ---------------------------------------------------------------------------- // --------------...
LineComment
approve
function approve(address spender, uint256 tokens) public override 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 // ------------------------------------------------------------------------
LineComment
v0.6.12+commit.27d51765
Unlicense
ipfs://ee01fb06f13bb29b5be9f1e70a5bb06eb64a4059f11f5ce4d73a08f33e49b0bf
{ "func_code_index": [ 6080, 6302 ] }
6,876
Token
Token.sol
0x7e6e9e7e337aacab93526f95c0977040c2a022a5
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "ORNG"; string public name = "Orange Protocol"; uint256 public decimals = 18; uint256 _totalSupply = 1e9 * 10 ** decimals; bool public _openTransfer = false; address team = 0x0d69E8cecc87906E...
// ---------------------------------------------------------------------------- // 'ORNG' token contract // Symbol : ORNG // Name : Orange Protocol // Total supply: 1,000,000,000 (1 billion) // Decimals : 18 // ---------------------------------------------------------------------------- // --------------...
LineComment
transferFrom
function transferFrom(address from, address to, uint256 tokens) public override returns (bool success){ require(tokens <= allowed[from][msg.sender]); //check allowance require(balances[from] >= tokens); require(balances[to] + tokens >= balances[to]); if(walletsLocking[from].earlyBird == fa...
// ------------------------------------------------------------------------ // 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.6.12+commit.27d51765
Unlicense
ipfs://ee01fb06f13bb29b5be9f1e70a5bb06eb64a4059f11f5ce4d73a08f33e49b0bf
{ "func_code_index": [ 6838, 7928 ] }
6,877
Token
Token.sol
0x7e6e9e7e337aacab93526f95c0977040c2a022a5
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "ORNG"; string public name = "Orange Protocol"; uint256 public decimals = 18; uint256 _totalSupply = 1e9 * 10 ** decimals; bool public _openTransfer = false; address team = 0x0d69E8cecc87906E...
// ---------------------------------------------------------------------------- // 'ORNG' token contract // Symbol : ORNG // Name : Orange Protocol // Total supply: 1,000,000,000 (1 billion) // Decimals : 18 // ---------------------------------------------------------------------------- // --------------...
LineComment
allowance
function allowance(address tokenOwner, address spender) public override view returns (uint256 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.6.12+commit.27d51765
Unlicense
ipfs://ee01fb06f13bb29b5be9f1e70a5bb06eb64a4059f11f5ce4d73a08f33e49b0bf
{ "func_code_index": [ 8209, 8373 ] }
6,878
Token
Token.sol
0x7e6e9e7e337aacab93526f95c0977040c2a022a5
Solidity
Token
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "ORNG"; string public name = "Orange Protocol"; uint256 public decimals = 18; uint256 _totalSupply = 1e9 * 10 ** decimals; bool public _openTransfer = false; address team = 0x0d69E8cecc87906E...
// ---------------------------------------------------------------------------- // 'ORNG' token contract // Symbol : ORNG // Name : Orange Protocol // Total supply: 1,000,000,000 (1 billion) // Decimals : 18 // ---------------------------------------------------------------------------- // --------------...
LineComment
burnTokens
function burnTokens(uint256 _amount, address _account) public { require(msg.sender == _account || msg.sender == owner, "UnAuthorized"); require(balances[_account] >= _amount, "Insufficient account balance"); _totalSupply = _totalSupply.sub(_amount); balances[_account] = balances[_account].sub(_amoun...
// ------------------------------------------------------------------------ // @dev Public function that burns an amount of the token from a given account // @param _amount The amount that will be burnt // @param _account The tokens to burn from // can be used from account owner or contract owner // -------------------...
LineComment
v0.6.12+commit.27d51765
Unlicense
ipfs://ee01fb06f13bb29b5be9f1e70a5bb06eb64a4059f11f5ce4d73a08f33e49b0bf
{ "func_code_index": [ 8780, 9186 ] }
6,879
CoinolixToken
contracts\CoinolixPresale.sol
0x67fe7b4958a00f263ebd16d246a9a3b2ea3050d7
Solidity
CoinolixPresale
contract CoinolixPresale is AirdropAndAffiliateCrowdsale, //MintedCrowdsale, CappedCrowdsale, TimedCrowdsale, WhitelistedCrowdsale { using SafeMath for uint256; // Min investment uint256 public presaleRate; uint256 public minInvestmentInWei; event Current...
/** * @title Coinolix icoPresale Contract * @dev Coinolix icoPresale Contract * The contract is for the private sale of the Coinolix icotoken. It is: * - With a hard cap in ETH * - Limited in time (start/end date) * - Only for whitelisted participants to purchase tokens * - Tokens are minted on each purch...
NatSpecMultiLine
updatepresaleRate
function updatepresaleRate(uint256 _rate) external onlyOwner { esaleRate = _rate; te = presaleRate; }
//update rate function by owner to keep stable rate in USD
LineComment
v0.4.24+commit.e67f0147
bzzr://317c9534ceebbb8a9305966c591c4b572578356d3c9cb0e0fb32000e028135a5
{ "func_code_index": [ 1550, 1679 ] }
6,880
CoinolixToken
contracts\CoinolixPresale.sol
0x67fe7b4958a00f263ebd16d246a9a3b2ea3050d7
Solidity
CoinolixPresale
contract CoinolixPresale is AirdropAndAffiliateCrowdsale, //MintedCrowdsale, CappedCrowdsale, TimedCrowdsale, WhitelistedCrowdsale { using SafeMath for uint256; // Min investment uint256 public presaleRate; uint256 public minInvestmentInWei; event Current...
/** * @title Coinolix icoPresale Contract * @dev Coinolix icoPresale Contract * The contract is for the private sale of the Coinolix icotoken. It is: * - With a hard cap in ETH * - Limited in time (start/end date) * - Only for whitelisted participants to purchase tokens * - Tokens are minted on each purch...
NatSpecMultiLine
_preValidatePurchase
function _preValidatePurchase(address _beneficiary, uint256 _weiAmount) internal { super._preValidatePurchase(_beneficiary, _weiAmount); require(_weiAmount >= minInvestmentInWei); }
/** * @dev Validate min investment amount * @param _beneficiary address token purchaser * @param _weiAmount uint256 amount of wei contributed */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://317c9534ceebbb8a9305966c591c4b572578356d3c9cb0e0fb32000e028135a5
{ "func_code_index": [ 1854, 2063 ] }
6,881
CoinolixToken
contracts\CoinolixPresale.sol
0x67fe7b4958a00f263ebd16d246a9a3b2ea3050d7
Solidity
CoinolixPresale
contract CoinolixPresale is AirdropAndAffiliateCrowdsale, //MintedCrowdsale, CappedCrowdsale, TimedCrowdsale, WhitelistedCrowdsale { using SafeMath for uint256; // Min investment uint256 public presaleRate; uint256 public minInvestmentInWei; event Current...
/** * @title Coinolix icoPresale Contract * @dev Coinolix icoPresale Contract * The contract is for the private sale of the Coinolix icotoken. It is: * - With a hard cap in ETH * - Limited in time (start/end date) * - Only for whitelisted participants to purchase tokens * - Tokens are minted on each purch...
NatSpecMultiLine
transferTokenOwnership
function transferTokenOwnership(address _newOwner) onlyOwner public { Ownable(token).transferOwnership(_newOwner); }
/** * @dev Transfer the ownership of the token conctract * @param _newOwner address the new owner of the token */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://317c9534ceebbb8a9305966c591c4b572578356d3c9cb0e0fb32000e028135a5
{ "func_code_index": [ 2201, 2337 ] }
6,882
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
Context
contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor() internal {} // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address)...
/* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending ...
Comment
_msgSender
function _msgSender() internal view returns (address) { return msg.sender; }
// solhint-disable-previous-line no-empty-blocks
LineComment
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 263, 358 ] }
6,883
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 454, 538 ] }
6,884
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
isOwner
function isOwner() public view returns (bool) { return _msgSender() == _owner; }
/** * @dev Returns true if the caller is the current owner. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 820, 919 ] }
6,885
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 1265, 1410 ] }
6,886
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 1560, 1674 ] }
6,887
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 1775, 2009 ] }
6,888
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[accou...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
add
function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[account] = true; }
/** * @dev Give an account access to this role. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 156, 339 ] }
6,889
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[accou...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
remove
function remove(Role storage role, address account) internal { require(has(role, account), "Roles: account does not have role"); role.bearer[account] = false; }
/** * @dev Remove an account's access to this role. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 414, 602 ] }
6,890
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
Roles
library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[accou...
/** * @title Roles * @dev Library for managing addresses assigned to a Role. */
NatSpecMultiLine
has
function has(Role storage role, address account) internal view returns (bool) { require(account != address(0), "Roles: account is the zero address"); return role.bearer[account]; }
/** * @dev Check if an account has this role. * @return bool */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 692, 900 ] }
6,891
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. //...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; ...
/** * @dev Multiplies two numbers, reverts on overflow. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 96, 550 ] }
6,892
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. //...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "div zero"); // Solidity only automatically asserts when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Integer division of two numbers truncating the quotient, reverts on division by zero. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 668, 979 ] }
6,893
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. //...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "lower sub bigger"); uint256 c = a - b; return c; }
/** * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 1100, 1275 ] }
6,894
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. //...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "overflow"); return c; }
/** * @dev Adds two numbers, reverts on overflow. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 1346, 1513 ] }
6,895
PP100
PP100.sol
0x466115f92352898beff90187a1adbaae3f582de4
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. //...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "mod zero"); return a % b; }
/** * @dev Divides two numbers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
MIT
bzzr://082ce5f11b9cd66d7d29c5f3e49461f545fdbf476962726e93d69d7d229881b3
{ "func_code_index": [ 1656, 1797 ] }
6,896
MyMage
contracts/MyMage.sol
0x0ec6d3d71eee20a6ef731f9c9ac5ab6210187a30
Solidity
MyMage
contract MyMage is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.02 ether; uint256 public maxSupply = 9999; uint256 public maxMintAmount = 20; bool public paused = false; constructor( string m...
//tells us what version we are using.
LineComment
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.4+commit.c7e474f2
GNU GPLv3
ipfs://729d4e05e8eae6a7041b825c29f3f3d2b87a3543e250902d47e6c8c5923b381b
{ "func_code_index": [ 583, 688 ] }
6,897
MyMage
contracts/MyMage.sol
0x0ec6d3d71eee20a6ef731f9c9ac5ab6210187a30
Solidity
MyMage
contract MyMage is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.02 ether; uint256 public maxSupply = 9999; uint256 public maxMintAmount = 20; bool public paused = false; constructor( string m...
//tells us what version we are using.
LineComment
mint
function mint(address _to, uint256 _mintAmount) public payable { uint256 supply = totalSupply(); require(!paused); require(_mintAmount > 0); require(_mintAmount <= maxMintAmount); require(supply + _mintAmount <= maxSupply); //means there wont be any NFT's minted over max amount. if (msg.sender != ow...
// public
LineComment
v0.8.4+commit.c7e474f2
GNU GPLv3
ipfs://729d4e05e8eae6a7041b825c29f3f3d2b87a3543e250902d47e6c8c5923b381b
{ "func_code_index": [ 704, 1207 ] }
6,898
MyMage
contracts/MyMage.sol
0x0ec6d3d71eee20a6ef731f9c9ac5ab6210187a30
Solidity
MyMage
contract MyMage is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.02 ether; uint256 public maxSupply = 9999; uint256 public maxMintAmount = 20; bool public paused = false; constructor( string m...
//tells us what version we are using.
LineComment
setCost
function setCost(uint256 _newCost) public onlyOwner() { cost = _newCost; }
//only owner
LineComment
v0.8.4+commit.c7e474f2
GNU GPLv3
ipfs://729d4e05e8eae6a7041b825c29f3f3d2b87a3543e250902d47e6c8c5923b381b
{ "func_code_index": [ 2009, 2094 ] }
6,899
DexRegistry
/Users/Elena/Source/argent-contracts/contracts/infrastructure/DexRegistry.sol
0x1f8db8b9356f8d5f6203893198521a7ee02df35c
Solidity
DexRegistry
contract DexRegistry is IDexRegistry, Owned { // Whitelisted DEX adapters mapping(address => bool) public isAuthorised; event DexAdded(address indexed _dex); event DexRemoved(address indexed _dex); /** * @notice Add/Remove a DEX adapter to/from the whitelist. * @param _dexes array of D...
/** * @title DexRegistry * @notice Simple registry containing whitelisted DEX adapters to be used with the TokenExchanger. * @author Olivier VDB - <olivier@argent.xyz> */
NatSpecMultiLine
setAuthorised
function setAuthorised(address[] calldata _dexes, bool[] calldata _authorised) external onlyOwner { for(uint256 i = 0; i < _dexes.length; i++) { if(isAuthorised[_dexes[i]] != _authorised[i]) { isAuthorised[_dexes[i]] = _authorised[i]; if(_authorised[i]) { emit DexAdd...
/** * @notice Add/Remove a DEX adapter to/from the whitelist. * @param _dexes array of DEX adapters to add to (or remove from) the whitelist * @param _authorised array where each entry is true to add the corresponding DEX to the whitelist, false to remove it */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 504, 985 ] }
6,900
CoinolixToken
contracts\CoinolixCrowdsale.sol
0x67fe7b4958a00f263ebd16d246a9a3b2ea3050d7
Solidity
CoinolixCrowdsale
contract CoinolixCrowdsale is AirdropAndAffiliateCrowdsale, //MintedCrowdsale, CappedCrowdsale, TimedCrowdsale, FinalizableCrowdsale, WhitelistedCrowdsale, RefundableCrowdsale, Pausable { using SafeMath for uint256; // Initial distribution uint256 public constant ...
/** * @title Coinolix ico Crowdsale Contract * @dev Coinolix ico Crowdsale Contract * The contract is for the crowdsale of the Coinolix icotoken. It is: * - With a hard cap in ETH * - With a soft cap in ETH * - Limited in time (start/end date) * - Only for whitelisted participants to purchase tokens * -...
NatSpecMultiLine
doInitialDistribution
function doInitialDistribution( address _teamAddress, address _bountyPoolAddress, address _advisorPoolAdddress) external onlyOwner { // Create locks for team and visor pools teamWallet = new TokenTimelock(token, _teamAddress, closingTime.add(TEAM_LOCK_TIME)); advteamPool = new To...
/** * @dev Perform the initial token distribution according to the Coinolix icocrowdsale rules * @param _teamAddress address address for the team tokens * @param _bountyPoolAddress address address for the prize pool * @param _advisorPoolAdddress address address for the reserve pool */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://317c9534ceebbb8a9305966c591c4b572578356d3c9cb0e0fb32000e028135a5
{ "func_code_index": [ 3671, 5071 ] }
6,901
CoinolixToken
contracts\CoinolixCrowdsale.sol
0x67fe7b4958a00f263ebd16d246a9a3b2ea3050d7
Solidity
CoinolixCrowdsale
contract CoinolixCrowdsale is AirdropAndAffiliateCrowdsale, //MintedCrowdsale, CappedCrowdsale, TimedCrowdsale, FinalizableCrowdsale, WhitelistedCrowdsale, RefundableCrowdsale, Pausable { using SafeMath for uint256; // Initial distribution uint256 public constant ...
/** * @title Coinolix ico Crowdsale Contract * @dev Coinolix ico Crowdsale Contract * The contract is for the crowdsale of the Coinolix icotoken. It is: * - With a hard cap in ETH * - With a soft cap in ETH * - Limited in time (start/end date) * - Only for whitelisted participants to purchase tokens * -...
NatSpecMultiLine
updateRate
function updateRate() external onlyOwner { uint256 i = stages.length; while (i-- > 0) { if (block.timestamp >= stages[i]) { rate = initialRate.add(initialRate.mul(bonuses[i]).div(100)); emit CurrentRateChange(rate); break; } } }
/** * @dev Update the current rate based on the scheme * 1st of Sep - 30rd of Sep -> 30% Bonus * 1st of Oct - 31st of Oct -> 20% Bonus * 1st of Nov - 30rd of Oct -> 10% Bonus * 1st of Dec - 31st of Dec -> 0% Bonus */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://317c9534ceebbb8a9305966c591c4b572578356d3c9cb0e0fb32000e028135a5
{ "func_code_index": [ 5326, 5668 ] }
6,902
CoinolixToken
contracts\CoinolixCrowdsale.sol
0x67fe7b4958a00f263ebd16d246a9a3b2ea3050d7
Solidity
CoinolixCrowdsale
contract CoinolixCrowdsale is AirdropAndAffiliateCrowdsale, //MintedCrowdsale, CappedCrowdsale, TimedCrowdsale, FinalizableCrowdsale, WhitelistedCrowdsale, RefundableCrowdsale, Pausable { using SafeMath for uint256; // Initial distribution uint256 public constant ...
/** * @title Coinolix ico Crowdsale Contract * @dev Coinolix ico Crowdsale Contract * The contract is for the crowdsale of the Coinolix icotoken. It is: * - With a hard cap in ETH * - With a soft cap in ETH * - Limited in time (start/end date) * - Only for whitelisted participants to purchase tokens * -...
NatSpecMultiLine
updateInitialRate
function updateInitialRate(uint256 _rate) external onlyOwner { initialRate = _rate; uint256 i = stages.length; while (i-- > 0) { if (block.timestamp >= stages[i]) { rate = initialRate.add(initialRate.mul(bonuses[i]).div(100)); emit CurrentRateChange(rate); ...
//update rate function by owner to keep stable rate in USD
LineComment
v0.4.24+commit.e67f0147
bzzr://317c9534ceebbb8a9305966c591c4b572578356d3c9cb0e0fb32000e028135a5
{ "func_code_index": [ 5741, 6133 ] }
6,903
CoinolixToken
contracts\CoinolixCrowdsale.sol
0x67fe7b4958a00f263ebd16d246a9a3b2ea3050d7
Solidity
CoinolixCrowdsale
contract CoinolixCrowdsale is AirdropAndAffiliateCrowdsale, //MintedCrowdsale, CappedCrowdsale, TimedCrowdsale, FinalizableCrowdsale, WhitelistedCrowdsale, RefundableCrowdsale, Pausable { using SafeMath for uint256; // Initial distribution uint256 public constant ...
/** * @title Coinolix ico Crowdsale Contract * @dev Coinolix ico Crowdsale Contract * The contract is for the crowdsale of the Coinolix icotoken. It is: * - With a hard cap in ETH * - With a soft cap in ETH * - Limited in time (start/end date) * - Only for whitelisted participants to purchase tokens * -...
NatSpecMultiLine
airdropTokens
function airdropTokens(address[] _beneficiaries, uint256 _amount) external onlyOwner { PausableToken(token).unpause(); reffalPool.allocateEqual(_beneficiaries, _amount); PausableToken(token).pause(); }
/** * @dev Perform an airdrop from the airdrop pool to multiple beneficiaries * @param _beneficiaries address[] list of beneficiaries * @param _amount uint256 amount to airdrop */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://317c9534ceebbb8a9305966c591c4b572578356d3c9cb0e0fb32000e028135a5
{ "func_code_index": [ 6341, 6579 ] }
6,904
CoinolixToken
contracts\CoinolixCrowdsale.sol
0x67fe7b4958a00f263ebd16d246a9a3b2ea3050d7
Solidity
CoinolixCrowdsale
contract CoinolixCrowdsale is AirdropAndAffiliateCrowdsale, //MintedCrowdsale, CappedCrowdsale, TimedCrowdsale, FinalizableCrowdsale, WhitelistedCrowdsale, RefundableCrowdsale, Pausable { using SafeMath for uint256; // Initial distribution uint256 public constant ...
/** * @title Coinolix ico Crowdsale Contract * @dev Coinolix ico Crowdsale Contract * The contract is for the crowdsale of the Coinolix icotoken. It is: * - With a hard cap in ETH * - With a soft cap in ETH * - Limited in time (start/end date) * - Only for whitelisted participants to purchase tokens * -...
NatSpecMultiLine
allocatePVT_InvTokens
function allocatePVT_InvTokens(address[] _beneficiaries, uint256[] _amounts) external onlyOwner { PausableToken(token).unpause(); pvt_inv_Pool.allocate(_beneficiaries, _amounts); PausableToken(token).pause(); }
/** * @dev Transfer tokens to advisors and private investor from the pool * @param _beneficiaries address[] list of beneficiaries * @param _amounts uint256[] amounts */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://317c9534ceebbb8a9305966c591c4b572578356d3c9cb0e0fb32000e028135a5
{ "func_code_index": [ 6778, 7025 ] }
6,905
CoinolixToken
contracts\CoinolixCrowdsale.sol
0x67fe7b4958a00f263ebd16d246a9a3b2ea3050d7
Solidity
CoinolixCrowdsale
contract CoinolixCrowdsale is AirdropAndAffiliateCrowdsale, //MintedCrowdsale, CappedCrowdsale, TimedCrowdsale, FinalizableCrowdsale, WhitelistedCrowdsale, RefundableCrowdsale, Pausable { using SafeMath for uint256; // Initial distribution uint256 public constant ...
/** * @title Coinolix ico Crowdsale Contract * @dev Coinolix ico Crowdsale Contract * The contract is for the crowdsale of the Coinolix icotoken. It is: * - With a hard cap in ETH * - With a soft cap in ETH * - Limited in time (start/end date) * - Only for whitelisted participants to purchase tokens * -...
NatSpecMultiLine
transferTokenOwnership
function transferTokenOwnership(address _newOwner) onlyOwner public { Ownable(token).transferOwnership(_newOwner); }
/** * @dev Transfer the ownership of the token conctract * @param _newOwner address the new owner of the token */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://317c9534ceebbb8a9305966c591c4b572578356d3c9cb0e0fb32000e028135a5
{ "func_code_index": [ 7163, 7299 ] }
6,906