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
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
transfer
function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); }
/** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 2522, 2634 ] }
15,200
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/** * Transfer tokens from other address * * Send `_value` tokens to `_to` in behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 2909, 3210 ] }
15,201
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; return true; }
/** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens in your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 3474, 3650 ] }
15,202
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } }
/** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it * * @param _spender The address authorized to spend * @param _value the max amount they can spend * @param _extraData some extra information to s...
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 4044, 4396 ] }
15,203
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
burn
function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply emit Burn(msg.sender,...
/** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 4566, 4945 ] }
15,204
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
TokenERC20
contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addre...
burnFrom
function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance balanceOf[_from] -= _value; // Sub...
/** * Destroy tokens from other account * * Remove `_value` tokens from the system irreversibly on behalf of `_from`. * * @param _from the address of the sender * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 5203, 5819 ] }
15,205
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
LigoToken
contract LigoToken is owned, TokenERC20 { uint256 public sellPrice; uint256 public buyPrice; mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes...
/******************************************/
NatSpecMultiLine
LigoToken
function LigoToken( uint256 initialSupply, string tokenName, string tokenSymbol ) TokenERC20(initialSupply, tokenName, tokenSymbol) public {}
/* Initializes contract with initial supply tokens to the creator of the contract */
Comment
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 392, 570 ] }
15,206
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
LigoToken
contract LigoToken is owned, TokenERC20 { uint256 public sellPrice; uint256 public buyPrice; mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes...
/******************************************/
NatSpecMultiLine
_transfer
function _transfer(address _from, address _to, uint _value) internal { require (_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead require (balanceOf[_from] >= _value); // Check if the sender has enough require (balanceOf[_to] + _value >= balan...
/* Internal transfer, only can be called by this contract */
Comment
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 639, 1427 ] }
15,207
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
LigoToken
contract LigoToken is owned, TokenERC20 { uint256 public sellPrice; uint256 public buyPrice; mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes...
/******************************************/
NatSpecMultiLine
mintToken
function mintToken(address target, uint256 mintedAmount) onlyOwner public { balanceOf[target] += mintedAmount; totalSupply += mintedAmount; emit Transfer(0, this, mintedAmount); emit Transfer(this, target, mintedAmount); }
/// @notice Create `mintedAmount` tokens and send it to `target` /// @param target Address to receive the tokens /// @param mintedAmount the amount of tokens it will receive
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 1619, 1887 ] }
15,208
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
LigoToken
contract LigoToken is owned, TokenERC20 { uint256 public sellPrice; uint256 public buyPrice; mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes...
/******************************************/
NatSpecMultiLine
freezeAccount
function freezeAccount(address target, bool freeze) onlyOwner public { frozenAccount[target] = freeze; emit FrozenFunds(target, freeze); }
/// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens /// @param target Address to be frozen /// @param freeze either to freeze it or not
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 2068, 2234 ] }
15,209
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
LigoToken
contract LigoToken is owned, TokenERC20 { uint256 public sellPrice; uint256 public buyPrice; mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes...
/******************************************/
NatSpecMultiLine
setPrices
function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyOwner public { sellPrice = newSellPrice; buyPrice = newBuyPrice; }
/// @notice Allow users to buy tokens for `newBuyPrice` eth and sell tokens for `newSellPrice` eth /// @param newSellPrice Price the users can sell to the contract /// @param newBuyPrice Price users can buy from the contract
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 2477, 2637 ] }
15,210
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
LigoToken
contract LigoToken is owned, TokenERC20 { uint256 public sellPrice; uint256 public buyPrice; mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes...
/******************************************/
NatSpecMultiLine
buy
function buy() payable public { uint amount = msg.value / buyPrice; // calculates the amount _transfer(this, msg.sender, amount); // makes the transfers }
/// @notice Buy tokens from contract by sending ether
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 2699, 2908 ] }
15,211
LigoToken
LigoToken.sol
0xe04bfe83a49a9a242635c0759df99ea44b0feb06
Solidity
LigoToken
contract LigoToken is owned, TokenERC20 { uint256 public sellPrice; uint256 public buyPrice; mapping (address => bool) public frozenAccount; /* This generates a public event on the blockchain that will notify clients */ event FrozenFunds(address target, bool frozen); /* Initializes...
/******************************************/
NatSpecMultiLine
sell
function sell(uint256 amount) public { require(this.balance >= amount * sellPrice); // checks if the contract has enough ether to buy _transfer(msg.sender, this, amount); // makes the transfers msg.sender.transfer(amount * sellPrice); // sends ether to the seller. It's importan...
/// @notice Sell `amount` tokens to contract /// @param amount amount of tokens to be sold
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://49add7c80496363f9f7bb18fa1ab10561d5e1f715715e2ffaadb4e34a159c24d
{ "func_code_index": [ 3012, 3400 ] }
15,212
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Ownable
contract Ownable { address payable public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender...
/* * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
Comment
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipRenounced(owner); owner = 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.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 823, 940 ] }
15,213
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Ownable
contract Ownable { address payable public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender...
/* * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
Comment
transferOwnership
function transferOwnership(address payable _newOwner) public onlyOwner { _transferOwnership(_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.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 1105, 1221 ] }
15,214
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Ownable
contract Ownable { address payable public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender...
/* * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
Comment
_transferOwnership
function _transferOwnership(address payable _newOwner) internal { require(_newOwner != address(0)); emit OwnershipTransferred(owner, _newOwner); owner = _newOwner; }
/** * @dev Transfers control of the contract to a newOwner. * @param _newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 1359, 1545 ] }
15,215
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Withdrawable
contract Withdrawable is Ownable { /// @notice Withdraw ether contained in this contract and send it back to owner /// @dev onlyOwner modifier only allows the contract owner to run the code /// @param _token The address of the token that the user wants to withdraw /// @param _amount The amount of ...
/// @title A contract which allows its owner to withdraw any ether which is contained inside
NatSpecSingleLine
withdrawToken
function withdrawToken(address _token, uint256 _amount) external onlyOwner returns (bool) { return ERC20SafeTransfer.safeTransfer(_token, owner, _amount); }
/// @notice Withdraw ether contained in this contract and send it back to owner /// @dev onlyOwner modifier only allows the contract owner to run the code /// @param _token The address of the token that the user wants to withdraw /// @param _amount The amount of tokens that the caller wants to withdraw /// @return bool...
NatSpecSingleLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 437, 612 ] }
15,216
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Withdrawable
contract Withdrawable is Ownable { /// @notice Withdraw ether contained in this contract and send it back to owner /// @dev onlyOwner modifier only allows the contract owner to run the code /// @param _token The address of the token that the user wants to withdraw /// @param _amount The amount of ...
/// @title A contract which allows its owner to withdraw any ether which is contained inside
NatSpecSingleLine
withdrawETH
function withdrawETH(uint256 _amount) external onlyOwner { owner.transfer(_amount); }
/// @notice Withdraw ether contained in this contract and send it back to owner /// @dev onlyOwner modifier only allows the contract owner to run the code /// @param _amount The amount of ether that the caller wants to withdraw
NatSpecSingleLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 858, 962 ] }
15,217
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Pausable
contract Pausable is Ownable { event Paused(); event Unpaused(); bool private _paused = false; /** * @return true if the contract is paused, false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable on...
/** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */
NatSpecMultiLine
paused
function paused() public view returns (bool) { return _paused; }
/** * @return true if the contract is paused, false otherwise. */
NatSpecMultiLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 186, 261 ] }
15,218
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Pausable
contract Pausable is Ownable { event Paused(); event Unpaused(); bool private _paused = false; /** * @return true if the contract is paused, false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable on...
/** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */
NatSpecMultiLine
pause
function pause() public onlyOwner whenNotPaused { _paused = true; emit Paused(); }
/** * @dev called by the owner to pause, triggers stopped state */
NatSpecMultiLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 719, 817 ] }
15,219
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Pausable
contract Pausable is Ownable { event Paused(); event Unpaused(); bool private _paused = false; /** * @return true if the contract is paused, false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable on...
/** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */
NatSpecMultiLine
unpause
function unpause() public onlyOwner whenPaused { _paused = false; emit Unpaused(); }
/** * @dev called by the owner to unpause, returns to normal state */
NatSpecMultiLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 901, 1001 ] }
15,220
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
TokenTransferProxy
contract TokenTransferProxy is Ownable { /// @dev Only authorized addresses can invoke functions with this modifier. modifier onlyAuthorized { require(authorized[msg.sender]); _; } modifier targetAuthorized(address target) { require(authorized[target]); _; ...
/// @author Amir Bandeali - <amir@0xProject.com>, Will Warren - <will@0xProject.com>
NatSpecSingleLine
addAuthorizedAddress
function addAuthorizedAddress(address target) public onlyOwner targetNotAuthorized(target) { authorized[target] = true; authorities.push(target); emit LogAuthorizedAddressAdded(target, msg.sender); }
/// @dev Authorizes an address. /// @param target Address to authorize.
NatSpecSingleLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 828, 1096 ] }
15,221
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
TokenTransferProxy
contract TokenTransferProxy is Ownable { /// @dev Only authorized addresses can invoke functions with this modifier. modifier onlyAuthorized { require(authorized[msg.sender]); _; } modifier targetAuthorized(address target) { require(authorized[target]); _; ...
/// @author Amir Bandeali - <amir@0xProject.com>, Will Warren - <will@0xProject.com>
NatSpecSingleLine
removeAuthorizedAddress
function removeAuthorizedAddress(address target) public onlyOwner targetAuthorized(target) { delete authorized[target]; for (uint i = 0; i < authorities.length; i++) { if (authorities[i] == target) { authorities[i] = authorities[authorities.length - 1]; autho...
/// @dev Removes authorizion of an address. /// @param target Address to remove authorization from.
NatSpecSingleLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 1209, 1709 ] }
15,222
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
TokenTransferProxy
contract TokenTransferProxy is Ownable { /// @dev Only authorized addresses can invoke functions with this modifier. modifier onlyAuthorized { require(authorized[msg.sender]); _; } modifier targetAuthorized(address target) { require(authorized[target]); _; ...
/// @author Amir Bandeali - <amir@0xProject.com>, Will Warren - <will@0xProject.com>
NatSpecSingleLine
transferFrom
function transferFrom( address token, address from, address to, uint value) public onlyAuthorized returns (bool) { require(ERC20SafeTransfer.safeTransferFrom(token, from, to, value)); return true; }
/// @dev Calls into ERC20 Token contract, invoking transferFrom. /// @param token Address of token to transfer. /// @param from Address to transfer token from. /// @param to Address to transfer token to. /// @param value Amount of token to transfer. /// @return Success of transfer.
NatSpecSingleLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 2025, 2319 ] }
15,223
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
TokenTransferProxy
contract TokenTransferProxy is Ownable { /// @dev Only authorized addresses can invoke functions with this modifier. modifier onlyAuthorized { require(authorized[msg.sender]); _; } modifier targetAuthorized(address target) { require(authorized[target]); _; ...
/// @author Amir Bandeali - <amir@0xProject.com>, Will Warren - <will@0xProject.com>
NatSpecSingleLine
getAuthorizedAddresses
function getAuthorizedAddresses() public view returns (address[] memory) { return authorities; }
/// @dev Gets all authorized addresses. /// @return Array of authorized addresses.
NatSpecSingleLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 2464, 2611 ] }
15,224
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Utils
library Utils { uint256 constant internal PRECISION = (10**18); uint256 constant internal MAX_QTY = (10**28); // 10B tokens uint256 constant internal MAX_RATE = (PRECISION * 10**6); // up to 1M tokens per ETH uint256 constant internal MAX_DECIMALS = 18; uint256 constant internal ETH_DECIMA...
/* Modified Util contract as used by Kyber Network */
Comment
precision
function precision() internal pure returns (uint256) { return PRECISION; }
// Currently constants can't be accessed from other contracts, so providing functions to do that here
LineComment
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 550, 629 ] }
15,225
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Utils
library Utils { uint256 constant internal PRECISION = (10**18); uint256 constant internal MAX_QTY = (10**28); // 10B tokens uint256 constant internal MAX_RATE = (PRECISION * 10**6); // up to 1M tokens per ETH uint256 constant internal MAX_DECIMALS = 18; uint256 constant internal ETH_DECIMA...
/* Modified Util contract as used by Kyber Network */
Comment
getDecimals
function getDecimals(address token) internal returns (uint256 decimals) { bytes4 functionSig = bytes4(keccak256("decimals()")); /// @dev Using assembly due to issues with current solidity `address.call()` /// implementation: https://github.com/ethereum/solidity/issues/2884 assembly { ...
/// @notice Retrieve the number of decimals used for a given ERC20 token /// @dev As decimals are an optional feature in ERC20, this contract uses `call` to /// ensure that an exception doesn't cause transaction failure /// @param token the token for which we should retrieve the decimals /// @return decimals the number...
NatSpecSingleLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 1497, 3033 ] }
15,226
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Utils
library Utils { uint256 constant internal PRECISION = (10**18); uint256 constant internal MAX_QTY = (10**28); // 10B tokens uint256 constant internal MAX_RATE = (PRECISION * 10**6); // up to 1M tokens per ETH uint256 constant internal MAX_DECIMALS = 18; uint256 constant internal ETH_DECIMA...
/* Modified Util contract as used by Kyber Network */
Comment
tokenAllowanceAndBalanceSet
function tokenAllowanceAndBalanceSet( address tokenOwner, address tokenAddress, uint256 tokenAmount, address addressToAllow ) internal view returns (bool) { return ( ERC20(tokenAddress).allowance(tokenOwner, addressToAllow) >= tokenAmount && ERC20(tokenAddress...
/// @dev Checks that a given address has its token allowance and balance set above the given amount /// @param tokenOwner the address which should have custody of the token /// @param tokenAddress the address of the token to check /// @param tokenAmount the amount of the token which should be set /// @param addressToAl...
NatSpecSingleLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 3520, 3950 ] }
15,227
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
Utils
library Utils { uint256 constant internal PRECISION = (10**18); uint256 constant internal MAX_QTY = (10**28); // 10B tokens uint256 constant internal MAX_RATE = (PRECISION * 10**6); // up to 1M tokens per ETH uint256 constant internal MAX_DECIMALS = 18; uint256 constant internal ETH_DECIMA...
/* Modified Util contract as used by Kyber Network */
Comment
min
function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; }
/// @notice Bringing this in from the Math library as we've run out of space in TotlePrimary (see EIP-170)
NatSpecSingleLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 6422, 6533 ] }
15,228
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ 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://gith...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
mul
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (_a == 0) { return 0; } uint...
/** * @dev Multiplies two numbers, reverts on overflow. */
NatSpecMultiLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 90, 493 ] }
15,229
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ 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://gith...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
div
function div(uint256 _a, uint256 _b) internal pure returns (uint256) { require(_b > 0); // Solidity only automatically asserts 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 c; }
/** * @dev Integer division of two numbers truncating the quotient, reverts on division by zero. */
NatSpecMultiLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 605, 893 ] }
15,230
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ 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://gith...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
sub
function sub(uint256 _a, uint256 _b) internal pure returns (uint256) { require(_b <= _a); uint256 c = _a - _b; return c; }
/** * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 1008, 1153 ] }
15,231
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ 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://gith...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
add
function add(uint256 _a, uint256 _b) internal pure returns (uint256) { uint256 c = _a + _b; require(c >= _a); return c; }
/** * @dev Adds two numbers, reverts on overflow. */
NatSpecMultiLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 1218, 1362 ] }
15,232
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ 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://gith...
/** * @title SafeMath * @dev Math operations with safety checks that revert on error */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; }
/** * @dev Divides two numbers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */
NatSpecMultiLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 1497, 1614 ] }
15,233
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
ExchangeHandler
contract ExchangeHandler is Withdrawable, Pausable { /* * State Variables */ /* Logger public logger; */ /* * Modifiers */ function performOrder( bytes memory genericPayload, uint256 availableToSpend, uint256 targetAmount, bool target...
/// @title Interface for all exchange handler contracts
NatSpecSingleLine
performOrder
function performOrder( bytes memory genericPayload, uint256 availableToSpend, uint256 targetAmount, bool targetAmountIsSource ) public payable returns (uint256 amountSpentOnOrder, uint256 amountReceivedFromOrder);
/* * Modifiers */
Comment
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 169, 455 ] }
15,234
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
TotlePrimary
contract TotlePrimary is Withdrawable, Pausable { /* * State Variables */ TokenTransferProxy public tokenTransferProxy; mapping(address => bool) public signers; /* Logger public logger; */ /* * Types */ // Structs struct Order { address payable...
/// @title The primary contract for Totle
NatSpecSingleLine
performSwapCollection
function performSwapCollection( SwapCollection memory swaps ) public payable whenNotPaused notExpired(swaps) validSignature(swaps) { TokenBalance[20] memory balances; balances[0] = TokenBalance(address(Utils.eth_address()), msg.value); //this.log("Created eth balance", bal...
/// @notice Performs the requested set of swaps /// @param swaps The struct that defines the collection of swaps to perform
NatSpecSingleLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 3084, 3862 ] }
15,235
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
TotlePrimary
contract TotlePrimary is Withdrawable, Pausable { /* * State Variables */ TokenTransferProxy public tokenTransferProxy; mapping(address => bool) public signers; /* Logger public logger; */ /* * Types */ // Structs struct Order { address payable...
/// @title The primary contract for Totle
NatSpecSingleLine
performSwap
function performSwap( bytes32 swapCollectionId, Swap memory swap, TokenBalance[20] memory balances, address payable partnerContract ) internal { if(!transferFromSenderDifference(balances, swap.trades[0].sourceToken, swap.sourceAmount)){ if(swap.required){ revert("Fa...
/* * Internal functions */
Comment
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 4127, 7803 ] }
15,236
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
TotlePrimary
contract TotlePrimary is Withdrawable, Pausable { /* * State Variables */ TokenTransferProxy public tokenTransferProxy; mapping(address => bool) public signers; /* Logger public logger; */ /* * Types */ // Structs struct Order { address payable...
/// @title The primary contract for Totle
NatSpecSingleLine
calculateFee
function calculateFee(uint256 amount, uint256 fee) internal pure returns (uint256){ return SafeMath.div(SafeMath.mul(amount, fee), 1 ether); }
// @notice Calculates the fee amount given a fee percentage and amount // @param amount the amount to calculate the fee based on // @param fee the percentage, out of 1 eth (e.g. 0.01 ETH would be 1%)
LineComment
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 16133, 16294 ] }
15,237
TotlePrimary
TotlePrimary.sol
0xc755af998e8c50d6df1779ce3d7e4084a17b4c56
Solidity
TotlePrimary
contract TotlePrimary is Withdrawable, Pausable { /* * State Variables */ TokenTransferProxy public tokenTransferProxy; mapping(address => bool) public signers; /* Logger public logger; */ /* * Types */ // Structs struct Order { address payable...
/// @title The primary contract for Totle
NatSpecSingleLine
function() external payable whenNotPaused { // Check in here that the sender is a contract! (to stop accidents) uint256 size; address sender = msg.sender; assembly { size := extcodesize(sender) } if (size == 0) { revert("EOA cannot send ether to primary fallback"); }...
/// @notice payable fallback to allow handler or exchange contracts to return ether /// @dev only accounts containing code (ie. contracts) can send ether to contract
NatSpecSingleLine
v0.5.7+commit.6da8b019
None
bzzr://93e19177c50611c273a102e868e45a004b68fb732db0b88ab298c34587644307
{ "func_code_index": [ 16526, 16894 ] }
15,238
PProxy
contracts/callManagers/LendingManager/LendingManager.sol
0x33e18a092a93ff21ad04746c7da12e35d34dc7c4
Solidity
LendingManager
contract LendingManager is Ownable, ReentrancyGuard { using Math for uint256; LendingRegistry public lendingRegistry; IExperiPie public basket; event Lend(address indexed underlying, uint256 amount, bytes32 indexed protocol); event UnLend(address indexed wrapped, uint256 amount); /** @...
lend
function lend(address _underlying, uint256 _amount, bytes32 _protocol) public onlyOwner nonReentrant { // _amount or actual balance, whatever is less uint256 amount = _amount.min(IERC20(_underlying).balanceOf(address(basket))); //lend token ( address[] memory _targets, bytes[] memory _d...
/** @notice Move underlying to a lending protocol @param _underlying Address of the underlying token @param _amount Amount of underlying to lend @param _protocol Bytes32 protocol key to lend to */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 1028, 1762 ] }
15,239
PProxy
contracts/callManagers/LendingManager/LendingManager.sol
0x33e18a092a93ff21ad04746c7da12e35d34dc7c4
Solidity
LendingManager
contract LendingManager is Ownable, ReentrancyGuard { using Math for uint256; LendingRegistry public lendingRegistry; IExperiPie public basket; event Lend(address indexed underlying, uint256 amount, bytes32 indexed protocol); event UnLend(address indexed wrapped, uint256 amount); /** @...
unlend
function unlend(address _wrapped, uint256 _amount) public onlyOwner nonReentrant { // unlend token // _amount or actual balance, whatever is less uint256 amount = _amount.min(IERC20(_wrapped).balanceOf(address(basket))); //Unlend token ( address[] memory _targets, bytes[] memory _d...
/** @notice Unlend wrapped token from its lending protocol @param _wrapped Address of the wrapped token @param _amount Amount of the wrapped token to unlend */
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 1956, 2636 ] }
15,240
PProxy
contracts/callManagers/LendingManager/LendingManager.sol
0x33e18a092a93ff21ad04746c7da12e35d34dc7c4
Solidity
LendingManager
contract LendingManager is Ownable, ReentrancyGuard { using Math for uint256; LendingRegistry public lendingRegistry; IExperiPie public basket; event Lend(address indexed underlying, uint256 amount, bytes32 indexed protocol); event UnLend(address indexed wrapped, uint256 amount); /** @...
bounce
function bounce(address _wrapped, uint256 _amount, bytes32 _toProtocol) external { unlend(_wrapped, _amount); // Bounce all to new protocol lend(lendingRegistry.wrappedToUnderlying(_wrapped), uint256(-1), _toProtocol); }
/** @notice Unlend and immediately lend in a different protocol @param _wrapped Address of the wrapped token to bounce to another protocol @param _amount Amount of the wrapped token to bounce to the other protocol @param _toProtocol Protocol to deposit bounced tokens in @dev Uses reentrency protection of unlend() ...
NatSpecMultiLine
v0.7.1+commit.f4a555be
{ "func_code_index": [ 3015, 3264 ] }
15,241
Shares
Ownable.sol
0xe8eae0fa7b3de3cfd23325a64e1ff96860bd7341
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { owner = msg.sender; emit OwnershipTransferred(addr...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { 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.7.3+commit.9bfce1f6
None
ipfs://e8b58e8a6fb994351c0ca2f699cec29ff003377629fc1b827c18fd3f2683711e
{ "func_code_index": [ 664, 815 ] }
15,242
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 stafndard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 92, 152 ] }
15,243
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 stafndard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 233, 306 ] }
15,244
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 stafndard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 524, 606 ] }
15,245
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 stafndard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 879, 967 ] }
15,246
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 stafndard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 1618, 1697 ] }
15,247
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 stafndard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 2002, 2104 ] }
15,248
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) retu...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
tryAdd
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } }
/** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 157, 384 ] }
15,249
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) retu...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
trySub
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } }
/** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 528, 727 ] }
15,250
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) retu...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMul
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 ...
/** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 873, 1381 ] }
15,251
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) retu...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
tryDiv
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } }
/** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 1528, 1728 ] }
15,252
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) retu...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMod
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } }
/** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 1885, 2085 ] }
15,253
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) retu...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 2318, 2421 ] }
15,254
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) retu...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 (consu...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 3193, 3296 ] }
15,255
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) retu...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterp...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 3758, 3969 ] }
15,256
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) retu...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } }
/** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invali...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 4674, 4884 ] }
15,257
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) retu...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. ...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 5528, 5738 ] }
15,258
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 return f...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly ...
/** * @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.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 590, 1017 ] }
15,259
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 return f...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 1932, 2334 ] }
15,260
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 return f...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 3073, 3251 ] }
15,261
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 return f...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 3471, 3671 ] }
15,262
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 return f...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 4031, 4262 ] }
15,263
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 return f...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disa...
/** * @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.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 4508, 5043 ] }
15,264
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 return f...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionStaticCall
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 5218, 5422 ] }
15,265
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 return f...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionStaticCall
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.stat...
/** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 5604, 6031 ] }
15,266
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 return f...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionDelegateCall
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 6208, 6413 ] }
15,267
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 return f...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionDelegateCall
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.deleg...
/** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 6597, 7025 ] }
15,268
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 () { _owner = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 450, 542 ] }
15,269
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 () { _owner = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { 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.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 1093, 1246 ] }
15,270
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
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 () { _owner = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); 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.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 1393, 1642 ] }
15,271
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
JeetInu
contract JeetInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; uint8 private _decimals = 9; // string private _name = "Jeet Inu"; // name string private _symbol = "JEET"; ...
//to recieve ETH
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 7080, 7114 ] }
15,272
JeetInu
JeetInu.sol
0x6b883e0a5ca03035e5c0d7981b957f94f6c12a07
Solidity
JeetInu
contract JeetInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; uint8 private _decimals = 9; // string private _name = "Jeet Inu"; // name string private _symbol = "JEET"; ...
_tokenTransfer
function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private { if(!takeFee) removeAllFee(); if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && _isExcluded[recipie...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://e36e0415480af0c9e3508aced8553b2394d8c47ade2ff09ea57927b1ba84778b
{ "func_code_index": [ 13622, 14445 ] }
15,273
GrapevineWhitelist
contracts/grapevine/crowdsale/GrapevineWhitelistInterface.sol
0xa9f278047afb75ff69d454715bc1a75e5a846ac5
Solidity
GrapevineWhitelistInterface
contract GrapevineWhitelistInterface { /** * @dev Function to check if an address is whitelisted or not * @param _address address The address to be checked. */ function whitelist(address _address) view external returns (bool); /** * @dev Handles the off-chain whitelisting. * @param _...
/** * @title Grapevine Whitelist extends the zeppelin Whitelist and adding off-chain signing capabilities. * @dev Grapevine Crowdsale **/
NatSpecMultiLine
whitelist
function whitelist(address _address) view external returns (bool);
/** * @dev Function to check if an address is whitelisted or not * @param _address address The address to be checked. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fef476b4b633565f5a4ffa0a22333ab16ef2f076dec56c2a7df78af7201bd5f
{ "func_code_index": [ 178, 247 ] }
15,274
GrapevineWhitelist
contracts/grapevine/crowdsale/GrapevineWhitelistInterface.sol
0xa9f278047afb75ff69d454715bc1a75e5a846ac5
Solidity
GrapevineWhitelistInterface
contract GrapevineWhitelistInterface { /** * @dev Function to check if an address is whitelisted or not * @param _address address The address to be checked. */ function whitelist(address _address) view external returns (bool); /** * @dev Handles the off-chain whitelisting. * @param _...
/** * @title Grapevine Whitelist extends the zeppelin Whitelist and adding off-chain signing capabilities. * @dev Grapevine Crowdsale **/
NatSpecMultiLine
handleOffchainWhitelisted
function handleOffchainWhitelisted(address _addr, bytes _sig) external returns (bool);
/** * @dev Handles the off-chain whitelisting. * @param _addr Address of the sender. * @param _sig signed message provided by the sender. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fef476b4b633565f5a4ffa0a22333ab16ef2f076dec56c2a7df78af7201bd5f
{ "func_code_index": [ 413, 502 ] }
15,275
SolarBit
SolarBit.sol
0xd5175e9857c6d7ff4b17730ea7a7f4b07ca27b37
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://a4c43aca1cdfc95fb42ce1e1908e306555d268fbd8609f3324984b4336e3e931
{ "func_code_index": [ 60, 124 ] }
15,276
SolarBit
SolarBit.sol
0xd5175e9857c6d7ff4b17730ea7a7f4b07ca27b37
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://a4c43aca1cdfc95fb42ce1e1908e306555d268fbd8609f3324984b4336e3e931
{ "func_code_index": [ 232, 309 ] }
15,277
SolarBit
SolarBit.sol
0xd5175e9857c6d7ff4b17730ea7a7f4b07ca27b37
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transfer
function transfer(address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://a4c43aca1cdfc95fb42ce1e1908e306555d268fbd8609f3324984b4336e3e931
{ "func_code_index": [ 546, 623 ] }
15,278
SolarBit
SolarBit.sol
0xd5175e9857c6d7ff4b17730ea7a7f4b07ca27b37
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://a4c43aca1cdfc95fb42ce1e1908e306555d268fbd8609f3324984b4336e3e931
{ "func_code_index": [ 946, 1042 ] }
15,279
SolarBit
SolarBit.sol
0xd5175e9857c6d7ff4b17730ea7a7f4b07ca27b37
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
approve
function approve(address _spender, uint256 _value) returns (bool success) {}
/// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://a4c43aca1cdfc95fb42ce1e1908e306555d268fbd8609f3324984b4336e3e931
{ "func_code_index": [ 1326, 1407 ] }
15,280
SolarBit
SolarBit.sol
0xd5175e9857c6d7ff4b17730ea7a7f4b07ca27b37
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://a4c43aca1cdfc95fb42ce1e1908e306555d268fbd8609f3324984b4336e3e931
{ "func_code_index": [ 1615, 1712 ] }
15,281
SolarBit
SolarBit.sol
0xd5175e9857c6d7ff4b17730ea7a7f4b07ca27b37
Solidity
SolarBit
contract SolarBit is StandardToken { function () { //if ether is sent to this address, send it back. throw; } /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to custom...
//name this contract whatever you'd like
LineComment
SolarBit
function SolarBit( ) { balances[msg.sender] = 21000000000000000000000000; // Give the creator all initial tokens (100000 for example) totalSupply = 21000000000000000000000000; // Update total supply (100000 for example) name = "SolarBit"; ...
//human 0.1 standard. Just an arbitrary versioning scheme. // // CHANGE THESE VALUES FOR YOUR TOKEN // //make sure this function name matches the contract name above. So if you're token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token
LineComment
v0.4.19+commit.c4cbbb05
bzzr://a4c43aca1cdfc95fb42ce1e1908e306555d268fbd8609f3324984b4336e3e931
{ "func_code_index": [ 1183, 1765 ] }
15,282
SolarBit
SolarBit.sol
0xd5175e9857c6d7ff4b17730ea7a7f4b07ca27b37
Solidity
SolarBit
contract SolarBit is StandardToken { function () { //if ether is sent to this address, send it back. throw; } /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to custom...
//name this contract whatever you'd like
LineComment
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); //call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s...
/* Approves and then calls the receiving contract */
Comment
v0.4.19+commit.c4cbbb05
bzzr://a4c43aca1cdfc95fb42ce1e1908e306555d268fbd8609f3324984b4336e3e931
{ "func_code_index": [ 1826, 2631 ] }
15,283
GrapevineWhitelist
contracts/grapevine/crowdsale/GrapevineWhitelist.sol
0xa9f278047afb75ff69d454715bc1a75e5a846ac5
Solidity
GrapevineWhitelist
contract GrapevineWhitelist is SignatureBouncer, GrapevineWhitelistInterface { event WhitelistedAddressAdded(address addr); event WhitelistedAddressRemoved(address addr); event UselessEvent(address addr, bytes sign, bool ret); mapping(address => bool) public whitelist; address crowdsale; const...
/** * @title Grapevine Whitelist extends the zeppelin Whitelist and adding off-chain signing capabilities. * @dev Grapevine Crowdsale **/
NatSpecMultiLine
whitelist
function whitelist(address _address) view external returns (bool) { return whitelist[_address]; }
/** * @dev Function to check if an address is whitelisted * @param _address address The address to be checked. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fef476b4b633565f5a4ffa0a22333ab16ef2f076dec56c2a7df78af7201bd5f
{ "func_code_index": [ 667, 775 ] }
15,284
GrapevineWhitelist
contracts/grapevine/crowdsale/GrapevineWhitelist.sol
0xa9f278047afb75ff69d454715bc1a75e5a846ac5
Solidity
GrapevineWhitelist
contract GrapevineWhitelist is SignatureBouncer, GrapevineWhitelistInterface { event WhitelistedAddressAdded(address addr); event WhitelistedAddressRemoved(address addr); event UselessEvent(address addr, bytes sign, bool ret); mapping(address => bool) public whitelist; address crowdsale; const...
/** * @title Grapevine Whitelist extends the zeppelin Whitelist and adding off-chain signing capabilities. * @dev Grapevine Crowdsale **/
NatSpecMultiLine
setCrowdsale
function setCrowdsale(address _crowdsale) external onlyOwner { require(_crowdsale != address(0)); crowdsale = _crowdsale; }
/** * @dev Function to set the crowdsale address * @param _crowdsale address The address of the crowdsale. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fef476b4b633565f5a4ffa0a22333ab16ef2f076dec56c2a7df78af7201bd5f
{ "func_code_index": [ 905, 1044 ] }
15,285
GrapevineWhitelist
contracts/grapevine/crowdsale/GrapevineWhitelist.sol
0xa9f278047afb75ff69d454715bc1a75e5a846ac5
Solidity
GrapevineWhitelist
contract GrapevineWhitelist is SignatureBouncer, GrapevineWhitelistInterface { event WhitelistedAddressAdded(address addr); event WhitelistedAddressRemoved(address addr); event UselessEvent(address addr, bytes sign, bool ret); mapping(address => bool) public whitelist; address crowdsale; const...
/** * @title Grapevine Whitelist extends the zeppelin Whitelist and adding off-chain signing capabilities. * @dev Grapevine Crowdsale **/
NatSpecMultiLine
addAddressesToWhitelist
function addAddressesToWhitelist(address[] _beneficiaries) external onlyOwnerOrCrowdsale { for (uint256 i = 0; i < _beneficiaries.length; i++) { addAddressToWhitelist(_beneficiaries[i]); } }
/** * @dev Adds list of addresses to whitelist. Not overloaded due to limitations with truffle testing. * @param _beneficiaries Addresses to be added to the whitelist */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fef476b4b633565f5a4ffa0a22333ab16ef2f076dec56c2a7df78af7201bd5f
{ "func_code_index": [ 1232, 1445 ] }
15,286
GrapevineWhitelist
contracts/grapevine/crowdsale/GrapevineWhitelist.sol
0xa9f278047afb75ff69d454715bc1a75e5a846ac5
Solidity
GrapevineWhitelist
contract GrapevineWhitelist is SignatureBouncer, GrapevineWhitelistInterface { event WhitelistedAddressAdded(address addr); event WhitelistedAddressRemoved(address addr); event UselessEvent(address addr, bytes sign, bool ret); mapping(address => bool) public whitelist; address crowdsale; const...
/** * @title Grapevine Whitelist extends the zeppelin Whitelist and adding off-chain signing capabilities. * @dev Grapevine Crowdsale **/
NatSpecMultiLine
removeAddressFromWhitelist
function removeAddressFromWhitelist(address _beneficiary) external onlyOwnerOrCrowdsale { whitelist[_beneficiary] = false; emit WhitelistedAddressRemoved(_beneficiary); }
/** * @dev Removes single address from whitelist. * @param _beneficiary Address to be removed to the whitelist */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fef476b4b633565f5a4ffa0a22333ab16ef2f076dec56c2a7df78af7201bd5f
{ "func_code_index": [ 1577, 1763 ] }
15,287
GrapevineWhitelist
contracts/grapevine/crowdsale/GrapevineWhitelist.sol
0xa9f278047afb75ff69d454715bc1a75e5a846ac5
Solidity
GrapevineWhitelist
contract GrapevineWhitelist is SignatureBouncer, GrapevineWhitelistInterface { event WhitelistedAddressAdded(address addr); event WhitelistedAddressRemoved(address addr); event UselessEvent(address addr, bytes sign, bool ret); mapping(address => bool) public whitelist; address crowdsale; const...
/** * @title Grapevine Whitelist extends the zeppelin Whitelist and adding off-chain signing capabilities. * @dev Grapevine Crowdsale **/
NatSpecMultiLine
handleOffchainWhitelisted
function handleOffchainWhitelisted(address _addr, bytes _sig) external onlyOwnerOrCrowdsale returns (bool) { bool valid; // no need for consuming gas when the address is already whitelisted if (whitelist[_addr]) { valid = true; } else { valid = isValidSignature(_addr, _sig); if (valid) { ...
/** * @dev Handles the off-chain whitelisting. * @param _addr Address of the sender. * @param _sig signed message provided by the sender. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fef476b4b633565f5a4ffa0a22333ab16ef2f076dec56c2a7df78af7201bd5f
{ "func_code_index": [ 1926, 2424 ] }
15,288
GrapevineWhitelist
contracts/grapevine/crowdsale/GrapevineWhitelist.sol
0xa9f278047afb75ff69d454715bc1a75e5a846ac5
Solidity
GrapevineWhitelist
contract GrapevineWhitelist is SignatureBouncer, GrapevineWhitelistInterface { event WhitelistedAddressAdded(address addr); event WhitelistedAddressRemoved(address addr); event UselessEvent(address addr, bytes sign, bool ret); mapping(address => bool) public whitelist; address crowdsale; const...
/** * @title Grapevine Whitelist extends the zeppelin Whitelist and adding off-chain signing capabilities. * @dev Grapevine Crowdsale **/
NatSpecMultiLine
addAddressToWhitelist
function addAddressToWhitelist(address _beneficiary) public onlyOwnerOrCrowdsale { whitelist[_beneficiary] = true; emit WhitelistedAddressAdded(_beneficiary); }
/** * @dev Adds single address to whitelist. * @param _beneficiary Address to be added to the whitelist */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fef476b4b633565f5a4ffa0a22333ab16ef2f076dec56c2a7df78af7201bd5f
{ "func_code_index": [ 2549, 2725 ] }
15,289
BRP
BRP.sol
0xe5b998f63e7022664d3c36c56d1798cca7751573
Solidity
Context
contract Context { constructor () public { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address) { return msg.sender; } }
_msgSender
function _msgSender() internal view returns (address) { return msg.sender; }
// solhint-disable-previous-line no-empty-blocks
LineComment
v0.8.0+commit.c7dfd78e
MIT
ipfs://fcca952d771f5fdbfaf8a915f5260fd4dd1cdbe54595eda9b61a5790a77e8647
{ "func_code_index": [ 107, 202 ] }
15,290
BRP
BRP.sol
0xe5b998f63e7022664d3c36c56d1798cca7751573
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 () internal { address msgSender =...
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://fcca952d771f5fdbfaf8a915f5260fd4dd1cdbe54595eda9b61a5790a77e8647
{ "func_code_index": [ 506, 598 ] }
15,291
BRP
BRP.sol
0xe5b998f63e7022664d3c36c56d1798cca7751573
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 () internal { address msgSender =...
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.8.0+commit.c7dfd78e
MIT
ipfs://fcca952d771f5fdbfaf8a915f5260fd4dd1cdbe54595eda9b61a5790a77e8647
{ "func_code_index": [ 1157, 1310 ] }
15,292
BRP
BRP.sol
0xe5b998f63e7022664d3c36c56d1798cca7751573
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 () internal { address msgSender =...
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.8.0+commit.c7dfd78e
MIT
ipfs://fcca952d771f5fdbfaf8a915f5260fd4dd1cdbe54595eda9b61a5790a77e8647
{ "func_code_index": [ 1460, 1709 ] }
15,293
CollectibleMintPassFactory
contracts/AbstractMintPassFactory.sol
0x7d13779e1cf970d381f265ee3f88915cc1e3ccef
Solidity
AbstractMintPassFactory
abstract contract AbstractMintPassFactory is AccessControl, ERC1155Pausable, ERC1155Supply, ERC1155Burnable, Ownable { string public name_; string public symbol_; function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } ...
supportsInterface
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); }
/** * @dev See {IERC165-supportsInterface}. */
NatSpecMultiLine
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 2010, 2188 ] }
15,294
CryptoQuby
src\contracts\CryptoQuby.sol
0xea234bb1c3f9c046404fdd400a6f7f3dc1087b3a
Solidity
CryptoQuby
contract CryptoQuby is ERC721, Ownable { using SafeMath for uint256; bool public hasSaleStarted = false; uint public constant MAX_QUBY = 10000; //Will update this HASH with metadata of all 10,000 CryptoQuby once it has been fully collected string public CRYPTOQUBY_METADATA_HASH = ""; ...
setCryptoQubyHash
function setCryptoQubyHash(string memory _hash) public onlyOwner { CRYPTOQUBY_METADATA_HASH = _hash; }
// Update CRYPTOQUBY_METADATA_HASH containing all 10,000 CryptoQuby
LineComment
v0.7.0+commit.9e61f92b
MIT
ipfs://07fe8dcaea4fd394007b94a785426cf17bd815429cd8895f34966ecd2870eda3
{ "func_code_index": [ 4337, 4458 ] }
15,295
CryptoQuby
src\contracts\CryptoQuby.sol
0xea234bb1c3f9c046404fdd400a6f7f3dc1087b3a
Solidity
CryptoQuby
contract CryptoQuby is ERC721, Ownable { using SafeMath for uint256; bool public hasSaleStarted = false; uint public constant MAX_QUBY = 10000; //Will update this HASH with metadata of all 10,000 CryptoQuby once it has been fully collected string public CRYPTOQUBY_METADATA_HASH = ""; ...
reserveQuby
function reserveQuby(uint256 numQuby) public onlyOwner { uint currentSupply = totalSupply(); require(totalSupply().add(numQuby) <= 30, "Exceeded giveaway supply"); require(hasSaleStarted == false, "Sale has already started"); uint256 index; for (index = 0; index < numQuby; index++) { _...
// ReserveQuby into Owner wallet for giveaways/those who have helped us along the way
LineComment
v0.7.0+commit.9e61f92b
MIT
ipfs://07fe8dcaea4fd394007b94a785426cf17bd815429cd8895f34966ecd2870eda3
{ "func_code_index": [ 4859, 5267 ] }
15,296
BolivarToken
BolivarToken.sol
0x4986beff7d516947ec5ea2d14401bd61faf849d1
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.17+commit.bdeb9e52
bzzr://2678a72cfaa9e7467d00f6ac739986d85f97d6a0918efaeee147ecb490a413f6
{ "func_code_index": [ 60, 124 ] }
15,297
BolivarToken
BolivarToken.sol
0x4986beff7d516947ec5ea2d14401bd61faf849d1
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.17+commit.bdeb9e52
bzzr://2678a72cfaa9e7467d00f6ac739986d85f97d6a0918efaeee147ecb490a413f6
{ "func_code_index": [ 232, 309 ] }
15,298
BolivarToken
BolivarToken.sol
0x4986beff7d516947ec5ea2d14401bd61faf849d1
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transfer
function transfer(address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.17+commit.bdeb9e52
bzzr://2678a72cfaa9e7467d00f6ac739986d85f97d6a0918efaeee147ecb490a413f6
{ "func_code_index": [ 546, 623 ] }
15,299