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
LandSaleWithETHAndDAI
src/LandSale/LandSaleWithETHAndDAI.sol
0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0
Solidity
LandSaleWithETHAndDAI
contract LandSaleWithETHAndDAI is MetaTransactionReceiver { using SafeMathWithRequire for uint256; uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land uint256 internal constant daiPrice = 14400000000000000; Land internal _land; ERC20 internal _sand; Medianizer private _me...
/** * @title Land Sale contract that supports also DAI and ETH as payment * @notice This contract mananges the sale of our lands */
NatSpecMultiLine
isSANDEnabled
function isSANDEnabled() external view returns (bool) { return _sandEnabled; }
/// @notice return whether the specific SAND payments are enabled /// @return whether the specific SAND payments are enabled
NatSpecSingleLine
v0.5.9+commit.e560f70d
None
bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a
{ "func_code_index": [ 3260, 3354 ] }
28,100
LandSaleWithETHAndDAI
src/LandSale/LandSaleWithETHAndDAI.sol
0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0
Solidity
LandSaleWithETHAndDAI
contract LandSaleWithETHAndDAI is MetaTransactionReceiver { using SafeMathWithRequire for uint256; uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land uint256 internal constant daiPrice = 14400000000000000; Land internal _land; ERC20 internal _sand; Medianizer private _me...
/** * @title Land Sale contract that supports also DAI and ETH as payment * @notice This contract mananges the sale of our lands */
NatSpecMultiLine
buyLandWithSand
function buyLandWithSand( address buyer, address to, address reserved, uint256 x, uint256 y, uint256 size, uint256 priceInSand, bytes32 salt, bytes32[] calldata proof ) external { require(_sandEnabled, "sand payments not enabled"); _checkValidity(buyer, reserved, x, y, size, ...
/** * @notice buy Land with SAND using the merkle proof associated with it * @param buyer address that perform the payment * @param to address that will own the purchased Land * @param reserved the reserved address (if any) * @param x x coordinate of the Land * @param y y coordinate of the Land * @param size siz...
NatSpecMultiLine
v0.5.9+commit.e560f70d
None
bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a
{ "func_code_index": [ 4939, 5615 ] }
28,101
LandSaleWithETHAndDAI
src/LandSale/LandSaleWithETHAndDAI.sol
0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0
Solidity
LandSaleWithETHAndDAI
contract LandSaleWithETHAndDAI is MetaTransactionReceiver { using SafeMathWithRequire for uint256; uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land uint256 internal constant daiPrice = 14400000000000000; Land internal _land; ERC20 internal _sand; Medianizer private _me...
/** * @title Land Sale contract that supports also DAI and ETH as payment * @notice This contract mananges the sale of our lands */
NatSpecMultiLine
buyLandWithETH
function buyLandWithETH( address buyer, address to, address reserved, uint256 x, uint256 y, uint256 size, uint256 priceInSand, bytes32 salt, bytes32[] calldata proof ) external payable { require(_etherEnabled, "ether payments not enabled"); _checkValidity(buyer, reserved, x, ...
/** * @notice buy Land with ETH using the merkle proof associated with it * @param buyer address that perform the payment * @param to address that will own the purchased Land * @param reserved the reserved address (if any) * @param x x coordinate of the Land * @param y y coordinate of the Land * @param size size...
NatSpecMultiLine
v0.5.9+commit.e560f70d
None
bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a
{ "func_code_index": [ 6172, 6994 ] }
28,102
LandSaleWithETHAndDAI
src/LandSale/LandSaleWithETHAndDAI.sol
0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0
Solidity
LandSaleWithETHAndDAI
contract LandSaleWithETHAndDAI is MetaTransactionReceiver { using SafeMathWithRequire for uint256; uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land uint256 internal constant daiPrice = 14400000000000000; Land internal _land; ERC20 internal _sand; Medianizer private _me...
/** * @title Land Sale contract that supports also DAI and ETH as payment * @notice This contract mananges the sale of our lands */
NatSpecMultiLine
buyLandWithDAI
function buyLandWithDAI( address buyer, address to, address reserved, uint256 x, uint256 y, uint256 size, uint256 priceInSand, bytes32 salt, bytes32[] calldata proof ) external { require(_daiEnabled, "dai payments not enabled"); _checkValidity(buyer, reserved, x, y, size, pri...
/** * @notice buy Land with DAI using the merkle proof associated with it * @param buyer address that perform the payment * @param to address that will own the purchased Land * @param reserved the reserved address (if any) * @param x x coordinate of the Land * @param y y coordinate of the Land * @param size size...
NatSpecMultiLine
v0.5.9+commit.e560f70d
None
bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a
{ "func_code_index": [ 7551, 8211 ] }
28,103
LandSaleWithETHAndDAI
src/LandSale/LandSaleWithETHAndDAI.sol
0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0
Solidity
LandSaleWithETHAndDAI
contract LandSaleWithETHAndDAI is MetaTransactionReceiver { using SafeMathWithRequire for uint256; uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land uint256 internal constant daiPrice = 14400000000000000; Land internal _land; ERC20 internal _sand; Medianizer private _me...
/** * @title Land Sale contract that supports also DAI and ETH as payment * @notice This contract mananges the sale of our lands */
NatSpecMultiLine
getExpiryTime
function getExpiryTime() external view returns(uint256) { return _expiryTime; }
/** * @notice Gets the expiry time for the current sale * @return The expiry time, as a unix epoch */
NatSpecMultiLine
v0.5.9+commit.e560f70d
None
bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a
{ "func_code_index": [ 8334, 8429 ] }
28,104
LandSaleWithETHAndDAI
src/LandSale/LandSaleWithETHAndDAI.sol
0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0
Solidity
LandSaleWithETHAndDAI
contract LandSaleWithETHAndDAI is MetaTransactionReceiver { using SafeMathWithRequire for uint256; uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land uint256 internal constant daiPrice = 14400000000000000; Land internal _land; ERC20 internal _sand; Medianizer private _me...
/** * @title Land Sale contract that supports also DAI and ETH as payment * @notice This contract mananges the sale of our lands */
NatSpecMultiLine
merkleRoot
function merkleRoot() external view returns(bytes32) { return _merkleRoot; }
/** * @notice Gets the Merkle root associated with the current sale * @return The Merkle root, as a bytes32 hash */
NatSpecMultiLine
v0.5.9+commit.e560f70d
None
bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a
{ "func_code_index": [ 8566, 8658 ] }
28,105
LandSaleWithETHAndDAI
src/LandSale/LandSaleWithETHAndDAI.sol
0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0
Solidity
LandSaleWithETHAndDAI
contract LandSaleWithETHAndDAI is MetaTransactionReceiver { using SafeMathWithRequire for uint256; uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land uint256 internal constant daiPrice = 14400000000000000; Land internal _land; ERC20 internal _sand; Medianizer private _me...
/** * @title Land Sale contract that supports also DAI and ETH as payment * @notice This contract mananges the sale of our lands */
NatSpecMultiLine
getEtherAmountWithSAND
function getEtherAmountWithSAND(uint256 sandAmount) public view returns (uint256) { uint256 ethUsdPair = getEthUsdPair(); return sandAmount.mul(daiPrice).div(ethUsdPair); }
/** * @notice Returns the amount of ETH for a specific amount of SAND * @param sandAmount An amount of SAND * @return The amount of ETH */
NatSpecMultiLine
v0.5.9+commit.e560f70d
None
bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a
{ "func_code_index": [ 9804, 10000 ] }
28,106
LandSaleWithETHAndDAI
src/LandSale/LandSaleWithETHAndDAI.sol
0xb2fb1d91325d0211b1eb39e4cf2c9f3cf14508b0
Solidity
LandSaleWithETHAndDAI
contract LandSaleWithETHAndDAI is MetaTransactionReceiver { using SafeMathWithRequire for uint256; uint256 internal constant GRID_SIZE = 408; // 408 is the size of the Land uint256 internal constant daiPrice = 14400000000000000; Land internal _land; ERC20 internal _sand; Medianizer private _me...
/** * @title Land Sale contract that supports also DAI and ETH as payment * @notice This contract mananges the sale of our lands */
NatSpecMultiLine
getEthUsdPair
function getEthUsdPair() internal view returns (uint256) { bytes32 pair = _medianizer.read(); return uint256(pair); }
/** * @notice Gets the ETHUSD pair from the Medianizer contract * @return The pair as an uint256 */
NatSpecMultiLine
v0.5.9+commit.e560f70d
None
bzzr://f21bf72314851e6d6bf1061cc780efdf014b0750921f6a9ffe279147ad52246a
{ "func_code_index": [ 10121, 10262 ] }
28,107
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; }...
Ownable
function Ownable() public { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 261, 321 ] }
28,108
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; }...
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 644, 820 ] }
28,109
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
HasNoEther
contract HasNoEther is Ownable { /** * @dev Constructor that rejects incoming Ether * @dev The `payable` flag is added so we can access `msg.value` without compiler warning. If we * leave out payable, then Solidity will allow inheriting contracts to implement a payable * constructor. By doing it this w...
HasNoEther
function HasNoEther() public payable { require(msg.value == 0); }
/** * @dev Constructor that rejects incoming Ether * @dev The `payable` flag is added so we can access `msg.value` without compiler warning. If we * leave out payable, then Solidity will allow inheriting contracts to implement a payable * constructor. By doing it this way we prevent a payable constructor from w...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 439, 515 ] }
28,110
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
HasNoEther
contract HasNoEther is Ownable { /** * @dev Constructor that rejects incoming Ether * @dev The `payable` flag is added so we can access `msg.value` without compiler warning. If we * leave out payable, then Solidity will allow inheriting contracts to implement a payable * constructor. By doing it this w...
function() external { }
/** * @dev Disallows direct send by settings a default function without the `payable` flag. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 624, 653 ] }
28,111
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
HasNoEther
contract HasNoEther is Ownable { /** * @dev Constructor that rejects incoming Ether * @dev The `payable` flag is added so we can access `msg.value` without compiler warning. If we * leave out payable, then Solidity will allow inheriting contracts to implement a payable * constructor. By doing it this w...
reclaimEther
function reclaimEther() external onlyOwner { assert(owner.send(this.balance)); }
/** * @dev Transfer all Ether held by the contract to the owner. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 735, 826 ] }
28,112
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) pub...
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); T...
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 268, 659 ] }
28,113
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) pub...
balanceOf
function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 865, 977 ] }
28,114
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 401, 853 ] }
28,115
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
approve
function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * ...
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 1485, 1675 ] }
28,116
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
allowance
function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 1999, 2130 ] }
28,117
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transf...
increaseApproval
function increaseApproval(address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 2375, 2639 ] }
28,118
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
BurnableToken
contract BurnableToken is StandardToken { event Burn(address indexed burner, uint256 value); /** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */ function burn(uint256 _value) public { require(_value > 0); require(_valu...
burn
function burn(uint256 _value) public { require(_value > 0); require(_value <= balances[msg.sender]); // no need to require value <= totalSupply, since that would imply the // sender's balance is greater than the totalSupply, which *should* be an assertion failure address burner = msg.sender; ...
/** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 225, 713 ] }
28,119
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
NeuroToken
contract NeuroToken is BurnableToken, HasNoEther { string public constant name = "NeuroToken"; string public constant symbol = "NTK"; uint8 public constant decimals = 18; uint256 constant INITIAL_SUPPLY = 100000000 * (10 ** uint256(decimals)); //February 15, 2018 11:59:59 PM uint...
NeuroToken
function NeuroToken() public { totalSupply = INITIAL_SUPPLY; balances[msg.sender] = INITIAL_SUPPLY; Transfer(address(0), msg.sender, totalSupply); }
/** * @dev Constructor that gives msg.sender all of existing tokens. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 448, 633 ] }
28,120
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
NeuroToken
contract NeuroToken is BurnableToken, HasNoEther { string public constant name = "NeuroToken"; string public constant symbol = "NTK"; uint8 public constant decimals = 18; uint256 constant INITIAL_SUPPLY = 100000000 * (10 ** uint256(decimals)); //February 15, 2018 11:59:59 PM uint...
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(msg.sender == owner || now >= FREEZE_END); return super.transfer(_to, _value); }
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 801, 988 ] }
28,121
NeuroToken
NeuroToken.sol
0x69beab403438253f13b6e92db91f7fb849258263
Solidity
NeuroToken
contract NeuroToken is BurnableToken, HasNoEther { string public constant name = "NeuroToken"; string public constant symbol = "NTK"; uint8 public constant decimals = 18; uint256 constant INITIAL_SUPPLY = 100000000 * (10 ** uint256(decimals)); //February 15, 2018 11:59:59 PM uint...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(msg.sender == owner || now >= FREEZE_END); return super.transferFrom(_from, _to, _value); }
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://b45af56dabdab3de8101be15fb8dd543ed05eaf718ef7c78fbbec80db85684a4
{ "func_code_index": [ 1275, 1492 ] }
28,122
SleepySlothClub
@openzeppelin/contracts/access/Ownable.sol
0xc707b0e5d8b4f78d9f4bbc6d02be0c32a29b3b26
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://95264e7d719383e39c7714cdd68ded71474719f497df752e6081be2c6f8bd17c
{ "func_code_index": [ 399, 491 ] }
28,123
SleepySlothClub
@openzeppelin/contracts/access/Ownable.sol
0xc707b0e5d8b4f78d9f4bbc6d02be0c32a29b3b26
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://95264e7d719383e39c7714cdd68ded71474719f497df752e6081be2c6f8bd17c
{ "func_code_index": [ 1050, 1149 ] }
28,124
SleepySlothClub
@openzeppelin/contracts/access/Ownable.sol
0xc707b0e5d8b4f78d9f4bbc6d02be0c32a29b3b26
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://95264e7d719383e39c7714cdd68ded71474719f497df752e6081be2c6f8bd17c
{ "func_code_index": [ 1299, 1496 ] }
28,125
SleepySlothClub
@openzeppelin/contracts/access/Ownable.sol
0xc707b0e5d8b4f78d9f4bbc6d02be0c32a29b3b26
Solidity
SleepySlothClub
contract SleepySlothClub is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public PROVENANCE = "a439d1192de672117f3d6803967d5cdc0f5fc5738d85e37ed669ce4457084003"; string public BASE_EXTENSION = ".json"; uint256 public PRICE = 0.077 ether; uint256 public PRE_SALE_PRICE ...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://95264e7d719383e39c7714cdd68ded71474719f497df752e6081be2c6f8bd17c
{ "func_code_index": [ 1124, 1229 ] }
28,126
SleepySlothClub
@openzeppelin/contracts/access/Ownable.sol
0xc707b0e5d8b4f78d9f4bbc6d02be0c32a29b3b26
Solidity
SleepySlothClub
contract SleepySlothClub is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public PROVENANCE = "a439d1192de672117f3d6803967d5cdc0f5fc5738d85e37ed669ce4457084003"; string public BASE_EXTENSION = ".json"; uint256 public PRICE = 0.077 ether; uint256 public PRE_SALE_PRICE ...
preSaleMint
function preSaleMint(uint256 _mintAmount) public payable { require(preSaleIsActive, SALE_NOT_ACTIVE); require(_mintAmount > 0, MUST_MINT_ONE); require(_mintAmount <= MAX_PRESALE_AMOUNT, MAX_MINT_EXCEEDED); uint256 supply = totalSupply(); require(supply + _mintAmount <= PRE_SALE_SUPPLY , MAX_SUPPLY_...
// public
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://95264e7d719383e39c7714cdd68ded71474719f497df752e6081be2c6f8bd17c
{ "func_code_index": [ 1245, 1813 ] }
28,127
SleepySlothClub
@openzeppelin/contracts/access/Ownable.sol
0xc707b0e5d8b4f78d9f4bbc6d02be0c32a29b3b26
Solidity
SleepySlothClub
contract SleepySlothClub is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public PROVENANCE = "a439d1192de672117f3d6803967d5cdc0f5fc5738d85e37ed669ce4457084003"; string public BASE_EXTENSION = ".json"; uint256 public PRICE = 0.077 ether; uint256 public PRE_SALE_PRICE ...
setBaseURI
function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; }
//only owner
LineComment
v0.8.7+commit.e28d00a7
MIT
ipfs://95264e7d719383e39c7714cdd68ded71474719f497df752e6081be2c6f8bd17c
{ "func_code_index": [ 3159, 3260 ] }
28,128
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
IBEP20
interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 88, 146 ] }
28,129
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
IBEP20
interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the token decimals. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 202, 255 ] }
28,130
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
IBEP20
interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the token symbol. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 309, 368 ] }
28,131
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
IBEP20
interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
name
function name() external view returns (string memory);
/** * @dev Returns the token name. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 418, 475 ] }
28,132
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
IBEP20
interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
getOwner
function getOwner() external view returns (address);
/** * @dev Returns the bep token owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 532, 587 ] }
28,133
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
IBEP20
interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 664, 735 ] }
28,134
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
IBEP20
interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 945, 1025 ] }
28,135
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
IBEP20
interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
allowance
function allowance(address _owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 1290, 1377 ] }
28,136
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
IBEP20
interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 2013, 2090 ] }
28,137
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
IBEP20
interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 2385, 2485 ] }
28,138
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c =...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 233, 403 ] }
28,139
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c =...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 655, 788 ] }
28,140
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c =...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 1060, 1241 ] }
28,141
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c =...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint25...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 1469, 1903 ] }
28,142
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c =...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 2344, 2473 ] }
28,143
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c =...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 2934, 3260 ] }
28,144
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c =...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 3690, 3817 ] }
28,145
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c =...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 4267, 4426 ] }
28,146
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owne...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 465, 541 ] }
28,147
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owne...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 1067, 1200 ] }
28,148
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owne...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 1342, 1448 ] }
28,149
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owne...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 1543, 1761 ] }
28,150
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
getOwner
function getOwner() external view returns (address) { return owner(); }
/** * @dev Returns the bep token owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 623, 705 ] }
28,151
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
decimals
function decimals() external view returns (uint8) { return _decimals; }
/** * @dev Returns the token decimals. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 761, 843 ] }
28,152
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
symbol
function symbol() external view returns (string memory) { return _symbol; }
/** * @dev Returns the token symbol. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 897, 983 ] }
28,153
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
name
function name() external view returns (string memory) { return _name; }
/** * @dev Returns the token name. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 1033, 1115 ] }
28,154
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
totalSupply
function totalSupply() external view returns (uint256) { return _totalSupply; }
/** * @dev See {BEP20-totalSupply}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 1168, 1258 ] }
28,155
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
balanceOf
function balanceOf(address account) external view returns (uint256) { return _balances[account]; }
/** * @dev See {BEP20-balanceOf}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 1309, 1418 ] }
28,156
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
transfer
function transfer(address recipient, uint256 amount) external returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {BEP20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 1609, 1762 ] }
28,157
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
allowance
function allowance(address owner, address spender) external view returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {BEP20-allowance}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 1813, 1946 ] }
28,158
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
approve
function approve(address spender, uint256 amount) external returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {BEP20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 2073, 2220 ] }
28,159
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "BEP20: transfer amount exceeds allowance")); return true; }
/** * @dev See {BEP20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {BEP20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amoun...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 2662, 2957 ] }
28,160
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {BEP20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` ca...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 3336, 3539 ] }
28,161
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "BEP20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {BEP20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` ca...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 4008, 4262 ] }
28,162
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
mint
function mint(uint256 amount) public onlyOwner returns (bool) { _mint(_msgSender(), amount); return true; }
/** * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing * the total supply. * * Requirements * * - `msg.sender` must be the token owner */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 4459, 4582 ] }
28,163
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
burn
function burn(uint256 amount) public returns (bool) { _burn(_msgSender(), amount); return true; }
/** * @dev Burn `amount` tokens and decreasing the total supply. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 4664, 4777 ] }
28,164
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "BEP20: transfer from the zero address"); require(recipient != address(0), "BEP20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "BEP20: transfer amount exceeds b...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 5234, 5686 ] }
28,165
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
_mint
function _mint(address account, uint256 amount) internal { require(account != address(0), "BEP20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); }
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 5944, 6237 ] }
28,166
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
_burn
function _burn(address account, uint256 amount) internal { require(account != address(0), "BEP20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "BEP20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); }...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 6542, 6875 ] }
28,167
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
_approve
function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "BEP20: approve from the zero address"); require(spender != address(0), "BEP20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); }
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 7284, 7607 ] }
28,168
INK_COIN
INK_COIN.sol
0x47160bde132d399f87127cda3a03f6ec462ddaa0
Solidity
INK_COIN
contract INK_COIN is Context, IBEP20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint8 public _decimals; string public _symbol; string public _name; ...
_burnFrom
function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "BEP20: burn amount exceeds allowance")); }
/** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
MIT
bzzr://f2d21ca6542d28045e4c7661b9c5751cc2e3415ddfcc672ee180c1d3b10140af
{ "func_code_index": [ 7776, 8001 ] }
28,169
SukuToken
contracts/SukuToken.sol
0x0763fdccf1ae541a5961815c0872a8c5bc6de4d7
Solidity
SukuToken
contract SukuToken is ERC1404, ERC20, ERC20Detailed, Whitelistable, Restrictable { // Token Details string constant TOKEN_NAME = "SUKU"; string constant TOKEN_SYMBOL = "SUKU"; uint8 constant TOKEN_DECIMALS = 18; // Token supply - 1.5 Billion Tokens, with 18 decimal precision uint256 co...
detectTransferRestriction
function detectTransferRestriction (address from, address to, uint256) public view returns (uint8) { // If the restrictions have been disabled by the owner, then just return success // Logic defined in Restrictable parent class if(!isRestrictionEnabled()) { return ...
/** This function detects whether a transfer should be restricted and not allowed. If the function returns SUCCESS_CODE (0) then it should be allowed. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://7028316fa29a58455a36d0eba490ed261e46186366c814db70b26a2eb654618b
{ "func_code_index": [ 1337, 2231 ] }
28,170
SukuToken
contracts/SukuToken.sol
0x0763fdccf1ae541a5961815c0872a8c5bc6de4d7
Solidity
SukuToken
contract SukuToken is ERC1404, ERC20, ERC20Detailed, Whitelistable, Restrictable { // Token Details string constant TOKEN_NAME = "SUKU"; string constant TOKEN_SYMBOL = "SUKU"; uint8 constant TOKEN_DECIMALS = 18; // Token supply - 1.5 Billion Tokens, with 18 decimal precision uint256 co...
messageForTransferRestriction
function messageForTransferRestriction (uint8 restrictionCode) public view returns (string memory) { if (restrictionCode == SUCCESS_CODE) { return SUCCESS_MESSAGE; } if (restrictionCode == FAILURE_NON_WHITELIST) { return FAILURE_NON_WHITELIST_MESSAGE; } // ...
/** This function allows a wallet or other client to get a human readable string to show a user if a transfer was restricted. It should return enough information for the user to know why it failed. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://7028316fa29a58455a36d0eba490ed261e46186366c814db70b26a2eb654618b
{ "func_code_index": [ 2466, 2909 ] }
28,171
SukuToken
contracts/SukuToken.sol
0x0763fdccf1ae541a5961815c0872a8c5bc6de4d7
Solidity
SukuToken
contract SukuToken is ERC1404, ERC20, ERC20Detailed, Whitelistable, Restrictable { // Token Details string constant TOKEN_NAME = "SUKU"; string constant TOKEN_SYMBOL = "SUKU"; uint8 constant TOKEN_DECIMALS = 18; // Token supply - 1.5 Billion Tokens, with 18 decimal precision uint256 co...
transfer
function transfer (address to, uint256 value) public notRestricted(msg.sender, to, value) returns (bool success) { success = super.transfer(to, value); }
/** Overrides the parent class token transfer function to enforce restrictions. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://7028316fa29a58455a36d0eba490ed261e46186366c814db70b26a2eb654618b
{ "func_code_index": [ 3366, 3573 ] }
28,172
SukuToken
contracts/SukuToken.sol
0x0763fdccf1ae541a5961815c0872a8c5bc6de4d7
Solidity
SukuToken
contract SukuToken is ERC1404, ERC20, ERC20Detailed, Whitelistable, Restrictable { // Token Details string constant TOKEN_NAME = "SUKU"; string constant TOKEN_SYMBOL = "SUKU"; uint8 constant TOKEN_DECIMALS = 18; // Token supply - 1.5 Billion Tokens, with 18 decimal precision uint256 co...
transferFrom
function transferFrom (address from, address to, uint256 value) public notRestricted(from, to, value) returns (bool success) { success = super.transferFrom(from, to, value); }
/** Overrides the parent class token transferFrom function to enforce restrictions. */
NatSpecMultiLine
v0.5.0+commit.1d4f565a
None
bzzr://7028316fa29a58455a36d0eba490ed261e46186366c814db70b26a2eb654618b
{ "func_code_index": [ 3679, 3905 ] }
28,173
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 94, 154 ] }
28,174
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 237, 310 ] }
28,175
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
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.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 534, 616 ] }
28,176
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
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.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 895, 983 ] }
28,177
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
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.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 1647, 1726 ] }
28,178
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
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.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 2039, 2141 ] }
28,179
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 259, 445 ] }
28,180
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 723, 864 ] }
28,181
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 1162, 1359 ] }
28,182
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 1613, 2089 ] }
28,183
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 2560, 2697 ] }
28,184
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 3188, 3471 ] }
28,185
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 3931, 4066 ] }
28,186
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 4546, 4717 ] }
28,187
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 606, 1230 ] }
28,188
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 2160, 2562 ] }
28,189
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 3318, 3496 ] }
28,190
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 3721, 3922 ] }
28,191
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 4292, 4523 ] }
28,192
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 4774, 5095 ] }
28,193
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
SafeERC20
library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, add...
/** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `...
NatSpecMultiLine
safeApprove
function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line ...
/** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 747, 1374 ] }
28,194
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
SafeERC20
library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, add...
/** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `...
NatSpecMultiLine
_callOptionalReturn
function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target ad...
/** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 2393, 3159 ] }
28,195
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
Ownable
contract Ownable is Context { /** * @dev So here we seperate the rights of the classic ownership into 'owner' and 'minter' * this way the developer/owner stays the 'owner' and can make changes like adding a pool * at any time but cannot mint anymore as soon as the 'minter' gets changes (to the ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 811, 895 ] }
28,196
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
Ownable
contract Ownable is Context { /** * @dev So here we seperate the rights of the classic ownership into 'owner' and 'minter' * this way the developer/owner stays the 'owner' and can make changes like adding a pool * at any time but cannot mint anymore as soon as the 'minter' gets changes (to the ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 1453, 1606 ] }
28,197
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
Ownable
contract Ownable is Context { /** * @dev So here we seperate the rights of the classic ownership into 'owner' and 'minter' * this way the developer/owner stays the 'owner' and can make changes like adding a pool * at any time but cannot mint anymore as soon as the 'minter' gets changes (to the ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 1756, 2005 ] }
28,198
Token
Token.sol
0xe15c466b2bb7499d539604a11240d1f407417888
Solidity
Mintable
contract Mintable is Context { /** * @dev So here we seperate the rights of the classic ownership into 'owner' and 'minter' * this way the developer/owner stays the 'owner' and can make changes like adding a pool * at any time but cannot mint anymore as soon as the 'minter' gets changes (to the...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an minter) that can be granted exclusive access to * specific functions. * * By default, the minter account will be the one that deploys the contract. This * can later be changed with {transferMintership...
NatSpecMultiLine
minter
function minter() public view returns (address) { return _minter; }
/** * @dev Returns the address of the current minter. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://5606763ddaee3eb698ab169eb9bcfd70d17b5084337847c2393af531c5f14576
{ "func_code_index": [ 820, 906 ] }
28,199