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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ChilliSwapRouter02 | /Users/osamabari/Documents/chilliswap/difx_dex_smart_contract/contracts/uniswapPeriph/libraries/UniswapV2Library.sol | 0x3194c01fc64eff0435082ce0aecbba0c5ea29a70 | Solidity | UniswapV2Library | library UniswapV2Library {
using SafeMath_1 for uint;
// returns sorted token addresses, used to handle return values from pairs sorted in this order
function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
require(tokenA != tokenB, 'ChilliSwapLib... | getAmountsIn | function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
require(path.length >= 2, 'ChilliSwapLibrary: INVALID_PATH');
amounts = new uint[](path.length);
amounts[amounts.length - 1] = amountOut;
for (uint i = path.length - 1; i > 0; i-... | // performs chained getAmountIn calculations on any number of pairs | LineComment | v0.7.5+commit.eb77ed08 | {
"func_code_index": [
4072,
4610
]
} | 25,800 | ||||
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
/... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
95,
524
]
} | 25,801 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
/... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
614,
914
]
} | 25,802 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
/... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
1034,
1162
]
} | 25,803 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
/... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
1232,
1378
]
} | 25,804 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | Ownable | contract Ownable {
address public owner;
address public pendingOwner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account... | /**
* @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) public onlyOwner {
require(_newOwner != address(0));
pendingOwner = _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.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
741,
895
]
} | 25,805 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | Ownable | contract Ownable {
address public owner;
address public pendingOwner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | acceptOwnership | function acceptOwnership() public {
require(msg.sender == pendingOwner);
emit OwnershipTransferred(owner, pendingOwner);
owner = pendingOwner;
pendingOwner = address(0);
}
| /**
* @dev Grants ownership to pendingOwner.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
962,
1179
]
} | 25,806 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | Support | contract Support is Ownable {
mapping(address => bool) public supportList;
event SupportAdded(address indexed _who);
event SupportRemoved(address indexed _who);
/**
* @dev Throws if called by any account other than the supportList or owner.
*/
modifier supportOrOwner {
re... | /**
* @title Support
* @dev Provides authorization control to Support.
*/ | NatSpecMultiLine | addSupport | function addSupport(address _who) public onlyOwner {
require(_who != address(0));
require(_who != owner);
require(!supportList[_who]);
supportList[_who] = true;
emit SupportAdded(_who);
}
| /**
* @dev Allows current owner to grant extended contract access to _who .
* @param _who The address to change permissions.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
545,
787
]
} | 25,807 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | Support | contract Support is Ownable {
mapping(address => bool) public supportList;
event SupportAdded(address indexed _who);
event SupportRemoved(address indexed _who);
/**
* @dev Throws if called by any account other than the supportList or owner.
*/
modifier supportOrOwner {
re... | /**
* @title Support
* @dev Provides authorization control to Support.
*/ | NatSpecMultiLine | removeSupport | function removeSupport(address _who) public onlyOwner {
require(supportList[_who]);
supportList[_who] = false;
emit SupportRemoved(_who);
}
| /**
* @dev Allows current owner to revoke extended contract access from _who .
* @param _who The address to change permissions.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
941,
1117
]
} | 25,808 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return totalSupply_;
}
| /**
* @dev total number of tokens in existence
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
211,
307
]
} | 25,809 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
emit Transfer(msg.sender, _to, _value);
return t... | /**
* @dev Transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
475,
835
]
} | 25,810 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
/**
* @dev total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256) {
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.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
1051,
1163
]
} | 25,811 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping(address => mapping(address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want t... | /**
* @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
)
public
returns (bool)
{
require(_from != address(0));
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from]... | /**
* @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.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
413,
1002
]
} | 25,812 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping(address => mapping(address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want t... | /**
* @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) public returns (bool) {
require(_spender != address(0));
require(_value <= balances[msg.sender]);
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
1646,
1951
]
} | 25,813 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping(address => mapping(address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want t... | /**
* @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
)
public
view
returns (uint256)
{
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.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
2287,
2483
]
} | 25,814 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping(address => mapping(address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want t... | /**
* @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,
uint256 _addedValue
)
public
returns (bool)
{
require(_spender != address(0));
require(allowed[msg.sender][_spender].add(_addedValue) <= balances[msg.sender]);
allowed[msg.sender][_spender] = (
allowed[msg.sender][_spender].add(_ad... | /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
* 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
* @param _spender T... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
2961,
3443
]
} | 25,815 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping(address => mapping(address => uint256)) internal allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want t... | /**
* @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 | decreaseApproval | function decreaseApproval(
address _spender,
uint256 _subtractedValue
)
public
returns (bool)
{
require(_spender != address(0));
uint oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
all... | /**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
*
* approve should be called when allowed[_spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spend... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
3934,
4484
]
} | 25,816 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | BurnableToken | contract BurnableToken is BasicToken, Support {
event Burn(address indexed burner, uint256 value);
/**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/
function burn(uint256 _value) supportOrOwner public {
_burn(msg.sender, _val... | /**
* @title Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | burn | function burn(uint256 _value) supportOrOwner public {
_burn(msg.sender, _value);
}
| /**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
231,
332
]
} | 25,817 | |
ImmiCoin | ImmiCoin.sol | 0x3fc678c80cbc668658a339a71aeea7c5b27c493b | Solidity | FreezeTokenCrowdsale | contract FreezeTokenCrowdsale is StandardToken, Support {
event CrowdsaleFinalized();
bool public freeze = true;
/**
* @dev Modifier to make a function available to everyone when crowd sale is over
*/
modifier freezeTransfer() {
require(freeze == false || msg.sender == own... | /**
* @title FreezeTokenCrowdsale
* @dev Freezes tokens transfer while crowdsale.
* Only owner and supportList are able to transfer tokens during crowd sale.
*/ | NatSpecMultiLine | finalizeCrowdsale | function finalizeCrowdsale() onlyOwner public {
require(freeze == true);
freeze = false;
emit CrowdsaleFinalized();
}
| /**
* @dev Has to be called when crowdsale is over to allow all users transfer tokens.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://6e55ffc4a004b555ffc526067ecbd7586c4e5bea20f5a44f3756edc5ba89c8cd | {
"func_code_index": [
481,
635
]
} | 25,818 | |
ZNTZLTDistributionTest | ZNTZLTDistributionTest.sol | 0x2b5b729b38a4ab3eb0cef9d1a5dbd3e8a16adcfa | Solidity | ZNTZLTDistributionTest | contract ZNTZLTDistributionTest is Ownable {
bool public isLive = true;
string public name = "ZNT-ZLT Distribution Test";
address public beneficiary;
uint256 public rateOfZNT = 500000;
uint256 public rateOfZLT = 3000;
uint256 public amountEthRaised = 0;
uint256 public availableZ... | function () payable public {
require(isLive);
uint256 donation = msg.value;
uint256 amountZNT = donation * rateOfZNT;
uint256 amountZLT = donation * rateOfZLT;
require(availableZNT >= amountZNT && availableZLT >= amountZLT);
donationOf[msg.sender] += donation;
amountEthRaise... | // Callback function, distribute tokens to sender when ETH donation is recieved | LineComment | v0.4.24+commit.e67f0147 | bzzr://a669d906f00c151410a07da49e213622e94b6e304282a1508a9e112b713be447 | {
"func_code_index": [
646,
1235
]
} | 25,819 | ||||
ZNTZLTDistributionTest | ZNTZLTDistributionTest.sol | 0x2b5b729b38a4ab3eb0cef9d1a5dbd3e8a16adcfa | Solidity | ZNTZLTDistributionTest | contract ZNTZLTDistributionTest is Ownable {
bool public isLive = true;
string public name = "ZNT-ZLT Distribution Test";
address public beneficiary;
uint256 public rateOfZNT = 500000;
uint256 public rateOfZLT = 3000;
uint256 public amountEthRaised = 0;
uint256 public availableZ... | toggleIsLive | function toggleIsLive() public onlyOwner {
if(isLive) {
isLive = false;
} else {
isLive = true;
}
}
| // Halts or resumes the distribution process | LineComment | v0.4.24+commit.e67f0147 | bzzr://a669d906f00c151410a07da49e213622e94b6e304282a1508a9e112b713be447 | {
"func_code_index": [
1292,
1454
]
} | 25,820 | |||
ZNTZLTDistributionTest | ZNTZLTDistributionTest.sol | 0x2b5b729b38a4ab3eb0cef9d1a5dbd3e8a16adcfa | Solidity | ZNTZLTDistributionTest | contract ZNTZLTDistributionTest is Ownable {
bool public isLive = true;
string public name = "ZNT-ZLT Distribution Test";
address public beneficiary;
uint256 public rateOfZNT = 500000;
uint256 public rateOfZLT = 3000;
uint256 public amountEthRaised = 0;
uint256 public availableZ... | withdrawAvailableToken | function withdrawAvailableToken(address _address, uint256 amountZNT, uint256 amountZLT) public onlyOwner {
require(availableZNT >= amountZNT && availableZLT >= amountZLT);
availableZNT -= amountZNT;
availableZLT -= amountZLT;
tokenZNT.transfer(_address, amountZNT);
tokenZLT.transfer(_address, a... | // Withdraw available token in this contract | LineComment | v0.4.24+commit.e67f0147 | bzzr://a669d906f00c151410a07da49e213622e94b6e304282a1508a9e112b713be447 | {
"func_code_index": [
1513,
1875
]
} | 25,821 | |||
ZNTZLTDistributionTest | ZNTZLTDistributionTest.sol | 0x2b5b729b38a4ab3eb0cef9d1a5dbd3e8a16adcfa | Solidity | ZNTZLTDistributionTest | contract ZNTZLTDistributionTest is Ownable {
bool public isLive = true;
string public name = "ZNT-ZLT Distribution Test";
address public beneficiary;
uint256 public rateOfZNT = 500000;
uint256 public rateOfZLT = 3000;
uint256 public amountEthRaised = 0;
uint256 public availableZ... | setTokensPerEth | function setTokensPerEth(uint256 rateZNT, uint256 rateZLT) public onlyOwner {
rateOfZNT = rateZNT;
rateOfZLT = rateZLT;
}
| // Set token rate per ETH donation/contribution | LineComment | v0.4.24+commit.e67f0147 | bzzr://a669d906f00c151410a07da49e213622e94b6e304282a1508a9e112b713be447 | {
"func_code_index": [
1935,
2094
]
} | 25,822 | |||
ZNTZLTDistributionTest | ZNTZLTDistributionTest.sol | 0x2b5b729b38a4ab3eb0cef9d1a5dbd3e8a16adcfa | Solidity | ZNTZLTDistributionTest | contract ZNTZLTDistributionTest is Ownable {
bool public isLive = true;
string public name = "ZNT-ZLT Distribution Test";
address public beneficiary;
uint256 public rateOfZNT = 500000;
uint256 public rateOfZLT = 3000;
uint256 public amountEthRaised = 0;
uint256 public availableZ... | setTokenReward | function setTokenReward(address _addressZNT, address _addressZLT) public onlyOwner {
tokenZNT = token(_addressZNT);
tokenZLT = token(_addressZLT);
setAvailableToken();
}
| // Set token contract addresses of tokens involved in distribution | LineComment | v0.4.24+commit.e67f0147 | bzzr://a669d906f00c151410a07da49e213622e94b6e304282a1508a9e112b713be447 | {
"func_code_index": [
2173,
2389
]
} | 25,823 | |||
ZNTZLTDistributionTest | ZNTZLTDistributionTest.sol | 0x2b5b729b38a4ab3eb0cef9d1a5dbd3e8a16adcfa | Solidity | ZNTZLTDistributionTest | contract ZNTZLTDistributionTest is Ownable {
bool public isLive = true;
string public name = "ZNT-ZLT Distribution Test";
address public beneficiary;
uint256 public rateOfZNT = 500000;
uint256 public rateOfZLT = 3000;
uint256 public amountEthRaised = 0;
uint256 public availableZ... | setAvailableToken | function setAvailableToken() public onlyOwner {
availableZNT = tokenZNT.balanceOf(this);
availableZLT = tokenZLT.balanceOf(this);
}
| // Set the available token balance of this contract | LineComment | v0.4.24+commit.e67f0147 | bzzr://a669d906f00c151410a07da49e213622e94b6e304282a1508a9e112b713be447 | {
"func_code_index": [
2453,
2622
]
} | 25,824 | |||
ZNTZLTDistributionTest | ZNTZLTDistributionTest.sol | 0x2b5b729b38a4ab3eb0cef9d1a5dbd3e8a16adcfa | Solidity | ZNTZLTDistributionTest | contract ZNTZLTDistributionTest is Ownable {
bool public isLive = true;
string public name = "ZNT-ZLT Distribution Test";
address public beneficiary;
uint256 public rateOfZNT = 500000;
uint256 public rateOfZLT = 3000;
uint256 public amountEthRaised = 0;
uint256 public availableZ... | setAvailableTokenManually | function setAvailableTokenManually(uint256 amountZNT, uint256 amountZLT) public onlyOwner {
availableZNT = amountZNT;
availableZLT = amountZLT;
}
| // Set the available token balance of this contract manually | LineComment | v0.4.24+commit.e67f0147 | bzzr://a669d906f00c151410a07da49e213622e94b6e304282a1508a9e112b713be447 | {
"func_code_index": [
2695,
2878
]
} | 25,825 | |||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
94,
154
]
} | 25,826 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
237,
310
]
} | 25,827 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | 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 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
534,
616
]
} | 25,828 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
895,
983
]
} | 25,829 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
1647,
1726
]
} | 25,830 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
2039,
2141
]
} | 25,831 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
259,
445
]
} | 25,832 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
723,
864
]
} | 25,833 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
1162,
1359
]
} | 25,834 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
1613,
2089
]
} | 25,835 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
2560,
2697
]
} | 25,836 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
3188,
3471
]
} | 25,837 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
3931,
4066
]
} | 25,838 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns ... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
4546,
4717
]
} | 25,839 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
606,
1230
]
} | 25,840 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
2160,
2562
]
} | 25,841 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
3318,
3496
]
} | 25,842 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
3721,
3922
]
} | 25,843 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
4292,
4523
]
} | 25,844 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
4774,
5095
]
} | 25,845 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
497,
581
]
} | 25,846 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
1139,
1292
]
} | 25,847 | ||
eSupremely | eSupremely.sol | 0x77b81808bf667ffe0ccf5b66e555b60ac0390dd8 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | MIT | ipfs://49d05dc155716f3462c1c583249833ca44837eb9722505c86e3e5f5dc20412d8 | {
"func_code_index": [
1442,
1691
]
} | 25,848 | ||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | DSMath | contract DSMath {
function add(uint x, uint y) internal pure returns (uint z) {
require((z = x + y) >= x);
}
function sub(uint x, uint y) internal pure returns (uint z) {
require((z = x - y) <= x);
}
function mul(uint x, uint y) internal pure returns (uint z) {
requir... | rpow | function rpow(uint x, uint n) internal pure returns (uint z) {
z = n % 2 != 0 ? x : RAY;
for (n /= 2; n != 0; n /= 2) {
x = rmul(x, x);
if (n % 2 != 0) {
z = rmul(z, x);
}
}
}
| // This famous algorithm is called "exponentiation by squaring"
// and calculates x^n with x as fixed-point and n as regular unsigned.
//
// It's O(log n), instead of O(n) for naive repeated multiplication.
//
// These facts are why it works:
//
// If n is even, then x^n = (x^2)^(n/2).
// If n is odd, then x^n = x *... | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
1905,
2177
]
} | 25,849 | |||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | totalSupply | function totalSupply() public view returns (uint) {
return _supply;
}
| /**
* @dev Total number of tokens in existence
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
417,
505
]
} | 25,850 | |||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | balanceOf | function balanceOf(address src) public view returns (uint) {
return _balances[src];
}
| /**
* @dev Gets the balance of the specified address.
* @param src The address to query the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
705,
809
]
} | 25,851 | |||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | allowance | function allowance(address src, address guy) public view returns (uint) {
return _approvals[src][guy];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param src address The address which owns the funds.
* @param guy address The address which will spend the funds.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
1035,
1158
]
} | 25,852 | |||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | transfer | function transfer(address dst, uint wad) public returns (bool) {
return transferFrom(msg.sender, dst, wad);
}
| /**
* @dev Transfer token for a specified address
* @param dst The address to transfer to.
* @param wad The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
1319,
1447
]
} | 25,853 | |||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | transferFrom | function transferFrom(address src, address dst, uint wad)
public
returns (bool)
{
if (src != msg.sender) {
_approvals[src][msg.sender] = sub(_approvals[src][msg.sender], wad);
}
_balances[src] = sub(_balances[src], wad);
_balances[dst] = add(_balances[dst], wad);
emit Tr... | /**
* @dev Transfer tokens from one address to another
* @param src address The address which you want to send tokens from
* @param dst address The address which you want to transfer to
* @param wad uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
1723,
2137
]
} | 25,854 | |||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | approve | function approve(address guy, uint wad) public returns (bool) {
_approvals[msg.sender][guy] = wad;
emit Approval(msg.sender, guy, wad);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
2758,
2949
]
} | 25,855 | |||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | increaseAllowance | function increaseAllowance(
address src,
uint256 wad
)
public
returns (bool)
{
require(src != address(0));
_approvals[src][msg.sender] = add(_approvals[src][msg.sender], wad);
emit Approval(msg.sender, src, _approvals[msg.sender][src]);
return true;
}
| /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
* 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
* @param src The a... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
3396,
3701
]
} | 25,856 | |||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | decreaseAllowance | function decreaseAllowance(
address src,
uint256 wad
)
public
returns (bool)
{
require(src != address(0));
_approvals[src][msg.sender] = sub(_approvals[src][msg.sender], wad);
emit Approval(msg.sender, src, _approvals[msg.sender][src]);
return true;
}
| /**
* @dev Decrese the amount of tokens that an owner allowed to a spender.
* 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
* @param src The ad... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
4147,
4450
]
} | 25,857 | |||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | MillionToken | contract MillionToken is DSTokenBase , DSStop {
string public symbol="1MT";
string public name="1Million Token";
uint256 public decimals = 7; // Standard Token Precision
uint256 public initialSupply=10000000000000;
address public burnAdmin;
constructor() public
DSTokenBase(ini... | isAdmin | function isAdmin() public view returns(bool) {
return msg.sender == burnAdmin;
| /**
* @return true if `msg.sender` is the owner of the contract.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
685,
774
]
} | 25,858 | |||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | MillionToken | contract MillionToken is DSTokenBase , DSStop {
string public symbol="1MT";
string public name="1Million Token";
uint256 public decimals = 7; // Standard Token Precision
uint256 public initialSupply=10000000000000;
address public burnAdmin;
constructor() public
DSTokenBase(ini... | renounceOwnership | function renounceOwnership() public onlyAdmin {
burnAdmin = address(0);
}
| /**
* @dev Allows the current owner to relinquish control of the contract.
* @notice Renouncing to ownership will leave the contract without an owner.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
1041,
1125
]
} | 25,859 | |||
MillionToken | MillionToken.sol | 0xf0bc1ae4ef7ffb126a8347d06ac6f8add770e1ce | Solidity | MillionToken | contract MillionToken is DSTokenBase , DSStop {
string public symbol="1MT";
string public name="1Million Token";
uint256 public decimals = 7; // Standard Token Precision
uint256 public initialSupply=10000000000000;
address public burnAdmin;
constructor() public
DSTokenBase(ini... | burnfromAdmin | function burnfromAdmin(address guy, uint wad) public onlyAdmin {
require(guy != address(0));
_balances[guy] = sub(_balances[guy], wad);
_supply = sub(_supply, wad);
emit Burn(guy, wad);
emit Transfer(guy, address(0), wad);
}
| /**
* @dev Burns a specific amount of tokens from the target address
* @param guy address The address which you want to send tokens from
* @param wad uint256 The amount of token to be burned
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://90c0dabc874b24d61ae4af2b9dea0f76175dc48f9b4bfd3b528a03883b094fcf | {
"func_code_index": [
2079,
2364
]
} | 25,860 | |||
WowanderICOPrivateCrowdSale | WowanderICOPrivateCrowdSale.sol | 0xfdb308c42ce4ad1247e590107370e954d5eb95cc | Solidity | Ownable | contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modif... | /**
* @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() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://dd07ef51b559f52f3d1f5e44b1688cb8487ae3a2ab9290b88ba196468394bbf7 | {
"func_code_index": [
169,
229
]
} | 25,861 | |
WowanderICOPrivateCrowdSale | WowanderICOPrivateCrowdSale.sol | 0xfdb308c42ce4ad1247e590107370e954d5eb95cc | Solidity | Haltable | contract Haltable is Ownable {
bool public halted;
modifier stopInEmergency {
require (!halted);
_;
}
modifier onlyInEmergency {
require (halted);
_;
}
// called by the owner on emergency, triggers stopped state
function halt() external onlyOwner {
halted = true;
}... | /*
* Haltable
*
* Abstract contract that allows children to implement an
* emergency stop mechanism. Differs from Pausable by causing a throw when in halt mode.
*
*
* Originally envisioned in FirstBlood ICO contract.
*/ | Comment | halt | function halt() external onlyOwner {
halted = true;
}
| // called by the owner on emergency, triggers stopped state | LineComment | v0.4.18+commit.9cf6e910 | bzzr://dd07ef51b559f52f3d1f5e44b1688cb8487ae3a2ab9290b88ba196468394bbf7 | {
"func_code_index": [
257,
321
]
} | 25,862 | |
WowanderICOPrivateCrowdSale | WowanderICOPrivateCrowdSale.sol | 0xfdb308c42ce4ad1247e590107370e954d5eb95cc | Solidity | Haltable | contract Haltable is Ownable {
bool public halted;
modifier stopInEmergency {
require (!halted);
_;
}
modifier onlyInEmergency {
require (halted);
_;
}
// called by the owner on emergency, triggers stopped state
function halt() external onlyOwner {
halted = true;
}... | /*
* Haltable
*
* Abstract contract that allows children to implement an
* emergency stop mechanism. Differs from Pausable by causing a throw when in halt mode.
*
*
* Originally envisioned in FirstBlood ICO contract.
*/ | Comment | unhalt | function unhalt() external onlyOwner onlyInEmergency {
halted = false;
}
| // called by the owner on end of emergency, returns to normal state | LineComment | v0.4.18+commit.9cf6e910 | bzzr://dd07ef51b559f52f3d1f5e44b1688cb8487ae3a2ab9290b88ba196468394bbf7 | {
"func_code_index": [
395,
478
]
} | 25,863 | |
WowanderICOPrivateCrowdSale | WowanderICOPrivateCrowdSale.sol | 0xfdb308c42ce4ad1247e590107370e954d5eb95cc | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
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.18+commit.9cf6e910 | bzzr://dd07ef51b559f52f3d1f5e44b1688cb8487ae3a2ab9290b88ba196468394bbf7 | {
"func_code_index": [
268,
514
]
} | 25,864 | |
WowanderICOPrivateCrowdSale | WowanderICOPrivateCrowdSale.sol | 0xfdb308c42ce4ad1247e590107370e954d5eb95cc | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) pub... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public 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.18+commit.9cf6e910 | bzzr://dd07ef51b559f52f3d1f5e44b1688cb8487ae3a2ab9290b88ba196468394bbf7 | {
"func_code_index": [
721,
837
]
} | 25,865 | |
WowanderICOPrivateCrowdSale | WowanderICOPrivateCrowdSale.sol | 0xfdb308c42ce4ad1247e590107370e954d5eb95cc | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | /**
* @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) public returns (bool) {
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);
balances[_to] = balances[_to].a... | /**
* @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 amout of tokens to be transfered
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://dd07ef51b559f52f3d1f5e44b1688cb8487ae3a2ab9290b88ba196468394bbf7 | {
"func_code_index": [
390,
900
]
} | 25,866 | |
WowanderICOPrivateCrowdSale | WowanderICOPrivateCrowdSale.sol | 0xfdb308c42ce4ad1247e590107370e954d5eb95cc | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | /**
* @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) public 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/ethere... | /**
* @dev Aprove 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.18+commit.9cf6e910 | bzzr://dd07ef51b559f52f3d1f5e44b1688cb8487ae3a2ab9290b88ba196468394bbf7 | {
"func_code_index": [
1135,
1690
]
} | 25,867 | |
WowanderICOPrivateCrowdSale | WowanderICOPrivateCrowdSale.sol | 0xfdb308c42ce4ad1247e590107370e954d5eb95cc | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | /**
* @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) public constant returns (uint256 remaining) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifing the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://dd07ef51b559f52f3d1f5e44b1688cb8487ae3a2ab9290b88ba196468394bbf7 | {
"func_code_index": [
2013,
2158
]
} | 25,868 | |
WowanderICOPrivateCrowdSale | WowanderICOPrivateCrowdSale.sol | 0xfdb308c42ce4ad1247e590107370e954d5eb95cc | Solidity | WWWToken | contract WWWToken is StandardToken {
using SafeMath for uint256;
/*/ Public variables of the token /*/
string public constant name = "Wowander WWW Token";
string public constant symbol = "WWW";
uint8 public decimals = 8;
uint256 public totalSupply = 100 * 0.1 finney;
/*/ Initializ... | WWWToken | function WWWToken() public
{
balances[msg.sender] = totalSupply; // Give the creator all initial tokens
}
| /*/ Initializes contract with initial supply tokens to the creator of the contract /*/ | Comment | v0.4.18+commit.9cf6e910 | bzzr://dd07ef51b559f52f3d1f5e44b1688cb8487ae3a2ab9290b88ba196468394bbf7 | {
"func_code_index": [
395,
537
]
} | 25,869 | |||
WowanderICOPrivateCrowdSale | WowanderICOPrivateCrowdSale.sol | 0xfdb308c42ce4ad1247e590107370e954d5eb95cc | Solidity | WowanderICOPrivateCrowdSale | contract WowanderICOPrivateCrowdSale is Haltable{
using SafeMath for uint;
string public name = "Wowander Private Sale ITO";
address public beneficiary;
uint public startTime;
uint public duration;
uint public tokensContractBalance;
uint public price;
uint public discountPrice... | WowanderICOPrivateCrowdSale | function WowanderICOPrivateCrowdSale(
address addressOfTokenUsedAsReward,
dress addressOfBeneficiary
) public
{
beneficiary = addressOfBeneficiary;
//startTime = 1516021200;
startTime = 1516021200 - 3600 * 24; // TODO remove
duration = 744 hours;
kensContractBalance = 5 * 0.1 finney;
... | /* at initialization, setup the owner */ | Comment | v0.4.18+commit.9cf6e910 | bzzr://dd07ef51b559f52f3d1f5e44b1688cb8487ae3a2ab9290b88ba196468394bbf7 | {
"func_code_index": [
907,
1430
]
} | 25,870 | |||
WowanderICOPrivateCrowdSale | WowanderICOPrivateCrowdSale.sol | 0xfdb308c42ce4ad1247e590107370e954d5eb95cc | Solidity | WowanderICOPrivateCrowdSale | contract WowanderICOPrivateCrowdSale is Haltable{
using SafeMath for uint;
string public name = "Wowander Private Sale ITO";
address public beneficiary;
uint public startTime;
uint public duration;
uint public tokensContractBalance;
uint public price;
uint public discountPrice... | function () payable stopInEmergency onlyAfterStart onlyBeforeEnd public
{
require (msg.value >= minPurchase);
require (crowdsaleClosed == false);
require (tokensContractBalance > 0);
require (whiteList[msg.sender] == true);
nt currentPrice = price;
if (balanceOf[msg.sender] == 0)
... | /* The function without name is the default function that is called whenever anyone sends funds to a contract */ | Comment | v0.4.18+commit.9cf6e910 | bzzr://dd07ef51b559f52f3d1f5e44b1688cb8487ae3a2ab9290b88ba196468394bbf7 | {
"func_code_index": [
1743,
2913
]
} | 25,871 | ||||
STN | STN.sol | 0x905d6a5fa12a88a779327d4ef85b7c12cb7ac06c | Solidity | STN | contract STN is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | STN | function STN(
uint256 initialSupply,
string tokenName,
uint8 decimalUnits,
string tokenSymbol
) {
balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens
totalSupply = initialSupply; // Update total supply
name = tokenName... | /* Initializes contract with initial supply tokens to the creator of the contract */ | Comment | v0.4.12+commit.194ff033 | bzzr://6999e43cdbe646c2a6cb308a82539ec29a1b4fc23ab5ef0ba50c9c4bff16d18b | {
"func_code_index": [
988,
1651
]
} | 25,872 | |||
STN | STN.sol | 0x905d6a5fa12a88a779327d4ef85b7c12cb7ac06c | Solidity | STN | contract STN is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | transfer | function transfer(address _to, uint256 _value) {
if (_to == 0x0) throw; // Prevent transfer to 0x0 address. Use burn() instead
(_value <= 0) throw;
if (balanceOf[msg.sender] < _value) throw; // Check if the sender has enough
if (balanceOf[_to] + _value < balance... | /* Send coins */ | Comment | v0.4.12+commit.194ff033 | bzzr://6999e43cdbe646c2a6cb308a82539ec29a1b4fc23ab5ef0ba50c9c4bff16d18b | {
"func_code_index": [
1676,
2439
]
} | 25,873 | |||
STN | STN.sol | 0x905d6a5fa12a88a779327d4ef85b7c12cb7ac06c | Solidity | STN | contract STN is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | approve | function approve(address _spender, uint256 _value)
returns (bool success) {
(_value <= 0) throw;
allowance[msg.sender][_spender] = _value;
return true;
}
| /* Allow another contract to spend some tokens in your behalf */ | Comment | v0.4.12+commit.194ff033 | bzzr://6999e43cdbe646c2a6cb308a82539ec29a1b4fc23ab5ef0ba50c9c4bff16d18b | {
"func_code_index": [
2512,
2709
]
} | 25,874 | |||
STN | STN.sol | 0x905d6a5fa12a88a779327d4ef85b7c12cb7ac06c | Solidity | STN | contract STN is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
if (_to == 0x0) throw; // Prevent transfer to 0x0 address. Use burn() instead
(_value <= 0) throw;
if (balanceOf[_from] < _value) throw; // Check if the sender has enoug... | /* A contract attempts to get the coins */ | Comment | v0.4.12+commit.194ff033 | bzzr://6999e43cdbe646c2a6cb308a82539ec29a1b4fc23ab5ef0ba50c9c4bff16d18b | {
"func_code_index": [
2769,
3694
]
} | 25,875 | |||
STN | STN.sol | 0x905d6a5fa12a88a779327d4ef85b7c12cb7ac06c | Solidity | STN | contract STN is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | withdrawEther | function withdrawEther(uint256 amount) {
if(msg.sender != owner)throw;
owner.transfer(amount);
}
| // transfer balance to owner | LineComment | v0.4.12+commit.194ff033 | bzzr://6999e43cdbe646c2a6cb308a82539ec29a1b4fc23ab5ef0ba50c9c4bff16d18b | {
"func_code_index": [
5205,
5311
]
} | 25,876 | |||
STN | STN.sol | 0x905d6a5fa12a88a779327d4ef85b7c12cb7ac06c | Solidity | STN | contract STN is SafeMath{
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public freezeOf;
... | function() payable {
}
| // can accept ether | LineComment | v0.4.12+commit.194ff033 | bzzr://6999e43cdbe646c2a6cb308a82539ec29a1b4fc23ab5ef0ba50c9c4bff16d18b | {
"func_code_index": [
5337,
5366
]
} | 25,877 | ||||
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_set... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
424,
516
]
} | 25,878 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_set... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
1075,
1174
]
} | 25,879 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_set... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
_setOwner(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
1324,
1558
]
} | 25,880 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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 virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
808,
913
]
} | 25,881 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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 virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
1027,
1136
]
} | 25,882 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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 virtual override returns (uint8) {
return 18;
}
| /**
* @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.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
1770,
1868
]
} | 25,883 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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 virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
1928,
2041
]
} | 25,884 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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
virtual
override
returns (uint256)
{
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
2099,
2281
]
} | 25,885 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
2489,
2710
]
} | 25,886 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
2768,
2974
]
} | 25,887 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
3116,
3331
]
} | 25,888 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(
currentAllowance >= amount,
"ERC20: transfer... | /**
* @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 `... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
3808,
4306
]
} | 25,889 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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] + 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.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
4710,
5012
]
} | 25,890 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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)
{
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(
currentAllowance >= subtractedValue,
"ERC20: decreased allowance below zero"
);
_approve(_msg... | /**
* @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.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
5510,
5961
]
} | 25,891 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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);
... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
6446,
7126
]
} | 25,892 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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 += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
| /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
7403,
7746
]
} | 25,893 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds ba... | /**
* @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.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
8074,
8573
]
} | 25,894 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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(own... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero a... | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
9006,
9391
]
} | 25,895 |
SkeletonKeys | @openzeppelin/contracts/token/ERC20/ERC20.sol | 0xb849c1077072466317ce9d170119a6e68c0879e7 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the... | /**
* @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.8.7+commit.e28d00a7 | MIT | ipfs://4cd56b81236783dee10d918be1865a9446a90f47ad180726fc88e048c0d8b8a7 | {
"func_code_index": [
9989,
10119
]
} | 25,896 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
// solhint-disabl... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
... | NatSpecMultiLine | _delegate | function _delegate(address implementation) internal virtual {
// solhint-disable-next-line no-inline-assembly
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratc... | /**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
228,
1148
]
} | 25,897 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
// solhint-disabl... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
... | NatSpecMultiLine | _implementation | function _implementation() internal view virtual returns (address);
| /**
* @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
* and {_fallback} should delegate.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
1332,
1404
]
} | 25,898 |
AssetProxy | AssetProxy.sol | 0x4eaa01974b6594c0ee62ffd7fee56cf11e6af936 | Solidity | Proxy | abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
// solhint-disabl... | /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
... | NatSpecMultiLine | _fallback | function _fallback() internal virtual {
_beforeFallback();
_delegate(_implementation());
}
| /**
* @dev Delegates the current call to the address returned by `_implementation()`.
*
* This function does not return to its internall call site, it will return directly to the external caller.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | Unknown | ipfs://256d71a3bbf412c66e92f2feda363c4e126c868e314b821fa08c780ad30dde66 | {
"func_code_index": [
1635,
1753
]
} | 25,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.