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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
237,
310
]
} | 1,600 |
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | 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.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
534,
616
]
} | 1,601 |
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | 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.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
895,
983
]
} | 1,602 |
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
1647,
1726
]
} | 1,603 |
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | 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.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
2039,
2141
]
} | 1,604 |
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | Initializable | contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private initializing;
/**
* @dev Modifier to use in the initializer function ... | /**
* @title Initializable
*
* @dev Helper contract to support initializer functions. To use it, replace
* the constructor with a function that has the `initializer` modifier.
* WARNING: Unlike constructors, initializer functions must be manually
* invoked. This applies both to deploying an Initializable co... | NatSpecMultiLine | isConstructor | function isConstructor() private view returns (bool) {
// extcodesize checks the size of the code stored in an address, and
// address returns the current address. Since the code is still not
// deployed when running a constructor, any checks on its code size will
// yield zero, making it an effective way t... | /// @dev Returns true if and only if the function is running in the constructor | NatSpecSingleLine | v0.6.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
782,
1293
]
} | 1,605 |
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | ContextUpgradeSafe | contract ContextUpgradeSafe is Initializable {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
function __Context_init() internal initializer {
__Context_init_unchained();
}
function _... | /*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending ... | Comment | __Context_init | function __Context_init() internal initializer {
__Context_init_unchained();
}
| // Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance. | LineComment | v0.6.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
206,
303
]
} | 1,606 |
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | OwnableUpgradeSafe | contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init(... | /**
* @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 | __Ownable_init | function __Ownable_init() internal initializer {
__Context_init_unchained();
__Ownable_init_unchained();
}
| /**
* @dev Initializes the contract setting the deployer as the initial owner.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
292,
426
]
} | 1,607 |
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | OwnableUpgradeSafe | contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init(... | /**
* @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.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
714,
798
]
} | 1,608 |
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | OwnableUpgradeSafe | contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init(... | /**
* @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.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
1356,
1509
]
} | 1,609 |
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | OwnableUpgradeSafe | contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init(... | /**
* @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.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
1659,
1908
]
} | 1,610 |
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | Unbonded | contract Unbonded is OwnableUpgradeSafe {
using SafeMath for uint256;
uint public TGE;
uint public constant month = 30 days;
uint constant decimals = 18;
uint constant decMul = uint(10) ** decimals;
address public communityAddress;
uint public constant PRIVATE_... | setTokenContract | function setTokenContract(address _tokenAddress) public onlyOwner {
token = IERC20(_tokenAddress);
}
| /**
* @dev Sets the Plutus ERC-20 token contract address
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
843,
962
]
} | 1,611 | ||
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | Unbonded | contract Unbonded is OwnableUpgradeSafe {
using SafeMath for uint256;
uint public TGE;
uint public constant month = 30 days;
uint constant decimals = 18;
uint constant decMul = uint(10) ** decimals;
address public communityAddress;
uint public constant PRIVATE_... | setTGE | function setTGE() public onlyOwner {
require(TGE == 0, "TGE has already been set");
TGE = now;
}
| /**
* @dev Sets the current TGE from where the vesting period will be counted. Can be used only if TGE is zero.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
1097,
1221
]
} | 1,612 | ||
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | Unbonded | contract Unbonded is OwnableUpgradeSafe {
using SafeMath for uint256;
uint public TGE;
uint public constant month = 30 days;
uint constant decimals = 18;
uint constant decMul = uint(10) ** decimals;
address public communityAddress;
uint public constant PRIVATE_... | addToWhitelist | function addToWhitelist(address[] memory addresses, uint[] memory balances) public onlyOwner {
require(addresses.length == balances.length, "Invalid request length");
for(uint i = 0; i < addresses.length; i++) {
privateWhitelist[addresses[i]] = balances[i];
}
}
| /**
* @dev Sets each address from `addresses` as the key and each balance
* from `balances` to the privateWhitelist. Can be used only by an owner.
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
1401,
1722
]
} | 1,613 | ||
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | Unbonded | contract Unbonded is OwnableUpgradeSafe {
using SafeMath for uint256;
uint public TGE;
uint public constant month = 30 days;
uint constant decimals = 18;
uint constant decMul = uint(10) ** decimals;
address public communityAddress;
uint public constant PRIVATE_... | claimPrivateTokens | function claimPrivateTokens(uint amount) public {
require(privateWhitelist[msg.sender] > 0, "Sender is not whitelisted");
require(privateWhitelist[msg.sender] >= amount, "Exceeded token amount");
require(currentPrivatePool >= amount, "Exceeded private pool");
currentPrivatePool = currentPr... | /**
* @dev claim private tokens from the contract balance.
* `amount` means how many tokens must be claimed.
* Can be used only by an owner or by any whitelisted person
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
1930,
2437
]
} | 1,614 | ||
Unbonded | Unbonded.sol | 0x833bed908817dad9c93a52ca21040afa33da9a56 | Solidity | Unbonded | contract Unbonded is OwnableUpgradeSafe {
using SafeMath for uint256;
uint public TGE;
uint public constant month = 30 days;
uint constant decimals = 18;
uint constant decMul = uint(10) ** decimals;
address public communityAddress;
uint public constant PRIVATE_... | claimCommunityTokens | function claimCommunityTokens() public {
require(msg.sender == communityAddress || msg.sender == owner(), "Unauthorised sender");
require(TGE > 0, "TGE must be set");
// No vesting period
uint amount = 0;
if (now >= TGE && currentCommunityPool == COMMUNITY_POOL) {
curren... | /**
* @dev claim community tokens from the contract balance.
* Can be used only by an owner or from communityAddress
*/ | NatSpecMultiLine | v0.6.11+commit.5ef660b1 | None | ipfs://c271b942d941496cfa53d8ea0c4fc9079e4e7144ff292e1bc898ad6e3434b201 | {
"func_code_index": [
2587,
4422
]
} | 1,615 | ||
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
T... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
268,
659
]
} | 1,616 | |
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
865,
977
]
} | 1,617 | |
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | Ico | contract Ico is BasicToken {
address owner;
uint256 public teamNum;
mapping(address => bool) team;
// expose these for ERC20 tools
string public constant name = "LUNA";
string public constant symbol = "LUNA";
uint8 public constant decimals = 18;
// Significant digits tokenPrecision
uint25... | // NOTE: BasicToken only has partial ERC20 support | LineComment | Ico | function Ico(uint256 _icoStart, uint256 _icoEnd, address[] _team, uint256 _tokensPerEth) public {
// require (_icoStart >= now);
require (_icoEnd >= _icoStart);
require (_tokensPerEth > 0);
owner = msg.sender;
icoStart = _icoStart;
icoEnd = _icoEnd;
tokensPerEth = _tokensPerEth;
// initial... | /**
* ICO constructor
* Define ICO details and contribution period
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
1873,
2499
]
} | 1,618 | |
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | Ico | contract Ico is BasicToken {
address owner;
uint256 public teamNum;
mapping(address => bool) team;
// expose these for ERC20 tools
string public constant name = "LUNA";
string public constant symbol = "LUNA";
uint8 public constant decimals = 18;
// Significant digits tokenPrecision
uint25... | // NOTE: BasicToken only has partial ERC20 support | LineComment | participate | function participate(address beneficiary) public payable {
require (beneficiary != address(0));
require (now >= icoStart && now <= icoEnd);
require (msg.value > 0);
uint256 ethAmount = msg.value;
uint256 numTokens = ethAmount.mul(tokensPerEth);
require(totalSupply.add(numTokens) <= hardCap);
... | /**
*
* Function allowing investors to participate in the ICO.
* Specifying the beneficiary will change who will receive the tokens.
* Fund tokens will be distributed based on amount of ETH sent by investor, and calculated
* using tokensPerEth value.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
3067,
3802
]
} | 1,619 | |
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | Ico | contract Ico is BasicToken {
address owner;
uint256 public teamNum;
mapping(address => bool) team;
// expose these for ERC20 tools
string public constant name = "LUNA";
string public constant symbol = "LUNA";
uint8 public constant decimals = 18;
// Significant digits tokenPrecision
uint25... | // NOTE: BasicToken only has partial ERC20 support | LineComment | function () external payable {
participate(msg.sender);
}
| /**
*
* We fallback to the partcipate function
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
3870,
3939
]
} | 1,620 | ||
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | Ico | contract Ico is BasicToken {
address owner;
uint256 public teamNum;
mapping(address => bool) team;
// expose these for ERC20 tools
string public constant name = "LUNA";
string public constant symbol = "LUNA";
uint8 public constant decimals = 18;
// Significant digits tokenPrecision
uint25... | // NOTE: BasicToken only has partial ERC20 support | LineComment | freeze | function freeze(uint256 _amount) public onlySaleAddress returns (bool) {
reconcileDividend(msg.sender);
require(_amount <= balances[msg.sender]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_amount);
totalSupply = totalSupply.sub(_amount);
... | /**
* Internal burn function, only callable by team
*
* @param _amount is the amount of tokens to burn.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
4068,
4614
]
} | 1,621 | |
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | Ico | contract Ico is BasicToken {
address owner;
uint256 public teamNum;
mapping(address => bool) team;
// expose these for ERC20 tools
string public constant name = "LUNA";
string public constant symbol = "LUNA";
uint8 public constant decimals = 18;
// Significant digits tokenPrecision
uint25... | // NOTE: BasicToken only has partial ERC20 support | LineComment | reportProfit | function reportProfit(int256 totalProfit, address saleAddress) public onlyTeam returns (bool) {
// first we new dividends if this period was profitable
if (totalProfit > 0) {
// We only care about 50% of this, as the rest is reinvested right away
uint256 profit = uint256(totalProfit).mul(tokenPrecision)... | /**
* Calculate the divends for the current period given the AUM profit
*
* @param totalProfit is the amount of total profit in USD.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
4772,
5439
]
} | 1,622 | |
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | Ico | contract Ico is BasicToken {
address owner;
uint256 public teamNum;
mapping(address => bool) team;
// expose these for ERC20 tools
string public constant name = "LUNA";
string public constant symbol = "LUNA";
uint8 public constant decimals = 18;
// Significant digits tokenPrecision
uint25... | // NOTE: BasicToken only has partial ERC20 support | LineComment | addNewDividends | function addNewDividends(uint256 profit) internal {
uint256 newAum = aum.add(profit); // 18 sig digits
tokenValue = newAum.mul(tokenPrecision).div(totalSupply); // 18 sig digits
uint256 totalDividends = profit.mul(tokenPrecision).div(tokenValue); // 18 sig digits
uint256 managementDividends = totalDividends... | /**
* Calculate the divends for the current period given the dividend
* amounts (USD * tokenPrecision).
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
5996,
6837
]
} | 1,623 | |
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | Ico | contract Ico is BasicToken {
address owner;
uint256 public teamNum;
mapping(address => bool) team;
// expose these for ERC20 tools
string public constant name = "LUNA";
string public constant symbol = "LUNA";
uint8 public constant decimals = 18;
// Significant digits tokenPrecision
uint25... | // NOTE: BasicToken only has partial ERC20 support | LineComment | liquidate | function liquidate() public onlyTeam returns (bool) {
selfdestruct(owner);
}
| /**
* Withdraw all funds and kill fund smart contract
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
6908,
6995
]
} | 1,624 | |
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | Ico | contract Ico is BasicToken {
address owner;
uint256 public teamNum;
mapping(address => bool) team;
// expose these for ERC20 tools
string public constant name = "LUNA";
string public constant symbol = "LUNA";
uint8 public constant decimals = 18;
// Significant digits tokenPrecision
uint25... | // NOTE: BasicToken only has partial ERC20 support | LineComment | getOwedDividend | function getOwedDividend(address _owner) public view returns (uint256 total, uint256[]) {
uint256[] memory noDividends = new uint256[](0);
// And the address' current balance
uint256 balance = BasicToken.balanceOf(_owner);
// retrieve index of last dividend this address received
// NOTE: the default retu... | // getter to retrieve divident owed | LineComment | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
7039,
8528
]
} | 1,625 | |
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | Ico | contract Ico is BasicToken {
address owner;
uint256 public teamNum;
mapping(address => bool) team;
// expose these for ERC20 tools
string public constant name = "LUNA";
string public constant symbol = "LUNA";
uint8 public constant decimals = 18;
// Significant digits tokenPrecision
uint25... | // NOTE: BasicToken only has partial ERC20 support | LineComment | balanceOf | function balanceOf(address _owner) public view returns (uint256) {
var (owedDividend, /* dividends */) = getOwedDividend(_owner);
return BasicToken.balanceOf(_owner).add(owedDividend);
}
| // monkey patches | LineComment | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
8552,
8754
]
} | 1,626 | |
Ico | Ico.sol | 0xa26d5253ab96e04afe51b4c1614b29b11889d3b1 | Solidity | Ico | contract Ico is BasicToken {
address owner;
uint256 public teamNum;
mapping(address => bool) team;
// expose these for ERC20 tools
string public constant name = "LUNA";
string public constant symbol = "LUNA";
uint8 public constant decimals = 18;
// Significant digits tokenPrecision
uint25... | // NOTE: BasicToken only has partial ERC20 support | LineComment | reconcileDividend | function reconcileDividend(address _owner) internal {
var (owedDividend, dividends) = getOwedDividend(_owner);
for (uint i = 0; i < dividends.length; i++) {
if (dividends[i] > 0) {
Reconcile(_owner, lastDividend[_owner] + i, dividends[i]);
Transfer(0x0, _owner, dividends[i]);
}
}
... | // Reconcile all outstanding dividends for an address
// into its balance. | LineComment | v0.4.18+commit.9cf6e910 | bzzr://9905724fd342af9bbc20f69fca2672221cfa2033abdc7644988980bd8a5fea65 | {
"func_code_index": [
8840,
9394
]
} | 1,627 | |
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | freeSale | function freeSale(uint256 catID) external nonReentrant {
require(tx.origin == msg.sender, "no...");
require(freeMintLive, "free mint not live");
require(_currentIndex + 1 <= maxNormalSupplyID, "out of stock");
require(!usedCatIDs[catID], "you can only mint once with this id");
require(
IER... | // free for gutter cats | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
3151,
3692
]
} | 1,628 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | adminMint | function adminMint(address to, uint256 qty) external onlyOwner {
require(_currentIndex + qty <= maxNormalSupplyID, "out of stock");
mintMultiple(to, qty);
}
| //admin mint | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
4666,
4846
]
} | 1,629 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | burn | function burn(uint256 tokenId) public virtual {
require(burnLive, "burn not live");
require(
_isApprovedOrOwner(_msgSender(), tokenId),
"caller is not owner nor approved"
);
burnToken(tokenId);
}
| //burn | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
5259,
5518
]
} | 1,630 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | setGutterAddresses | function setGutterAddresses(
address cats,
address rats,
address pigeons,
address dogs
) external onlyOwner {
gutterCatNFTAddress = cats; //0xEdB61f74B0d09B2558F1eeb79B247c1F363Ae452
gutterRatNFTAddress = rats; //0xD7B397eDad16ca8111CA4A3B832d0a5E3ae2438C
gutterPigeonNFTAddress = pigeons; //... | //sets the gang addresses | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
6288,
6773
]
} | 1,631 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | setPresaleLive | function setPresaleLive(bool live) external onlyOwner {
presaleLive = live;
}
| //sets presale live | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
6799,
6892
]
} | 1,632 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | setSaleLive | function setSaleLive(bool live) external onlyOwner {
saleLive = live;
}
| //sets sale live | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
6915,
7002
]
} | 1,633 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | setFreeMintLive | function setFreeMintLive(bool live) external onlyOwner {
freeMintLive = live;
}
| //sets free mint live | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
7030,
7125
]
} | 1,634 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | setBurnLive | function setBurnLive(bool live) external onlyOwner {
burnLive = live;
}
| //sets burn live | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
7148,
7235
]
} | 1,635 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | setUpgradeLive | function setUpgradeLive(bool live) external onlyOwner {
upgradeLive = live;
}
| //sets upgrade live | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
7261,
7354
]
} | 1,636 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | setSaleStopID | function setSaleStopID(uint256 newSaleStopID) external onlyOwner {
require(newSaleStopID <= maxNormalSupplyID, "invalid id");
saleStopID = newSaleStopID;
}
| //sets upgrade live | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
7380,
7559
]
} | 1,637 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | isApprovedForAll | function isApprovedForAll(address owner, address operator)
public
view
override
returns (bool)
{
// Whitelist OpenSea proxy contract for easy trading.
ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
if (address(proxyRegistry.proxies(owner)) == operator) {
return tr... | /**
* Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
*/ | NatSpecMultiLine | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
8343,
8778
]
} | 1,638 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | setProxyRegistry | function setProxyRegistry(address _newRegistry) external onlyOwner {
proxyRegistryAddress = _newRegistry;
}
| //sets the opensea proxy | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
8809,
8932
]
} | 1,639 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | lockMetadata | function lockMetadata() external onlyOwner {
locked = true;
}
| // and for the eternity! | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
8963,
9040
]
} | 1,640 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | setSignerAddress | function setSignerAddress(address newSigner) external onlyOwner {
signerAddress = newSigner;
}
| //sets signer address | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
9068,
9178
]
} | 1,641 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | decreaseMaxNormalSupplyID | function decreaseMaxNormalSupplyID(uint256 newSupplyID) external onlyOwner {
require(
maxNormalSupplyID > newSupplyID && newSupplyID >= _currentIndex,
"invalid new supply"
);
maxNormalSupplyID = newSupplyID;
}
| // decreases max supply | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
9208,
9473
]
} | 1,642 | ||
GutterComics | ./contracts/GutterComics.sol | 0xe909c4a1275e8fd21accda5d4332d2306d2812ad | Solidity | GutterComics | contract GutterComics is ERC721, Ownable, ReentrancyGuard {
using Address for address;
using Strings for uint256;
using ECDSA for bytes32;
//gasless approvals on opensea
address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
string public _baseURIextended =
"https:/... | hashTransaction | function hashTransaction(
uint256 firstId,
uint256 secondId,
uint256 coverType
) private pure returns (bytes32) {
bytes32 hash = keccak256(
abi.encodePacked(
"\x19Ethereum Signed Message:\n32",
keccak256(abi.encodePacked(firstId, secondId, coverType))
)
);
... | // utils | LineComment | v0.8.11+commit.d7f03943 | MIT | ipfs://09537da6493379832f866f8a43cb9875b7a49daef35d0822429531446fd8ab39 | {
"func_code_index": [
9600,
9987
]
} | 1,643 | ||
ChillCoin | ChillCoin.sol | 0xcc7242f18453025bb8088c98104362a2a86020ac | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SaferMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) public... | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return ... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://c289e35f233c7e71f735d21122f2bf7d785becb7b96bf44c86c14781fabe7c99 | {
"func_code_index": [
265,
610
]
} | 1,644 | |||
ChillCoin | ChillCoin.sol | 0xcc7242f18453025bb8088c98104362a2a86020ac | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SaferMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) public... | balanceOf | function balanceOf(address _owner) public constant returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://c289e35f233c7e71f735d21122f2bf7d785becb7b96bf44c86c14781fabe7c99 | {
"func_code_index": [
816,
932
]
} | 1,645 | |||
ChillCoin | ChillCoin.sol | 0xcc7242f18453025bb8088c98104362a2a86020ac | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
uint256 _allowance = allowed[_from][msg.sender];
// Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
// require (_value <= _allowance);... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://c289e35f233c7e71f735d21122f2bf7d785becb7b96bf44c86c14781fabe7c99 | {
"func_code_index": [
392,
941
]
} | 1,646 | |||
ChillCoin | ChillCoin.sol | 0xcc7242f18453025bb8088c98104362a2a86020ac | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | approve | function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* ... | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://c289e35f233c7e71f735d21122f2bf7d785becb7b96bf44c86c14781fabe7c99 | {
"func_code_index": [
1573,
1763
]
} | 1,647 | |||
ChillCoin | ChillCoin.sol | 0xcc7242f18453025bb8088c98104362a2a86020ac | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | allowance | function allowance(address _owner, address _spender) public constant returns (uint256 remaining) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://c289e35f233c7e71f735d21122f2bf7d785becb7b96bf44c86c14781fabe7c99 | {
"func_code_index": [
2087,
2232
]
} | 1,648 | |||
ChillCoin | ChillCoin.sol | 0xcc7242f18453025bb8088c98104362a2a86020ac | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | increaseApproval | function increaseApproval (address _spender, uint _addedValue) returns (bool success) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
| /**
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://c289e35f233c7e71f735d21122f2bf7d785becb7b96bf44c86c14781fabe7c99 | {
"func_code_index": [
2477,
2743
]
} | 1,649 | |||
ChillCoin | ChillCoin.sol | 0xcc7242f18453025bb8088c98104362a2a86020ac | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
... | Ownable | function Ownable() {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://c289e35f233c7e71f735d21122f2bf7d785becb7b96bf44c86c14781fabe7c99 | {
"func_code_index": [
261,
314
]
} | 1,650 | |||
ChillCoin | ChillCoin.sol | 0xcc7242f18453025bb8088c98104362a2a86020ac | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
... | transferOwnership | function transferOwnership(address newOwner) onlyOwner public {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://c289e35f233c7e71f735d21122f2bf7d785becb7b96bf44c86c14781fabe7c99 | {
"func_code_index": [
637,
813
]
} | 1,651 | |||
ChillCoin | ChillCoin.sol | 0xcc7242f18453025bb8088c98104362a2a86020ac | Solidity | ChillCoin | contract ChillCoin is StandardToken, Ownable {
string public constant name = "Chill Coin";
string public constant symbol = "CHILL";
uint8 public constant decimals = 8;
uint256 public ChillIssued;
string public ChillTalk;
/* Chill word for the world */
event ChilledTalked(string newWord);
... | ChillCoin | function ChillCoin() {
totalSupply = 100000000 * (10 ** uint256(decimals));
balances[msg.sender] = totalSupply / 10; //
ChillIssued = totalSupply / 10;
ChillTalk = "Chill";
}
| /* Constructor function - initialize Chill Coins */ | Comment | v0.4.21+commit.dfe3193c | bzzr://c289e35f233c7e71f735d21122f2bf7d785becb7b96bf44c86c14781fabe7c99 | {
"func_code_index": [
1295,
1497
]
} | 1,652 | |||
Ccc | Ccc.sol | 0x94cb815f4b601b00b363b3177b4d8ed8e0eb7cf2 | Solidity | SafeMath | contract SafeMath {
function assert(bool assertion) internal {
if (!assertion) {
throw;
}
} // assert no longer needed once solidity is on 0.4.10
function safeAdd(uint256 x, uint256 y) internal returns(uint256) {
uint256 z = x + y;
assert((z >= x) && ... | /////////////// | NatSpecSingleLine | safeAdd | function safeAdd(uint256 x, uint256 y) internal returns(uint256) {
uint256 z = x + y;
assert((z >= x) && (z >= y));
return z;
}
| // assert no longer needed once solidity is on 0.4.10 | LineComment | v0.4.20-nightly.2018.1.6+commit.2548228b | bzzr://7ae2d1d44629744e7c9b34a5fb94bbe5e5c536aaab50ef782944c07f3754aecd | {
"func_code_index": [
197,
355
]
} | 1,653 | |
Ccc | Ccc.sol | 0x94cb815f4b601b00b363b3177b4d8ed8e0eb7cf2 | Solidity | Ccc | contract Ccc is StandardToken, SafeMath {
// Descriptive properties
string public constant name = "Coin Controller Cash";
string public constant symbol = "CCC";
uint256 public constant decimals = 18;
uint256 public totalSupply = 2000000000 * 10**decimals;
string public version = "1.0";
... | ///////////////////// | NatSpecSingleLine | Ccc | function Ccc(address _etherProceedsAccount) {
etherProceedsAccount = _etherProceedsAccount;
balances[etherProceedsAccount] += CAP;
Transfer(this, etherProceedsAccount, CAP);
}
| // constructor | LineComment | v0.4.20-nightly.2018.1.6+commit.2548228b | bzzr://7ae2d1d44629744e7c9b34a5fb94bbe5e5c536aaab50ef782944c07f3754aecd | {
"func_code_index": [
485,
691
]
} | 1,654 | |
BETTER | BETTER.sol | 0xf576b4207e69d21cf976b93fed705f1ba9e02111 | Solidity | BETTER | contract BETTER is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public view returns (uint) {
return _totalSupply.sub(balances[address(0)]);
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e2ef60c65332077602494fd4a053e56cccdc9cc206240cf72c803be763234826 | {
"func_code_index": [
930,
1049
]
} | 1,655 | |
BETTER | BETTER.sol | 0xf576b4207e69d21cf976b93fed705f1ba9e02111 | Solidity | BETTER | contract BETTER is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public view returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e2ef60c65332077602494fd4a053e56cccdc9cc206240cf72c803be763234826 | {
"func_code_index": [
1269,
1394
]
} | 1,656 | |
BETTER | BETTER.sol | 0xf576b4207e69d21cf976b93fed705f1ba9e02111 | Solidity | BETTER | contract BETTER is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = balances[msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e2ef60c65332077602494fd4a053e56cccdc9cc206240cf72c803be763234826 | {
"func_code_index": [
1738,
2010
]
} | 1,657 | |
BETTER | BETTER.sol | 0xf576b4207e69d21cf976b93fed705f1ba9e02111 | Solidity | BETTER | contract BETTER is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.24+commit.e67f0147 | bzzr://e2ef60c65332077602494fd4a053e56cccdc9cc206240cf72c803be763234826 | {
"func_code_index": [
2518,
2731
]
} | 1,658 | |
BETTER | BETTER.sol | 0xf576b4207e69d21cf976b93fed705f1ba9e02111 | Solidity | BETTER | contract BETTER is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = balances[from].sub(tokens);
allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
emit Transfer(from, to, tokens);
return true;
}
... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.24+commit.e67f0147 | bzzr://e2ef60c65332077602494fd4a053e56cccdc9cc206240cf72c803be763234826 | {
"func_code_index": [
3262,
3610
]
} | 1,659 | |
BETTER | BETTER.sol | 0xf576b4207e69d21cf976b93fed705f1ba9e02111 | Solidity | BETTER | contract BETTER is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public view returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e2ef60c65332077602494fd4a053e56cccdc9cc206240cf72c803be763234826 | {
"func_code_index": [
3893,
4045
]
} | 1,660 | |
BETTER | BETTER.sol | 0xf576b4207e69d21cf976b93fed705f1ba9e02111 | Solidity | BETTER | contract BETTER is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.24+commit.e67f0147 | bzzr://e2ef60c65332077602494fd4a053e56cccdc9cc206240cf72c803be763234826 | {
"func_code_index": [
4400,
4722
]
} | 1,661 | |
BETTER | BETTER.sol | 0xf576b4207e69d21cf976b93fed705f1ba9e02111 | Solidity | BETTER | contract BETTER is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e2ef60c65332077602494fd4a053e56cccdc9cc206240cf72c803be763234826 | {
"func_code_index": [
4914,
4973
]
} | 1,662 | ||
BETTER | BETTER.sol | 0xf576b4207e69d21cf976b93fed705f1ba9e02111 | Solidity | BETTER | contract BETTER is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | bzzr://e2ef60c65332077602494fd4a053e56cccdc9cc206240cf72c803be763234826 | {
"func_code_index": [
5206,
5395
]
} | 1,663 | |
PresaleAllocation | contracts/ExitQueue.sol | 0x6cf2a119f98a4b4a7fa4fd08a1e72d7af3ba72fe | Solidity | ExitQueue | contract ExitQueue is Ownable {
struct User {
// Total currently in queue
uint256 Amount;
// First epoch for which the user is in the unstake queue
uint256 FirstExitEpoch;
// Last epoch for which the user has a pending unstake
uint256 LastExitEpoch;
// All ... | /**
* How all exit of TEMPLE rewards are managed.
*/ | NatSpecMultiLine | withdraw | function withdraw(uint256 epoch) external {
require(epoch < currentEpoch(), "Can only withdraw from past epochs");
User storage user = userData[msg.sender];
uint256 amount = user.Exits[epoch];
delete user.Exits[epoch];
totalPerEpoch[epoch] -= amount; // TODO: WHen this goes to 0, is it the same as... | /**
* Withdraw processed allowance from a specific epoch
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
4759,
5756
]
} | 1,664 | ||
LTStandardCreateToken | LTStandardCreateToken.sol | 0xfb1d53bccdc61d6a039397293a96d3a3f85ded02 | Solidity | LTStandardCreateToken | contract LTStandardCreateToken is LTStandardToken {
string public name;
uint8 public decimals;
string public symbol;
string public version = 'H0.1';
constructor(uint256 _initialAmount, string _tokenName, uint8 _decimalUnits, string _tok... | approveAndCall | function approveAndCall(address _spender, uint256 _value)public returns (bool success) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /* Approves and then calls the receiving contract */ | Comment | v0.4.24+commit.e67f0147 | bzzr://2c989e17db5b0ade75c0549e41b69a09b7824425c39c96b77230517878956ac5 | {
"func_code_index": [
702,
927
]
} | 1,665 | |||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | LPS_balanceOf | function LPS_balanceOf(address _holder) internal view override returns(uint) {
return balanceOf(_holder);
}
| // Expose balanceOf(). | LineComment | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
1155,
1278
]
} | 1,666 | ||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | LPS_transfer | function LPS_transfer(address _from, address _to, uint _value) internal override {
_transfer(_from, _to, _value);
}
| // Expose internal transfer function. | LineComment | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
1321,
1452
]
} | 1,667 | ||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | protectionChecker | function protectionChecker() internal view override returns(bool) {
return ProtectionSwitch_timestamp(1620086399); // Switch off protection on Monday, May 3, 2021 11:59:59 PM.
// return ProtectionSwitch_block(13000000); // Switch off protection on block 13000000.
//return ProtectionSwitch_manual(); // Switc... | // All the following overrides are optional, if you want to modify default behavior.
// How the protection gets disabled. | LineComment | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
1584,
1995
]
} | 1,668 | ||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | counterToken | function counterToken() internal pure override returns(address) {
return 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; // WETH
}
| // This token will be pooled in pair with: | LineComment | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
2044,
2186
]
} | 1,669 | ||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | FirstBlockTrap_skip | function FirstBlockTrap_skip() internal pure override returns(bool) {
return false;
}
| // Disable/Enable FirstBlockTrap | LineComment | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
2225,
2326
]
} | 1,670 | ||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | LiquidityAmountTrap_skip | function LiquidityAmountTrap_skip() internal pure override returns(bool) {
return false;
}
| // Disable/Enable absolute amount of tokens bought trap.
// Per address per LiquidityAmountTrap_blocks. | LineComment | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
2440,
2546
]
} | 1,671 | ||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | LiquidityPercentTrap_skip | function LiquidityPercentTrap_skip() internal pure override returns(bool) {
return false;
}
| // Disable/Enable percent of remaining liquidity bought trap.
// Per address per block. | LineComment | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
2912,
3019
]
} | 1,672 | ||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | LiquidityActivityTrap_skip | function LiquidityActivityTrap_skip() internal pure override returns(bool) {
return false;
}
| // Disable/Enable number of trades trap.
// Per block. | LineComment | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
3325,
3433
]
} | 1,673 | ||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | pause | function pause() external {
require(hasRole(PAUSER_ROLE, _msgSender()), "Standard: must have pauser role to pause");
_pause();
}
| /**
* @dev Pauses all token transfers.
*
* See {ERC20Pausable} and {Pausable-_pause}.
*
* Requirements:
*
* - the caller must have the `PAUSER_ROLE`.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
3847,
3999
]
} | 1,674 | ||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | unpause | function unpause() external {
require(hasRole(PAUSER_ROLE, _msgSender()), "Standard: must have pauser role to unpause");
_unpause();
}
| /**
* @dev Unpauses all token transfers.
*
* See {ERC20Pausable} and {Pausable-_unpause}.
*
* Requirements:
*
* - the caller must have the `PAUSER_ROLE`.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
4202,
4360
]
} | 1,675 | ||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | burn | function burn(uint256 amount) public {
require(hasRole(BURNER_ROLE, _msgSender()), "Standard: must have burner role to burn");
_burn(_msgSender(), amount);
}
| /**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*
* Requirements:
*
* - the caller must have the `BURNER_ROLE`.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
4550,
4732
]
} | 1,676 | ||
Standard | contracts/Standard.sol | 0x9040e237c3bf18347bb00957dc22167d0f2b999d | Solidity | Standard | contract Standard is ERC20Pausable, AccessControlEnumerable, UsingLiquidityProtectionService {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor()
... | /**
* @dev {ERC20} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - the liquidity protection
*
* This contract uses {AccessControl} to lock permissioned function... | NatSpecMultiLine | burnFrom | function burnFrom(address account, uint256 amount) public {
require(hasRole(BURNER_ROLE, _msgSender()), "Standard: must have burner role to burn");
uint256 currentAllowance = allowance(account, _msgSender());
require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
_approve(account,... | /**
* @dev Destroys `amount` tokens from `account`, deducting from the caller's
* allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `amount`.
* - the caller must have the `BURNER_ROLE`.
*/ | NatSpecMultiLine | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
5083,
5503
]
} | 1,677 | ||
BCBCOIN | BCBCOIN.sol | 0x61c0e30b2c8c93cd0970c1d64029037bfffa5954 | Solidity | BCBCOIN | contract BCBCOIN {
// 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 ... | BCBCOIN | function BCBCOIN(
uint256 initialSupply,
string tokenName,
string tokenSymbol
) public {
totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount
balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens
name =... | /**
* Constructor function
*
* Initializes contract with initial supply tokens to the creator of the contract
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://049cf70abde3d522158979df588e554785e17643b6a2b029a147551a15365710 | {
"func_code_index": [
838,
1380
]
} | 1,678 | |||
BCBCOIN | BCBCOIN.sol | 0x61c0e30b2c8c93cd0970c1d64029037bfffa5954 | Solidity | BCBCOIN | contract BCBCOIN {
// 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 ... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value >= balanceOf[_to]... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://049cf70abde3d522158979df588e554785e17643b6a2b029a147551a15365710 | {
"func_code_index": [
1464,
2312
]
} | 1,679 | |||
BCBCOIN | BCBCOIN.sol | 0x61c0e30b2c8c93cd0970c1d64029037bfffa5954 | Solidity | BCBCOIN | contract BCBCOIN {
// 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 ... | transfer | function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}
| /**
* 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.4.24+commit.e67f0147 | bzzr://049cf70abde3d522158979df588e554785e17643b6a2b029a147551a15365710 | {
"func_code_index": [
2518,
2630
]
} | 1,680 | |||
BCBCOIN | BCBCOIN.sol | 0x61c0e30b2c8c93cd0970c1d64029037bfffa5954 | Solidity | BCBCOIN | contract BCBCOIN {
// 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 ... | 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.4.24+commit.e67f0147 | bzzr://049cf70abde3d522158979df588e554785e17643b6a2b029a147551a15365710 | {
"func_code_index": [
2905,
3206
]
} | 1,681 | |||
BCBCOIN | BCBCOIN.sol | 0x61c0e30b2c8c93cd0970c1d64029037bfffa5954 | Solidity | BCBCOIN | contract BCBCOIN {
// 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 ... | approve | function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[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.4.24+commit.e67f0147 | bzzr://049cf70abde3d522158979df588e554785e17643b6a2b029a147551a15365710 | {
"func_code_index": [
3470,
3646
]
} | 1,682 | |||
BCBCOIN | BCBCOIN.sol | 0x61c0e30b2c8c93cd0970c1d64029037bfffa5954 | Solidity | BCBCOIN | contract BCBCOIN {
// 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 ... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData)
public
returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, 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.4.24+commit.e67f0147 | bzzr://049cf70abde3d522158979df588e554785e17643b6a2b029a147551a15365710 | {
"func_code_index": [
4040,
4392
]
} | 1,683 | |||
BCBCOIN | BCBCOIN.sol | 0x61c0e30b2c8c93cd0970c1d64029037bfffa5954 | Solidity | BCBCOIN | contract BCBCOIN {
// 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 ... | 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.4.24+commit.e67f0147 | bzzr://049cf70abde3d522158979df588e554785e17643b6a2b029a147551a15365710 | {
"func_code_index": [
4562,
4941
]
} | 1,684 | |||
BCBCOIN | BCBCOIN.sol | 0x61c0e30b2c8c93cd0970c1d64029037bfffa5954 | Solidity | BCBCOIN | contract BCBCOIN {
// 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 ... | 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.4.24+commit.e67f0147 | bzzr://049cf70abde3d522158979df588e554785e17643b6a2b029a147551a15365710 | {
"func_code_index": [
5199,
5815
]
} | 1,685 | |||
KOALAPROJECT | KOALAPROJECT.sol | 0x73d6f153a6e36a15faa8d447aae7cee8b3d7072e | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | totalSupply | function totalSupply() constant returns (uint256 supply) {}
| /// @return total amount of tokens | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://0adb49a30b41b809cf840de3d077ca99567ce1929b78d1cf1a68ef76b0a19089 | {
"func_code_index": [
60,
124
]
} | 1,686 | |||
KOALAPROJECT | KOALAPROJECT.sol | 0x73d6f153a6e36a15faa8d447aae7cee8b3d7072e | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance) {}
| /// @param _owner The address from which the balance will be retrieved
/// @return The balance | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://0adb49a30b41b809cf840de3d077ca99567ce1929b78d1cf1a68ef76b0a19089 | {
"func_code_index": [
232,
309
]
} | 1,687 | |||
KOALAPROJECT | KOALAPROJECT.sol | 0x73d6f153a6e36a15faa8d447aae7cee8b3d7072e | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transfer | function transfer(address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://0adb49a30b41b809cf840de3d077ca99567ce1929b78d1cf1a68ef76b0a19089 | {
"func_code_index": [
546,
623
]
} | 1,688 | |||
KOALAPROJECT | KOALAPROJECT.sol | 0x73d6f153a6e36a15faa8d447aae7cee8b3d7072e | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
| /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://0adb49a30b41b809cf840de3d077ca99567ce1929b78d1cf1a68ef76b0a19089 | {
"func_code_index": [
946,
1042
]
} | 1,689 | |||
KOALAPROJECT | KOALAPROJECT.sol | 0x73d6f153a6e36a15faa8d447aae7cee8b3d7072e | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | approve | function approve(address _spender, uint256 _value) returns (bool success) {}
| /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of wei to be approved for transfer
/// @return Whether the approval was successful or not | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://0adb49a30b41b809cf840de3d077ca99567ce1929b78d1cf1a68ef76b0a19089 | {
"func_code_index": [
1326,
1407
]
} | 1,690 | |||
KOALAPROJECT | KOALAPROJECT.sol | 0x73d6f153a6e36a15faa8d447aae7cee8b3d7072e | Solidity | Token | contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// ... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
| /// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://0adb49a30b41b809cf840de3d077ca99567ce1929b78d1cf1a68ef76b0a19089 | {
"func_code_index": [
1615,
1712
]
} | 1,691 | |||
KOALAPROJECT | KOALAPROJECT.sol | 0x73d6f153a6e36a15faa8d447aae7cee8b3d7072e | Solidity | KOALAPROJECT | contract KOALAPROJECT is StandardToken {
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to customise the token contract & in no way influences the core functionality.
Some wallets/interfaces... | KOALAPROJECT | function KOALAPROJECT() {
balances[msg.sender] = 1000000000000000000000000000;
totalSupply = 1000000000000000000000000000;
name = "KOALA TOKEN";
decimals = 18;
symbol = "KOA";
unitsOneEthCanBuy = 10000;
fundsWallet = msg.sender;
}
| // Where should the raised ETH go?
// which means the following function name has to match the contract name declared above | LineComment | v0.4.24+commit.e67f0147 | bzzr://0adb49a30b41b809cf840de3d077ca99567ce1929b78d1cf1a68ef76b0a19089 | {
"func_code_index": [
1121,
1424
]
} | 1,692 | |||
KOALAPROJECT | KOALAPROJECT.sol | 0x73d6f153a6e36a15faa8d447aae7cee8b3d7072e | Solidity | KOALAPROJECT | contract KOALAPROJECT is StandardToken {
/* Public variables of the token */
/*
NOTE:
The following variables are OPTIONAL vanities. One does not have to include them.
They allow one to customise the token contract & in no way influences the core functionality.
Some wallets/interfaces... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
//call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s... | /* Approves and then calls the receiving contract */ | Comment | v0.4.24+commit.e67f0147 | bzzr://0adb49a30b41b809cf840de3d077ca99567ce1929b78d1cf1a68ef76b0a19089 | {
"func_code_index": [
2020,
2825
]
} | 1,693 | |||
StreamingFeeModule | StreamingFeeModule.sol | 0x3d8d14b7efb8e342189ee14c3d40dce005eb901b | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [// importANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresse... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://ba7667045a62821576f45f97bfd8b1cc568441fd88b75e911a09cd56a86503c4 | {
"func_code_index": [
609,
1233
]
} | 1,694 |
StreamingFeeModule | StreamingFeeModule.sol | 0x3d8d14b7efb8e342189ee14c3d40dce005eb901b | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://ba7667045a62821576f45f97bfd8b1cc568441fd88b75e911a09cd56a86503c4 | {
"func_code_index": [
2166,
2568
]
} | 1,695 |
StreamingFeeModule | StreamingFeeModule.sol | 0x3d8d14b7efb8e342189ee14c3d40dce005eb901b | 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` wi... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.10+commit.00c0fcaf | Apache-2.0 | ipfs://ba7667045a62821576f45f97bfd8b1cc568441fd88b75e911a09cd56a86503c4 | {
"func_code_index": [
3324,
3502
]
} | 1,696 |
StreamingFeeModule | StreamingFeeModule.sol | 0x3d8d14b7efb8e342189ee14c3d40dce005eb901b | 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` wi... | /**
* @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.10+commit.00c0fcaf | Apache-2.0 | ipfs://ba7667045a62821576f45f97bfd8b1cc568441fd88b75e911a09cd56a86503c4 | {
"func_code_index": [
3727,
3928
]
} | 1,697 |
StreamingFeeModule | StreamingFeeModule.sol | 0x3d8d14b7efb8e342189ee14c3d40dce005eb901b | 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` wi... | /**
* @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.10+commit.00c0fcaf | Apache-2.0 | ipfs://ba7667045a62821576f45f97bfd8b1cc568441fd88b75e911a09cd56a86503c4 | {
"func_code_index": [
4298,
4529
]
} | 1,698 |
StreamingFeeModule | StreamingFeeModule.sol | 0x3d8d14b7efb8e342189ee14c3d40dce005eb901b | 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` wi... | /**
* @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.10+commit.00c0fcaf | Apache-2.0 | ipfs://ba7667045a62821576f45f97bfd8b1cc568441fd88b75e911a09cd56a86503c4 | {
"func_code_index": [
4780,
5101
]
} | 1,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.