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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Relay3rV1 | Relay3rV1.sol | 0x33b8def547be4b4893d6152b9ffe799db5b72092 | Solidity | Relay3rV1 | contract Relay3rV1 is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ---------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.23+commit.124ca40d | None | bzzr://f57dea9194362bdf497f1ccbfe9d1c67037ceb88d8a870ea9ac5b388de83d20f | {
"func_code_index": [
5272,
5461
]
} | 5,807 |
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
94,
154
]
} | 5,808 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
237,
310
]
} | 5,809 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.s
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
535,
617
]
} | 5,810 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
896,
984
]
} | 5,811 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
1648,
1727
]
} | 5,812 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
2040,
2142
]
} | 5,813 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
259,
445
]
} | 5,814 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
723,
864
]
} | 5,815 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
1162,
1359
]
} | 5,816 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
1613,
2089
]
} | 5,817 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
2560,
2697
]
} | 5,818 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
3188,
3471
]
} | 5,819 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
3931,
4066
]
} | 5,820 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
4546,
4717
]
} | 5,821 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
606,
1230
]
} | 5,822 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
2160,
2562
]
} | 5,823 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
3318,
3496
]
} | 5,824 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
3721,
3922
]
} | 5,825 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
4292,
4523
]
} | 5,826 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
4774,
5095
]
} | 5,827 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
497,
581
]
} | 5,828 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
1139,
1292
]
} | 5,829 | ||
ShibushInu | ShibushInu.sol | 0x692553dd0511e54001a99c6763d4fe7ac317b8af | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://459760472d69800278ea35878926930ddc384d0c8c618bd2e175abab2ca55aa3 | {
"func_code_index": [
1442,
1691
]
} | 5,830 | ||
blockchainFinanceCoin | blockchainFinanceCoin.sol | 0x8d0acb4453eb0e3b631559764b5d79b190d57dd3 | Solidity | blockchainFinanceCoin | contract blockchainFinanceCoin {
// 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;
address public owner;
// This creates an array ... | _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.26+commit.4563c3fc | MIT | bzzr://acd7e2f226b694b8542d558dd8024386f634d5898cecfeb9388fe45086a2029e | {
"func_code_index": [
2600,
3448
]
} | 5,831 | ||
blockchainFinanceCoin | blockchainFinanceCoin.sol | 0x8d0acb4453eb0e3b631559764b5d79b190d57dd3 | Solidity | blockchainFinanceCoin | contract blockchainFinanceCoin {
// 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;
address public owner;
// This creates an array ... | transfer | function transfer(address _to, uint256 _value) public returns (bool success) {
_transfer(msg.sender, _to, _value);
return true;
}
| /**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://acd7e2f226b694b8542d558dd8024386f634d5898cecfeb9388fe45086a2029e | {
"func_code_index": [
3654,
3811
]
} | 5,832 | ||
blockchainFinanceCoin | blockchainFinanceCoin.sol | 0x8d0acb4453eb0e3b631559764b5d79b190d57dd3 | Solidity | blockchainFinanceCoin | contract blockchainFinanceCoin {
// 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;
address public owner;
// This creates an array ... | 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.26+commit.4563c3fc | MIT | bzzr://acd7e2f226b694b8542d558dd8024386f634d5898cecfeb9388fe45086a2029e | {
"func_code_index": [
4086,
4387
]
} | 5,833 | ||
blockchainFinanceCoin | blockchainFinanceCoin.sol | 0x8d0acb4453eb0e3b631559764b5d79b190d57dd3 | Solidity | blockchainFinanceCoin | contract blockchainFinanceCoin {
// 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;
address public owner;
// This creates an array ... | approve | function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://acd7e2f226b694b8542d558dd8024386f634d5898cecfeb9388fe45086a2029e | {
"func_code_index": [
4651,
4881
]
} | 5,834 | ||
blockchainFinanceCoin | blockchainFinanceCoin.sol | 0x8d0acb4453eb0e3b631559764b5d79b190d57dd3 | Solidity | blockchainFinanceCoin | contract blockchainFinanceCoin {
// 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;
address public owner;
// This creates an array ... | 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.26+commit.4563c3fc | MIT | bzzr://acd7e2f226b694b8542d558dd8024386f634d5898cecfeb9388fe45086a2029e | {
"func_code_index": [
5275,
5627
]
} | 5,835 | ||
blockchainFinanceCoin | blockchainFinanceCoin.sol | 0x8d0acb4453eb0e3b631559764b5d79b190d57dd3 | Solidity | blockchainFinanceCoin | contract blockchainFinanceCoin {
// 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;
address public owner;
// This creates an array ... | 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.26+commit.4563c3fc | MIT | bzzr://acd7e2f226b694b8542d558dd8024386f634d5898cecfeb9388fe45086a2029e | {
"func_code_index": [
5797,
6176
]
} | 5,836 | ||
blockchainFinanceCoin | blockchainFinanceCoin.sol | 0x8d0acb4453eb0e3b631559764b5d79b190d57dd3 | Solidity | blockchainFinanceCoin | contract blockchainFinanceCoin {
// 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;
address public owner;
// This creates an array ... | mint | function mint(uint256 _value) public returns (bool success) {
quire((msg.sender == owner)); // Only the owner can do this
balanceOf[msg.sender] += _value; // add coin for sender
totalSupply += _value; // Updates totalSupply
emit Mint(_value);
return true;... | /**
* mint tokens
*
* add `_value` tokens from the system irreversibly
*
* @param _value the amount of money to mint
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://acd7e2f226b694b8542d558dd8024386f634d5898cecfeb9388fe45086a2029e | {
"func_code_index": [
6338,
6690
]
} | 5,837 | ||
blockchainFinanceCoin | blockchainFinanceCoin.sol | 0x8d0acb4453eb0e3b631559764b5d79b190d57dd3 | Solidity | blockchainFinanceCoin | contract blockchainFinanceCoin {
// 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;
address public owner;
// This creates an array ... | 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.26+commit.4563c3fc | MIT | bzzr://acd7e2f226b694b8542d558dd8024386f634d5898cecfeb9388fe45086a2029e | {
"func_code_index": [
6948,
7564
]
} | 5,838 | ||
CNBCoin | CNBCoin.sol | 0x0c024ebb8532a0516114e386e892793dae99d574 | Solidity | CNBCoin | contract CNBCoin is StandardToken {
/* Public variables of the token */
string public name;
uint8 public decimals; //最多的小数位数,How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like comparing 1 wei to 1 e... | CNBCoin | function CNBCoin(uint256 _initialAmount, string _tokenName, uint8 _decimalUnits, string _tokenSymbol) {
balances[msg.sender] = _initialAmount;
totalSupply = _initialAmount; // 设置初始总量
name = _tokenName; // token名称
decimals = _decimalUnits; // 小数位数
symbol = _t... | //版本 | LineComment | v0.4.23+commit.124ca40d | bzzr://1fafbb4d07da322d5e8d3cd68437d6db4ca299a74c204bd7fc387b62a3f139dc | {
"func_code_index": [
433,
819
]
} | 5,839 | |||
CNBCoin | CNBCoin.sol | 0x0c024ebb8532a0516114e386e892793dae99d574 | Solidity | CNBCoin | contract CNBCoin is StandardToken {
/* Public variables of the token */
string public name;
uint8 public decimals; //最多的小数位数,How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like comparing 1 wei to 1 e... | 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 so ... | /* Approves and then calls the receiving contract */ | Comment | v0.4.23+commit.124ca40d | bzzr://1fafbb4d07da322d5e8d3cd68437d6db4ca299a74c204bd7fc387b62a3f139dc | {
"func_code_index": [
886,
1683
]
} | 5,840 | |||
BerezkaTokenAdapterGovernance | BerezkaTokenAdapterGovernance.sol | 0x99596cf3b16988ed7f54b6c9dc57ae467c87f32e | Solidity | BerezkaTokenAdapterGovernance | contract BerezkaTokenAdapterGovernance is Ownable() {
using EnumerableSet for EnumerableSet.AddressSet;
/// @dev This is a set of plain assets (ERC20) used by DAO.
/// This list also include addresses of Uniswap/Balancer tokenized pools.
EnumerableSet.AddressSet private tokens;
/// @dev This is ... | /**
* @dev BerezkaTokenAdapterGovernance contract.
* Main function of this contract is to maintains a Structure of BerezkaDAO
* @author Vasin Denis <denis.vasin@easychain.tech>
*/ | NatSpecMultiLine | setProductVaults | function setProductVaults(address _product, address[] memory _vaults) public onlyOwner() {
require(_product != address(0), "_product is 0");
require(_vaults.length > 0, "_vaults.length should be > 0");
productVaults[_product] = _vaults;
}
| // Modification functions (all only by owner) | LineComment | v0.6.5+commit.f956cc89 | GNU GPLv2 | ipfs://cfcb7d8bb1995a251c15e1c2b0096b75029c359cc9bf3d17e0adc843fcc75504 | {
"func_code_index": [
992,
1263
]
} | 5,841 |
BerezkaTokenAdapterGovernance | BerezkaTokenAdapterGovernance.sol | 0x99596cf3b16988ed7f54b6c9dc57ae467c87f32e | Solidity | BerezkaTokenAdapterGovernance | contract BerezkaTokenAdapterGovernance is Ownable() {
using EnumerableSet for EnumerableSet.AddressSet;
/// @dev This is a set of plain assets (ERC20) used by DAO.
/// This list also include addresses of Uniswap/Balancer tokenized pools.
EnumerableSet.AddressSet private tokens;
/// @dev This is ... | /**
* @dev BerezkaTokenAdapterGovernance contract.
* Main function of this contract is to maintains a Structure of BerezkaDAO
* @author Vasin Denis <denis.vasin@easychain.tech>
*/ | NatSpecMultiLine | listTokens | function listTokens() external view returns (address[] memory) {
return _list(tokens);
}
| // View functions | LineComment | v0.6.5+commit.f956cc89 | GNU GPLv2 | ipfs://cfcb7d8bb1995a251c15e1c2b0096b75029c359cc9bf3d17e0adc843fcc75504 | {
"func_code_index": [
2066,
2170
]
} | 5,842 |
BerezkaTokenAdapterGovernance | BerezkaTokenAdapterGovernance.sol | 0x99596cf3b16988ed7f54b6c9dc57ae467c87f32e | Solidity | BerezkaTokenAdapterGovernance | contract BerezkaTokenAdapterGovernance is Ownable() {
using EnumerableSet for EnumerableSet.AddressSet;
/// @dev This is a set of plain assets (ERC20) used by DAO.
/// This list also include addresses of Uniswap/Balancer tokenized pools.
EnumerableSet.AddressSet private tokens;
/// @dev This is ... | /**
* @dev BerezkaTokenAdapterGovernance contract.
* Main function of this contract is to maintains a Structure of BerezkaDAO
* @author Vasin Denis <denis.vasin@easychain.tech>
*/ | NatSpecMultiLine | _add | function _add(EnumerableSet.AddressSet storage _set, address[] memory _addresses) internal {
for (uint i = 0; i < _addresses.length; i++) {
_set.add(_addresses[i]);
}
}
| // Internal functions | LineComment | v0.6.5+commit.f956cc89 | GNU GPLv2 | ipfs://cfcb7d8bb1995a251c15e1c2b0096b75029c359cc9bf3d17e0adc843fcc75504 | {
"func_code_index": [
2556,
2760
]
} | 5,843 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
165,
238
]
} | 5,844 | ||
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
462,
544
]
} | 5,845 | ||
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
823,
911
]
} | 5,846 | ||
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
1575,
1654
]
} | 5,847 | ||
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | IERC20 | interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipi... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
1967,
2069
]
} | 5,848 | ||
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
address msgSender = _msgSende... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
496,
580
]
} | 5,849 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
address msgSender = _msgSende... | /**
* @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 onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
1138,
1283
]
} | 5,850 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
address msgSender = _msgSende... | /**
* @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 onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
1433,
1547
]
} | 5,851 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
address msgSender = _msgSende... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | _transferOwnership | function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), 'Ownable: new owner is the zero address');
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
1648,
1882
]
} | 5,852 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, 'SafeMath: addition overflow');
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
259,
445
]
} | 5,853 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, 'SafeMath: subtraction overflow');
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
723,
864
]
} | 5,854 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
1162,
1393
]
} | 5,855 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
1647,
2123
]
} | 5,856 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, 'SafeMath: division by zero');
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
2594,
2731
]
} | 5,857 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
3222,
3539
]
} | 5,858 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, 'SafeMath: modulo by zero');
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
3999,
4134
]
} | 5,859 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
4614,
4819
]
} | 5,860 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sqrt | function sqrt(uint256 y) internal pure returns (uint256 z) {
if (y > 3) {
z = y;
uint256 x = y / 2 + 1;
while (x < z) {
z = x;
x = (y / x + x) / 2;
}
} else if (y != 0) {
z = 1;
}
}
| // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
5045,
5362
]
} | 5,861 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
606,
1252
]
} | 5,862 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, 'Address: insufficient balance');
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{value: amount}('');
require(success, 'Address: ... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
2182,
2582
]
} | 5,863 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, 'Address: low-level call failed');
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
3338,
3518
]
} | 5,864 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
3743,
3978
]
} | 5,865 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, 'Address: low-level call with value failed');
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
4348,
4613
]
} | 5,866 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, 'Address: insufficient balance for call');
return _functionCallWithValue(target, data, value, errorMessa... | /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
4864,
5228
]
} | 5,867 |
SIONTOKEN | SIONTOKEN.sol | 0xe8d1efd0c95011298e9a30143a0182c06b45ff5d | Solidity | SIONTOKEN | contract SIONTOKEN is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address =>... | //to recieve ETH from uniswapV2Router when swaping | LineComment | v0.6.12+commit.27d51765 | MIT | ipfs://9f662ce99860d3c220d24775ba86d143a3bfd8c88b51bd9b8a4dc0eb0d2292b5 | {
"func_code_index": [
18329,
18363
]
} | 5,868 | ||||
LIFIToken | src/extensions/ERC20TokenRecover.sol | 0xc49a129f5e56689aae5ed5d61bc2329d7ef205cd | Solidity | ERC20TokenRecover | contract ERC20TokenRecover is AccessControl {
using SafeERC20 for IERC20;
bytes32 public constant RECOVER_ROLE = keccak256("RECOVER_ROLE");
constructor(address owner) {
_grantRole(RECOVER_ROLE, owner);
}
/**
* @notice function that transfers an token amount from this contract to the ... | /**
* @title ERC20TokenRecover
* @author Henk ter Harmsel
* @dev Allows owner to recover any ERC20 or ETH sent into the contract
* based on https://github.com/vittominacori/eth-token-recover by Vittorio Minacori
*/ | NatSpecMultiLine | recoverERC20 | function recoverERC20(address tokenAddress, uint256 tokenAmount) public virtual onlyRole(RECOVER_ROLE) {
IERC20(tokenAddress).safeTransfer(msg.sender, tokenAmount);
}
| /**
* @notice function that transfers an token amount from this contract to the owner when accidentally sent
* @param tokenAddress The token contract address
* @param tokenAmount Number of tokens to be sent
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | {
"func_code_index": [
465,
647
]
} | 5,869 | ||
LIFIToken | src/extensions/ERC20TokenRecover.sol | 0xc49a129f5e56689aae5ed5d61bc2329d7ef205cd | Solidity | ERC20TokenRecover | contract ERC20TokenRecover is AccessControl {
using SafeERC20 for IERC20;
bytes32 public constant RECOVER_ROLE = keccak256("RECOVER_ROLE");
constructor(address owner) {
_grantRole(RECOVER_ROLE, owner);
}
/**
* @notice function that transfers an token amount from this contract to the ... | /**
* @title ERC20TokenRecover
* @author Henk ter Harmsel
* @dev Allows owner to recover any ERC20 or ETH sent into the contract
* based on https://github.com/vittominacori/eth-token-recover by Vittorio Minacori
*/ | NatSpecMultiLine | recoverETH | function recoverETH(uint256 amount) public virtual onlyRole(RECOVER_ROLE) {
// solhint-disable-next-line avoid-low-level-calls
(bool sent, ) = msg.sender.call{value: amount}("");
require(sent, "ERC20TokenRecover: SENDING_ETHER_FAILED");
}
| /**
* @notice function that transfers an eth amount from this contract to the owner when accidentally sent
* @param amount Number of eth to be sent
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | {
"func_code_index": [
819,
1089
]
} | 5,870 | ||
HordCongress | contracts/governance/HordCongress.sol | 0x604fab7ce497059eb87c86399ed7467d1a82517f | Solidity | HordCongress | contract HordCongress {
// Use SafeMath library
using SafeMath for *;
/// @notice The name of this contract
string public constant name = "HordCongress";
// Members registry contract
IHordCongressMembersRegistry membersRegistry;
/// @notice The total number of proposals
uin... | /**
* HordCogress contract.
* @author Nikola Madjarevic
* Date created: 18.3.21.
* Github: madjarevicn
*/ | NatSpecMultiLine | setMembersRegistry | function setMembersRegistry(
address _membersRegistry
)
external
{
require(address(membersRegistry) == address(0x0));
membersRegistry = IHordCongressMembersRegistry(_membersRegistry);
}
| /// One time call function to set members registry contract | NatSpecSingleLine | v0.6.12+commit.27d51765 | None | ipfs://5932756c73a4b02aeef6ac52c3926a27421a882ed211c9ed8a0a4acb5f339199 | {
"func_code_index": [
2927,
3164
]
} | 5,871 |
New808token | New808token.sol | 0xc2282e724e8db8c4f13861f2c4b9571da334ee83 | Solidity | New808token | contract New808token is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
address public contract_owner;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
/** Constructor... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| /** Total supply */ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | MIT | bzzr://f81a6ad0f701c569c2f5a406d23e74b2fbe0e808bb9a36382cbf6b4c812eee13 | {
"func_code_index": [
1047,
1168
]
} | 5,872 |
New808token | New808token.sol | 0xc2282e724e8db8c4f13861f2c4b9571da334ee83 | Solidity | New808token | contract New808token is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
address public contract_owner;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
/** Constructor... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| /** Get the token balance for account tokenOwner */ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | MIT | bzzr://f81a6ad0f701c569c2f5a406d23e74b2fbe0e808bb9a36382cbf6b4c812eee13 | {
"func_code_index": [
1228,
1357
]
} | 5,873 |
New808token | New808token.sol | 0xc2282e724e8db8c4f13861f2c4b9571da334ee83 | Solidity | New808token | contract New808token is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
address public contract_owner;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
/** Constructor... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | transfer | function transfer(address to, uint tokens) public returns (bool success) {
require(tokens <= balances[msg.sender]);
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| /**
Transfer the balance from token owner's account to to account
- Owner's account must have sufficient balance to transfer
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | MIT | bzzr://f81a6ad0f701c569c2f5a406d23e74b2fbe0e808bb9a36382cbf6b4c812eee13 | {
"func_code_index": [
1508,
1840
]
} | 5,874 |
New808token | New808token.sol | 0xc2282e724e8db8c4f13861f2c4b9571da334ee83 | Solidity | New808token | contract New808token is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
address public contract_owner;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
/** Constructor... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | 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
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | MIT | bzzr://f81a6ad0f701c569c2f5a406d23e74b2fbe0e808bb9a36382cbf6b4c812eee13 | {
"func_code_index": [
1960,
2173
]
} | 5,875 |
New808token | New808token.sol | 0xc2282e724e8db8c4f13861f2c4b9571da334ee83 | Solidity | New808token | contract New808token is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
address public contract_owner;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
/** Constructor... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(from, to, tokens);
r... | /**
Transfer tokens from the from account to the to account
The calling account must already have sufficient tokens approve(...)-d for spending from the from account and
- From account must have sufficient balance to transfer
- Spender must have sufficient allowance to transfer
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | MIT | bzzr://f81a6ad0f701c569c2f5a406d23e74b2fbe0e808bb9a36382cbf6b4c812eee13 | {
"func_code_index": [
2488,
2851
]
} | 5,876 |
New808token | New808token.sol | 0xc2282e724e8db8c4f13861f2c4b9571da334ee83 | Solidity | New808token | contract New808token is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
address public contract_owner;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
/** Constructor... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| /**
Returns the amount of tokens approved by the owner that can be transferred to the spender's account
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | MIT | bzzr://f81a6ad0f701c569c2f5a406d23e74b2fbe0e808bb9a36382cbf6b4c812eee13 | {
"func_code_index": [
2976,
3132
]
} | 5,877 |
New808token | New808token.sol | 0xc2282e724e8db8c4f13861f2c4b9571da334ee83 | Solidity | New808token | contract New808token is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
address public contract_owner;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
/** Constructor... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | 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
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | MIT | bzzr://f81a6ad0f701c569c2f5a406d23e74b2fbe0e808bb9a36382cbf6b4c812eee13 | {
"func_code_index": [
3326,
3648
]
} | 5,878 |
New808token | New808token.sol | 0xc2282e724e8db8c4f13861f2c4b9571da334ee83 | Solidity | New808token | contract New808token is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
address public contract_owner;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
/** Constructor... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | CreateT808 | function CreateT808(address to, uint tokens) public returns (bool success) {
require(msg.sender == contract_owner);
_totalSupply = safeAdd(_totalSupply,tokens);
balances[to] = safeAdd(balances[to], tokens);
emit Transfer(address(0), to, tokens);
emit Mint(to, tokens);
return true;
}
| /**
Mintable ERC20
Simple ERC20 Token example, with mintable token creation
Based on code by TokenMarketNet: https://github.com/TokenMarketNet/smart-contracts/blob/master/contracts/MintableToken.sol
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | MIT | bzzr://f81a6ad0f701c569c2f5a406d23e74b2fbe0e808bb9a36382cbf6b4c812eee13 | {
"func_code_index": [
3878,
4225
]
} | 5,879 |
New808token | New808token.sol | 0xc2282e724e8db8c4f13861f2c4b9571da334ee83 | Solidity | New808token | contract New808token is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
address public contract_owner;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
/** Constructor... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | BurnT808 | function BurnT808(uint tokens) public returns (bool success) {
require(tokens <= balances[msg.sender]); // Check if the sender has enough
balances[msg.sender] = safeSub(balances[msg.sender],tokens); // Subtract from the sender
_totalSupply = safeSub(_totalSupply, tokens); ... | /** Burn Tokens */ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | MIT | bzzr://f81a6ad0f701c569c2f5a406d23e74b2fbe0e808bb9a36382cbf6b4c812eee13 | {
"func_code_index": [
4252,
4757
]
} | 5,880 |
New808token | New808token.sol | 0xc2282e724e8db8c4f13861f2c4b9571da334ee83 | Solidity | New808token | contract New808token is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
address public contract_owner;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
/** Constructor... | /**
ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers
*/ | NatSpecMultiLine | function () public payable {
revert();
}
| /** Don't accept ETH */ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | MIT | bzzr://f81a6ad0f701c569c2f5a406d23e74b2fbe0e808bb9a36382cbf6b4c812eee13 | {
"func_code_index": [
4789,
4848
]
} | 5,881 | |
CabChain | CabChain.sol | 0x259073c45aad50509f0d016f4eaf6406ec02a01a | 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.19+commit.c4cbbb05 | bzzr://abd0decf1ccd7b87c0ae199be19af941b61c3cc2d6b6ff3fffea863181ad0ce1 | {
"func_code_index": [
60,
124
]
} | 5,882 | |||
CabChain | CabChain.sol | 0x259073c45aad50509f0d016f4eaf6406ec02a01a | 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.19+commit.c4cbbb05 | bzzr://abd0decf1ccd7b87c0ae199be19af941b61c3cc2d6b6ff3fffea863181ad0ce1 | {
"func_code_index": [
232,
309
]
} | 5,883 | |||
CabChain | CabChain.sol | 0x259073c45aad50509f0d016f4eaf6406ec02a01a | 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.19+commit.c4cbbb05 | bzzr://abd0decf1ccd7b87c0ae199be19af941b61c3cc2d6b6ff3fffea863181ad0ce1 | {
"func_code_index": [
546,
623
]
} | 5,884 | |||
CabChain | CabChain.sol | 0x259073c45aad50509f0d016f4eaf6406ec02a01a | 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.19+commit.c4cbbb05 | bzzr://abd0decf1ccd7b87c0ae199be19af941b61c3cc2d6b6ff3fffea863181ad0ce1 | {
"func_code_index": [
946,
1042
]
} | 5,885 | |||
CabChain | CabChain.sol | 0x259073c45aad50509f0d016f4eaf6406ec02a01a | 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.19+commit.c4cbbb05 | bzzr://abd0decf1ccd7b87c0ae199be19af941b61c3cc2d6b6ff3fffea863181ad0ce1 | {
"func_code_index": [
1326,
1407
]
} | 5,886 | |||
CabChain | CabChain.sol | 0x259073c45aad50509f0d016f4eaf6406ec02a01a | 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.19+commit.c4cbbb05 | bzzr://abd0decf1ccd7b87c0ae199be19af941b61c3cc2d6b6ff3fffea863181ad0ce1 | {
"func_code_index": [
1615,
1712
]
} | 5,887 | |||
CabChain | CabChain.sol | 0x259073c45aad50509f0d016f4eaf6406ec02a01a | Solidity | CabChain | contract CabChain is StandardToken { // CHANGE THIS. Update the contract name.
/* 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 functi... | CabChain | function CabChain() {
balances[msg.sender] = 8000000000000; // Give the creator all initial tokens. This is set to 1000 for example. If you want your initial tokens to be X and your decimal is 5, set this value to X * 100000. (CHANGE THIS)
totalSupply = 8000000000000; // U... | // Where should the raised ETH go?
// This is a constructor function
// which means the following function name has to match the contract name declared above | LineComment | v0.4.19+commit.c4cbbb05 | bzzr://abd0decf1ccd7b87c0ae199be19af941b61c3cc2d6b6ff3fffea863181ad0ce1 | {
"func_code_index": [
1203,
2095
]
} | 5,888 | |||
CabChain | CabChain.sol | 0x259073c45aad50509f0d016f4eaf6406ec02a01a | Solidity | CabChain | contract CabChain is StandardToken { // CHANGE THIS. Update the contract name.
/* 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 functi... | 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.19+commit.c4cbbb05 | bzzr://abd0decf1ccd7b87c0ae199be19af941b61c3cc2d6b6ff3fffea863181ad0ce1 | {
"func_code_index": [
2725,
3530
]
} | 5,889 | |||
WDT | WDT.sol | 0x143aa95a2b4948d5918a5d2edb3aee873a7aeb27 | 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.19+commit.c4cbbb05 | bzzr://870a158af8761c9cdcd813d3c3824ac91786a8b01408cdcf8b0dcabd25364fc8 | {
"func_code_index": [
60,
124
]
} | 5,890 | |||
WDT | WDT.sol | 0x143aa95a2b4948d5918a5d2edb3aee873a7aeb27 | 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.19+commit.c4cbbb05 | bzzr://870a158af8761c9cdcd813d3c3824ac91786a8b01408cdcf8b0dcabd25364fc8 | {
"func_code_index": [
232,
309
]
} | 5,891 | |||
WDT | WDT.sol | 0x143aa95a2b4948d5918a5d2edb3aee873a7aeb27 | 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.19+commit.c4cbbb05 | bzzr://870a158af8761c9cdcd813d3c3824ac91786a8b01408cdcf8b0dcabd25364fc8 | {
"func_code_index": [
546,
623
]
} | 5,892 | |||
WDT | WDT.sol | 0x143aa95a2b4948d5918a5d2edb3aee873a7aeb27 | 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.19+commit.c4cbbb05 | bzzr://870a158af8761c9cdcd813d3c3824ac91786a8b01408cdcf8b0dcabd25364fc8 | {
"func_code_index": [
946,
1042
]
} | 5,893 | |||
WDT | WDT.sol | 0x143aa95a2b4948d5918a5d2edb3aee873a7aeb27 | 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.19+commit.c4cbbb05 | bzzr://870a158af8761c9cdcd813d3c3824ac91786a8b01408cdcf8b0dcabd25364fc8 | {
"func_code_index": [
1326,
1407
]
} | 5,894 | |||
WDT | WDT.sol | 0x143aa95a2b4948d5918a5d2edb3aee873a7aeb27 | 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.19+commit.c4cbbb05 | bzzr://870a158af8761c9cdcd813d3c3824ac91786a8b01408cdcf8b0dcabd25364fc8 | {
"func_code_index": [
1615,
1712
]
} | 5,895 | |||
WDT | WDT.sol | 0x143aa95a2b4948d5918a5d2edb3aee873a7aeb27 | Solidity | WDT | contract WDT is StandardToken {
function () {
throw;
}
/* Public variables of the token */
string public name;
uint8 public decimals;
string public symbol;
string public version = 'H1.0';
function WDT(
... | 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.19+commit.c4cbbb05 | bzzr://870a158af8761c9cdcd813d3c3824ac91786a8b01408cdcf8b0dcabd25364fc8 | {
"func_code_index": [
556,
1361
]
} | 5,896 | |||
DeezKnots | contracts/DeezKnots.sol | 0x959835dfbc6264485c9c03814cf4dc495d86f0b4 | Solidity | DeezKnots | contract DeezKnots is ERC721, ERC721URIStorage, ERC721Burnable, Ownable {
using Counters for Counters.Counter;
string baseTokenURI;
uint256 public constant MAX_NFTS = 50;
uint256 public constant MAX_PER_MINT = 1;
uint256 public constant PRICE_PUBLIC_SALE = 100000000000000000; // 0.1 Ether
addres... | _burn | function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
super._burn(tokenId);
}
| // The following functions are overrides required by Solidity. | LineComment | v0.8.4+commit.c7e474f2 | {
"func_code_index": [
1845,
1962
]
} | 5,897 | ||||
LIFIToken | src/LIFIToken.sol | 0xc49a129f5e56689aae5ed5d61bc2329d7ef205cd | Solidity | LIFIToken | contract LIFIToken is ERC20, ERC20Burnable, AccessControl, ERC20Permit, ERC20TokenRecover {
using ECDSA for bytes32;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant TRANSFER_TYPEHASH =
keccak256("Transfer(address owner,address to,uint256 value,uint256 nonce,u... | approveAndCall | function approveAndCall(
address spender,
uint256 value,
bytes calldata data
) external returns (bool) {
_approve(msg.sender, spender, value);
return IApprovalReceiver(spender).onTokenApproval(msg.sender, value, data);
}
| //---- ERC20 Extras ----// | LineComment | v0.8.9+commit.e5eed63a | {
"func_code_index": [
579,
851
]
} | 5,898 | ||||
tokenCustody | tokenCustody.sol | 0x5456ceeafed34dd82231f73610155f90f467377f | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | /**
* @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.6+commit.6c089d02 | None | ipfs://b5e33be562957b6c8fc64c00bbdf31f13085800605a600d627d38a23e7249c3e | {
"func_code_index": [
497,
581
]
} | 5,899 |
tokenCustody | tokenCustody.sol | 0x5456ceeafed34dd82231f73610155f90f467377f | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | /**
* @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.6+commit.6c089d02 | None | ipfs://b5e33be562957b6c8fc64c00bbdf31f13085800605a600d627d38a23e7249c3e | {
"func_code_index": [
1139,
1292
]
} | 5,900 |
tokenCustody | tokenCustody.sol | 0x5456ceeafed34dd82231f73610155f90f467377f | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | /**
* @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.6+commit.6c089d02 | None | ipfs://b5e33be562957b6c8fc64c00bbdf31f13085800605a600d627d38a23e7249c3e | {
"func_code_index": [
1442,
1691
]
} | 5,901 |
tokenCustody | tokenCustody.sol | 0x5456ceeafed34dd82231f73610155f90f467377f | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://b5e33be562957b6c8fc64c00bbdf31f13085800605a600d627d38a23e7249c3e | {
"func_code_index": [
259,
445
]
} | 5,902 |
tokenCustody | tokenCustody.sol | 0x5456ceeafed34dd82231f73610155f90f467377f | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://b5e33be562957b6c8fc64c00bbdf31f13085800605a600d627d38a23e7249c3e | {
"func_code_index": [
723,
864
]
} | 5,903 |
tokenCustody | tokenCustody.sol | 0x5456ceeafed34dd82231f73610155f90f467377f | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://b5e33be562957b6c8fc64c00bbdf31f13085800605a600d627d38a23e7249c3e | {
"func_code_index": [
1162,
1359
]
} | 5,904 |
tokenCustody | tokenCustody.sol | 0x5456ceeafed34dd82231f73610155f90f467377f | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://b5e33be562957b6c8fc64c00bbdf31f13085800605a600d627d38a23e7249c3e | {
"func_code_index": [
1613,
2089
]
} | 5,905 |
tokenCustody | tokenCustody.sol | 0x5456ceeafed34dd82231f73610155f90f467377f | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | None | ipfs://b5e33be562957b6c8fc64c00bbdf31f13085800605a600d627d38a23e7249c3e | {
"func_code_index": [
2560,
2697
]
} | 5,906 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.