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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*
* _Available since v2.4.0._
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
1180,
1377
]
} | 11,500 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
1623,
2099
]
} | 11,501 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
2562,
2699
]
} | 11,502 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
... | /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
3224,
3574
]
} | 11,503 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
4026,
4161
]
} | 11,504 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
4675,
4846
]
} | 11,505 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
94,
154
]
} | 11,506 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
237,
310
]
} | 11,507 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
534,
616
]
} | 11,508 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
895,
983
]
} | 11,509 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
1647,
1726
]
} | 11,510 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
2039,
2141
]
} | 11,511 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
299,
395
]
} | 11,512 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
453,
568
]
} | 11,513 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) public returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
776,
939
]
} | 11,514 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
997,
1136
]
} | 11,515 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) public returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
1278,
1435
]
} | 11,516 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amou... | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
1902,
2211
]
} | 11,517 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
2615,
2830
]
} | 11,518 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` c... | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
3328,
3594
]
} | 11,519 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _transfer | function _transfer(address sender, address recipient, uint256 amount) internal {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exc... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
4079,
4555
]
} | 11,520 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _mint | function _mint(address account, uint256 amount) internal {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
| /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
4831,
5144
]
} | 11,521 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _burn | function _burn(address account, uint256 amount) internal {
require(account != address(0), "ERC20: burn from the zero address");
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amo... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
5471,
5824
]
} | 11,522 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _approve | function _approve(address owner, address spender, uint256 amount) internal {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
| /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero... | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
6259,
6602
]
} | 11,523 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSup... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20Mintable}.
*
* TIP: For a detailed writeup see our guide
*... | NatSpecMultiLine | _burnFrom | function _burnFrom(address account, uint256 amount) internal {
_burn(account, amount);
_approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
}
| /**
* @dev Destroys `amount` tokens from `account`.`amount` is then deducted
* from the caller's allowance.
*
* See {_burn} and {_approve}.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
6783,
7020
]
} | 11,524 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20Burnable | contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public {
_burn(_msgSender(), amount);
}
/**
* @dev See {ERC20-_burnFrom}.
*/
function burnFrom(a... | /**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/ | NatSpecMultiLine | burn | function burn(uint256 amount) public {
_burn(_msgSender(), amount);
}
| /**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
152,
240
]
} | 11,525 |
offerToken | offerToken.sol | 0xab88d08f5b47b685b046ba89a4981d0e17e406ce | Solidity | ERC20Burnable | contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public {
_burn(_msgSender(), amount);
}
/**
* @dev See {ERC20-_burnFrom}.
*/
function burnFrom(a... | /**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/ | NatSpecMultiLine | burnFrom | function burnFrom(address account, uint256 amount) public {
_burnFrom(account, amount);
}
| /**
* @dev See {ERC20-_burnFrom}.
*/ | NatSpecMultiLine | v0.5.9+commit.e560f70d | MIT | bzzr://02c3d18c09bd1e6f1d39ae8cbc2ce5667204f54b165ea241c0d88e4ecd00a51a | {
"func_code_index": [
297,
405
]
} | 11,526 |
BeaconProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0xb31b7bac13041a90aa9907611f3736485e83a7e0 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
/... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | _delegate | function _delegate(address implementation) internal virtual {
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, ca... | /**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
222,
1121
]
} | 11,527 | ||
BeaconProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0xb31b7bac13041a90aa9907611f3736485e83a7e0 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
/... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | _implementation | function _implementation() internal view virtual returns (address);
| /**
* @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
* and {_fallback} should delegate.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1300,
1371
]
} | 11,528 | ||
BeaconProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0xb31b7bac13041a90aa9907611f3736485e83a7e0 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
/... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | _fallback | function _fallback() internal virtual {
_beforeFallback();
_delegate(_implementation());
}
| /**
* @dev Delegates the current call to the address returned by `_implementation()`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1596,
1710
]
} | 11,529 | ||
BeaconProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0xb31b7bac13041a90aa9907611f3736485e83a7e0 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
/... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | /**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
* function in the contract matches the call data.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1903,
1971
]
} | 11,530 | ||||
BeaconProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0xb31b7bac13041a90aa9907611f3736485e83a7e0 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
/... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | /**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
* is empty.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
2127,
2194
]
} | 11,531 | ||||
BeaconProxy | @openzeppelin/contracts/proxy/Proxy.sol | 0xb31b7bac13041a90aa9907611f3736485e83a7e0 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
/... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Ad... | NatSpecMultiLine | _beforeFallback | function _beforeFallback() internal virtual {}
| /**
* @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
* call, or as part of the Solidity `fallback` or `receive` functions.
*
* If overriden should call `super._beforeFallback()`.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
2471,
2521
]
} | 11,532 | ||
CatCoin | CatCoin.sol | 0xb87525c0de1d58264b55f7db04cbf5a5f7481b87 | Solidity | CatCoin | contract CatCoin is IERC20 {
//using SafeMath for uint256; // unnecessary lib
string public name = "뻘쭘이코인";
string public symbol = "BBOL";
uint8 public decimals = 18;
uint256 totalCoins;
mapping(address => uint256) balances;
// Admin Address
address public owner;
... | /**
* @title CatCoin implementation
* @author Willy Lee
*/ | NatSpecMultiLine | transferForMining | function transferForMining(address to) external isOwner {
withdrawCoins(VaultName[uint256(VaultEnum.mining)], to);
}
| /** @dev transfer mining coins to Megabit Exchanges address
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://4b1b2080f2d22c7190e72ec188831ab7a9a6c20a6d7b6218d01227c65ca59afd | {
"func_code_index": [
1966,
2101
]
} | 11,533 | |
CatCoin | CatCoin.sol | 0xb87525c0de1d58264b55f7db04cbf5a5f7481b87 | Solidity | CatCoin | contract CatCoin is IERC20 {
//using SafeMath for uint256; // unnecessary lib
string public name = "뻘쭘이코인";
string public symbol = "BBOL";
uint8 public decimals = 18;
uint256 totalCoins;
mapping(address => uint256) balances;
// Admin Address
address public owner;
... | /**
* @title CatCoin implementation
* @author Willy Lee
*/ | NatSpecMultiLine | withdrawForMkt | function withdrawForMkt(address to) external isOwner {
withdrawCoins(VaultName[uint256(VaultEnum.mkt)], to);
}
| /** @dev withdraw coins for marketing budget to specified address
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://4b1b2080f2d22c7190e72ec188831ab7a9a6c20a6d7b6218d01227c65ca59afd | {
"func_code_index": [
2188,
2317
]
} | 11,534 | |
CatCoin | CatCoin.sol | 0xb87525c0de1d58264b55f7db04cbf5a5f7481b87 | Solidity | CatCoin | contract CatCoin is IERC20 {
//using SafeMath for uint256; // unnecessary lib
string public name = "뻘쭘이코인";
string public symbol = "BBOL";
uint8 public decimals = 18;
uint256 totalCoins;
mapping(address => uint256) balances;
// Admin Address
address public owner;
... | /**
* @title CatCoin implementation
* @author Willy Lee
*/ | NatSpecMultiLine | withdrawForOp | function withdrawForOp(address to) external isOwner {
withdrawCoins(VaultName[uint256(VaultEnum.op)], to);
}
| /** @dev withdraw coins for maintenance cost to specified address
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://4b1b2080f2d22c7190e72ec188831ab7a9a6c20a6d7b6218d01227c65ca59afd | {
"func_code_index": [
2404,
2531
]
} | 11,535 | |
CatCoin | CatCoin.sol | 0xb87525c0de1d58264b55f7db04cbf5a5f7481b87 | Solidity | CatCoin | contract CatCoin is IERC20 {
//using SafeMath for uint256; // unnecessary lib
string public name = "뻘쭘이코인";
string public symbol = "BBOL";
uint8 public decimals = 18;
uint256 totalCoins;
mapping(address => uint256) balances;
// Admin Address
address public owner;
... | /**
* @title CatCoin implementation
* @author Willy Lee
*/ | NatSpecMultiLine | withdrawForTeam | function withdrawForTeam(address to) external isOwner {
uint256 balance = getVaultBalance(VaultEnum.team);
require(balance > 0);
require(now >= 1576594800); // lock to 2019-12-17
//require(now >= 1544761320); // test date for dev
balances[owner] += balance;
totalCoins += ... | /** @dev withdraw coins for Megabit team to specified address after locked date
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://4b1b2080f2d22c7190e72ec188831ab7a9a6c20a6d7b6218d01227c65ca59afd | {
"func_code_index": [
2628,
3056
]
} | 11,536 | |
CatCoin | CatCoin.sol | 0xb87525c0de1d58264b55f7db04cbf5a5f7481b87 | Solidity | CatCoin | contract CatCoin is IERC20 {
//using SafeMath for uint256; // unnecessary lib
string public name = "뻘쭘이코인";
string public symbol = "BBOL";
uint8 public decimals = 18;
uint256 totalCoins;
mapping(address => uint256) balances;
// Admin Address
address public owner;
... | /**
* @title CatCoin implementation
* @author Willy Lee
*/ | NatSpecMultiLine | transferSoldCoins | function transferSoldCoins(address to, uint256 amount) external isOwner {
require(balances[owner] >= amount);
require(getVaultBalance(VaultEnum.presale) >= amount);
balances[owner] -= amount;
balances[to] += amount;
setVaultBalance(VaultEnum.presale, getVaultBalance(VaultEnum.presale)... | /** @dev transfer sold(pre-sale) coins to specified address
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://4b1b2080f2d22c7190e72ec188831ab7a9a6c20a6d7b6218d01227c65ca59afd | {
"func_code_index": [
3133,
3541
]
} | 11,537 | |
CatCoin | CatCoin.sol | 0xb87525c0de1d58264b55f7db04cbf5a5f7481b87 | Solidity | CatCoin | contract CatCoin is IERC20 {
//using SafeMath for uint256; // unnecessary lib
string public name = "뻘쭘이코인";
string public symbol = "BBOL";
uint8 public decimals = 18;
uint256 totalCoins;
mapping(address => uint256) balances;
// Admin Address
address public owner;
... | /**
* @title CatCoin implementation
* @author Willy Lee
*/ | NatSpecMultiLine | withdrawCoins | function withdrawCoins(string vaultName, address to) private returns (uint256) {
uint256 balance = vault[vaultName];
require(balance > 0);
require(balances[owner] >= balance);
require(owner != to);
balances[owner] -= balance;
balances[to] += balance;
vault[vaultName] = 0;
... | /** @dev implementation of withdrawal
* @dev it is available once for each vault
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://4b1b2080f2d22c7190e72ec188831ab7a9a6c20a6d7b6218d01227c65ca59afd | {
"func_code_index": [
3646,
4084
]
} | 11,538 | |
CatCoin | CatCoin.sol | 0xb87525c0de1d58264b55f7db04cbf5a5f7481b87 | Solidity | CatCoin | contract CatCoin is IERC20 {
//using SafeMath for uint256; // unnecessary lib
string public name = "뻘쭘이코인";
string public symbol = "BBOL";
uint8 public decimals = 18;
uint256 totalCoins;
mapping(address => uint256) balances;
// Admin Address
address public owner;
... | /**
* @title CatCoin implementation
* @author Willy Lee
*/ | NatSpecMultiLine | setVaultBalance | function setVaultBalance(VaultEnum vaultNum, uint256 amount) private {
vault[VaultName[uint256(vaultNum)]] = convertToWei(amount);
}
| /** @dev private functions for manage vault
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://4b1b2080f2d22c7190e72ec188831ab7a9a6c20a6d7b6218d01227c65ca59afd | {
"func_code_index": [
5070,
5221
]
} | 11,539 | |
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
94,
154
]
} | 11,540 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
237,
310
]
} | 11,541 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
534,
616
]
} | 11,542 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
895,
983
]
} | 11,543 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
1647,
1726
]
} | 11,544 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
2039,
2141
]
} | 11,545 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
259,
445
]
} | 11,546 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
723,
864
]
} | 11,547 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
1162,
1359
]
} | 11,548 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
1613,
2089
]
} | 11,549 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
2560,
2697
]
} | 11,550 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
3188,
3471
]
} | 11,551 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
3931,
4066
]
} | 11,552 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
4546,
4717
]
} | 11,553 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
606,
1230
]
} | 11,554 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
2160,
2562
]
} | 11,555 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
3318,
3496
]
} | 11,556 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
3721,
3922
]
} | 11,557 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
4292,
4523
]
} | 11,558 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
4774,
5095
]
} | 11,559 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
497,
581
]
} | 11,560 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
1139,
1292
]
} | 11,561 | ||
ShugaInu | ShugaInu.sol | 0xc9bad7fee0c9348f60b453bb20b896c260c59564 | 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 | None | ipfs://e9e95033e8f531781e75ecff370a85822b78716ae2152e29658d0b810cedab64 | {
"func_code_index": [
1442,
1691
]
} | 11,562 | ||
IdolMintContract | contracts/VirtueToken.sol | 0x7b4b02372d8e54c1c0454d97f01d85ef203cdc5e | Solidity | VirtueToken | contract VirtueToken is ERC20Burnable {
uint public bondedSteth;
address public immutable idolMainAddress;
address public immutable idolMarketAddress;
struct bondSlice{
uint start_x;
int slope;
int intercept;
}
bondSlice[19] internal bondCurve;
// Curve below is for illustrative purposes, f... | /**
@notice VirtueToken initializes both the VIRTUE token and the VIRTUE token's associated bonding curve.
The bonding curve is a linear interpolation of an expontential curve.
The 'start_x' of the first bondSlice within bondCurve will be set to the
amount of Steth within the treasury post mint but prior to the dep... | NatSpecMultiLine | transferFrom | function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
// Automatically give the marketplace approval to transfer VIRTUE to save the user gas fees spent
// on approval.
if (msg.sender == idolMarketAddress){
_transfer(sender, recipient, amount... | /**
@notice transferFrom overrides ERC20's transferFrom function. It is written so that the
marketplace contract automatically has approval to transfer VIRTUE for other addresses.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | {
"func_code_index": [
3251,
3697
]
} | 11,563 | ||
IdolMintContract | contracts/VirtueToken.sol | 0x7b4b02372d8e54c1c0454d97f01d85ef203cdc5e | Solidity | VirtueToken | contract VirtueToken is ERC20Burnable {
uint public bondedSteth;
address public immutable idolMainAddress;
address public immutable idolMarketAddress;
struct bondSlice{
uint start_x;
int slope;
int intercept;
}
bondSlice[19] internal bondCurve;
// Curve below is for illustrative purposes, f... | /**
@notice VirtueToken initializes both the VIRTUE token and the VIRTUE token's associated bonding curve.
The bonding curve is a linear interpolation of an expontential curve.
The 'start_x' of the first bondSlice within bondCurve will be set to the
amount of Steth within the treasury post mint but prior to the dep... | NatSpecMultiLine | virtueBondCum | function virtueBondCum(uint _stethAmt)
public
view
returns (uint)
{
uint index;
for (index = 0; index <= 18; index++) {
if(bondCurve[index].start_x > _stethAmt){
break;
}
}
require(index > 0, "Amount is below the start of the Bonding Curve");
int current_slope = bondCurve[index-1].slope;
... | /**
@notice virtueBondCum is a helper function for getVirtueBondAmt. This function takes
an amount of stETH (_stethAmt) as input and returns the cumulative amount
of VIRTUE remaining in the bonding curve if the treasury had _stethAmt of Steth.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | {
"func_code_index": [
3966,
4440
]
} | 11,564 | ||
IdolMintContract | contracts/VirtueToken.sol | 0x7b4b02372d8e54c1c0454d97f01d85ef203cdc5e | Solidity | VirtueToken | contract VirtueToken is ERC20Burnable {
uint public bondedSteth;
address public immutable idolMainAddress;
address public immutable idolMarketAddress;
struct bondSlice{
uint start_x;
int slope;
int intercept;
}
bondSlice[19] internal bondCurve;
// Curve below is for illustrative purposes, f... | /**
@notice VirtueToken initializes both the VIRTUE token and the VIRTUE token's associated bonding curve.
The bonding curve is a linear interpolation of an expontential curve.
The 'start_x' of the first bondSlice within bondCurve will be set to the
amount of Steth within the treasury post mint but prior to the dep... | NatSpecMultiLine | incrementBondedSteth | function incrementBondedSteth(uint256 _incAmt)
external
onlyIdolMain
{
bondedSteth = bondedSteth + _incAmt;
}
| /**
@notice incrementBondedSteth updates the bondedSteth variable -- only the idol main contract
is allowed to call it.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | {
"func_code_index": [
4579,
4706
]
} | 11,565 | ||
IdolMintContract | contracts/VirtueToken.sol | 0x7b4b02372d8e54c1c0454d97f01d85ef203cdc5e | Solidity | VirtueToken | contract VirtueToken is ERC20Burnable {
uint public bondedSteth;
address public immutable idolMainAddress;
address public immutable idolMarketAddress;
struct bondSlice{
uint start_x;
int slope;
int intercept;
}
bondSlice[19] internal bondCurve;
// Curve below is for illustrative purposes, f... | /**
@notice VirtueToken initializes both the VIRTUE token and the VIRTUE token's associated bonding curve.
The bonding curve is a linear interpolation of an expontential curve.
The 'start_x' of the first bondSlice within bondCurve will be set to the
amount of Steth within the treasury post mint but prior to the dep... | NatSpecMultiLine | getVirtueBondAmt | function getVirtueBondAmt(uint256 _stethAmt)
public
view
returns (uint256)
{
return virtueBondCum(bondedSteth) - virtueBondCum(bondedSteth + _stethAmt);
}
| /**
@notice getVirtueBondAmt takes an amount of stETH as input and returns the amount of VIRTUE that the
bonding curve is currently offering in exchange for that amount of stETH.
@param _stethAmt - the amount of stETH that the user would like to exchange for VIRTUE via the
bonding curve.
@return (uint256) the amou... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | {
"func_code_index": [
5183,
5359
]
} | 11,566 | ||
NFT | @openzeppelin/contracts/access/Ownable.sol | 0x48b8ef358f85179698cb5ed134dc0e8151e9324f | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | GNU GPLv3 | ipfs://1701ee30f937908fc8ee166be51710d820bc60273af49f29508173c420bba90a | {
"func_code_index": [
399,
491
]
} | 11,567 |
NFT | @openzeppelin/contracts/access/Ownable.sol | 0x48b8ef358f85179698cb5ed134dc0e8151e9324f | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | GNU GPLv3 | ipfs://1701ee30f937908fc8ee166be51710d820bc60273af49f29508173c420bba90a | {
"func_code_index": [
1050,
1149
]
} | 11,568 |
NFT | @openzeppelin/contracts/access/Ownable.sol | 0x48b8ef358f85179698cb5ed134dc0e8151e9324f | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | GNU GPLv3 | ipfs://1701ee30f937908fc8ee166be51710d820bc60273af49f29508173c420bba90a | {
"func_code_index": [
1299,
1496
]
} | 11,569 |
NFT | @openzeppelin/contracts/access/Ownable.sol | 0x48b8ef358f85179698cb5ed134dc0e8151e9324f | Solidity | NFT | contract NFT is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = .066 ether;
uint256 public maxSupply = 666;
uint256 public maxMintAmount = 10;
uint256 public nftPerAddressLi... | _baseURI | function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
| // internal | LineComment | v0.8.7+commit.e28d00a7 | GNU GPLv3 | ipfs://1701ee30f937908fc8ee166be51710d820bc60273af49f29508173c420bba90a | {
"func_code_index": [
806,
911
]
} | 11,570 | ||
NFT | @openzeppelin/contracts/access/Ownable.sol | 0x48b8ef358f85179698cb5ed134dc0e8151e9324f | Solidity | NFT | contract NFT is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = .066 ether;
uint256 public maxSupply = 666;
uint256 public maxMintAmount = 10;
uint256 public nftPerAddressLi... | mint | function mint(uint256 _mintAmount) public payable {
require(!paused, "the contract is paused");
uint256 supply = totalSupply();
require(_mintAmount > 0, "need to mint at least 1 NFT");
require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded");
require(supply + _mintAmount <= maxSupply... | // public | LineComment | v0.8.7+commit.e28d00a7 | GNU GPLv3 | ipfs://1701ee30f937908fc8ee166be51710d820bc60273af49f29508173c420bba90a | {
"func_code_index": [
927,
1861
]
} | 11,571 | ||
NFT | @openzeppelin/contracts/access/Ownable.sol | 0x48b8ef358f85179698cb5ed134dc0e8151e9324f | Solidity | NFT | contract NFT is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = .066 ether;
uint256 public maxSupply = 666;
uint256 public maxMintAmount = 10;
uint256 public nftPerAddressLi... | reveal | function reveal() public onlyOwner() {
revealed = true;
}
| //only owner | LineComment | v0.8.7+commit.e28d00a7 | GNU GPLv3 | ipfs://1701ee30f937908fc8ee166be51710d820bc60273af49f29508173c420bba90a | {
"func_code_index": [
2984,
3054
]
} | 11,572 | ||
JuicyTurd | @openzeppelin/contracts/access/Ownable.sol | 0xac7a0ba05095221d9dbbe75f3169ecbd5b95c50d | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://eae0bb478512996106a2f8e8a7e850fdce61ea407048c926ef33c91a3611d86d | {
"func_code_index": [
399,
491
]
} | 11,573 |
JuicyTurd | @openzeppelin/contracts/access/Ownable.sol | 0xac7a0ba05095221d9dbbe75f3169ecbd5b95c50d | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://eae0bb478512996106a2f8e8a7e850fdce61ea407048c926ef33c91a3611d86d | {
"func_code_index": [
1050,
1149
]
} | 11,574 |
JuicyTurd | @openzeppelin/contracts/access/Ownable.sol | 0xac7a0ba05095221d9dbbe75f3169ecbd5b95c50d | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://eae0bb478512996106a2f8e8a7e850fdce61ea407048c926ef33c91a3611d86d | {
"func_code_index": [
1299,
1496
]
} | 11,575 |
JuicyTurd | @openzeppelin/contracts/access/Ownable.sol | 0xac7a0ba05095221d9dbbe75f3169ecbd5b95c50d | Solidity | JuicyTurd | contract JuicyTurd is ERC721Enumerable, Ownable {
using Strings for uint256;
string baseURI;
string public baseExtension = ".json";
uint256 public cost = 0.003 ether;
uint256 public maxSupply = 10000;
uint256 public maxMintAmount = 10;
bool public paused = false;
bool public revealed = false;
... | _baseURI | function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
| // internal | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://eae0bb478512996106a2f8e8a7e850fdce61ea407048c926ef33c91a3611d86d | {
"func_code_index": [
626,
731
]
} | 11,576 | ||
JuicyTurd | @openzeppelin/contracts/access/Ownable.sol | 0xac7a0ba05095221d9dbbe75f3169ecbd5b95c50d | Solidity | JuicyTurd | contract JuicyTurd is ERC721Enumerable, Ownable {
using Strings for uint256;
string baseURI;
string public baseExtension = ".json";
uint256 public cost = 0.003 ether;
uint256 public maxSupply = 10000;
uint256 public maxMintAmount = 10;
bool public paused = false;
bool public revealed = false;
... | mint | function mint(uint256 _mintAmount) public payable {
uint256 supply = totalSupply();
require(!paused);
require(_mintAmount > 0);
require(_mintAmount <= maxMintAmount);
require(supply + _mintAmount <= maxSupply);
if (msg.sender != owner()) {
require(msg.value >= cost * _mintAmount);
}
for... | // public | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://eae0bb478512996106a2f8e8a7e850fdce61ea407048c926ef33c91a3611d86d | {
"func_code_index": [
747,
1183
]
} | 11,577 | ||
JuicyTurd | @openzeppelin/contracts/access/Ownable.sol | 0xac7a0ba05095221d9dbbe75f3169ecbd5b95c50d | Solidity | JuicyTurd | contract JuicyTurd is ERC721Enumerable, Ownable {
using Strings for uint256;
string baseURI;
string public baseExtension = ".json";
uint256 public cost = 0.003 ether;
uint256 public maxSupply = 10000;
uint256 public maxMintAmount = 10;
bool public paused = false;
bool public revealed = false;
... | reveal | function reveal() public onlyOwner {
revealed = true;
}
| //only owner | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://eae0bb478512996106a2f8e8a7e850fdce61ea407048c926ef33c91a3611d86d | {
"func_code_index": [
2059,
2127
]
} | 11,578 | ||
RewardsMX | contracts/CurveRewards.sol | 0x4a01524da788f8c33079b5c1803f9d89e55b3384 | Solidity | RewardsMX | contract RewardsMX is LPTokenWrapper, IRewardDistributionRecipient {
IERC20 public lfi = IERC20(0xf6d560d3134d20FF02BeF7dae61b1E873F45dFA1);
uint256 public constant DURATION = 7 days;
uint256 public starttime = 1599915600; //utc+8 2020-09-12 21:00:00
uint256 public periodFinish = 0;
uint256 p... | stake | function stake(uint256 amount) public updateReward(msg.sender) checkStart {
require(amount > 0, "Cannot stake 0");
super.stake(amount);
emit Staked(msg.sender, amount);
}
| // stake visibility is public as overriding LPTokenWrapper's stake() function | LineComment | v0.5.17+commit.d19bba13 | MIT | bzzr://66c982e23e7bd06bada698e1d8af65dd420f99aae7d34ff2e4a0f1132b87e2b2 | {
"func_code_index": [
2017,
2224
]
} | 11,579 | ||
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IERC165 | interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This f... | /**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/ | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) external view returns (bool);
| /**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
374,
455
]
} | 11,580 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | ERC165 | abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
} | /**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interface... | NatSpecMultiLine | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
| /**
* @dev See {IERC165-supportsInterface}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
103,
265
]
} | 11,581 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | Strings | library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toString | function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 ... | /**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
184,
912
]
} | 11,582 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | Strings | library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toHexString | function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
| /**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
1017,
1362
]
} | 11,583 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | Strings | library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT ... | /**
* @dev String operations.
*/ | NatSpecMultiLine | toHexString | function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
... | /**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
1485,
1941
]
} | 11,584 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IAccessControl | interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1... | /**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/ | NatSpecMultiLine | hasRole | function hasRole(bytes32 role, address account) external view returns (bool);
| /**
* @dev Returns `true` if `account` has been granted `role`.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
1239,
1321
]
} | 11,585 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IAccessControl | interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1... | /**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/ | NatSpecMultiLine | getRoleAdmin | function getRoleAdmin(bytes32 role) external view returns (bytes32);
| /**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
1519,
1592
]
} | 11,586 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IAccessControl | interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1... | /**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/ | NatSpecMultiLine | grantRole | function grantRole(bytes32 role, address account) external;
| /**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
1849,
1913
]
} | 11,587 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IAccessControl | interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1... | /**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/ | NatSpecMultiLine | revokeRole | function revokeRole(bytes32 role, address account) external;
| /**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
2153,
2218
]
} | 11,588 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IAccessControl | interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1... | /**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/ | NatSpecMultiLine | renounceRole | function renounceRole(bytes32 role, address account) external;
| /**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
2720,
2787
]
} | 11,589 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address owner) external view returns (uint256 balance);
| /**
* @dev Returns the number of tokens in ``owner``'s account.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
719,
798
]
} | 11,590 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | ownerOf | function ownerOf(uint256 tokenId) external view returns (address owner);
| /**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
944,
1021
]
} | 11,591 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token mus... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
1733,
1850
]
} | 11,592 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | transferFrom | function transferFrom(
address from,
address to,
uint256 tokenId
) external;
| /**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If th... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
2376,
2489
]
} | 11,593 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | approve | function approve(address to, uint256 tokenId) external;
| /**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
2962,
3022
]
} | 11,594 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | getApproved | function getApproved(uint256 tokenId) external view returns (address operator);
| /**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
3176,
3260
]
} | 11,595 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | setApprovalForAll | function setApprovalForAll(address operator, bool _approved) external;
| /**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
3587,
3662
]
} | 11,596 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | isApprovedForAll | function isApprovedForAll(address owner, address operator) external view returns (bool);
| /**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
3813,
3906
]
} | 11,597 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IERC721 | interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
... | /**
* @dev Required interface of an ERC721 compliant contract.
*/ | NatSpecMultiLine | safeTransferFrom | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
| /**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {appro... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
4483,
4630
]
} | 11,598 |
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | IERC721Receiver | interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other valu... | /**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/ | NatSpecMultiLine | onERC721Received | function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
| /**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by ... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
528,
698
]
} | 11,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.