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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BolivarToken | BolivarToken.sol | 0x4986beff7d516947ec5ea2d14401bd61faf849d1 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.17+commit.bdeb9e52 | bzzr://2678a72cfaa9e7467d00f6ac739986d85f97d6a0918efaeee147ecb490a413f6 | {
"func_code_index": [
946,
1042
]
} | 15,300 | |||
BolivarToken | BolivarToken.sol | 0x4986beff7d516947ec5ea2d14401bd61faf849d1 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | approve | function approve(address _spender, uint256 _value) returns (bool success) {}
| /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of wei to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.17+commit.bdeb9e52 | bzzr://2678a72cfaa9e7467d00f6ac739986d85f97d6a0918efaeee147ecb490a413f6 | {
"func_code_index": [
1326,
1407
]
} | 15,301 | |||
BolivarToken | BolivarToken.sol | 0x4986beff7d516947ec5ea2d14401bd61faf849d1 | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.17+commit.bdeb9e52 | bzzr://2678a72cfaa9e7467d00f6ac739986d85f97d6a0918efaeee147ecb490a413f6 | {
"func_code_index": [
1615,
1712
]
} | 15,302 | |||
BolivarToken | BolivarToken.sol | 0x4986beff7d516947ec5ea2d14401bd61faf849d1 | Solidity | BolivarToken | contract BolivarToken is StandardToken {
function () {
//if ether is sent to this address, send it back.
revert();
}
string public name;
uint8 public decimals;
string public symbol;
string public version = 'H1.0';
function BolivarToken(
) {
ba... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s... | /* Approves and then calls the receiving contract */ | Comment | v0.4.17+commit.bdeb9e52 | bzzr://2678a72cfaa9e7467d00f6ac739986d85f97d6a0918efaeee147ecb490a413f6 | {
"func_code_index": [
554,
1362
]
} | 15,303 | |||
GanaToken | GanaToken.sol | 0xc0ea6306f6360fe7dcab65d16bf1a3af92c79aa2 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}
... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | Ownable | function Ownable() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://cf48ee49823ec32c32218621d37a8f4141bc976e8505be3cd286c32ce019f15c | {
"func_code_index": [
259,
319
]
} | 15,304 | |
GanaToken | GanaToken.sol | 0xc0ea6306f6360fe7dcab65d16bf1a3af92c79aa2 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}
... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://cf48ee49823ec32c32218621d37a8f4141bc976e8505be3cd286c32ce019f15c | {
"func_code_index": [
638,
814
]
} | 15,305 | |
GanaToken | GanaToken.sol | 0xc0ea6306f6360fe7dcab65d16bf1a3af92c79aa2 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) p... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
T... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://cf48ee49823ec32c32218621d37a8f4141bc976e8505be3cd286c32ce019f15c | {
"func_code_index": [
270,
661
]
} | 15,306 | |
GanaToken | GanaToken.sol | 0xc0ea6306f6360fe7dcab65d16bf1a3af92c79aa2 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) p... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://cf48ee49823ec32c32218621d37a8f4141bc976e8505be3cd286c32ce019f15c | {
"func_code_index": [
867,
979
]
} | 15,307 | |
GanaToken | GanaToken.sol | 0xc0ea6306f6360fe7dcab65d16bf1a3af92c79aa2 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://cf48ee49823ec32c32218621d37a8f4141bc976e8505be3cd286c32ce019f15c | {
"func_code_index": [
399,
851
]
} | 15,308 | |
GanaToken | GanaToken.sol | 0xc0ea6306f6360fe7dcab65d16bf1a3af92c79aa2 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* ... | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://cf48ee49823ec32c32218621d37a8f4141bc976e8505be3cd286c32ce019f15c | {
"func_code_index": [
1483,
1673
]
} | 15,309 | |
GanaToken | GanaToken.sol | 0xc0ea6306f6360fe7dcab65d16bf1a3af92c79aa2 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) public view returns (uint256) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://cf48ee49823ec32c32218621d37a8f4141bc976e8505be3cd286c32ce019f15c | {
"func_code_index": [
1997,
2128
]
} | 15,310 | |
GanaToken | GanaToken.sol | 0xc0ea6306f6360fe7dcab65d16bf1a3af92c79aa2 | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | increaseApproval | function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
| /**
* 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
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://cf48ee49823ec32c32218621d37a8f4141bc976e8505be3cd286c32ce019f15c | {
"func_code_index": [
2373,
2637
]
} | 15,311 | |
GanaToken | GanaToken.sol | 0xc0ea6306f6360fe7dcab65d16bf1a3af92c79aa2 | Solidity | BurnableToken | contract BurnableToken is ReleasableToken {
event Burn(address indexed burner, uint256 value);
/**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/
function burn(uint256 _value) onlyManager public {
require(_value > 0);
... | burn | function burn(uint256 _value) onlyManager public {
require(_value > 0);
require(_value <= balances[msg.sender]);
// no need to require value <= tota0lSupply, since that would imply the
// sender's balance is greater than the totalSupply, which *should* be an assertion failure
address burner =... | /**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://cf48ee49823ec32c32218621d37a8f4141bc976e8505be3cd286c32ce019f15c | {
"func_code_index": [
227,
728
]
} | 15,312 | |||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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);
/**... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
94,
154
]
} | 15,313 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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);
/**... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
237,
310
]
} | 15,314 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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);
/**... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
534,
616
]
} | 15,315 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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);
/**... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
895,
983
]
} | 15,316 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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);
/**... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
1647,
1726
]
} | 15,317 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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);
/**... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
2039,
2141
]
} | 15,318 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
259,
445
]
} | 15,319 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
723,
864
]
} | 15,320 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
1162,
1359
]
} | 15,321 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
1613,
2089
]
} | 15,322 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
2560,
2697
]
} | 15,323 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
3188,
3471
]
} | 15,324 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
3931,
4066
]
} | 15,325 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
4546,
4717
]
} | 15,326 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
606,
1230
]
} | 15,327 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
2160,
2562
]
} | 15,328 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
3318,
3496
]
} | 15,329 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
3721,
3922
]
} | 15,330 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
4292,
4523
]
} | 15,331 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | 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 ... | 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 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
4774,
5095
]
} | 15,332 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
497,
581
]
} | 15,333 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | renounceOwnership | function renounceOwnership() public virtual 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.6.12+commit.27d51765 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
1139,
1292
]
} | 15,334 | ||
eMoon | eMoon.sol | 0x828223aa1daaa1736568f997f0fcb650bcd8c9c5 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
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`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://5daba3176d8def82ec60b8256468c3a5e727fee1b3168b5c8b51ee8bfd4aa440 | {
"func_code_index": [
1442,
1691
]
} | 15,335 | ||
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | ERC223ReceivingContract | contract ERC223ReceivingContract {
/**
* @dev Standard ERC223 function that will handle incoming token transfers.
*
* @param _from Token sender address.
* @param _value Amount of tokens.
* @param _data Transaction metadata.
*/
function tokenFallback(address _from, uint _value, bytes _data);
} | /**
* @title Contract that will work with ERC223 tokens.
*/ | NatSpecMultiLine | tokenFallback | function tokenFallback(address _from, uint _value, bytes _data);
| /**
* @dev Standard ERC223 function that will handle incoming token transfers.
*
* @param _from Token sender address.
* @param _value Amount of tokens.
* @param _data Transaction metadata.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
243,
312
]
} | 15,336 | |
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* a... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public onlyOwner {
emit OwnershipRenounced(owner);
owner = address(0);
}
| /**
* @dev Allows the current owner to relinquish control of the contract.
* @notice Renouncing to ownership will leave the contract without an owner.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
815,
932
]
} | 15,337 | |
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* a... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address _newOwner) public onlyOwner {
_transferOwnership(_newOwner);
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
1097,
1205
]
} | 15,338 | |
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* a... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address _newOwner) internal {
require(_newOwner != address(0));
emit OwnershipTransferred(owner, _newOwner);
owner = _newOwner;
}
| /**
* @dev Transfers control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
1343,
1521
]
} | 15,339 | |
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://githu... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting '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;
}
c = a... | /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
89,
476
]
} | 15,340 | |
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://githu... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
560,
840
]
} | 15,341 | |
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://githu... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
954,
1070
]
} | 15,342 | |
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://githu... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
1134,
1264
]
} | 15,343 | |
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | pause | function pause() onlyOwner whenNotPaused public {
paused = true;
emit Pause();
}
| /**
* @dev called by the owner to pause, triggers stopped state
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
513,
609
]
} | 15,344 | |
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | unpause | function unpause() onlyOwner whenPaused public {
paused = false;
emit Unpause();
}
| /**
* @dev called by the owner to unpause, returns to normal state
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
693,
791
]
} | 15,345 | |
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | Bounty0xEscrow | contract Bounty0xEscrow is Ownable, ERC223ReceivingContract, Pausable {
using SafeMath for uint256;
mapping (address => mapping (address => uint)) public tokens; //mapping of token addresses to mapping of account balances (token=0 means Ether)
event Deposit(address indexed token, address indexed us... | tokenFallback | function tokenFallback(address _from, uint _value, bytes _data) public whenNotPaused {
address _token = msg.sender;
tokens[_token][_from] = SafeMath.add(tokens[_token][_from], _value);
emit Deposit(_token, _from, _value, tokens[_token][_from]);
}
| // for erc223 tokens | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
530,
815
]
} | 15,346 | |||
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | Bounty0xEscrow | contract Bounty0xEscrow is Ownable, ERC223ReceivingContract, Pausable {
using SafeMath for uint256;
mapping (address => mapping (address => uint)) public tokens; //mapping of token addresses to mapping of account balances (token=0 means Ether)
event Deposit(address indexed token, address indexed us... | depositToken | function depositToken(address _token, uint _amount) public whenNotPaused {
//remember to call Token(address).approve(this, amount) or this contract will not be able to do the transfer on your behalf.
require(_token != address(0));
ERC20(_token).transferFrom(msg.sender, this, _amount);
tokens[_toke... | // for erc20 tokens | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
843,
1340
]
} | 15,347 | |||
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | Bounty0xEscrow | contract Bounty0xEscrow is Ownable, ERC223ReceivingContract, Pausable {
using SafeMath for uint256;
mapping (address => mapping (address => uint)) public tokens; //mapping of token addresses to mapping of account balances (token=0 means Ether)
event Deposit(address indexed token, address indexed us... | depositEther | function depositEther() public payable whenNotPaused {
tokens[address(0)][msg.sender] = SafeMath.add(tokens[address(0)][msg.sender], msg.value);
emit Deposit(address(0), msg.sender, msg.value, tokens[address(0)][msg.sender]);
}
| // for ether | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
1361,
1616
]
} | 15,348 | |||
Bounty0xEscrow | Bounty0xEscrow.sol | 0x4176f0f2b7c95486a5ae06e3d1b29201a42e7630 | Solidity | Bounty0xEscrow | contract Bounty0xEscrow is Ownable, ERC223ReceivingContract, Pausable {
using SafeMath for uint256;
mapping (address => mapping (address => uint)) public tokens; //mapping of token addresses to mapping of account balances (token=0 means Ether)
event Deposit(address indexed token, address indexed us... | approveToPullOutTokens | function approveToPullOutTokens(address _token, address _receiver, uint256 _amount) external onlyOwner {
ERC20(_token).approve(_receiver, _amount);
}
| // in case of emergency | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://353008b167fff623c87007c1aba9a8617d2456ac61b7c18305e337cdcdda1d7d | {
"func_code_index": [
4965,
5133
]
} | 15,349 | |||
MESH | MESH.sol | 0xcf9fbffec9e0e5bbc62e79bf1965f5db76955661 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.*/
/// total amount of tokens
uint256 public totalSupply;
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) public constant returns (uint... | balanceOf | function balanceOf(address _owner) public constant returns (uint256 balance);
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.23+commit.124ca40d | bzzr://ab1504e26f1ad9c00ce370c6aa1937ea33f0dbb08d24a5ee89e560ed258c838f | {
"func_code_index": [
252,
334
]
} | 15,350 | |||
MESH | MESH.sol | 0xcf9fbffec9e0e5bbc62e79bf1965f5db76955661 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.*/
/// total amount of tokens
uint256 public totalSupply;
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) public constant returns (uint... | transfer | function transfer(address _to, uint256 _value) public returns (bool success);
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.23+commit.124ca40d | bzzr://ab1504e26f1ad9c00ce370c6aa1937ea33f0dbb08d24a5ee89e560ed258c838f | {
"func_code_index": [
571,
653
]
} | 15,351 | |||
MESH | MESH.sol | 0xcf9fbffec9e0e5bbc62e79bf1965f5db76955661 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.*/
/// total amount of tokens
uint256 public totalSupply;
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) public constant returns (uint... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.23+commit.124ca40d | bzzr://ab1504e26f1ad9c00ce370c6aa1937ea33f0dbb08d24a5ee89e560ed258c838f | {
"func_code_index": [
976,
1077
]
} | 15,352 | |||
MESH | MESH.sol | 0xcf9fbffec9e0e5bbc62e79bf1965f5db76955661 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.*/
/// total amount of tokens
uint256 public totalSupply;
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) public constant returns (uint... | approve | function approve(address _spender, uint256 _value) public returns (bool success);
| /// @notice `msg.sender` approves `_spender` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of tokens to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.23+commit.124ca40d | bzzr://ab1504e26f1ad9c00ce370c6aa1937ea33f0dbb08d24a5ee89e560ed258c838f | {
"func_code_index": [
1367,
1453
]
} | 15,353 | |||
MESH | MESH.sol | 0xcf9fbffec9e0e5bbc62e79bf1965f5db76955661 | Solidity | Token | contract Token {
/* This is a slight change to the ERC20 base standard.*/
/// total amount of tokens
uint256 public totalSupply;
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) public constant returns (uint... | allowance | function allowance(address _owner, address _spender) public constant returns (uint256 remaining);
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.23+commit.124ca40d | bzzr://ab1504e26f1ad9c00ce370c6aa1937ea33f0dbb08d24a5ee89e560ed258c838f | {
"func_code_index": [
1661,
1763
]
} | 15,354 | |||
MESH | MESH.sol | 0xcf9fbffec9e0e5bbc62e79bf1965f5db76955661 | Solidity | Owned | contract Owned {
/// `owner` is the only address that can call a function with this
/// modifier
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
address public owner;
/// @notice The Constructor assigns the message sender to be `owner`
constructor() p... | changeOwner | function changeOwner(address _newOwner) public onlyOwner {
require(_newOwner != owner);
newOwner = _newOwner;
}
| ///change the owner | NatSpecSingleLine | v0.4.23+commit.124ca40d | bzzr://ab1504e26f1ad9c00ce370c6aa1937ea33f0dbb08d24a5ee89e560ed258c838f | {
"func_code_index": [
486,
625
]
} | 15,355 | |||
MESH | MESH.sol | 0xcf9fbffec9e0e5bbc62e79bf1965f5db76955661 | Solidity | Owned | contract Owned {
/// `owner` is the only address that can call a function with this
/// modifier
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
address public owner;
/// @notice The Constructor assigns the message sender to be `owner`
constructor() p... | acceptOwnership | function acceptOwnership() public{
require(msg.sender == newOwner);
emit OwnerUpdate(owner, newOwner);
owner = newOwner;
newOwner = 0x0;
}
| /// accept the ownership | NatSpecSingleLine | v0.4.23+commit.124ca40d | bzzr://ab1504e26f1ad9c00ce370c6aa1937ea33f0dbb08d24a5ee89e560ed258c838f | {
"func_code_index": [
658,
842
]
} | 15,356 | |||
MESH | MESH.sol | 0xcf9fbffec9e0e5bbc62e79bf1965f5db76955661 | Solidity | MESH | contract MESH is StandardToken {
function () public {
revert();
}
string public name = "MeshBox"; //fancy name
uint8 public decimals = 18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. I... | transferProxy | function transferProxy(address _from, address _to, uint256 _value, uint256 _feeMesh,
uint8 _v,bytes32 _r, bytes32 _s) public transferAllowed(_from) returns (bool){
if(balances[_from] < _feeMesh + _value
|| _feeMesh > _feeMesh + _value) revert();
uint256 nonce = nonces[_from];
bytes32 h... | /*
* Proxy transfer MESH. When some users of the ethereum account has no ether,
* he or she can authorize the agent for broadcast transactions, and agents may charge agency fees
* @param _from
* @param _to
* @param _value
* @param feeMesh
* @param _v
* @param _r
* @param _s
*/ | Comment | v0.4.23+commit.124ca40d | bzzr://ab1504e26f1ad9c00ce370c6aa1937ea33f0dbb08d24a5ee89e560ed258c838f | {
"func_code_index": [
1088,
1972
]
} | 15,357 | |||
MESH | MESH.sol | 0xcf9fbffec9e0e5bbc62e79bf1965f5db76955661 | Solidity | MESH | contract MESH is StandardToken {
function () public {
revert();
}
string public name = "MeshBox"; //fancy name
uint8 public decimals = 18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. I... | approveProxy | function approveProxy(address _from, address _spender, uint256 _value,
uint8 _v,bytes32 _r, bytes32 _s) public returns (bool success) {
uint256 nonce = nonces[_from];
bytes32 hash = keccak256(_from,_spender,_value,nonce,address(this));
if(_from != ecrecover(hash,_v,_r,_s)) revert();
allowed[_... | /*
* Proxy approve that some one can authorize the agent for broadcast transaction
* which call approve method, and agents may charge agency fees
* @param _from The address which should tranfer MESH to others
* @param _spender The spender who allowed by _from
* @param _value The value that should be tranfered... | Comment | v0.4.23+commit.124ca40d | bzzr://ab1504e26f1ad9c00ce370c6aa1937ea33f0dbb08d24a5ee89e560ed258c838f | {
"func_code_index": [
2385,
2869
]
} | 15,358 | |||
MESH | MESH.sol | 0xcf9fbffec9e0e5bbc62e79bf1965f5db76955661 | Solidity | MESH | contract MESH is StandardToken {
function () public {
revert();
}
string public name = "MeshBox"; //fancy name
uint8 public decimals = 18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. I... | getNonce | function getNonce(address _addr) public constant returns (uint256){
return nonces[_addr];
}
| /*
* Get the nonce
* @param _addr
*/ | Comment | v0.4.23+commit.124ca40d | bzzr://ab1504e26f1ad9c00ce370c6aa1937ea33f0dbb08d24a5ee89e560ed258c838f | {
"func_code_index": [
2932,
3042
]
} | 15,359 | |||
MESH | MESH.sol | 0xcf9fbffec9e0e5bbc62e79bf1965f5db76955661 | Solidity | MESH | contract MESH is StandardToken {
function () public {
revert();
}
string public name = "MeshBox"; //fancy name
uint8 public decimals = 18; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. I... | allocateTokens | function allocateTokens(address[] _owners, uint256[] _values) public onlyOwner {
if(allocateEndTime < now) revert();
if(_owners.length != _values.length) revert();
for(uint256 i = 0; i < _owners.length ; i++){
address to = _owners[i];
uint256 value = _values[i];
if(totalSup... | // Allocate tokens to the users
// @param _owners The owners list of the token
// @param _values The value list of the token | LineComment | v0.4.23+commit.124ca40d | bzzr://ab1504e26f1ad9c00ce370c6aa1937ea33f0dbb08d24a5ee89e560ed258c838f | {
"func_code_index": [
3185,
3700
]
} | 15,360 | |||
CollectionContract | @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol | 0x08756d6609809632a26cd6eb330ada6a78e6bbd0 | Solidity | StringsUpgradeable | library StringsUpgradeable {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toString | function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = ... | /**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
189,
896
]
} | 15,361 | ||
CollectionContract | @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol | 0x08756d6609809632a26cd6eb330ada6a78e6bbd0 | Solidity | StringsUpgradeable | library StringsUpgradeable {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toHexString | function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
| /**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
997,
1330
]
} | 15,362 | ||
CollectionContract | @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol | 0x08756d6609809632a26cd6eb330ada6a78e6bbd0 | Solidity | StringsUpgradeable | library StringsUpgradeable {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toHexString | function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
requ... | /**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | {
"func_code_index": [
1449,
1894
]
} | 15,363 | ||
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
}
uint256... | /**
* @dev Multiplies two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
90,
486
]
} | 15,364 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0); // Solidity only automatically asserts when dividing by 0
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
598,
877
]
} | 15,365 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
992,
1131
]
} | 15,366 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
1196,
1335
]
} | 15,367 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two numbers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
1470,
1587
]
} | 15,368 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() internal {
_owner = msg.s... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | owner | function owner() public view returns(address) {
return _owner;
}
| /**
* @return the address of the owner.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
441,
516
]
} | 15,369 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() internal {
_owner = msg.s... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | isOwner | function isOwner() public view returns(bool) {
return msg.sender == _owner;
}
| /**
* @return true if `msg.sender` is the owner of the contract.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
743,
831
]
} | 15,370 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() internal {
_owner = msg.s... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Allows the current owner to relinquish control of the contract.
* @notice Renouncing to ownership will leave the contract without an owner.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
1100,
1233
]
} | 15,371 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() internal {
_owner = msg.s... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
1397,
1503
]
} | 15,372 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | Ownable | contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() internal {
_owner = msg.s... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address newOwner) internal {
require(newOwner != address(0));
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
1640,
1816
]
} | 15,373 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return _totalSupply;
}
| /**
* @dev Total number of tokens in existence
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
281,
369
]
} | 15,374 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | 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://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
570,
673
]
} | 15,375 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | 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://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
995,
1157
]
} | 15,376 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | 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://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
1313,
1446
]
} | 15,377 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | 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://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
2070,
2299
]
} | 15,378 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address from,
address to,
uint256 value
)
public
returns (bool)
{
require(value <= _allowed[from][msg.sender]);
_allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);
_transfer(from, to, value);
return true;
}
| /**
* @dev Transfer tokens from one address to another
* @param from address The address which you want to send tokens from
* @param to address The address which you want to transfer to
* @param value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
2576,
2880
]
} | 15,379 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | 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
* @param spender T... | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
3339,
3685
]
} | 15,380 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | 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... | /**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
* approve should be called when allowed_[_spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param spender T... | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
4149,
4505
]
} | 15,381 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | NatSpecMultiLine | _transfer | function _transfer(address from, address to, uint256 value) internal {
require(value <= _balances[from]);
require(to != address(0));
_balances[from] = _balances[from].sub(value);
_balances[to] = _balances[to].add(value);
emit Transfer(from, to, value);
}
| /**
* @dev Transfer token for a specified addresses
* @param from The address to transfer from.
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
4710,
4997
]
} | 15,382 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | 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://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
5330,
5582
]
} | 15,383 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | NatSpecMultiLine | _burn | function _burn(address account, uint256 value) internal {
require(account != address(0));
require(value <= _balances[account]);
_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://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
5799,
6096
]
} | 15,384 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | 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() public view re... | /**
* @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
*/ | NatSpecMultiLine | _burnFrom | function _burnFrom(address account, uint256 value) internal {
require(value <= _allowed[account][msg.sender]);
// Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
// this function needs to emit an event with the updated approval.
_allowed[account][msg.sender] = _allowed[acc... | /**
* @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.
* @param account The account whose tokens will be burnt.
* @param value The amount that will be burnt.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
6408,
6809
]
} | 15,385 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | ERC20Burnable | contract ERC20Burnable is ERC20 {
/**
* @dev Burns a specific amount of tokens.
* @param value The amount of token to be burned.
*/
function burn(uint256 value) public {
_burn(msg.sender, value);
}
/**
* @dev Burns a specific amount of tokens from the target address and decrements a... | /**
* @title Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | burn | function burn(uint256 value) public {
_burn(msg.sender, value);
}
| /**
* @dev Burns a specific amount of tokens.
* @param value The amount of token to be burned.
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
150,
226
]
} | 15,386 | |
PetGold | PetGold.sol | 0x19c33ea6a6bd42078d36ac2cd2010df01aa45ac9 | Solidity | ERC20Burnable | contract ERC20Burnable is ERC20 {
/**
* @dev Burns a specific amount of tokens.
* @param value The amount of token to be burned.
*/
function burn(uint256 value) public {
_burn(msg.sender, value);
}
/**
* @dev Burns a specific amount of tokens from the target address and decrements a... | /**
* @title Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | burnFrom | function burnFrom(address from, uint256 value) public {
_burnFrom(from, value);
}
| /**
* @dev Burns a specific amount of tokens from the target address and decrements allowance
* @param from address The address which you want to send tokens from
* @param value uint256 The amount of token to be burned
*/ | NatSpecMultiLine | v0.5.1+commit.c8a2cb62 | bzzr://c316f818a615fefd333bc154898a55f8535be464b2c5beef49f51453e7ed4982 | {
"func_code_index": [
470,
562
]
} | 15,387 | |
pank13 | pank13.sol | 0xaee88df57cc6bd90f2967c7e79f9f6c16f1cf337 | Solidity | pank13 | contract pank13 is StandardToken {
string public constant name = "pank13";
string public constant symbol = "p31";
uint256 public constant decimals = 18;
string public version = "1.0";
uint256 public constant total = 20 * (10**8) * 10**decimals; // 20 *10^7 HNC total
function pank13() public {
... | pank13 | function pank13() public {
balances[msg.sender] = total;
Transfer(0x0, msg.sender, total);
}
| // 20 *10^7 HNC total | LineComment | v0.4.24+commit.e67f0147 | bzzr://6bede0585a2a02613415ccfbcd3b83b635e419e9945d149cbc173cd58c1cfd83 | {
"func_code_index": [
289,
397
]
} | 15,388 | |||
ERC20 | ERC20.sol | 0x5be510f73f0ac9533bc0ab6a0ffab0fa7144e01b | 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);
/**... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://002d185c6e3f9cf50b8543bafc70f549d08cdf78f82add6f54afaffc75b85d1a | {
"func_code_index": [
94,
154
]
} | 15,389 | ||
ERC20 | ERC20.sol | 0x5be510f73f0ac9533bc0ab6a0ffab0fa7144e01b | 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);
/**... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://002d185c6e3f9cf50b8543bafc70f549d08cdf78f82add6f54afaffc75b85d1a | {
"func_code_index": [
237,
310
]
} | 15,390 | ||
ERC20 | ERC20.sol | 0x5be510f73f0ac9533bc0ab6a0ffab0fa7144e01b | 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);
/**... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://002d185c6e3f9cf50b8543bafc70f549d08cdf78f82add6f54afaffc75b85d1a | {
"func_code_index": [
534,
616
]
} | 15,391 | ||
ERC20 | ERC20.sol | 0x5be510f73f0ac9533bc0ab6a0ffab0fa7144e01b | 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);
/**... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://002d185c6e3f9cf50b8543bafc70f549d08cdf78f82add6f54afaffc75b85d1a | {
"func_code_index": [
895,
983
]
} | 15,392 | ||
ERC20 | ERC20.sol | 0x5be510f73f0ac9533bc0ab6a0ffab0fa7144e01b | 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);
/**... | 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.5.17+commit.d19bba13 | None | bzzr://002d185c6e3f9cf50b8543bafc70f549d08cdf78f82add6f54afaffc75b85d1a | {
"func_code_index": [
1647,
1726
]
} | 15,393 | ||
ERC20 | ERC20.sol | 0x5be510f73f0ac9533bc0ab6a0ffab0fa7144e01b | 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);
/**... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://002d185c6e3f9cf50b8543bafc70f549d08cdf78f82add6f54afaffc75b85d1a | {
"func_code_index": [
2039,
2141
]
} | 15,394 | ||
ERC20 | ERC20.sol | 0x5be510f73f0ac9533bc0ab6a0ffab0fa7144e01b | Solidity | ERC20 | contract ERC20 is Context, IERC20,owned {
using SafeMath for uint256;
// using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string... | /**
* @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.5.17+commit.d19bba13 | None | bzzr://002d185c6e3f9cf50b8543bafc70f549d08cdf78f82add6f54afaffc75b85d1a | {
"func_code_index": [
959,
1047
]
} | 15,395 |
ERC20 | ERC20.sol | 0x5be510f73f0ac9533bc0ab6a0ffab0fa7144e01b | Solidity | ERC20 | contract ERC20 is Context, IERC20,owned {
using SafeMath for uint256;
// using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string... | /**
* @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.5.17+commit.d19bba13 | None | bzzr://002d185c6e3f9cf50b8543bafc70f549d08cdf78f82add6f54afaffc75b85d1a | {
"func_code_index": [
1161,
1253
]
} | 15,396 |
ERC20 | ERC20.sol | 0x5be510f73f0ac9533bc0ab6a0ffab0fa7144e01b | Solidity | ERC20 | contract ERC20 is Context, IERC20,owned {
using SafeMath for uint256;
// using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string... | /**
* @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.5.17+commit.d19bba13 | None | bzzr://002d185c6e3f9cf50b8543bafc70f549d08cdf78f82add6f54afaffc75b85d1a | {
"func_code_index": [
1886,
1974
]
} | 15,397 |
ERC20 | ERC20.sol | 0x5be510f73f0ac9533bc0ab6a0ffab0fa7144e01b | Solidity | ERC20 | contract ERC20 is Context, IERC20,owned {
using SafeMath for uint256;
// using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string... | /**
* @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 returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://002d185c6e3f9cf50b8543bafc70f549d08cdf78f82add6f54afaffc75b85d1a | {
"func_code_index": [
2034,
2131
]
} | 15,398 |
ERC20 | ERC20.sol | 0x5be510f73f0ac9533bc0ab6a0ffab0fa7144e01b | Solidity | ERC20 | contract ERC20 is Context, IERC20,owned {
using SafeMath for uint256;
// using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string... | /**
* @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 returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://002d185c6e3f9cf50b8543bafc70f549d08cdf78f82add6f54afaffc75b85d1a | {
"func_code_index": [
2189,
2305
]
} | 15,399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.