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
TokenICBX
TokenERC20.sol
0x05fbd3b849a87c9608a2252d095d8cb818d0d239
Solidity
TokenERC20
contract TokenERC20 is SafeMath, Pausable{ // Public variables of the token address public manager; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This cr...
balanceOf
function balanceOf(address tokenOwner) public view returns (uint) { return balanceOf[tokenOwner]; }
/** * * Get balance of 'tokenOwner' * * @param tokenOwner The address of 'tokenOwner' */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3
{ "func_code_index": [ 1770, 1888 ] }
13,800
TokenICBX
TokenERC20.sol
0x05fbd3b849a87c9608a2252d095d8cb818d0d239
Solidity
TokenERC20
contract TokenERC20 is SafeMath, Pausable{ // Public variables of the token address public manager; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This cr...
_transfer
function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != address(0x0)); // Check if the sender has enough require(balanceOf[_from] >= _value); // Check for overflows require(balanceOf[_to] + _value >= balan...
/** * Internal transfer, only can be called by this contract */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3
{ "func_code_index": [ 1972, 2957 ] }
13,801
TokenICBX
TokenERC20.sol
0x05fbd3b849a87c9608a2252d095d8cb818d0d239
Solidity
TokenERC20
contract TokenERC20 is SafeMath, Pausable{ // Public variables of the token address public manager; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This cr...
transfer
function transfer(address _to, uint256 _value) whenNotPaused public returns (bool success) { _transfer(msg.sender, _to, _value); return true; }
/** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3
{ "func_code_index": [ 3163, 3334 ] }
13,802
TokenICBX
TokenERC20.sol
0x05fbd3b849a87c9608a2252d095d8cb818d0d239
Solidity
TokenERC20
contract TokenERC20 is SafeMath, Pausable{ // Public variables of the token address public manager; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This cr...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/** * Transfer tokens from other address * * Send `_value` tokens to `_to` on behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3
{ "func_code_index": [ 3611, 3912 ] }
13,803
TokenICBX
TokenERC20.sol
0x05fbd3b849a87c9608a2252d095d8cb818d0d239
Solidity
TokenERC20
contract TokenERC20 is SafeMath, Pausable{ // Public variables of the token address public manager; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This cr...
approve
function approve(address _spender, uint256 _value) whenNotPaused public returns (bool success) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
/** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens on your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3
{ "func_code_index": [ 4176, 4411 ] }
13,804
TokenICBX
TokenERC20.sol
0x05fbd3b849a87c9608a2252d095d8cb818d0d239
Solidity
TokenERC20
contract TokenERC20 is SafeMath, Pausable{ // Public variables of the token address public manager; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This cr...
allowance
function allowance(address _owner, address _spender) public view returns (uint) { return allowance[_owner][_spender]; }
// This function returns the current approved number of tokens by an '_owner' to a specific '_spender', // as set in the approve function.
LineComment
v0.4.25+commit.59dbf8f1
bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3
{ "func_code_index": [ 4565, 4703 ] }
13,805
TokenICBX
TokenERC20.sol
0x05fbd3b849a87c9608a2252d095d8cb818d0d239
Solidity
TokenERC20
contract TokenERC20 is SafeMath, Pausable{ // Public variables of the token address public manager; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This cr...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes memory _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, address(this), _extraData); return true; } ...
/** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens on your behalf, and then ping the contract about it * * @param _spender The address authorized to spend * @param _value the max amount they can spend * @param _extraData some extra information to s...
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3
{ "func_code_index": [ 5097, 5447 ] }
13,806
TokenICBX
TokenERC20.sol
0x05fbd3b849a87c9608a2252d095d8cb818d0d239
Solidity
TokenERC20
contract TokenERC20 is SafeMath, Pausable{ // Public variables of the token address public manager; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This cr...
burn
function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough // balanceOf[msg.sender] -= _value; // Subtract from the sender balanceOf[msg.sender] = safeSub(balanceOf[msg.sender], _value); // totalSupply -= _va...
/** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3
{ "func_code_index": [ 5617, 6128 ] }
13,807
TokenICBX
TokenERC20.sol
0x05fbd3b849a87c9608a2252d095d8cb818d0d239
Solidity
TokenERC20
contract TokenERC20 is SafeMath, Pausable{ // Public variables of the token address public manager; string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This cr...
burnFrom
function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance // balanceOf[_from] -= _value; // ...
/** * Destroy tokens from other account * * Remove `_value` tokens from the system irreversibly on behalf of `_from`. * * @param _from the address of the sender * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://e9b9e7559d777b98e00e663b349a3e1e853411beca5e1876a75bb10715af7dc3
{ "func_code_index": [ 6386, 7214 ] }
13,808
SportFeed
contracts/SportFeed.sol
0xeec8109730111fe1f17d55a814e831a1a211e3a7
Solidity
SportFeed
contract SportFeed is ChainlinkClient, Owned { using Chainlink for Chainlink.Request; address private oracle; bytes32 private jobId; uint256 private fee; bytes32 public result; string public resultString; string public firstPlace; string public secondPlace; string public thirdPlac...
setResult
function setResult(bytes32 _result) external onlyOwner { _setResult(_result); }
//0x5b22555341222c2243484e222c22474252225d00000000000000000000000000
LineComment
v0.5.16+commit.9c3226ce
{ "func_code_index": [ 1714, 1809 ] }
13,809
SportFeed
contracts/SportFeed.sol
0xeec8109730111fe1f17d55a814e831a1a211e3a7
Solidity
SportFeed
contract SportFeed is ChainlinkClient, Owned { using Chainlink for Chainlink.Request; address private oracle; bytes32 private jobId; uint256 private fee; bytes32 public result; string public resultString; string public firstPlace; string public secondPlace; string public thirdPlac...
requestSportsWinner
function requestSportsWinner() external { Chainlink.Request memory req = buildChainlinkRequest(jobId, address(this), this.fulfillSportsWinner.selector); req.add("endpoint", endpoint); req.add("season", season); req.add("event", eventSport); req.add("gender", gender); sendChainlinkRequestTo(oracl...
/** * Initial request */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
{ "func_code_index": [ 2269, 2636 ] }
13,810
SportFeed
contracts/SportFeed.sol
0xeec8109730111fe1f17d55a814e831a1a211e3a7
Solidity
SportFeed
contract SportFeed is ChainlinkClient, Owned { using Chainlink for Chainlink.Request; address private oracle; bytes32 private jobId; uint256 private fee; bytes32 public result; string public resultString; string public firstPlace; string public secondPlace; string public thirdPlac...
fulfillSportsWinner
function fulfillSportsWinner(bytes32 _requestId, bytes32 _result) external recordChainlinkFulfillment(_requestId) { _setResult(_result); }
/** * Callback function */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
{ "func_code_index": [ 2679, 2833 ] }
13,811
SDT
SDT.sol
0x7d60f21072b585351dfd5e8b17109458d97ec120
Solidity
SDT
contract SDT is ERC20("Stake DAO Token", "SDT"), Ownable { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); } }
// StakeDaoToken with Governance.
LineComment
mint
function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); }
/// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
NatSpecSingleLine
v0.6.7+commit.b8d736ae
None
{ "func_code_index": [ 156, 257 ] }
13,812
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 94, 154 ] }
13,813
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 237, 310 ] }
13,814
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 534, 616 ] }
13,815
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 895, 983 ] }
13,816
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 1647, 1726 ] }
13,817
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 2039, 2141 ] }
13,818
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 259, 445 ] }
13,819
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 723, 864 ] }
13,820
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 1162, 1359 ] }
13,821
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 1613, 2089 ] }
13,822
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 2560, 2697 ] }
13,823
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 3188, 3471 ] }
13,824
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 3931, 4066 ] }
13,825
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 4546, 4717 ] }
13,826
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 606, 1230 ] }
13,827
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 2160, 2562 ] }
13,828
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 3318, 3496 ] }
13,829
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 3721, 3922 ] }
13,830
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 4292, 4523 ] }
13,831
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 4774, 5095 ] }
13,832
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 497, 581 ] }
13,833
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 1139, 1292 ] }
13,834
ZeroXMRI
ZeroXMRI.sol
0x6397dbf15990df96267cf94853dded61641ac2e3
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
Unlicense
ipfs://57ca0073cc29aa0fdf1eec845f03334cb981a533f4de98c6a024745d57d78543
{ "func_code_index": [ 1442, 1691 ] }
13,835
TradexOne
TradexOne.sol
0x7060c793300a9fffe5ba6d2403bb3c229c13ea9c
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `...
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.22+commit.4cb486ee
bzzr://59b1648e8dd21966ea4e98d93ab72922a39e3cd485d86a76b4c17ce019393528
{ "func_code_index": [ 56, 118 ] }
13,836
TradexOne
TradexOne.sol
0x7060c793300a9fffe5ba6d2403bb3c229c13ea9c
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.22+commit.4cb486ee
bzzr://59b1648e8dd21966ea4e98d93ab72922a39e3cd485d86a76b4c17ce019393528
{ "func_code_index": [ 222, 297 ] }
13,837
TradexOne
TradexOne.sol
0x7060c793300a9fffe5ba6d2403bb3c229c13ea9c
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `...
transfer
function transfer(address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.22+commit.4cb486ee
bzzr://59b1648e8dd21966ea4e98d93ab72922a39e3cd485d86a76b4c17ce019393528
{ "func_code_index": [ 526, 601 ] }
13,838
TradexOne
TradexOne.sol
0x7060c793300a9fffe5ba6d2403bb3c229c13ea9c
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.22+commit.4cb486ee
bzzr://59b1648e8dd21966ea4e98d93ab72922a39e3cd485d86a76b4c17ce019393528
{ "func_code_index": [ 914, 1008 ] }
13,839
TradexOne
TradexOne.sol
0x7060c793300a9fffe5ba6d2403bb3c229c13ea9c
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `...
approve
function approve(address _spender, uint256 _value) returns (bool success) {}
/// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.22+commit.4cb486ee
bzzr://59b1648e8dd21966ea4e98d93ab72922a39e3cd485d86a76b4c17ce019393528
{ "func_code_index": [ 1284, 1363 ] }
13,840
TradexOne
TradexOne.sol
0x7060c793300a9fffe5ba6d2403bb3c229c13ea9c
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `...
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.22+commit.4cb486ee
bzzr://59b1648e8dd21966ea4e98d93ab72922a39e3cd485d86a76b4c17ce019393528
{ "func_code_index": [ 1565, 1660 ] }
13,841
Crowdsale
Crowdsale.sol
0x9b2e81b42907e2bbd2bd76e36ba8ce1911db537e
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) returns (bool) { require(_to != address(0)); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; ...
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://560d1b2c1d5e69a3fe40bfea535eae5f4d75732d8ad5f6cc5e01a3d6c02b550c
{ "func_code_index": [ 296, 666 ] }
13,842
Crowdsale
Crowdsale.sol
0x9b2e81b42907e2bbd2bd76e36ba8ce1911db537e
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://560d1b2c1d5e69a3fe40bfea535eae5f4d75732d8ad5f6cc5e01a3d6c02b550c
{ "func_code_index": [ 893, 1014 ] }
13,843
Crowdsale
Crowdsale.sol
0x9b2e81b42907e2bbd2bd76e36ba8ce1911db537e
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you wan...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool) { require(_to != address(0)); var _allowance = allowed[_from][msg.sender]; // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met // require (_value <= _allowance); balan...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://560d1b2c1d5e69a3fe40bfea535eae5f4d75732d8ad5f6cc5e01a3d6c02b550c
{ "func_code_index": [ 420, 1002 ] }
13,844
Crowdsale
Crowdsale.sol
0x9b2e81b42907e2bbd2bd76e36ba8ce1911db537e
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you wan...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) returns (bool) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs...
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://560d1b2c1d5e69a3fe40bfea535eae5f4d75732d8ad5f6cc5e01a3d6c02b550c
{ "func_code_index": [ 1258, 1846 ] }
13,845
Crowdsale
Crowdsale.sol
0x9b2e81b42907e2bbd2bd76e36ba8ce1911db537e
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you wan...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://560d1b2c1d5e69a3fe40bfea535eae5f4d75732d8ad5f6cc5e01a3d6c02b550c
{ "func_code_index": [ 2194, 2344 ] }
13,846
Crowdsale
Crowdsale.sol
0x9b2e81b42907e2bbd2bd76e36ba8ce1911db537e
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you wan...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
increaseApproval
function increaseApproval (address _spender, uint _addedValue) returns (bool success) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://560d1b2c1d5e69a3fe40bfea535eae5f4d75732d8ad5f6cc5e01a3d6c02b550c
{ "func_code_index": [ 2620, 2916 ] }
13,847
Crowdsale
Crowdsale.sol
0x9b2e81b42907e2bbd2bd76e36ba8ce1911db537e
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://560d1b2c1d5e69a3fe40bfea535eae5f4d75732d8ad5f6cc5e01a3d6c02b550c
{ "func_code_index": [ 285, 350 ] }
13,848
Crowdsale
Crowdsale.sol
0x9b2e81b42907e2bbd2bd76e36ba8ce1911db537e
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) onlyOwner { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.16+commit.d7661dd9
bzzr://560d1b2c1d5e69a3fe40bfea535eae5f4d75732d8ad5f6cc5e01a3d6c02b550c
{ "func_code_index": [ 717, 912 ] }
13,849
AirDropContract
AirDropContract.sol
0x8b8aaf37e44e87cc1285a822c767104b28dc0d58
Solidity
AirDropContract
contract AirDropContract is Ownable { using SafeMath for uint256; Erc20Token public tokenRewardContract; uint256 public totalAirDropToken; address public collectorAddress; mapping(address => uint256) public balanceOf; event FundTransfer(address backer, uint256 amount, bool isCo...
function() payable public { require(collectorAddress != 0x0); require(totalAirDropToken > 0); uint256 weiAmount = msg.value; uint256 amount = weiAmount.mul(23000); totalAirDropToken = totalAirDropToken.sub(amount.div(1e18)); tokenRewardContract.transfer(msg.sender, amount); addr...
/** * Fallback function * * The function without name is the default function that is called whenever anyone sends funds to a contract */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://7f76de3508cad5c9a9cb8af87fcb03254f62ae968ccab92b39e02f25bcea5bd7
{ "func_code_index": [ 965, 1450 ] }
13,850
AirDropContract
AirDropContract.sol
0x8b8aaf37e44e87cc1285a822c767104b28dc0d58
Solidity
AirDropContract
contract AirDropContract is Ownable { using SafeMath for uint256; Erc20Token public tokenRewardContract; uint256 public totalAirDropToken; address public collectorAddress; mapping(address => uint256) public balanceOf; event FundTransfer(address backer, uint256 amount, bool isCo...
additional
function additional(uint256 amount) public onlyOwner { require(amount > 0); totalAirDropToken = totalAirDropToken.add(amount); emit Additional(amount); }
/** * Add airdrop tokens */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://7f76de3508cad5c9a9cb8af87fcb03254f62ae968ccab92b39e02f25bcea5bd7
{ "func_code_index": [ 1499, 1691 ] }
13,851
AirDropContract
AirDropContract.sol
0x8b8aaf37e44e87cc1285a822c767104b28dc0d58
Solidity
AirDropContract
contract AirDropContract is Ownable { using SafeMath for uint256; Erc20Token public tokenRewardContract; uint256 public totalAirDropToken; address public collectorAddress; mapping(address => uint256) public balanceOf; event FundTransfer(address backer, uint256 amount, bool isCo...
burn
function burn(uint256 amount) public onlyOwner { require(amount > 0); totalAirDropToken = totalAirDropToken.sub(amount); emit Burn(amount); }
/** * burn airdrop tokens */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://7f76de3508cad5c9a9cb8af87fcb03254f62ae968ccab92b39e02f25bcea5bd7
{ "func_code_index": [ 1739, 1919 ] }
13,852
AirDropContract
AirDropContract.sol
0x8b8aaf37e44e87cc1285a822c767104b28dc0d58
Solidity
AirDropContract
contract AirDropContract is Ownable { using SafeMath for uint256; Erc20Token public tokenRewardContract; uint256 public totalAirDropToken; address public collectorAddress; mapping(address => uint256) public balanceOf; event FundTransfer(address backer, uint256 amount, bool isCo...
modifyCollectorAddress
function modifyCollectorAddress(address newCollectorAddress) public onlyOwner returns (bool) { collectorAddress = newCollectorAddress; }
/** * The owner of the contract modifies the recovery address of the token */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://7f76de3508cad5c9a9cb8af87fcb03254f62ae968ccab92b39e02f25bcea5bd7
{ "func_code_index": [ 2020, 2175 ] }
13,853
AirDropContract
AirDropContract.sol
0x8b8aaf37e44e87cc1285a822c767104b28dc0d58
Solidity
AirDropContract
contract AirDropContract is Ownable { using SafeMath for uint256; Erc20Token public tokenRewardContract; uint256 public totalAirDropToken; address public collectorAddress; mapping(address => uint256) public balanceOf; event FundTransfer(address backer, uint256 amount, bool isCo...
collectAirDropTokenBack
function collectAirDropTokenBack(uint256 airDropTokenNum) public onlyOwner { require(totalAirDropToken > 0); require(collectorAddress != 0x0); if (airDropTokenNum > 0) { tokenRewardContract.transfer(collectorAddress, airDropTokenNum * 1e18); } else { tokenRewardContract.transfer(...
/** * Recovery of remaining tokens */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://7f76de3508cad5c9a9cb8af87fcb03254f62ae968ccab92b39e02f25bcea5bd7
{ "func_code_index": [ 2234, 2755 ] }
13,854
AirDropContract
AirDropContract.sol
0x8b8aaf37e44e87cc1285a822c767104b28dc0d58
Solidity
AirDropContract
contract AirDropContract is Ownable { using SafeMath for uint256; Erc20Token public tokenRewardContract; uint256 public totalAirDropToken; address public collectorAddress; mapping(address => uint256) public balanceOf; event FundTransfer(address backer, uint256 amount, bool isCo...
collectEtherBack
function collectEtherBack() public onlyOwner { uint256 b = address(this).balance; require(b > 0); require(collectorAddress != 0x0); collectorAddress.transfer(b); }
/** * Recovery donated ether */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://7f76de3508cad5c9a9cb8af87fcb03254f62ae968ccab92b39e02f25bcea5bd7
{ "func_code_index": [ 2808, 3019 ] }
13,855
AirDropContract
AirDropContract.sol
0x8b8aaf37e44e87cc1285a822c767104b28dc0d58
Solidity
AirDropContract
contract AirDropContract is Ownable { using SafeMath for uint256; Erc20Token public tokenRewardContract; uint256 public totalAirDropToken; address public collectorAddress; mapping(address => uint256) public balanceOf; event FundTransfer(address backer, uint256 amount, bool isCo...
getTokenBalance
function getTokenBalance(address tokenAddress, address who) view public returns (uint){ Erc20Token t = Erc20Token(tokenAddress); return t.balanceOf(who); }
/** * Get the tokenAddress token balance of someone */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://7f76de3508cad5c9a9cb8af87fcb03254f62ae968ccab92b39e02f25bcea5bd7
{ "func_code_index": [ 3095, 3278 ] }
13,856
AirDropContract
AirDropContract.sol
0x8b8aaf37e44e87cc1285a822c767104b28dc0d58
Solidity
AirDropContract
contract AirDropContract is Ownable { using SafeMath for uint256; Erc20Token public tokenRewardContract; uint256 public totalAirDropToken; address public collectorAddress; mapping(address => uint256) public balanceOf; event FundTransfer(address backer, uint256 amount, bool isCo...
collectOtherTokens
function collectOtherTokens(address tokenContract) onlyOwner public returns (bool) { Erc20Token t = Erc20Token(tokenContract); uint256 b = t.balanceOf(address(this)); return t.transfer(collectorAddress, b); }
/** * Recycle other ERC20 tokens */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://7f76de3508cad5c9a9cb8af87fcb03254f62ae968ccab92b39e02f25bcea5bd7
{ "func_code_index": [ 3335, 3582 ] }
13,857
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 1449, 1537 ] }
13,858
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 1651, 1743 ] }
13,859
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 2376, 2464 ] }
13,860
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 2524, 2629 ] }
13,861
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 2687, 2811 ] }
13,862
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 3029, 3209 ] }
13,863
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 3267, 3423 ] }
13,864
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 3565, 3739 ] }
13,865
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amou...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 4208, 4534 ] }
13,866
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 4938, 5161 ] }
13,867
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 5659, 5933 ] }
13,868
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); ...
/*function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _...
Comment
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 6973, 7996 ] }
13,869
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfe...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 8274, 8657 ] }
13,870
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _to...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 8984, 9407 ] }
13,871
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amoun...
/** * @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.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 9973, 10324 ] }
13,872
StakingPorkchop
Porkchop.sol
0xc3957869f337687d22896a54e596854ad1654b49
Solidity
Porkchop
contract Porkchop is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; event MultiMint(uint256 _totalSupply); uint256 private _totalSupp...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://940fc8ad6342ec14a0c54677cdad14e82d763d9afc83567f59cb7a019c0ef346
{ "func_code_index": [ 10924, 11021 ] }
13,873
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
Ownable
contract Ownable { // EVENTS event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); // PUBLIC FUNCTIONS /// @dev The Ownable constructor sets the original `owner` of the contract to the sender account. function Ownable() { owner = msg.sender; } /// @dev ...
/// @title Ownable /// @dev The Ownable contract has an owner address, and provides basic authorization control /// functions, this simplifies the implementation of "user permissions".
NatSpecSingleLine
Ownable
function Ownable() { owner = msg.sender; }
/// @dev The Ownable constructor sets the original `owner` of the contract to the sender account.
NatSpecSingleLine
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 253, 306 ] }
13,874
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
Ownable
contract Ownable { // EVENTS event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); // PUBLIC FUNCTIONS /// @dev The Ownable constructor sets the original `owner` of the contract to the sender account. function Ownable() { owner = msg.sender; } /// @dev ...
/// @title Ownable /// @dev The Ownable contract has an owner address, and provides basic authorization control /// functions, this simplifies the implementation of "user permissions".
NatSpecSingleLine
transferOwnership
function transferOwnership(address newOwner) onlyOwner public { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; }
/// @dev Allows the current owner to transfer control of the contract to a newOwner. /// @param newOwner The address to transfer ownership to.
NatSpecSingleLine
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 458, 634 ] }
13,875
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DaoOwnable
contract DaoOwnable is Ownable{ address public dao = address(0); event DaoOwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Throws if called by any account other than the dao. */ modifier onlyDao() { require(msg.sender == dao); ...
transferDao
function transferDao(address newDao) onlyOwner { require(newDao != address(0)); dao = newDao; DaoOwnershipTransferred(owner, newDao); }
/** * @dev Allows the current owner to transfer control of the contract to a newDao. * @param newDao The address to transfer ownership to. */
NatSpecMultiLine
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 618, 790 ] }
13,876
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistry
contract DSPRegistry is DSPTypeAware{ // This is the function that actually insert a record. function register(address key, DSPType dspType, bytes32[5] url, address recordOwner); // Updates the values of the given record. function updateUrl(address key, bytes32[5] url, address sender); func...
register
function register(address key, DSPType dspType, bytes32[5] url, address recordOwner);
// This is the function that actually insert a record.
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 99, 189 ] }
13,877
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistry
contract DSPRegistry is DSPTypeAware{ // This is the function that actually insert a record. function register(address key, DSPType dspType, bytes32[5] url, address recordOwner); // Updates the values of the given record. function updateUrl(address key, bytes32[5] url, address sender); func...
updateUrl
function updateUrl(address key, bytes32[5] url, address sender);
// Updates the values of the given record.
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 240, 309 ] }
13,878
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistry
contract DSPRegistry is DSPTypeAware{ // This is the function that actually insert a record. function register(address key, DSPType dspType, bytes32[5] url, address recordOwner); // Updates the values of the given record. function updateUrl(address key, bytes32[5] url, address sender); func...
unregister
function unregister(address key, address sender);
// Unregister a given record
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 408, 462 ] }
13,879
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistry
contract DSPRegistry is DSPTypeAware{ // This is the function that actually insert a record. function register(address key, DSPType dspType, bytes32[5] url, address recordOwner); // Updates the values of the given record. function updateUrl(address key, bytes32[5] url, address sender); func...
transfer
function transfer(address key, address newOwner, address sender);
// Transfer ownership of a given record.
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 511, 581 ] }
13,880
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistry
contract DSPRegistry is DSPTypeAware{ // This is the function that actually insert a record. function register(address key, DSPType dspType, bytes32[5] url, address recordOwner); // Updates the values of the given record. function updateUrl(address key, bytes32[5] url, address sender); func...
isRegistered
function isRegistered(address key) constant returns(bool);
// Tells whether a given key is registered.
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 698, 761 ] }
13,881
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistry
contract DSPRegistry is DSPTypeAware{ // This is the function that actually insert a record. function register(address key, DSPType dspType, bytes32[5] url, address recordOwner); // Updates the values of the given record. function updateUrl(address key, bytes32[5] url, address sender); func...
getAllDSP
function getAllDSP() constant returns(address[] addresses, DSPType[] dspTypes, bytes32[5][] urls, uint256[2][] karmas, address[] recordOwners) ;
//@dev Get list of all registered dsp //@return Returns array of addresses registered as DSP with register times
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 1033, 1182 ] }
13,882
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistryImpl
contract DSPRegistryImpl is DSPRegistry, DaoOwnable { uint public creationTime = now; // This struct keeps all data for a DSP. struct DSP { // Keeps the address of this record creator. address owner; // Keeps the time when this record was created. uint time; ...
register
function register(address key, DSPType dspType, bytes32[5] url, address recordOwner) onlyDaoOrOwner { require(records[key].time == 0); records[key].time = now; records[key].owner = recordOwner; records[key].keysIndex = keys.length; records[key].dspAddress = key; records[key].dspType = dspT...
// This is the function that actually insert a record.
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 885, 1363 ] }
13,883
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistryImpl
contract DSPRegistryImpl is DSPRegistry, DaoOwnable { uint public creationTime = now; // This struct keeps all data for a DSP. struct DSP { // Keeps the address of this record creator. address owner; // Keeps the time when this record was created. uint time; ...
updateUrl
function updateUrl(address key, bytes32[5] url, address sender) onlyDaoOrOwner { // Only the owner can update his record. require(records[key].owner == sender); records[key].url = url; }
// Updates the values of the given record.
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 1414, 1637 ] }
13,884
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistryImpl
contract DSPRegistryImpl is DSPRegistry, DaoOwnable { uint public creationTime = now; // This struct keeps all data for a DSP. struct DSP { // Keeps the address of this record creator. address owner; // Keeps the time when this record was created. uint time; ...
unregister
function unregister(address key, address sender) onlyDaoOrOwner { require(records[key].owner == sender); uint keysIndex = records[key].keysIndex; delete records[key]; numRecords--; keys[keysIndex] = keys[keys.length - 1]; records[keys[keysIndex]].keysIndex = keysIndex; keys.length--; ...
// Unregister a given record
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 1867, 2228 ] }
13,885
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistryImpl
contract DSPRegistryImpl is DSPRegistry, DaoOwnable { uint public creationTime = now; // This struct keeps all data for a DSP. struct DSP { // Keeps the address of this record creator. address owner; // Keeps the time when this record was created. uint time; ...
transfer
function transfer(address key, address newOwner, address sender) onlyDaoOrOwner { require(records[key].owner == sender); records[key].owner = newOwner; }
// Transfer ownership of a given record.
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 2277, 2458 ] }
13,886
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistryImpl
contract DSPRegistryImpl is DSPRegistry, DaoOwnable { uint public creationTime = now; // This struct keeps all data for a DSP. struct DSP { // Keeps the address of this record creator. address owner; // Keeps the time when this record was created. uint time; ...
isRegistered
function isRegistered(address key) constant returns(bool) { return records[key].time != 0; }
// Tells whether a given key is registered.
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 2510, 2621 ] }
13,887
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistryImpl
contract DSPRegistryImpl is DSPRegistry, DaoOwnable { uint public creationTime = now; // This struct keeps all data for a DSP. struct DSP { // Keeps the address of this record creator. address owner; // Keeps the time when this record was created. uint time; ...
getOwner
function getOwner(address key) constant returns(address) { return records[key].owner; }
// Returns the owner of the given record. The owner could also be get // by using the function getDSP but in that case all record attributes // are returned.
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 3166, 3272 ] }
13,888
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistryImpl
contract DSPRegistryImpl is DSPRegistry, DaoOwnable { uint public creationTime = now; // This struct keeps all data for a DSP. struct DSP { // Keeps the address of this record creator. address owner; // Keeps the time when this record was created. uint time; ...
getTime
function getTime(address key) constant returns(uint) { return records[key].time; }
// Returns the registration time of the given record. The time could also // be get by using the function getDSP but in that case all record attributes // are returned.
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 3459, 3560 ] }
13,889
DSPRegistryImpl
DSPRegistryImpl.sol
0x83be80931a025c9e317ad140802edd01b2989bd7
Solidity
DSPRegistryImpl
contract DSPRegistryImpl is DSPRegistry, DaoOwnable { uint public creationTime = now; // This struct keeps all data for a DSP. struct DSP { // Keeps the address of this record creator. address owner; // Keeps the time when this record was created. uint time; ...
getAllDSP
function getAllDSP() constant returns(address[] addresses, DSPType[] dspTypes, bytes32[5][] urls, uint256[2][] karmas, address[] recordOwners) { addresses = new address[](numRecords); dspTypes = new DSPType[](numRecords); urls = new bytes32[5][](numRecords); karmas = new uint256[2][](numRecords); ...
//@dev Get list of all registered dsp //@return Returns array of addresses registered as DSP with register times
LineComment
v0.4.15+commit.bbb8e64f
bzzr://c0b251cbd181a6d7d6854be00b83699c73413243441f177ddb657fe5c57763dd
{ "func_code_index": [ 3686, 4396 ] }
13,890
ERC1155Sale
contracts/7_ERC1155Sale/ERC1155Sale.sol
0x617a2db5474b249f55339bcbf56dd5494076f840
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.5.16+commit.9c3226ce
{ "func_code_index": [ 374, 455 ] }
13,891
ERC1155Sale
contracts/7_ERC1155Sale/ERC1155Sale.sol
0x617a2db5474b249f55339bcbf56dd5494076f840
Solidity
IERC1155
contract IERC1155 is IERC165 { /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be msg.sender. The `_f...
/** @title ERC-1155 Multi Token Standard @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md Note: The ERC-165 identifier for this interface is 0xd9b67a26. */
NatSpecMultiLine
safeTransferFrom
function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _value, bytes calldata _data) external;
/** @notice Transfers `_value` amount of an `_id` from the `_from` address to the `_to` address specified (with safety call). @dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard). MUST revert if `_to` is the zero address. MUST re...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
{ "func_code_index": [ 3857, 3976 ] }
13,892
ERC1155Sale
contracts/7_ERC1155Sale/ERC1155Sale.sol
0x617a2db5474b249f55339bcbf56dd5494076f840
Solidity
IERC1155
contract IERC1155 is IERC165 { /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be msg.sender. The `_f...
/** @title ERC-1155 Multi Token Standard @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md Note: The ERC-165 identifier for this interface is 0xd9b67a26. */
NatSpecMultiLine
safeBatchTransferFrom
function safeBatchTransferFrom(address _from, address _to, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata _data) external;
/** @notice Transfers `_values` amount(s) of `_ids` from the `_from` address to the `_to` address specified (with safety call). @dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard). MUST revert if `_to` is the zero address. MUST ...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
{ "func_code_index": [ 5619, 5767 ] }
13,893
ERC1155Sale
contracts/7_ERC1155Sale/ERC1155Sale.sol
0x617a2db5474b249f55339bcbf56dd5494076f840
Solidity
IERC1155
contract IERC1155 is IERC165 { /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be msg.sender. The `_f...
/** @title ERC-1155 Multi Token Standard @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md Note: The ERC-165 identifier for this interface is 0xd9b67a26. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner, uint256 _id) external view returns (uint256);
/** @notice Get the balance of an account's Tokens. @param _owner The address of the token holder @param _id ID of the Token @return The _owner's balance of the Token type requested */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
{ "func_code_index": [ 6014, 6099 ] }
13,894
ERC1155Sale
contracts/7_ERC1155Sale/ERC1155Sale.sol
0x617a2db5474b249f55339bcbf56dd5494076f840
Solidity
IERC1155
contract IERC1155 is IERC165 { /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be msg.sender. The `_f...
/** @title ERC-1155 Multi Token Standard @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md Note: The ERC-165 identifier for this interface is 0xd9b67a26. */
NatSpecMultiLine
balanceOfBatch
function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids) external view returns (uint256[] memory);
/** @notice Get the balance of multiple account/token pairs @param _owners The addresses of the token holders @param _ids ID of the Tokens @return The _owner's balance of the Token types requested (i.e. balance for each (owner, id) pair) */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
{ "func_code_index": [ 6400, 6523 ] }
13,895
ERC1155Sale
contracts/7_ERC1155Sale/ERC1155Sale.sol
0x617a2db5474b249f55339bcbf56dd5494076f840
Solidity
IERC1155
contract IERC1155 is IERC165 { /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be msg.sender. The `_f...
/** @title ERC-1155 Multi Token Standard @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md Note: The ERC-165 identifier for this interface is 0xd9b67a26. */
NatSpecMultiLine
setApprovalForAll
function setApprovalForAll(address _operator, bool _approved) external;
/** @notice Enable or disable approval for a third party ("operator") to manage all of the caller's tokens. @dev MUST emit the ApprovalForAll event on success. @param _operator Address to add to the set of authorized operators @param _approved True if the operator is approved, false to revoke approval */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
{ "func_code_index": [ 6880, 6956 ] }
13,896
ERC1155Sale
contracts/7_ERC1155Sale/ERC1155Sale.sol
0x617a2db5474b249f55339bcbf56dd5494076f840
Solidity
IERC1155
contract IERC1155 is IERC165 { /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be msg.sender. The `_f...
/** @title ERC-1155 Multi Token Standard @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md Note: The ERC-165 identifier for this interface is 0xd9b67a26. */
NatSpecMultiLine
isApprovedForAll
function isApprovedForAll(address _owner, address _operator) external view returns (bool);
/** @notice Queries the approval status of an operator for a given owner. @param _owner The owner of the Tokens @param _operator Address of authorized operator @return True if the operator is approved, false if not */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
{ "func_code_index": [ 7238, 7333 ] }
13,897
ERC1155Sale
contracts/7_ERC1155Sale/ERC1155Sale.sol
0x617a2db5474b249f55339bcbf56dd5494076f840
Solidity
Context
contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (addres...
/* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending ...
Comment
_msgSender
function _msgSender() internal view returns (address payable) { return msg.sender; }
// solhint-disable-previous-line no-empty-blocks
LineComment
v0.5.16+commit.9c3226ce
{ "func_code_index": [ 265, 368 ] }
13,898
ERC1155Sale
contracts/7_ERC1155Sale/ERC1155Sale.sol
0x617a2db5474b249f55339bcbf56dd5494076f840
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functi...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
{ "func_code_index": [ 497, 581 ] }
13,899