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
TeleGrams
TeleGrams.sol
0x79c9a391582e14a2bedf25f84f335d00229b5e22
Solidity
TeleGrams
contract TeleGrams is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
balanceOf
function balanceOf(address tokenOwner) public constant returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://2822ae0ac1e6df839245396f88b3865fa5f23f871a66727899ad742823817582
{ "func_code_index": [ 1321, 1450 ] }
20,900
TeleGrams
TeleGrams.sol
0x79c9a391582e14a2bedf25f84f335d00229b5e22
Solidity
TeleGrams
contract TeleGrams is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transfer
function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); Transfer(msg.sender, to, tokens); return true; }
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to to account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://2822ae0ac1e6df839245396f88b3865fa5f23f871a66727899ad742823817582
{ "func_code_index": [ 1794, 2071 ] }
20,901
TeleGrams
TeleGrams.sol
0x79c9a391582e14a2bedf25f84f335d00229b5e22
Solidity
TeleGrams
contract TeleGrams is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approve
function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; Approval(msg.sender, spender, tokens); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account // // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md // recommends that there are no checks for the approval double...
LineComment
v0.4.18+commit.9cf6e910
bzzr://2822ae0ac1e6df839245396f88b3865fa5f23f871a66727899ad742823817582
{ "func_code_index": [ 2579, 2787 ] }
20,902
TeleGrams
TeleGrams.sol
0x79c9a391582e14a2bedf25f84f335d00229b5e22
Solidity
TeleGrams
contract TeleGrams is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferFrom
function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); Transfer(from, to, tokens); return...
// ------------------------------------------------------------------------ // Transfer tokens from the from account to the to account // // The calling account must already have sufficient tokens approve(...)-d // for spending from the from account and // - From account must have sufficient balance to transfer // - S...
LineComment
v0.4.18+commit.9cf6e910
bzzr://2822ae0ac1e6df839245396f88b3865fa5f23f871a66727899ad742823817582
{ "func_code_index": [ 3318, 3676 ] }
20,903
TeleGrams
TeleGrams.sol
0x79c9a391582e14a2bedf25f84f335d00229b5e22
Solidity
TeleGrams
contract TeleGrams is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
allowance
function allowance(address tokenOwner, address spender) public constant returns (uint remaining) { return allowed[tokenOwner][spender]; }
// ------------------------------------------------------------------------ // Returns the amount of tokens approved by the owner that can be // transferred to the spender's account // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://2822ae0ac1e6df839245396f88b3865fa5f23f871a66727899ad742823817582
{ "func_code_index": [ 3959, 4115 ] }
20,904
TeleGrams
TeleGrams.sol
0x79c9a391582e14a2bedf25f84f335d00229b5e22
Solidity
TeleGrams
contract TeleGrams is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approveAndCall
function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) { allowed[msg.sender][spender] = tokens; Approval(msg.sender, spender, tokens); ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account. The spender contract function // receiveApproval(...) is then executed // --------------------------------------------------------------------...
LineComment
v0.4.18+commit.9cf6e910
bzzr://2822ae0ac1e6df839245396f88b3865fa5f23f871a66727899ad742823817582
{ "func_code_index": [ 4470, 4787 ] }
20,905
TeleGrams
TeleGrams.sol
0x79c9a391582e14a2bedf25f84f335d00229b5e22
Solidity
TeleGrams
contract TeleGrams is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
function () public payable { revert(); }
// ------------------------------------------------------------------------ // Don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://2822ae0ac1e6df839245396f88b3865fa5f23f871a66727899ad742823817582
{ "func_code_index": [ 4979, 5038 ] }
20,906
TeleGrams
TeleGrams.sol
0x79c9a391582e14a2bedf25f84f335d00229b5e22
Solidity
TeleGrams
contract TeleGrams is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferAnyERC20Token
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) { return ERC20Interface(tokenAddress).transfer(owner, tokens); }
// ------------------------------------------------------------------------ // Owner can transfer out any accidentally sent ERC20 tokens // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://2822ae0ac1e6df839245396f88b3865fa5f23f871a66727899ad742823817582
{ "func_code_index": [ 5271, 5460 ] }
20,907
AD
AD.sol
0x8cb8a9255b7e52d33649eb7887c554c01d015418
Solidity
AD
contract AD { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => ui...
_transfer
function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != address(0x0)); // Check if the sender has enough require(balanceOf[_from] >= _value); // Check for overflows require(balanceOf[_to] + _value >= balan...
/** * Internal transfer, only can be called by this contract */
NatSpecMultiLine
v0.5.7+commit.6da8b019
bzzr://ac8207a075ec0dfa2bbdba3340a333aa454ecc9314617009b6b25e48d2e09509
{ "func_code_index": [ 1642, 2499 ] }
20,908
AD
AD.sol
0x8cb8a9255b7e52d33649eb7887c554c01d015418
Solidity
AD
contract AD { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => ui...
transfer
function transfer(address _to, uint256 _value) public returns (bool success) { _transfer(msg.sender, _to, _value); return true; }
/** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.5.7+commit.6da8b019
bzzr://ac8207a075ec0dfa2bbdba3340a333aa454ecc9314617009b6b25e48d2e09509
{ "func_code_index": [ 2705, 2862 ] }
20,909
AD
AD.sol
0x8cb8a9255b7e52d33649eb7887c554c01d015418
Solidity
AD
contract AD { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => ui...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/** * Transfer tokens from other address * * Send `_value` tokens to `_to` on behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.5.7+commit.6da8b019
bzzr://ac8207a075ec0dfa2bbdba3340a333aa454ecc9314617009b6b25e48d2e09509
{ "func_code_index": [ 3137, 3438 ] }
20,910
AD
AD.sol
0x8cb8a9255b7e52d33649eb7887c554c01d015418
Solidity
AD
contract AD { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => ui...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
/** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens on your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.5.7+commit.6da8b019
bzzr://ac8207a075ec0dfa2bbdba3340a333aa454ecc9314617009b6b25e48d2e09509
{ "func_code_index": [ 3702, 3932 ] }
20,911
AD
AD.sol
0x8cb8a9255b7e52d33649eb7887c554c01d015418
Solidity
AD
contract AD { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => ui...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes memory _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, address(this), _extraData); return true...
/** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens on your behalf, and then ping the contract about it * * @param _spender The address authorized to spend * @param _value the max amount they can spend * @param _extraData some extra information to s...
NatSpecMultiLine
v0.5.7+commit.6da8b019
bzzr://ac8207a075ec0dfa2bbdba3340a333aa454ecc9314617009b6b25e48d2e09509
{ "func_code_index": [ 4326, 4694 ] }
20,912
AD
AD.sol
0x8cb8a9255b7e52d33649eb7887c554c01d015418
Solidity
AD
contract AD { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => ui...
burn
function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply emit Burn(msg.sender,...
/** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */
NatSpecMultiLine
v0.5.7+commit.6da8b019
bzzr://ac8207a075ec0dfa2bbdba3340a333aa454ecc9314617009b6b25e48d2e09509
{ "func_code_index": [ 4864, 5243 ] }
20,913
AD
AD.sol
0x8cb8a9255b7e52d33649eb7887c554c01d015418
Solidity
AD
contract AD { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => ui...
burnFrom
function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance balanceOf[_from] -= _value; // Sub...
/** * Destroy tokens from other account * * Remove `_value` tokens from the system irreversibly on behalf of `_from`. * * @param _from the address of the sender * @param _value the amount of money to burn */
NatSpecMultiLine
v0.5.7+commit.6da8b019
bzzr://ac8207a075ec0dfa2bbdba3340a333aa454ecc9314617009b6b25e48d2e09509
{ "func_code_index": [ 5501, 6117 ] }
20,914
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 90, 149 ] }
20,915
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 228, 300 ] }
20,916
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 516, 597 ] }
20,917
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 868, 955 ] }
20,918
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * tra...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 1604, 1682 ] }
20,919
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 1985, 2086 ] }
20,920
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) {...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 248, 428 ] }
20,921
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) {...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 695, 833 ] }
20,922
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) {...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 1120, 1311 ] }
20,923
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) {...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 1554, 2017 ] }
20,924
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) {...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (co...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 2475, 2609 ] }
20,925
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) {...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
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 invalid ...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 3087, 3363 ] }
20,926
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) {...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 3810, 3942 ] }
20,927
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) {...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming language...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to r...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 4409, 4576 ] }
20,928
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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 return fa...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly ass...
/** * @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
{ "func_code_index": [ 588, 1005 ] }
20,929
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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 return fa...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: una...
/** * @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 `transfer...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 1918, 2313 ] }
20,930
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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 return fa...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 3050, 3225 ] }
20,931
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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 return fa...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 3443, 3641 ] }
20,932
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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 return fa...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 3999, 4227 ] }
20,933
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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 return fa...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 4471, 4788 ] }
20,934
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 870, 955 ] }
20,935
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 1064, 1153 ] }
20,936
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
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 the v...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 1772, 1857 ] }
20,937
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
totalSupply
function totalSupply() public view override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 1913, 2015 ] }
20,938
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 2069, 2190 ] }
20,939
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 2389, 2565 ] }
20,940
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 2619, 2772 ] }
20,941
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 2906, 3076 ] }
20,942
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * ...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 3532, 3853 ] }
20,943
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be t...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 4244, 4463 ] }
20,944
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be t...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 4946, 5216 ] }
20,945
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] =...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipie...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 5686, 6220 ] }
20,946
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(addre...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 6486, 6860 ] }
20,947
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSup...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 7175, 7589 ] }
20,948
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); }...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. *...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 8008, 8352 ] }
20,949
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
_setupDecimals
function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; }
/** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 8671, 8763 ] }
20,950
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20
contract ERC20 is Context, IERC20 { 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 private _symbol; ...
/** * @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 guide ...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 9346, 9442 ] }
20,951
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
Pausable
contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract...
NatSpecMultiLine
paused
function paused() public view returns (bool) { return _paused; }
/** * @dev Returns true if the contract is paused, and false otherwise. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 508, 588 ] }
20,952
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
Pausable
contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract...
NatSpecMultiLine
_pause
function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); }
/** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 1263, 1382 ] }
20,953
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
Pausable
contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract...
NatSpecMultiLine
_unpause
function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); }
/** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 1510, 1631 ] }
20,954
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
Solidity
ERC20Pausable
abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { super._beforeTok...
/** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); }
/** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 192, 430 ] }
20,955
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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 = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
{ "func_code_index": [ 480, 561 ] }
20,956
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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 = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { 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
{ "func_code_index": [ 1103, 1252 ] }
20,957
UtrustToken
UtrustToken.sol
0xdc9ac3c20d1ed0b540df9b1fedc10039df13f99c
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 = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); 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
{ "func_code_index": [ 1397, 1641 ] }
20,958
POSTYDOGE
POSTYDOGE.sol
0xfa4904a800cf389ea4b0ab71a75dd8fd672466bf
Solidity
TokenBEP20
contract TokenBEP20 is BEP20Interface, Owned{ using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint _totalSupply; address public newun; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; /** * Constrc...
/** * @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
totalSupply
function totalSupply() public view returns (uint) { return _totalSupply.sub(balances[address(0)]); }
/** * @dev Implementation of the {IERC20} interface. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it i...
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://fe07d821301a85576b78c0c1c3b77e43c996421a2faf5cc847fbf0cbd0469aad
{ "func_code_index": [ 1753, 1864 ] }
20,959
POSTYDOGE
POSTYDOGE.sol
0xfa4904a800cf389ea4b0ab71a75dd8fd672466bf
Solidity
POSTYDOGE
contract POSTYDOGE is TokenBEP20 { /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, sinc...
/** function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap { // split the contract balance into halves uint256 half = contractTokenBalance.div(2); uint256 otherHalf = contractTokenBalance.sub(half); // capture the contract's current ETH balance. // this is so that we can capture exactl...
NatSpecMultiLine
clearCNDAO
function clearCNDAO() public onlyOwner() { /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner...
/* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and ...
Comment
v0.5.17+commit.d19bba13
MIT
bzzr://fe07d821301a85576b78c0c1c3b77e43c996421a2faf5cc847fbf0cbd0469aad
{ "func_code_index": [ 590, 1301 ] }
20,960
UnstoppablePyramid
UnstoppablePyramid.sol
0xdacdbaae3947eab88b1dd9d0e331fe65d2c0d9f9
Solidity
UnstoppablePyramid
contract UnstoppablePyramid { /* Admin */ address devAddress = 0x75E129b02D12ECa5A5D7548a5F75007f84387b8F; /* The Unstoppable Ponzi Core */ uint256 basePricePonzi = 50000000000000000; // 0.05 ETH /* Some stats */ uint256 totalAmountPlayed; uint256 totalCommissionSent; ...
/* Welcome to the greates pyramid scheme of the Internet! And it's UNSTOPPABLE You can access it on IPFS here: https://ipfs.io/ipfs/Qmb6q3oWG33xeNoVppRHv1Mk23e5zMd8JK7dmKAhgiFk9H/ */
Comment
newPonziFriend
function newPonziFriend(uint _parentId) public payable isHuman() { /* Commissions */ uint256 com1percent = msg.value / 100; uint256 comLevel1 = com1percent * 50; // 50% uint256 comLevel2 = com1percent * 35; // 35% uint256 comLevel3 = com1percent * 15; // 15% require(msg.value >= base...
// The main function, we call it when a new friend wants to join
LineComment
v0.4.24+commit.e67f0147
bzzr://a58b165f5681a2e0dfa2b43bd70b09c000a21011d923386e10ef6b2b40c457c2
{ "func_code_index": [ 992, 4202 ] }
20,961
UnstoppablePyramid
UnstoppablePyramid.sol
0xdacdbaae3947eab88b1dd9d0e331fe65d2c0d9f9
Solidity
UnstoppablePyramid
contract UnstoppablePyramid { /* Admin */ address devAddress = 0x75E129b02D12ECa5A5D7548a5F75007f84387b8F; /* The Unstoppable Ponzi Core */ uint256 basePricePonzi = 50000000000000000; // 0.05 ETH /* Some stats */ uint256 totalAmountPlayed; uint256 totalCommissionSent; ...
/* Welcome to the greates pyramid scheme of the Internet! And it's UNSTOPPABLE You can access it on IPFS here: https://ipfs.io/ipfs/Qmb6q3oWG33xeNoVppRHv1Mk23e5zMd8JK7dmKAhgiFk9H/ */
Comment
getPonziFriend
function getPonziFriend(address _addr) public view returns(uint, uint, uint256, uint256, uint, uint, uint) { uint pzfId = ponziFriendsToId[_addr]; if(pzfId == 0) { return(0, 0, 0, 0, 0, 0, 0); } else { return(pzfId, ponziFriends[pzfId].parent, ponziFriends[pzfId].amountPlayed, ponziFrie...
// This will return the stats for a ponzi friend // returns(ponziFriendId, parent, amoutPlayed, amountEarned)
LineComment
v0.4.24+commit.e67f0147
bzzr://a58b165f5681a2e0dfa2b43bd70b09c000a21011d923386e10ef6b2b40c457c2
{ "func_code_index": [ 4613, 5094 ] }
20,962
UnstoppablePyramid
UnstoppablePyramid.sol
0xdacdbaae3947eab88b1dd9d0e331fe65d2c0d9f9
Solidity
UnstoppablePyramid
contract UnstoppablePyramid { /* Admin */ address devAddress = 0x75E129b02D12ECa5A5D7548a5F75007f84387b8F; /* The Unstoppable Ponzi Core */ uint256 basePricePonzi = 50000000000000000; // 0.05 ETH /* Some stats */ uint256 totalAmountPlayed; uint256 totalCommissionSent; ...
/* Welcome to the greates pyramid scheme of the Internet! And it's UNSTOPPABLE You can access it on IPFS here: https://ipfs.io/ipfs/Qmb6q3oWG33xeNoVppRHv1Mk23e5zMd8JK7dmKAhgiFk9H/ */
Comment
getStats
function getStats() public view returns(uint, uint256, uint256) { return(ponziFriends.length, totalAmountPlayed, totalCommissionSent); }
// Return some general stats about the game // returns(friendsLength, amountPlayed, commissionsSent)
LineComment
v0.4.24+commit.e67f0147
bzzr://a58b165f5681a2e0dfa2b43bd70b09c000a21011d923386e10ef6b2b40c457c2
{ "func_code_index": [ 5203, 5358 ] }
20,963
MonkeyMadness
@openzeppelin/contracts/access/Ownable.sol
0xa54efe39e9de3ddc4aae4ff53c050f22a7370b7c
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://69e3a1226e4f89ec2e9cb86ff045bafac5a357e8a64abbbf1e243489c07b57df
{ "func_code_index": [ 399, 491 ] }
20,964
MonkeyMadness
@openzeppelin/contracts/access/Ownable.sol
0xa54efe39e9de3ddc4aae4ff53c050f22a7370b7c
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://69e3a1226e4f89ec2e9cb86ff045bafac5a357e8a64abbbf1e243489c07b57df
{ "func_code_index": [ 1050, 1149 ] }
20,965
MonkeyMadness
@openzeppelin/contracts/access/Ownable.sol
0xa54efe39e9de3ddc4aae4ff53c050f22a7370b7c
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://69e3a1226e4f89ec2e9cb86ff045bafac5a357e8a64abbbf1e243489c07b57df
{ "func_code_index": [ 1299, 1496 ] }
20,966
MonkeyMadness
@openzeppelin/contracts/access/Ownable.sol
0xa54efe39e9de3ddc4aae4ff53c050f22a7370b7c
Solidity
MonkeyMadness
contract MonkeyMadness is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; uint256 public cost = 0.02 ether; uint256 public maxSupply = 10000; uint256 public giftPercentage = 35; uint256 public maxMintAmount = 10; bool public paused ...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://69e3a1226e4f89ec2e9cb86ff045bafac5a357e8a64abbbf1e243489c07b57df
{ "func_code_index": [ 621, 726 ] }
20,967
MonkeyMadness
@openzeppelin/contracts/access/Ownable.sol
0xa54efe39e9de3ddc4aae4ff53c050f22a7370b7c
Solidity
MonkeyMadness
contract MonkeyMadness is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; uint256 public cost = 0.02 ether; uint256 public maxSupply = 10000; uint256 public giftPercentage = 35; uint256 public maxMintAmount = 10; bool public paused ...
mint
function mint(uint256 _mintAmount) public payable { uint256 supply = totalSupply(); require(!paused); require(supply + _mintAmount <= maxSupply); if (msg.sender != owner()) { require(msg.value >= cost * _mintAmount); } for (uint256 i = 1; i <= _mintAmount; i++) { _safeMint(msg.send...
// public
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://69e3a1226e4f89ec2e9cb86ff045bafac5a357e8a64abbbf1e243489c07b57df
{ "func_code_index": [ 742, 1532 ] }
20,968
MonkeyMadness
@openzeppelin/contracts/access/Ownable.sol
0xa54efe39e9de3ddc4aae4ff53c050f22a7370b7c
Solidity
MonkeyMadness
contract MonkeyMadness is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; uint256 public cost = 0.02 ether; uint256 public maxSupply = 10000; uint256 public giftPercentage = 35; uint256 public maxMintAmount = 10; bool public paused ...
reveal
function reveal() public onlyOwner { revealed = true; }
//only owner
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://69e3a1226e4f89ec2e9cb86ff045bafac5a357e8a64abbbf1e243489c07b57df
{ "func_code_index": [ 2646, 2714 ] }
20,969
CappedBountyMinter
contracts/token/GastroAdvisorToken.sol
0x10015143ff504028b0729bbbab1a5e4101176f70
Solidity
GastroAdvisorToken
contract GastroAdvisorToken is BaseToken { uint256 public lockedUntil; mapping(address => uint256) lockedBalances; string constant ROLE_OPERATOR = "operator"; /** * @dev Tokens can be moved only after minting finished or if you are an approved operator. * Some tokens can be locked until a date....
/** * @title GastroAdvisorToken * @author Vittorio Minacori (https://github.com/vittominacori) * @dev GastroAdvisorToken is an ERC20 token with a lot of stuffs. Extends from BaseToken */
NatSpecMultiLine
lockedBalanceOf
function lockedBalanceOf(address _who) public view returns (uint256) { // solium-disable-next-line security/no-block-members return block.timestamp <= lockedUntil ? lockedBalances[_who] : 0; }
/** * @dev Gets the locked balance of the specified address. * @param _who The address to query the balance of. * @return An uint256 representing the locked amount owned by the passed address. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://26e41f5332cc89d81ed0aa772a6517883d645fd01df072aa47d458813d88146f
{ "func_code_index": [ 1469, 1677 ] }
20,970
CappedBountyMinter
contracts/token/GastroAdvisorToken.sol
0x10015143ff504028b0729bbbab1a5e4101176f70
Solidity
GastroAdvisorToken
contract GastroAdvisorToken is BaseToken { uint256 public lockedUntil; mapping(address => uint256) lockedBalances; string constant ROLE_OPERATOR = "operator"; /** * @dev Tokens can be moved only after minting finished or if you are an approved operator. * Some tokens can be locked until a date....
/** * @title GastroAdvisorToken * @author Vittorio Minacori (https://github.com/vittominacori) * @dev GastroAdvisorToken is an ERC20 token with a lot of stuffs. Extends from BaseToken */
NatSpecMultiLine
mintAndLock
function mintAndLock( address _to, uint256 _amount ) public hasMintPermission canMint returns (bool) { lockedBalances[_to] = lockedBalances[_to].add(_amount); return super.mint(_to, _amount); }
/** * @dev Function to mint and lock tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://26e41f5332cc89d81ed0aa772a6517883d645fd01df072aa47d458813d88146f
{ "func_code_index": [ 1927, 2164 ] }
20,971
CappedBountyMinter
contracts/token/GastroAdvisorToken.sol
0x10015143ff504028b0729bbbab1a5e4101176f70
Solidity
GastroAdvisorToken
contract GastroAdvisorToken is BaseToken { uint256 public lockedUntil; mapping(address => uint256) lockedBalances; string constant ROLE_OPERATOR = "operator"; /** * @dev Tokens can be moved only after minting finished or if you are an approved operator. * Some tokens can be locked until a date....
/** * @title GastroAdvisorToken * @author Vittorio Minacori (https://github.com/vittominacori) * @dev GastroAdvisorToken is an ERC20 token with a lot of stuffs. Extends from BaseToken */
NatSpecMultiLine
addOperator
function addOperator(address _operator) public onlyOwner { require(!mintingFinished); addRole(_operator, ROLE_OPERATOR); }
/** * @dev add a operator role to an address * @param _operator address */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://26e41f5332cc89d81ed0aa772a6517883d645fd01df072aa47d458813d88146f
{ "func_code_index": [ 2257, 2395 ] }
20,972
CappedBountyMinter
contracts/token/GastroAdvisorToken.sol
0x10015143ff504028b0729bbbab1a5e4101176f70
Solidity
GastroAdvisorToken
contract GastroAdvisorToken is BaseToken { uint256 public lockedUntil; mapping(address => uint256) lockedBalances; string constant ROLE_OPERATOR = "operator"; /** * @dev Tokens can be moved only after minting finished or if you are an approved operator. * Some tokens can be locked until a date....
/** * @title GastroAdvisorToken * @author Vittorio Minacori (https://github.com/vittominacori) * @dev GastroAdvisorToken is an ERC20 token with a lot of stuffs. Extends from BaseToken */
NatSpecMultiLine
addOperators
function addOperators(address[] _operators) public onlyOwner { require(!mintingFinished); require(_operators.length > 0); for (uint i = 0; i < _operators.length; i++) { addRole(_operators[i], ROLE_OPERATOR); } }
/** * @dev add a operator role to an array of addresses * @param _operators address[] */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://26e41f5332cc89d81ed0aa772a6517883d645fd01df072aa47d458813d88146f
{ "func_code_index": [ 2502, 2746 ] }
20,973
CappedBountyMinter
contracts/token/GastroAdvisorToken.sol
0x10015143ff504028b0729bbbab1a5e4101176f70
Solidity
GastroAdvisorToken
contract GastroAdvisorToken is BaseToken { uint256 public lockedUntil; mapping(address => uint256) lockedBalances; string constant ROLE_OPERATOR = "operator"; /** * @dev Tokens can be moved only after minting finished or if you are an approved operator. * Some tokens can be locked until a date....
/** * @title GastroAdvisorToken * @author Vittorio Minacori (https://github.com/vittominacori) * @dev GastroAdvisorToken is an ERC20 token with a lot of stuffs. Extends from BaseToken */
NatSpecMultiLine
removeOperator
function removeOperator(address _operator) public onlyOwner { removeRole(_operator, ROLE_OPERATOR); }
/** * @dev remove a operator role from an address * @param _operator address */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://26e41f5332cc89d81ed0aa772a6517883d645fd01df072aa47d458813d88146f
{ "func_code_index": [ 2844, 2956 ] }
20,974
CappedBountyMinter
contracts/token/GastroAdvisorToken.sol
0x10015143ff504028b0729bbbab1a5e4101176f70
Solidity
GastroAdvisorToken
contract GastroAdvisorToken is BaseToken { uint256 public lockedUntil; mapping(address => uint256) lockedBalances; string constant ROLE_OPERATOR = "operator"; /** * @dev Tokens can be moved only after minting finished or if you are an approved operator. * Some tokens can be locked until a date....
/** * @title GastroAdvisorToken * @author Vittorio Minacori (https://github.com/vittominacori) * @dev GastroAdvisorToken is an ERC20 token with a lot of stuffs. Extends from BaseToken */
NatSpecMultiLine
addMinters
function addMinters(address[] _minters) public onlyOwner { require(_minters.length > 0); for (uint i = 0; i < _minters.length; i++) { addRole(_minters[i], ROLE_MINTER); } }
/** * @dev add a minter role to an array of addresses * @param _minters address[] */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://26e41f5332cc89d81ed0aa772a6517883d645fd01df072aa47d458813d88146f
{ "func_code_index": [ 3059, 3259 ] }
20,975
NicholasKeays
nicholas-keays.sol
0x984ceb2f2382fc9d5d34cd52fe86cd35b6d194ec
Solidity
NicholasKeays
contract NicholasKeays is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; constructor() ERC721("Nicholas Keays", "KEAYS") {} function safeMint(address to, string memory _tokenURI) public onlyOwner { uint256 i...
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); }
// The following functions are overrides required by Solidity.
LineComment
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 527, 730 ] }
20,976
PersonalCornerSale
@openzeppelin/contracts/access/Ownable.sol
0x4680fe5f9219453c5d04ecebd703ceb64015553c
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _tra...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
BSD-3-Clause
ipfs://96095d6f84220446c96c9da3e769091d1a05d05811ffbc8a4b5f7ecc8b1b5dae
{ "func_code_index": [ 433, 525 ] }
20,977
PersonalCornerSale
@openzeppelin/contracts/access/Ownable.sol
0x4680fe5f9219453c5d04ecebd703ceb64015553c
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _tra...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
BSD-3-Clause
ipfs://96095d6f84220446c96c9da3e769091d1a05d05811ffbc8a4b5f7ecc8b1b5dae
{ "func_code_index": [ 1084, 1192 ] }
20,978
PersonalCornerSale
@openzeppelin/contracts/access/Ownable.sol
0x4680fe5f9219453c5d04ecebd703ceb64015553c
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _tra...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _transferOwnership(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
BSD-3-Clause
ipfs://96095d6f84220446c96c9da3e769091d1a05d05811ffbc8a4b5f7ecc8b1b5dae
{ "func_code_index": [ 1342, 1585 ] }
20,979
PersonalCornerSale
@openzeppelin/contracts/access/Ownable.sol
0x4680fe5f9219453c5d04ecebd703ceb64015553c
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _tra...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
BSD-3-Clause
ipfs://96095d6f84220446c96c9da3e769091d1a05d05811ffbc8a4b5f7ecc8b1b5dae
{ "func_code_index": [ 1740, 1936 ] }
20,980
YFA
YFA.sol
0x72e54ee9c36a2fb293c3400c5e8d87774f05f979
Solidity
YFA
contract YFA is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
totalSupply
function totalSupply() public constant returns (uint) { return _totalSupply - balances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
MIT
bzzr://81e17035d2079b56a061d99ded2089c762fdb39bc6807496814f57a86aa37e02
{ "func_code_index": [ 982, 1103 ] }
20,981
YFA
YFA.sol
0x72e54ee9c36a2fb293c3400c5e8d87774f05f979
Solidity
YFA
contract YFA is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
balanceOf
function balanceOf(address tokenOwner) public constant returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
MIT
bzzr://81e17035d2079b56a061d99ded2089c762fdb39bc6807496814f57a86aa37e02
{ "func_code_index": [ 1323, 1452 ] }
20,982
YFA
YFA.sol
0x72e54ee9c36a2fb293c3400c5e8d87774f05f979
Solidity
YFA
contract YFA is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transfer
function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(msg.sender, to, tokens); return true; }
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to to account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
MIT
bzzr://81e17035d2079b56a061d99ded2089c762fdb39bc6807496814f57a86aa37e02
{ "func_code_index": [ 1796, 2078 ] }
20,983
YFA
YFA.sol
0x72e54ee9c36a2fb293c3400c5e8d87774f05f979
Solidity
YFA
contract YFA is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approve
function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account // // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md // recommends that there are no checks for the approval double...
LineComment
v0.4.24+commit.e67f0147
MIT
bzzr://81e17035d2079b56a061d99ded2089c762fdb39bc6807496814f57a86aa37e02
{ "func_code_index": [ 2586, 2799 ] }
20,984
YFA
YFA.sol
0x72e54ee9c36a2fb293c3400c5e8d87774f05f979
Solidity
YFA
contract YFA is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferFrom
function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(from, to, tokens); r...
// ------------------------------------------------------------------------ // Transfer tokens from the from account to the to account // // The calling account must already have sufficient tokens approve(...)-d // for spending from the from account and // - From account must have sufficient balance to transfer // - S...
LineComment
v0.4.24+commit.e67f0147
MIT
bzzr://81e17035d2079b56a061d99ded2089c762fdb39bc6807496814f57a86aa37e02
{ "func_code_index": [ 3330, 3693 ] }
20,985
YFA
YFA.sol
0x72e54ee9c36a2fb293c3400c5e8d87774f05f979
Solidity
YFA
contract YFA is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
allowance
function allowance(address tokenOwner, address spender) public constant returns (uint remaining) { return allowed[tokenOwner][spender]; }
// ------------------------------------------------------------------------ // Returns the amount of tokens approved by the owner that can be // transferred to the spender's account // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
MIT
bzzr://81e17035d2079b56a061d99ded2089c762fdb39bc6807496814f57a86aa37e02
{ "func_code_index": [ 3976, 4132 ] }
20,986
YFA
YFA.sol
0x72e54ee9c36a2fb293c3400c5e8d87774f05f979
Solidity
YFA
contract YFA is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approveAndCall
function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for spender to transferFrom(...) tokens // from the token owner's account. The spender contract function // receiveApproval(...) is then executed // --------------------------------------------------------------------...
LineComment
v0.4.24+commit.e67f0147
MIT
bzzr://81e17035d2079b56a061d99ded2089c762fdb39bc6807496814f57a86aa37e02
{ "func_code_index": [ 4487, 4809 ] }
20,987
YFA
YFA.sol
0x72e54ee9c36a2fb293c3400c5e8d87774f05f979
Solidity
YFA
contract YFA is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
function () public payable { revert(); }
// ------------------------------------------------------------------------ // Don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
MIT
bzzr://81e17035d2079b56a061d99ded2089c762fdb39bc6807496814f57a86aa37e02
{ "func_code_index": [ 5001, 5060 ] }
20,988
YFA
YFA.sol
0x72e54ee9c36a2fb293c3400c5e8d87774f05f979
Solidity
YFA
contract YFA is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferAnyERC20Token
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) { return ERC20Interface(tokenAddress).transfer(owner, tokens); }
// ------------------------------------------------------------------------ // Owner can transfer out any accidentally sent ERC20 tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
MIT
bzzr://81e17035d2079b56a061d99ded2089c762fdb39bc6807496814f57a86aa37e02
{ "func_code_index": [ 5293, 5482 ] }
20,989
DopeyDoge
DopeyDoge.sol
0x091102444cc671be7076b9f2f35cfa4c91fa624f
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.8.1+commit.df193b15
MIT
ipfs://2c4c8f6fcc2e8a2535aebfc93a56ac2d0887c307832d7b025a6030e68736d783
{ "func_code_index": [ 94, 154 ] }
20,990
DopeyDoge
DopeyDoge.sol
0x091102444cc671be7076b9f2f35cfa4c91fa624f
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.8.1+commit.df193b15
MIT
ipfs://2c4c8f6fcc2e8a2535aebfc93a56ac2d0887c307832d7b025a6030e68736d783
{ "func_code_index": [ 237, 310 ] }
20,991
DopeyDoge
DopeyDoge.sol
0x091102444cc671be7076b9f2f35cfa4c91fa624f
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.8.1+commit.df193b15
MIT
ipfs://2c4c8f6fcc2e8a2535aebfc93a56ac2d0887c307832d7b025a6030e68736d783
{ "func_code_index": [ 534, 616 ] }
20,992
DopeyDoge
DopeyDoge.sol
0x091102444cc671be7076b9f2f35cfa4c91fa624f
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.8.1+commit.df193b15
MIT
ipfs://2c4c8f6fcc2e8a2535aebfc93a56ac2d0887c307832d7b025a6030e68736d783
{ "func_code_index": [ 895, 983 ] }
20,993
DopeyDoge
DopeyDoge.sol
0x091102444cc671be7076b9f2f35cfa4c91fa624f
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.8.1+commit.df193b15
MIT
ipfs://2c4c8f6fcc2e8a2535aebfc93a56ac2d0887c307832d7b025a6030e68736d783
{ "func_code_index": [ 1647, 1726 ] }
20,994
DopeyDoge
DopeyDoge.sol
0x091102444cc671be7076b9f2f35cfa4c91fa624f
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.8.1+commit.df193b15
MIT
ipfs://2c4c8f6fcc2e8a2535aebfc93a56ac2d0887c307832d7b025a6030e68736d783
{ "func_code_index": [ 2039, 2141 ] }
20,995
DopeyDoge
DopeyDoge.sol
0x091102444cc671be7076b9f2f35cfa4c91fa624f
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.8.1+commit.df193b15
MIT
ipfs://2c4c8f6fcc2e8a2535aebfc93a56ac2d0887c307832d7b025a6030e68736d783
{ "func_code_index": [ 259, 445 ] }
20,996
DopeyDoge
DopeyDoge.sol
0x091102444cc671be7076b9f2f35cfa4c91fa624f
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.8.1+commit.df193b15
MIT
ipfs://2c4c8f6fcc2e8a2535aebfc93a56ac2d0887c307832d7b025a6030e68736d783
{ "func_code_index": [ 723, 864 ] }
20,997
DopeyDoge
DopeyDoge.sol
0x091102444cc671be7076b9f2f35cfa4c91fa624f
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.8.1+commit.df193b15
MIT
ipfs://2c4c8f6fcc2e8a2535aebfc93a56ac2d0887c307832d7b025a6030e68736d783
{ "func_code_index": [ 1162, 1359 ] }
20,998
DopeyDoge
DopeyDoge.sol
0x091102444cc671be7076b9f2f35cfa4c91fa624f
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.8.1+commit.df193b15
MIT
ipfs://2c4c8f6fcc2e8a2535aebfc93a56ac2d0887c307832d7b025a6030e68736d783
{ "func_code_index": [ 1613, 2089 ] }
20,999